77 references to WhereKeyword
Microsoft.CodeAnalysis.CSharp (33)
_generated\0\Syntax.xml.Main.Generated.cs (6)
3609if (whereKeyword.Kind() != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 3616=> SyntaxFactory.WhereClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), condition); 5337if (whereKeyword.Kind() != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 5345=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), name, SyntaxFactory.Token(SyntaxKind.ColonToken), constraints); 5349=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), name, SyntaxFactory.Token(SyntaxKind.ColonToken), default); 5353=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), SyntaxFactory.IdentifierName(name), SyntaxFactory.Token(SyntaxKind.ColonToken), default);
_generated\1\Syntax.xml.Internal.Generated.cs (4)
30437if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 32533if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 35859if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 37955if (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) 3710if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 5835this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)) 5894if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 8842if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 11070if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 14131case SyntaxKind.WhereKeyword: 14230case SyntaxKind.WhereKeyword: 14327Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword); 14329this.EatContextualToken(SyntaxKind.WhereKeyword),
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
901AddKeyword(SyntaxKind.WhereKeyword);
Syntax\SyntaxKindFacts.cs (4)
1265case SyntaxKind.WhereKeyword: 1319case SyntaxKind.WhereKeyword: 1358return SyntaxKind.WhereKeyword; 1806case 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)) 2568if (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)) 2568if (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)
1740string.Equals(CurrentToken.Content, CSharpSyntaxFacts.GetText(CSharpSyntaxKind.WhereKeyword), StringComparison.Ordinal)) 1785CSharpSyntaxFacts.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)) 2568if (token.IsKind(SyntaxKind.WhereKeyword) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (1)
306'e' => kind is SyntaxKind.WhereKeyword or SyntaxKind.ElseKeyword,