85 references to ForEachVariableStatement
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Deconstruct.cs (1)
179if (parent is null || parent.Kind() == SyntaxKind.ForEachVariableStatement)
Binder\Binder_Statements.cs (2)
91case SyntaxKind.ForEachVariableStatement: 365case SyntaxKind.ForEachVariableStatement:
Binder\ForEachLoopBinder.cs (2)
74case SyntaxKind.ForEachVariableStatement: 367case SyntaxKind.ForEachVariableStatement:
Compilation\MemberSemanticModel.cs (2)
415case SyntaxKind.ForEachVariableStatement: 417var start = stmt.Kind() == SyntaxKind.ForEachVariableStatement ? foreachStmt.InKeyword : foreachStmt.OpenParenToken;
Lowering\ClosureConversion\ClosureConversion.cs (1)
1774case SyntaxKind.ForEachVariableStatement:
Lowering\Instrumentation\DebugInfoInjector.cs (1)
322case SyntaxKind.ForEachVariableStatement:
Lowering\Instrumentation\Instrumenter.cs (1)
166Debug.Assert(original.Syntax.Kind() == SyntaxKind.ForEachVariableStatement);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
121case SyntaxKind.ForEachVariableStatement:
Symbols\Source\SourceLocalSymbol.cs (2)
692case SyntaxKind.ForEachVariableStatement: 713case SyntaxKind.ForEachVariableStatement:
Syntax\LambdaUtilities.cs (1)
397case SyntaxKind.ForEachVariableStatement:
Syntax\LookupPosition.cs (2)
334case SyntaxKind.ForEachVariableStatement: 397case SyntaxKind.ForEachVariableStatement:
Syntax\SyntaxExtensions.cs (1)
372case SyntaxKind.ForEachVariableStatement:
Syntax\SyntaxNodeExtensions.cs (1)
131case SyntaxKind.ForEachVariableStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
38SyntaxKind.ForEachVariableStatement,
src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
24=> [SyntaxKind.ForEachStatement, SyntaxKind.ForEachVariableStatement];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
305case SyntaxKind.ForEachVariableStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
402case SyntaxKind.ForEachVariableStatement: 417case SyntaxKind.ForEachVariableStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
58case SyntaxKind.ForEachVariableStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
614SyntaxKind.ForStatement or SyntaxKind.ForEachStatement or SyntaxKind.ForEachVariableStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
362SyntaxKind.ForEachVariableStatement or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
56.FirstOrDefault(n => n.Kind() is SyntaxKind.SimpleAssignmentExpression or SyntaxKind.ForEachVariableStatement or SyntaxKind.PositionalPatternClause);
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
100SyntaxKind.ForEachVariableStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
166or SyntaxKind.ForEachVariableStatement
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1804SyntaxKind.ForEachVariableStatement)) 1809if (parent.Parent is (kind: SyntaxKind.ForEachStatement or SyntaxKind.ForEachVariableStatement)) 2550SyntaxKind.ForEachVariableStatement or
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenDeconstructTests.cs (1)
311var foreachDeconstruction = (ForEachVariableStatementSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.ForEachVariableStatement).AsNode();
Microsoft.CodeAnalysis.CSharp.Features (15)
BraceCompletion\CurlyBraceCompletionService.cs (1)
215case SyntaxKind.ForEachVariableStatement:
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
201case SyntaxKind.ForEachVariableStatement: 255case SyntaxKind.ForEachVariableStatement:
EditAndContinue\BreakpointSpans.cs (2)
662case SyntaxKind.ForEachVariableStatement: 965case SyntaxKind.ForEachVariableStatement:
EditAndContinue\SyntaxComparer.cs (4)
382case SyntaxKind.ForEachVariableStatement: 792case SyntaxKind.ForEachVariableStatement: 1057case SyntaxKind.ForEachVariableStatement: 1308case SyntaxKind.ForEachVariableStatement:
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
38SyntaxKind.ForEachVariableStatement,
src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
24=> [SyntaxKind.ForEachStatement, SyntaxKind.ForEachVariableStatement];
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
56.FirstOrDefault(n => n.Kind() is SyntaxKind.SimpleAssignmentExpression or SyntaxKind.ForEachVariableStatement or SyntaxKind.PositionalPatternClause);
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
100SyntaxKind.ForEachVariableStatement or
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
397case SyntaxKind.ForEachVariableStatement:
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
204SyntaxKind.ForEachVariableStatement => BlockTypes.Loop,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ForEachTests.cs (1)
3260(CommonForEachStatementSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.ForEachVariableStatement).AsNode();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (23)
Parsing\AsyncStreamsParsingTests.cs (2)
409N(SyntaxKind.ForEachVariableStatement); 503N(SyntaxKind.ForEachVariableStatement);
Parsing\DeclarationExpressionTests.cs (9)
464N(SyntaxKind.ForEachVariableStatement); 521N(SyntaxKind.ForEachVariableStatement); 625N(SyntaxKind.ForEachVariableStatement); 668N(SyntaxKind.ForEachVariableStatement); 712N(SyntaxKind.ForEachVariableStatement); 780N(SyntaxKind.ForEachVariableStatement); 844N(SyntaxKind.ForEachVariableStatement); 871N(SyntaxKind.ForEachVariableStatement); 902N(SyntaxKind.ForEachVariableStatement);
Parsing\DeclarationScopeParsingTests.cs (8)
9757N(SyntaxKind.ForEachVariableStatement); 9861N(SyntaxKind.ForEachVariableStatement); 9935N(SyntaxKind.ForEachVariableStatement); 10041N(SyntaxKind.ForEachVariableStatement); 10142N(SyntaxKind.ForEachVariableStatement); 10247N(SyntaxKind.ForEachVariableStatement); 10892N(SyntaxKind.ForEachVariableStatement); 11040N(SyntaxKind.ForEachVariableStatement);
Parsing\DeconstructionTests.cs (3)
1437N(SyntaxKind.ForEachVariableStatement); 1530N(SyntaxKind.ForEachVariableStatement); 1662N(SyntaxKind.ForEachVariableStatement);
Parsing\StatementAttributeParsingTests.cs (1)
1261N(SyntaxKind.ForEachVariableStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
Classification\ClassificationHelpers.cs (1)
119case SyntaxKind.ForEachVariableStatement:
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
186case SyntaxKind.ForEachVariableStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
305case SyntaxKind.ForEachVariableStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
402case SyntaxKind.ForEachVariableStatement: 417case SyntaxKind.ForEachVariableStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
58case SyntaxKind.ForEachVariableStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
614SyntaxKind.ForStatement or SyntaxKind.ForEachStatement or SyntaxKind.ForEachVariableStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
362SyntaxKind.ForEachVariableStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
166or SyntaxKind.ForEachVariableStatement
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1804SyntaxKind.ForEachVariableStatement)) 1809if (parent.Parent is (kind: SyntaxKind.ForEachStatement or SyntaxKind.ForEachVariableStatement)) 2550SyntaxKind.ForEachVariableStatement or
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1136case CSharp.SyntaxKind.ForEachVariableStatement: