79 references to GetForEachStatementInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
127var elementConversion = semanticModel.GetForEachStatementInfo(forEachStatement).ElementConversion;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
155var foreachStatementInfo = semanticModel.GetForEachStatementInfo(foreachStatement);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAwaitForeachTests.cs (5)
937var info = model.GetForEachStatementInfo(foreachSyntax); 9108var info = model.GetForEachStatementInfo(foreachSyntax); 9184var info = model.GetForEachStatementInfo(foreachSyntax); 9262var info = model.GetForEachStatementInfo(foreachSyntax); 9323var info = model.GetForEachStatementInfo(foreachSyntax);
CodeGen\CodeGenForEachTests.cs (1)
1759var info = model.GetForEachStatementInfo(foreachSyntax);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (55)
RefStructInterfacesTests.cs (51)
7576var info = model.GetForEachStatementInfo(foreachSyntax); 7766var info = model.GetForEachStatementInfo(foreachSyntax); 7986var info = model.GetForEachStatementInfo(foreachSyntax); 8176var info = model.GetForEachStatementInfo(foreachSyntax); 8369var info = model.GetForEachStatementInfo(foreachSyntax); 8444var info = model.GetForEachStatementInfo(foreachSyntax); 8648var info = model.GetForEachStatementInfo(foreachSyntax); 9019var info = model.GetForEachStatementInfo(foreachSyntax); 9223var info = model.GetForEachStatementInfo(foreachSyntax); 9387var info = model.GetForEachStatementInfo(foreachSyntax); 9587var info = model.GetForEachStatementInfo(foreachSyntax); 9811var info = model.GetForEachStatementInfo(foreachSyntax); 10020var info = model.GetForEachStatementInfo(foreachSyntax); 10247var info = model.GetForEachStatementInfo(foreachSyntax); 10350var info = model.GetForEachStatementInfo(foreachSyntax); 10445var info = model.GetForEachStatementInfo(foreachSyntax); 10630var info = model.GetForEachStatementInfo(foreachSyntax); 10827var info = model.GetForEachStatementInfo(foreachSyntax); 11068var info = model.GetForEachStatementInfo(foreachSyntax); 11295var info = model.GetForEachStatementInfo(foreachSyntax); 11507var info = model.GetForEachStatementInfo(foreachSyntax); 11607var info = model.GetForEachStatementInfo(foreachSyntax); 11702var info = model.GetForEachStatementInfo(foreachSyntax); 14259var info = model.GetForEachStatementInfo(foreachSyntax); 14600var info = model.GetForEachStatementInfo(foreachSyntax); 14967var info = model.GetForEachStatementInfo(foreachSyntax); 15310var info = model.GetForEachStatementInfo(foreachSyntax); 15658var info = model.GetForEachStatementInfo(foreachSyntax); 15735var info = model.GetForEachStatementInfo(foreachSyntax); 16096var info = model.GetForEachStatementInfo(foreachSyntax); 16761var info = model.GetForEachStatementInfo(foreachSyntax); 16826var info = model.GetForEachStatementInfo(foreachSyntax); 16891var info = model.GetForEachStatementInfo(foreachSyntax); 16975var info = model.GetForEachStatementInfo(foreachSyntax); 17063var info = model.GetForEachStatementInfo(foreachSyntax); 17156var info = model.GetForEachStatementInfo(foreachSyntax); 17253var info = model.GetForEachStatementInfo(foreachSyntax); 17337var info = model.GetForEachStatementInfo(foreachSyntax); 17763var info = model.GetForEachStatementInfo(foreachSyntax); 17960var info = model.GetForEachStatementInfo(foreachSyntax); 18184var info = model.GetForEachStatementInfo(foreachSyntax); 18380var info = model.GetForEachStatementInfo(foreachSyntax); 18581var info = model.GetForEachStatementInfo(foreachSyntax); 18655var info = model.GetForEachStatementInfo(foreachSyntax); 18865var info = model.GetForEachStatementInfo(foreachSyntax); 19200var info = model.GetForEachStatementInfo(foreachSyntax); 19371var info = model.GetForEachStatementInfo(foreachSyntax); 19528var info = model.GetForEachStatementInfo(foreachSyntax); 19696var info = model.GetForEachStatementInfo(foreachSyntax); 19864var info = model.GetForEachStatementInfo(foreachSyntax); 19969var info = model.GetForEachStatementInfo(foreachSyntax);
Semantics\InlineArrayTests.cs (3)
18593var forEachInfo = model.GetForEachStatementInfo((ForEachStatementSyntax)f.Parent); 18919var forEachInfo = model.GetForEachStatementInfo((ForEachStatementSyntax)f.Parent); 19256var forEachInfo = model.GetForEachStatementInfo((ForEachStatementSyntax)collection.Parent);
Semantics\OutVarTests.cs (1)
35650var info = model.GetForEachStatementInfo(foreachStatement);
Microsoft.CodeAnalysis.CSharp.Features (2)
InlineHints\CSharpInlineTypeHintsService.cs (1)
69var info = semanticModel.GetForEachStatementInfo(forEachStatement);
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
127var elementConversion = semanticModel.GetForEachStatementInfo(forEachStatement).ElementConversion;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\ForEachTests.cs (5)
2131var loopInfo = model.GetForEachStatementInfo(loopSyntax); 2184var loopInfo0 = model.GetForEachStatementInfo(loopSyntaxes[0]); 2193var loopInfo1 = model.GetForEachStatementInfo(loopSyntaxes[1]); 3327var info = model.GetForEachStatementInfo(loop); 3361var info = model.GetForEachStatementInfo(loop);
Semantics\NullableReferenceTypesTests.cs (4)
146306Assert.Equal("C<System.Object>", model.GetForEachStatementInfo(@foreach).ElementType.ToTestDisplayString()); 146346Assert.Equal("C<System.Object>", model.GetForEachStatementInfo(@foreach).ElementType.ToTestDisplayString()); 146385Assert.Equal("C<(System.Int32 a, System.Int32 b)>", model.GetForEachStatementInfo(@foreach).ElementType.ToTestDisplayString()); 146424Assert.Equal("C<(System.Int32 c, System.Int32 d)>", model.GetForEachStatementInfo(@foreach).ElementType.ToTestDisplayString());
Semantics\UnsafeTests.cs (1)
11880var info = model.GetForEachStatementInfo(foreachSyntax);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\GetSemanticInfoTests.cs (1)
5989var foreachSymbolInfo = model.GetForEachStatementInfo(foreachSyntaxNode);
Compilation\SemanticModelAPITests.cs (1)
1999ForEachStatementInfo info = speculativeModel.GetForEachStatementInfo(statement);
Symbols\Source\NullablePublicAPITests.cs (1)
2602var foreachInfo = model.GetForEachStatementInfo(foreachStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
155var foreachStatementInfo = semanticModel.GetForEachStatementInfo(foreachStatement);