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