127 references to ForStatement
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Deconstruct.cs (2)
49
case SyntaxKind.
ForStatement
:
197
case SyntaxKind.
ForStatement
:
Binder\Binder_Expressions.cs (2)
4596
variableDeclaration.Parent.IsKind(SyntaxKind.
ForStatement
);
11004
case SyntaxKind.
ForStatement
:
Binder\Binder_Statements.cs (2)
87
case SyntaxKind.
ForStatement
:
363
case SyntaxKind.
ForStatement
:
Compilation\MemberSemanticModel.cs (1)
398
case SyntaxKind.
ForStatement
:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1772
case SyntaxKind.
ForStatement
:
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
121
case SyntaxKind.
ForStatement
:
Lowering\Instrumentation\Instrumenter.cs (2)
180
Debug.Assert(original.Syntax.Kind() == SyntaxKind.
ForStatement
);
187
Debug.Assert(original.Syntax.Kind() == SyntaxKind.
ForStatement
);
Symbols\Source\SourceLocalSymbol.cs (1)
174
new[] { SyntaxKind.LocalDeclarationStatement, SyntaxKind.
ForStatement
, SyntaxKind.UsingStatement, SyntaxKind.FixedStatement }.
Syntax\LambdaUtilities.cs (2)
395
case SyntaxKind.
ForStatement
:
447
case SyntaxKind.
ForStatement
:
Syntax\LookupPosition.cs (2)
336
case SyntaxKind.
ForStatement
:
399
case SyntaxKind.
ForStatement
:
Syntax\SyntaxNodeExtensions.cs (1)
126
case SyntaxKind.
ForStatement
:
Syntax\SyntaxNormalizer.cs (1)
417
if (currentToken.Parent.IsKind(SyntaxKind.
ForStatement
))
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
36
SyntaxKind.
ForStatement
,
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
328
case SyntaxKind.
ForStatement
:
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
148
case SyntaxKind.
ForStatement
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
400
case SyntaxKind.
ForStatement
:
415
case SyntaxKind.
ForStatement
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
60
case SyntaxKind.
ForStatement
:
468
&& (previousToken.Parent is StatementSyntax && !previousToken.Parent.IsKind(SyntaxKind.
ForStatement
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
177
if (previousParentKind == SyntaxKind.
ForStatement
614
SyntaxKind.
ForStatement
or SyntaxKind.ForEachStatement or SyntaxKind.ForEachVariableStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
142
public int ForStatement => (int)SyntaxKind.
ForStatement
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
360
SyntaxKind.
ForStatement
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
108
SyntaxKind.
ForStatement
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
86
typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.
ForStatement
or SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
109
SyntaxKind.
ForStatement
or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
164
is SyntaxKind.
ForStatement
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1803
SyntaxKind.
ForStatement
or
2537
token.Parent.IsKind(SyntaxKind.
ForStatement
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2180
if (variableDeclaration.IsParentKind(SyntaxKind.
ForStatement
))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
356
case SyntaxKind.
ForStatement
:
524
case SyntaxKind.
ForStatement
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\LocalSlotMappingTests.cs (1)
3698
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.
ForStatement
, SyntaxKind.VariableDeclarator))));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\OutVarTests.cs (1)
1187
case SyntaxKind.
ForStatement
:
Microsoft.CodeAnalysis.CSharp.Features (16)
BraceCompletion\CurlyBraceCompletionService.cs (1)
217
case SyntaxKind.
ForStatement
:
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
199
case SyntaxKind.
ForStatement
:
251
case SyntaxKind.
ForStatement
:
EditAndContinue\BreakpointSpans.cs (2)
625
case SyntaxKind.
ForStatement
:
957
case SyntaxKind.
ForStatement
:
EditAndContinue\SyntaxComparer.cs (5)
245
if (node != null && node.Parent.IsKind(SyntaxKind.
ForStatement
) && node is ExpressionSyntax)
379
case SyntaxKind.
ForStatement
:
739
case SyntaxKind.
ForStatement
:
785
case SyntaxKind.
ForStatement
:
1058
case SyntaxKind.
ForStatement
:
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
36
SyntaxKind.
ForStatement
,
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
328
case SyntaxKind.
ForStatement
:
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
148
case SyntaxKind.
ForStatement
:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (2)
395
case SyntaxKind.
ForStatement
:
447
case SyntaxKind.
ForStatement
:
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
202
SyntaxKind.
ForStatement
=> BlockTypes.Loop,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (53)
Parsing\DeclarationScopeParsingTests.cs (26)
8360
N(SyntaxKind.
ForStatement
);
8397
N(SyntaxKind.
ForStatement
);
8445
N(SyntaxKind.
ForStatement
);
8490
N(SyntaxKind.
ForStatement
);
8531
N(SyntaxKind.
ForStatement
);
8580
N(SyntaxKind.
ForStatement
);
8629
N(SyntaxKind.
ForStatement
);
8670
N(SyntaxKind.
ForStatement
);
8721
N(SyntaxKind.
ForStatement
);
8761
N(SyntaxKind.
ForStatement
);
8819
N(SyntaxKind.
ForStatement
);
8863
N(SyntaxKind.
ForStatement
);
8931
N(SyntaxKind.
ForStatement
);
8980
N(SyntaxKind.
ForStatement
);
9021
N(SyntaxKind.
ForStatement
);
9066
N(SyntaxKind.
ForStatement
);
9112
N(SyntaxKind.
ForStatement
);
9157
N(SyntaxKind.
ForStatement
);
9198
N(SyntaxKind.
ForStatement
);
9247
N(SyntaxKind.
ForStatement
);
9288
N(SyntaxKind.
ForStatement
);
9334
N(SyntaxKind.
ForStatement
);
9380
N(SyntaxKind.
ForStatement
);
9417
N(SyntaxKind.
ForStatement
);
9462
N(SyntaxKind.
ForStatement
);
9503
N(SyntaxKind.
ForStatement
);
Parsing\DeconstructionTests.cs (4)
546
N(SyntaxKind.
ForStatement
);
1254
N(SyntaxKind.
ForStatement
);
1352
N(SyntaxKind.
ForStatement
);
2039
Assert.True(statement.Kind() == SyntaxKind.
ForStatement
);
Parsing\ExpressionParsingTests.cs (1)
6345
N(SyntaxKind.
ForStatement
);
Parsing\FunctionPointerTests.cs (1)
2987
N(SyntaxKind.
ForStatement
);
Parsing\ParsingErrorRecoveryTests.cs (9)
4369
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4391
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4417
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4444
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4465
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4488
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4513
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4538
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
4560
Assert.Equal(SyntaxKind.
ForStatement
, ms.Body.Statements[0].Kind());
Parsing\StatementAttributeParsingTests.cs (1)
1049
N(SyntaxKind.
ForStatement
);
Parsing\StatementParsingTests.cs (11)
1521
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1547
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1584
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1623
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1668
N(SyntaxKind.
ForStatement
);
1732
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1761
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1791
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1821
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1851
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
1882
Assert.Equal(SyntaxKind.
ForStatement
, statement.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
Classification\ClassificationHelpers.cs (1)
117
case SyntaxKind.
ForStatement
:
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
184
case SyntaxKind.
ForStatement
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
400
case SyntaxKind.
ForStatement
:
415
case SyntaxKind.
ForStatement
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
60
case SyntaxKind.
ForStatement
:
468
&& (previousToken.Parent is StatementSyntax && !previousToken.Parent.IsKind(SyntaxKind.
ForStatement
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
177
if (previousParentKind == SyntaxKind.
ForStatement
614
SyntaxKind.
ForStatement
or SyntaxKind.ForEachStatement or SyntaxKind.ForEachVariableStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
142
public int ForStatement => (int)SyntaxKind.
ForStatement
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
360
SyntaxKind.
ForStatement
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
108
SyntaxKind.
ForStatement
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
86
typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.
ForStatement
or SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
109
SyntaxKind.
ForStatement
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
164
is SyntaxKind.
ForStatement
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1803
SyntaxKind.
ForStatement
or
2537
token.Parent.IsKind(SyntaxKind.
ForStatement
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2180
if (variableDeclaration.IsParentKind(SyntaxKind.
ForStatement
))
Microsoft.ML.InternalCodeAnalyzer (1)
SingleVariableDeclarationAnalyzer.cs (1)
44
if (vars.Count <= 1 || node.Parent.IsKind(SyntaxKind.
ForStatement
))