66 references to ForKeyword
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser.cs (8)
7945case SyntaxKind.ForKeyword: 8768case SyntaxKind.ForKeyword: 9101Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9122Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9124var forToken = this.EatToken(SyntaxKind.ForKeyword); 9266Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForEachKeyword || this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9277if (this.CurrentToken.Kind == SyntaxKind.ForKeyword) 10617case SyntaxKind.ForKeyword:
Syntax\SyntaxKindFacts.cs (2)
901return SyntaxKind.ForKeyword; 1549case SyntaxKind.ForKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1832if (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)
201return previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.ForEachKeyword;
Completion\KeywordRecommenders\ScopedKeywordRecommender.cs (1)
38return previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.ForEachKeyword;
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
27or SyntaxKind.ForKeyword
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (47)
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()); 2283Assert.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()); 12499Assert.Equal(SyntaxKind.ForKeyword, node.ForKeyword.Kind());
Parsing\DeclarationScopeParsingTests.cs (26)
8362N(SyntaxKind.ForKeyword); 8399N(SyntaxKind.ForKeyword); 8447N(SyntaxKind.ForKeyword); 8492N(SyntaxKind.ForKeyword); 8533N(SyntaxKind.ForKeyword); 8582N(SyntaxKind.ForKeyword); 8631N(SyntaxKind.ForKeyword); 8672N(SyntaxKind.ForKeyword); 8723N(SyntaxKind.ForKeyword); 8763N(SyntaxKind.ForKeyword); 8821N(SyntaxKind.ForKeyword); 8865N(SyntaxKind.ForKeyword); 8933N(SyntaxKind.ForKeyword); 8982N(SyntaxKind.ForKeyword); 9023N(SyntaxKind.ForKeyword); 9068N(SyntaxKind.ForKeyword); 9114N(SyntaxKind.ForKeyword); 9159N(SyntaxKind.ForKeyword); 9200N(SyntaxKind.ForKeyword); 9249N(SyntaxKind.ForKeyword); 9290N(SyntaxKind.ForKeyword); 9336N(SyntaxKind.ForKeyword); 9382N(SyntaxKind.ForKeyword); 9419N(SyntaxKind.ForKeyword); 9464N(SyntaxKind.ForKeyword); 9505N(SyntaxKind.ForKeyword);
Parsing\DeconstructionTests.cs (3)
548N(SyntaxKind.ForKeyword); 1256N(SyntaxKind.ForKeyword); 1354N(SyntaxKind.ForKeyword);
Parsing\ExpressionParsingTests.cs (1)
6347N(SyntaxKind.ForKeyword);
Parsing\FunctionPointerTests.cs (1)
2989N(SyntaxKind.ForKeyword);
Parsing\StatementAttributeParsingTests.cs (1)
1063N(SyntaxKind.ForKeyword);
Parsing\StatementParsingTests.cs (11)
1528Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1554Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1591Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1630Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1670N(SyntaxKind.ForKeyword); 1739Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1768Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1798Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1828Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1858Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind()); 1889Assert.Equal(SyntaxKind.ForKeyword, fs.ForKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
78case SyntaxKind.ForKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1832if (previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.ForEachKeyword or SyntaxKind.UsingKeyword)