39 references to ForEachKeyword
Microsoft.CodeAnalysis.CSharp (21)
_generated\0\Syntax.xml.Main.Generated.cs (7)
4434
if (forEachKeyword.Kind() != SyntaxKind.
ForEachKeyword
) throw new ArgumentException(nameof(forEachKeyword));
4447
=> SyntaxFactory.ForEachStatement(attributeLists, default, SyntaxFactory.Token(SyntaxKind.
ForEachKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement);
4451
=> SyntaxFactory.ForEachStatement(default, default, SyntaxFactory.Token(SyntaxKind.
ForEachKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement);
4455
=> SyntaxFactory.ForEachStatement(default, default, SyntaxFactory.Token(SyntaxKind.
ForEachKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), type, SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement);
4466
if (forEachKeyword.Kind() != SyntaxKind.
ForEachKeyword
) throw new ArgumentException(nameof(forEachKeyword));
4478
=> SyntaxFactory.ForEachVariableStatement(attributeLists, default, SyntaxFactory.Token(SyntaxKind.
ForEachKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), variable, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement);
4482
=> SyntaxFactory.ForEachVariableStatement(default, default, SyntaxFactory.Token(SyntaxKind.
ForEachKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), variable, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement);
_generated\1\Syntax.xml.Internal.Generated.cs (4)
31495
if (forEachKeyword.Kind != SyntaxKind.
ForEachKeyword
) throw new ArgumentException(nameof(forEachKeyword));
31525
if (forEachKeyword.Kind != SyntaxKind.
ForEachKeyword
) throw new ArgumentException(nameof(forEachKeyword));
36917
if (forEachKeyword.Kind != SyntaxKind.
ForEachKeyword
) throw new ArgumentException(nameof(forEachKeyword));
36947
if (forEachKeyword.Kind != SyntaxKind.
ForEachKeyword
) throw new ArgumentException(nameof(forEachKeyword));
Parser\LanguageParser.cs (8)
8381
case SyntaxKind.
ForEachKeyword
:
8494
this.PeekToken(1).Kind == SyntaxKind.
ForEachKeyword
)
9278
case SyntaxKind.
ForEachKeyword
:
9796
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
ForEachKeyword
|| this.CurrentToken.Kind == SyntaxKind.ForKeyword);
9810
skippedForToken = this.AddError(skippedForToken, ErrorCode.ERR_SyntaxError, SyntaxFacts.GetText(SyntaxKind.
ForEachKeyword
));
9811
@foreach = ConvertToMissingWithTrailingTrivia(skippedForToken, SyntaxKind.
ForEachKeyword
);
9815
@foreach = this.EatToken(SyntaxKind.
ForEachKeyword
);
11221
case SyntaxKind.
ForEachKeyword
:
Syntax\SyntaxKindFacts.cs (2)
935
return SyntaxKind.
ForEachKeyword
;
1636
case SyntaxKind.
ForEachKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
46
public static readonly SyntaxToken ForEachKeyword = Token(SyntaxKind.
ForEachKeyword
);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1840
if (previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.
ForEachKeyword
or SyntaxKind.UsingKeyword)
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\ForEachKeywordRecommender.cs (1)
10
internal sealed class ForEachKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
ForEachKeyword
)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
243
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)
29
or SyntaxKind.
ForEachKeyword
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
81
case SyntaxKind.
ForEachKeyword
:
Rename\CSharpRenameRewriterLanguageService.cs (1)
975
case SyntaxKind.
ForEachKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
46
public static readonly SyntaxToken ForEachKeyword = Token(SyntaxKind.
ForEachKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155
previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.
ForEachKeyword
|| previousKind == SyntaxKind.CatchKeyword ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1840
if (previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.
ForEachKeyword
or SyntaxKind.UsingKeyword)
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\Legacy\CSharpCodeParser.cs (2)
81
CSharpSyntaxKind.
ForEachKeyword
,
2149
if (At(CSharpSyntaxKind.
ForEachKeyword
))
Language\Legacy\NativeCSharpTokenizer.cs (1)
90
CSharpSyntaxKind.
ForEachKeyword
,
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
46
public static readonly SyntaxToken ForEachKeyword = Token(SyntaxKind.
ForEachKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155
previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.
ForEachKeyword
|| previousKind == SyntaxKind.CatchKeyword ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1840
if (previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.
ForEachKeyword
or SyntaxKind.UsingKeyword)