77 references to WhereKeyword
Microsoft.CodeAnalysis.CSharp (33)
_generated\0\Syntax.xml.Main.Generated.cs (6)
3581if (whereKeyword.Kind() != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 3588=> SyntaxFactory.WhereClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), condition); 5299if (whereKeyword.Kind() != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 5307=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), name, SyntaxFactory.Token(SyntaxKind.ColonToken), constraints); 5311=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), name, SyntaxFactory.Token(SyntaxKind.ColonToken), default); 5315=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), SyntaxFactory.IdentifierName(name), SyntaxFactory.Token(SyntaxKind.ColonToken), default);
_generated\1\Syntax.xml.Internal.Generated.cs (4)
30282if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 32398if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 35709if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 37825if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
Binder\Binder_QueryErrors.cs (1)
181clauseKind = SyntaxFacts.GetText(SyntaxKind.WhereKeyword);
Parser\LanguageParser.cs (14)
1834if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 2237this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword && 2244while (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 2252var where = this.EatContextualToken(SyntaxKind.WhereKeyword); 2279|| this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 3705if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 5830this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)) 5889if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 8821if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 11047if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 14095case SyntaxKind.WhereKeyword: 14194case SyntaxKind.WhereKeyword: 14291Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword); 14293this.EatContextualToken(SyntaxKind.WhereKeyword),
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
901AddKeyword(SyntaxKind.WhereKeyword);
Syntax\SyntaxKindFacts.cs (4)
1263case SyntaxKind.WhereKeyword: 1317case SyntaxKind.WhereKeyword: 1356return SyntaxKind.WhereKeyword; 1804case SyntaxKind.WhereKeyword:
Syntax\SyntaxNormalizer.cs (3)
264|| nextToken.Kind() == SyntaxKind.WhereKeyword) ? 1 : 0; 297(nextToken.IsKind(SyntaxKind.WhereKeyword) && nextToken.Parent.IsKind(SyntaxKind.WhereClause)) || 318case SyntaxKind.WhereKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
111public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.WhereKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
115currentToken.IsKind(SyntaxKind.WhereKeyword) && 130firstTokenAfterTypeConstraint.IsKind(SyntaxKind.WhereKeyword) && 375(currentToken.Kind() == SyntaxKind.WhereKeyword && currentToken.Parent.IsKind(SyntaxKind.WhereClause)) || 416case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
170case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
286case SyntaxKind.WhereKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
831if (token.IsKind(SyntaxKind.WhereKeyword) && 838token.HasMatchingText(SyntaxKind.WhereKeyword) && 860token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.WhereKeyword)) 2575if (token.IsKind(SyntaxKind.WhereKeyword) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (1)
306'e' => kind is SyntaxKind.WhereKeyword or SyntaxKind.ElseKeyword,
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (3)
14internal sealed class WhereKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.WhereKeyword) 80if (token.Parent is IdentifierNameSyntax && token.HasMatchingText(SyntaxKind.WhereKeyword)) 86.IsKindOrHasMatchingText(SyntaxKind.WhereKeyword);
SignatureHelp\AbstractGenericNameSignatureHelpProvider.cs (1)
208parts.Add(Keyword(SyntaxKind.WhereKeyword));
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
Simplification\Reducers\CSharpEscapingReducer.cs (1)
70case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
111public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.WhereKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
115currentToken.IsKind(SyntaxKind.WhereKeyword) && 130firstTokenAfterTypeConstraint.IsKind(SyntaxKind.WhereKeyword) && 375(currentToken.Kind() == SyntaxKind.WhereKeyword && currentToken.Parent.IsKind(SyntaxKind.WhereClause)) || 416case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
170case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
286case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
831if (token.IsKind(SyntaxKind.WhereKeyword) && 838token.HasMatchingText(SyntaxKind.WhereKeyword) && 860token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.WhereKeyword)) 2575if (token.IsKind(SyntaxKind.WhereKeyword) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (1)
306'e' => kind is SyntaxKind.WhereKeyword or SyntaxKind.ElseKeyword,
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\Legacy\CSharpCodeParser.cs (2)
1724string.Equals(CurrentToken.Content, CSharpSyntaxFacts.GetText(CSharpSyntaxKind.WhereKeyword), StringComparison.Ordinal)) 1769CSharpSyntaxFacts.GetText(CSharpSyntaxKind.WhereKeyword)));
Language\Legacy\NativeCSharpTokenizer.cs (1)
106CSharpSyntaxKind.WhereKeyword }).ToFrozenDictionary(keySelector: k => SyntaxFacts.GetText(k));
Roslyn.Diagnostics.CSharp.Analyzers (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
111public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.WhereKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
115currentToken.IsKind(SyntaxKind.WhereKeyword) && 130firstTokenAfterTypeConstraint.IsKind(SyntaxKind.WhereKeyword) && 375(currentToken.Kind() == SyntaxKind.WhereKeyword && currentToken.Parent.IsKind(SyntaxKind.WhereClause)) || 416case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
170case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
286case SyntaxKind.WhereKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
831if (token.IsKind(SyntaxKind.WhereKeyword) && 838token.HasMatchingText(SyntaxKind.WhereKeyword) && 860token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.WhereKeyword)) 2575if (token.IsKind(SyntaxKind.WhereKeyword) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (1)
306'e' => kind is SyntaxKind.WhereKeyword or SyntaxKind.ElseKeyword,