73 references to ForKeyword
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser.cs (8)
7979
case SyntaxKind.
ForKeyword
:
8802
case SyntaxKind.
ForKeyword
:
9135
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
ForKeyword
);
9156
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
ForKeyword
);
9161
var forToken = this.EatToken(SyntaxKind.
ForKeyword
);
9294
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForEachKeyword || this.CurrentToken.Kind == SyntaxKind.
ForKeyword
);
9305
if (this.CurrentToken.Kind == SyntaxKind.
ForKeyword
)
10658
case SyntaxKind.
ForKeyword
:
Syntax\SyntaxKindFacts.cs (2)
901
return SyntaxKind.
ForKeyword
;
1549
case SyntaxKind.
ForKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155
previousKind == SyntaxKind.
ForKeyword
|| previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1832
if (previous.Kind() is SyntaxKind.
ForKeyword
or SyntaxKind.ForEachKeyword or SyntaxKind.UsingKeyword)
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\ForKeywordRecommender.cs (1)
13
: base(SyntaxKind.
ForKeyword
)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
201
return previous.Kind() is SyntaxKind.
ForKeyword
or SyntaxKind.ForEachKeyword;
Completion\KeywordRecommenders\ScopedKeywordRecommender.cs (1)
38
return previous.Kind() is SyntaxKind.
ForKeyword
or SyntaxKind.ForEachKeyword;
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
27
or SyntaxKind.
ForKeyword
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (54)
Generated\Syntax.Test.xml.Generated.cs (4)
398
=> InternalSyntaxFactory.ForStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.
ForKeyword
), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.ExpressionSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken), null, InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.ExpressionSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
2283
Assert.Equal(SyntaxKind.
ForKeyword
, node.ForKeyword.Kind);
10614
=> SyntaxFactory.ForStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.
ForKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), default(VariableDeclarationSyntax), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.Token(SyntaxKind.SemicolonToken), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
12499
Assert.Equal(SyntaxKind.
ForKeyword
, node.ForKeyword.Kind());
Parsing\DeclarationScopeParsingTests.cs (26)
8362
N(SyntaxKind.
ForKeyword
);
8399
N(SyntaxKind.
ForKeyword
);
8447
N(SyntaxKind.
ForKeyword
);
8492
N(SyntaxKind.
ForKeyword
);
8533
N(SyntaxKind.
ForKeyword
);
8582
N(SyntaxKind.
ForKeyword
);
8631
N(SyntaxKind.
ForKeyword
);
8672
N(SyntaxKind.
ForKeyword
);
8723
N(SyntaxKind.
ForKeyword
);
8763
N(SyntaxKind.
ForKeyword
);
8821
N(SyntaxKind.
ForKeyword
);
8865
N(SyntaxKind.
ForKeyword
);
8933
N(SyntaxKind.
ForKeyword
);
8982
N(SyntaxKind.
ForKeyword
);
9023
N(SyntaxKind.
ForKeyword
);
9068
N(SyntaxKind.
ForKeyword
);
9114
N(SyntaxKind.
ForKeyword
);
9159
N(SyntaxKind.
ForKeyword
);
9200
N(SyntaxKind.
ForKeyword
);
9249
N(SyntaxKind.
ForKeyword
);
9290
N(SyntaxKind.
ForKeyword
);
9336
N(SyntaxKind.
ForKeyword
);
9382
N(SyntaxKind.
ForKeyword
);
9419
N(SyntaxKind.
ForKeyword
);
9464
N(SyntaxKind.
ForKeyword
);
9505
N(SyntaxKind.
ForKeyword
);
Parsing\DeconstructionTests.cs (3)
548
N(SyntaxKind.
ForKeyword
);
1256
N(SyntaxKind.
ForKeyword
);
1354
N(SyntaxKind.
ForKeyword
);
Parsing\ExpressionParsingTests.cs (1)
6347
N(SyntaxKind.
ForKeyword
);
Parsing\ForStatementParsingTest.cs (7)
20
N(SyntaxKind.
ForKeyword
);
95
N(SyntaxKind.
ForKeyword
);
160
N(SyntaxKind.
ForKeyword
);
228
N(SyntaxKind.
ForKeyword
);
282
N(SyntaxKind.
ForKeyword
);
321
N(SyntaxKind.
ForKeyword
);
391
N(SyntaxKind.
ForKeyword
);
Parsing\FunctionPointerTests.cs (1)
2989
N(SyntaxKind.
ForKeyword
);
Parsing\StatementAttributeParsingTests.cs (1)
1063
N(SyntaxKind.
ForKeyword
);
Parsing\StatementParsingTests.cs (11)
1528
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1554
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1591
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1630
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1670
N(SyntaxKind.
ForKeyword
);
1739
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1768
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1798
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1828
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1858
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
1889
Assert.Equal(SyntaxKind.
ForKeyword
, fs.ForKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
80
case SyntaxKind.
ForKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155
previousKind == SyntaxKind.
ForKeyword
|| previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1832
if (previous.Kind() is SyntaxKind.
ForKeyword
or SyntaxKind.ForEachKeyword or SyntaxKind.UsingKeyword)