17 instantiations of ForEachStatementInfo
Microsoft.CodeAnalysis.CSharp (1)
Compilation\MemberSemanticModel.cs (1)
977return new ForEachStatementInfo(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\ForEachStatementInfoTests.cs (16)
52EqualityTesting.AssertEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1)); 53EqualityTesting.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge2, mn1, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1)); 54EqualityTesting.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn2, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1)); 55EqualityTesting.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur2, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1)); 56EqualityTesting.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp2, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1)); 57EqualityTesting.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv2, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1)); 58EqualityTesting.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv2), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1)); 59EqualityTesting.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: false, ge1, mn1, cur1, disp1, e1, conv1, conv1));
78 references to ForEachStatementInfo
Microsoft.CodeAnalysis.CSharp (22)
Compilation\CSharpSemanticModel.cs (2)
4793public abstract ForEachStatementInfo GetForEachStatementInfo(ForEachStatementSyntax node); 4799public abstract ForEachStatementInfo GetForEachStatementInfo(CommonForEachStatementSyntax node);
Compilation\ForEachStatementInfo.cs (5)
13public readonly struct ForEachStatementInfo : IEquatable<ForEachStatementInfo> 63/// Initializes a new instance of the <see cref="ForEachStatementInfo" /> structure. 86return obj is ForEachStatementInfo && Equals((ForEachStatementInfo)obj); 89public bool Equals(ForEachStatementInfo other)
Compilation\MemberSemanticModel.cs (5)
926public override ForEachStatementInfo GetForEachStatementInfo(ForEachStatementSyntax node) 931public override ForEachStatementInfo GetForEachStatementInfo(CommonForEachStatementSyntax node) 937return default(ForEachStatementInfo); 946return default(ForEachStatementInfo); 956return default(ForEachStatementInfo);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (2)
396public override ForEachStatementInfo GetForEachStatementInfo(ForEachStatementSyntax node) 401public override ForEachStatementInfo GetForEachStatementInfo(CommonForEachStatementSyntax node)
Compilation\SyntaxTreeSemanticModel.cs (4)
2355public override ForEachStatementInfo GetForEachStatementInfo(ForEachStatementSyntax node) 2358return memberModel == null ? default(ForEachStatementInfo) : memberModel.GetForEachStatementInfo(node); 2361public override ForEachStatementInfo GetForEachStatementInfo(CommonForEachStatementSyntax node) 2364return memberModel == null ? default(ForEachStatementInfo) : memberModel.GetForEachStatementInfo(node);
CSharpExtensions.cs (4)
868public static ForEachStatementInfo GetForEachStatementInfo(this SemanticModel? semanticModel, ForEachStatementSyntax forEachStatement) 877return default(ForEachStatementInfo); 881public static ForEachStatementInfo GetForEachStatementInfo(this SemanticModel? semanticModel, CommonForEachStatementSyntax forEachStatement) 890return default(ForEachStatementInfo);
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
CastSimplifier.cs (2)
1051var oldForEachInfo = originalSemanticModel.GetForEachStatementInfo(oldForEach); 1052var newForEachInfo = rewrittenSemanticModel.GetForEachStatementInfo(newForEach);
CSharpForEachCastDiagnosticAnalyzer.cs (1)
29var info = semanticModel.GetForEachStatementInfo(node);
CSharpSemanticFacts.cs (1)
171var info = semanticModel.GetForEachStatementInfo(csforEachStatement);
CSharpUseImplicitTypeHelper.cs (1)
155var foreachStatementInfo = semanticModel.GetForEachStatementInfo(foreachStatement);
SpeculationAnalyzer.cs (3)
806var originalInfo = originalModel.GetForEachStatementInfo(originalForEach); 807var newInfo = newModel.GetForEachStatementInfo(newForEach); 814var info = model.GetForEachStatementInfo(forEach);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpForEachCastCodeFixProvider.cs (1)
29var forEachInfo = semanticModel.GetForEachStatementInfo(forEachStatement);
NullableHelpers.cs (1)
61var foreachInfo = semanticModel.GetForEachStatementInfo((CommonForEachStatementSyntax)forEachLoop.Syntax);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenAwaitForeachTests.cs (20)
937var info = model.GetForEachStatementInfo(foreachSyntax); 1662var info = model.GetForEachStatementInfo(foreachSyntax); 2124var info = model.GetForEachStatementInfo(foreachSyntax); 2189var info = model.GetForEachStatementInfo(foreachSyntax); 2274var info = model.GetForEachStatementInfo(foreachSyntax); 2392var info = model.GetForEachStatementInfo(foreachSyntax); 2864var info = model.GetForEachStatementInfo(foreachSyntax); 3611var info = model.GetForEachStatementInfo(foreachSyntax); 3685var info = model.GetForEachStatementInfo(foreachSyntax); 3795var info = model.GetForEachStatementInfo(foreachSyntax); 3894var info = model.GetForEachStatementInfo(foreachSyntax); 4121var info = model.GetForEachStatementInfo(foreachSyntax); 4202var info = model.GetForEachStatementInfo(foreachSyntax); 4423var info = model.GetForEachStatementInfo(foreachSyntax); 5506var info = model.GetForEachStatementInfo(foreachSyntax); 8166var info = model.GetForEachStatementInfo(foreachSyntax); 8242var info = model.GetForEachStatementInfo(foreachSyntax); 8320var info = model.GetForEachStatementInfo(foreachSyntax); 8381var info = model.GetForEachStatementInfo(foreachSyntax); 8452var info = model.GetForEachStatementInfo(foreachSyntax);
CodeGen\CodeGenForEachTests.cs (1)
1753var info = model.GetForEachStatementInfo(foreachSyntax);
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
80var foreachStatementInfo = model.GetForEachStatementInfo(foreachStatement);
CSharpForEachCastCodeFixProvider.cs (1)
29var forEachInfo = semanticModel.GetForEachStatementInfo(forEachStatement);
CSharpForEachCastDiagnosticAnalyzer.cs (1)
29var info = semanticModel.GetForEachStatementInfo(node);
InlineHints\CSharpInlineTypeHintsService.cs (1)
69var info = semanticModel.GetForEachStatementInfo(forEachStatement);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\ForEachTests.cs (5)
2130var loopInfo = model.GetForEachStatementInfo(loopSyntax); 2183var loopInfo0 = model.GetForEachStatementInfo(loopSyntaxes[0]); 2192var loopInfo1 = model.GetForEachStatementInfo(loopSyntaxes[1]); 3267ForEachStatementInfo statementInfo = treeModel.GetForEachStatementInfo(syntaxNode); 3271Assert.Equal(default(ForEachStatementInfo), statementInfo);
Semantics\OutVarTests.cs (1)
35639var info = model.GetForEachStatementInfo(foreachStatement);
Semantics\UnsafeTests.cs (2)
9028var info = model.GetForEachStatementInfo(foreachSyntax); 9029Assert.Equal(default(ForEachStatementInfo), info);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\ForEachStatementInfoTests.cs (2)
51EqualityTesting.AssertEqual(default(ForEachStatementInfo), default(ForEachStatementInfo));
Compilation\GetSemanticInfoTests.cs (1)
5989var foreachSymbolInfo = model.GetForEachStatementInfo(foreachSyntaxNode);
Compilation\SemanticModelAPITests.cs (1)
1999ForEachStatementInfo info = speculativeModel.GetForEachStatementInfo(statement);
Symbols\Source\NullablePublicAPITests.cs (1)
2603var foreachInfo = model.GetForEachStatementInfo(foreachStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CastSimplifier.cs (2)
1051var oldForEachInfo = originalSemanticModel.GetForEachStatementInfo(oldForEach); 1052var newForEachInfo = rewrittenSemanticModel.GetForEachStatementInfo(newForEach);
CSharpSemanticFacts.cs (1)
171var info = semanticModel.GetForEachStatementInfo(csforEachStatement);
CSharpUseImplicitTypeHelper.cs (1)
155var foreachStatementInfo = semanticModel.GetForEachStatementInfo(foreachStatement);
NullableHelpers.cs (1)
61var foreachInfo = semanticModel.GetForEachStatementInfo((CommonForEachStatementSyntax)forEachLoop.Syntax);
SpeculationAnalyzer.cs (3)
806var originalInfo = originalModel.GetForEachStatementInfo(originalForEach); 807var newInfo = newModel.GetForEachStatementInfo(newForEach); 814var info = model.GetForEachStatementInfo(forEach);