178 references to WhereKeyword
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_QueryErrors.cs (1)
181clauseKind = SyntaxFacts.GetText(SyntaxKind.WhereKeyword);
Parser\LanguageParser.cs (14)
1752if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 2108this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword && 2115while (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 2123var where = this.EatContextualToken(SyntaxKind.WhereKeyword); 2150|| this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 3461if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 5404this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)) 5463if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 8388if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 10464if (this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 13477case SyntaxKind.WhereKeyword: 13580case SyntaxKind.WhereKeyword: 13674Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword); 13676this.EatContextualToken(SyntaxKind.WhereKeyword),
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
856AddKeyword(SyntaxKind.WhereKeyword);
Syntax\SyntaxKindFacts.cs (4)
1192case SyntaxKind.WhereKeyword: 1242case SyntaxKind.WhereKeyword: 1281return SyntaxKind.WhereKeyword; 1721case SyntaxKind.WhereKeyword:
Syntax\SyntaxNormalizer.cs (3)
248|| nextToken.Kind() == SyntaxKind.WhereKeyword) ? 1 : 0; 281(nextToken.IsKind(SyntaxKind.WhereKeyword) && nextToken.Parent.IsKind(SyntaxKind.WhereClause)) || 302case SyntaxKind.WhereKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
99public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.WhereKeyword);
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
151case SyntaxKind.WhereKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
287case SyntaxKind.WhereKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
823if (token.IsKind(SyntaxKind.WhereKeyword) && 830token.HasMatchingText(SyntaxKind.WhereKeyword) && 852token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.WhereKeyword)) 2567if (token.IsKind(SyntaxKind.WhereKeyword) &&
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (3)
17: base(SyntaxKind.WhereKeyword) 96if (token.Parent is IdentifierNameSyntax && token.HasMatchingText(SyntaxKind.WhereKeyword)) 102.IsKindOrHasMatchingText(SyntaxKind.WhereKeyword);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
235parts.Add(Keyword(SyntaxKind.WhereKeyword));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (126)
Generated\Syntax.Test.xml.Generated.cs (8)
245=> InternalSyntaxFactory.WhereClause(InternalSyntaxFactory.Token(SyntaxKind.WhereKeyword), GenerateIdentifierName()); 533=> InternalSyntaxFactory.TypeParameterConstraintClause(InternalSyntaxFactory.Token(SyntaxKind.WhereKeyword), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.ColonToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.TypeParameterConstraintSyntax>()); 1670Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind); 2931Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind); 10461=> SyntaxFactory.WhereClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), GenerateIdentifierName()); 10749=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.WhereKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.ColonToken), new SeparatedSyntaxList<TypeParameterConstraintSyntax>()); 11886Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind()); 13147Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind());
Parsing\AllowsConstraintParsing.cs (36)
48N(SyntaxKind.WhereKeyword); 101N(SyntaxKind.WhereKeyword); 157N(SyntaxKind.WhereKeyword); 206N(SyntaxKind.WhereKeyword); 260N(SyntaxKind.WhereKeyword); 319N(SyntaxKind.WhereKeyword); 386N(SyntaxKind.WhereKeyword); 443N(SyntaxKind.WhereKeyword); 498N(SyntaxKind.WhereKeyword); 556N(SyntaxKind.WhereKeyword); 611N(SyntaxKind.WhereKeyword); 674N(SyntaxKind.WhereKeyword); 727N(SyntaxKind.WhereKeyword); 790N(SyntaxKind.WhereKeyword); 808N(SyntaxKind.WhereKeyword); 861N(SyntaxKind.WhereKeyword); 884N(SyntaxKind.WhereKeyword); 933N(SyntaxKind.WhereKeyword); 951N(SyntaxKind.WhereKeyword); 1000N(SyntaxKind.WhereKeyword); 1023N(SyntaxKind.WhereKeyword); 1067N(SyntaxKind.WhereKeyword); 1125N(SyntaxKind.WhereKeyword); 1179N(SyntaxKind.WhereKeyword); 1233N(SyntaxKind.WhereKeyword); 1287N(SyntaxKind.WhereKeyword); 1344N(SyntaxKind.WhereKeyword); 1401N(SyntaxKind.WhereKeyword); 1458N(SyntaxKind.WhereKeyword); 1514N(SyntaxKind.WhereKeyword); 1583N(SyntaxKind.WhereKeyword); 1637N(SyntaxKind.WhereKeyword); 1691N(SyntaxKind.WhereKeyword); 1748N(SyntaxKind.WhereKeyword); 1805N(SyntaxKind.WhereKeyword); 1862N(SyntaxKind.WhereKeyword);
Parsing\DeclarationParsingTests.cs (29)
6764N(SyntaxKind.WhereKeyword); 6829N(SyntaxKind.WhereKeyword); 7003N(SyntaxKind.WhereKeyword); 7046N(SyntaxKind.WhereKeyword); 7089N(SyntaxKind.WhereKeyword); 7137N(SyntaxKind.WhereKeyword); 7181N(SyntaxKind.WhereKeyword); 7229N(SyntaxKind.WhereKeyword); 8499N(SyntaxKind.WhereKeyword); 8826N(SyntaxKind.WhereKeyword); 8875N(SyntaxKind.WhereKeyword); 8888N(SyntaxKind.WhereKeyword); 8976N(SyntaxKind.WhereKeyword); 8994N(SyntaxKind.WhereKeyword); 9048N(SyntaxKind.WhereKeyword); 9066N(SyntaxKind.WhereKeyword); 9227N(SyntaxKind.WhereKeyword); 9264N(SyntaxKind.WhereKeyword); 9280N(SyntaxKind.WhereKeyword); 9594N(SyntaxKind.WhereKeyword); 9633N(SyntaxKind.WhereKeyword); 9649N(SyntaxKind.WhereKeyword); 9697N(SyntaxKind.WhereKeyword); 10200N(SyntaxKind.WhereKeyword); 10262N(SyntaxKind.WhereKeyword); 10339N(SyntaxKind.WhereKeyword); 10983N(SyntaxKind.WhereKeyword); 11045N(SyntaxKind.WhereKeyword); 11118N(SyntaxKind.WhereKeyword);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (24)
371N(SyntaxKind.WhereKeyword); 474N(SyntaxKind.WhereKeyword); 592N(SyntaxKind.WhereKeyword); 695N(SyntaxKind.WhereKeyword); 882N(SyntaxKind.WhereKeyword); 985N(SyntaxKind.WhereKeyword); 1093N(SyntaxKind.WhereKeyword); 1196N(SyntaxKind.WhereKeyword); 1602N(SyntaxKind.WhereKeyword); 1705N(SyntaxKind.WhereKeyword); 2303N(SyntaxKind.WhereKeyword); 2406N(SyntaxKind.WhereKeyword); 2527N(SyntaxKind.WhereKeyword); 2630N(SyntaxKind.WhereKeyword); 2760N(SyntaxKind.WhereKeyword); 2863N(SyntaxKind.WhereKeyword); 2971N(SyntaxKind.WhereKeyword); 3083N(SyntaxKind.WhereKeyword); 3288N(SyntaxKind.WhereKeyword); 3400N(SyntaxKind.WhereKeyword); 3627N(SyntaxKind.WhereKeyword); 3739N(SyntaxKind.WhereKeyword); 3931N(SyntaxKind.WhereKeyword); 4043N(SyntaxKind.WhereKeyword);
Parsing\ExpressionParsingTests.cs (2)
2433Assert.Equal(SyntaxKind.WhereKeyword, ws.WhereKeyword.Kind()); 4795N(SyntaxKind.WhereKeyword);
Parsing\MemberDeclarationParsingTests.cs (8)
9204N(SyntaxKind.WhereKeyword); 9259N(SyntaxKind.WhereKeyword); 9326N(SyntaxKind.WhereKeyword); 9411N(SyntaxKind.WhereKeyword); 9469N(SyntaxKind.WhereKeyword); 9519N(SyntaxKind.WhereKeyword); 9574N(SyntaxKind.WhereKeyword); 9636N(SyntaxKind.WhereKeyword);
Parsing\PatternParsingTests.cs (2)
362N(SyntaxKind.WhereKeyword); 387N(SyntaxKind.WhereKeyword);
Parsing\RecordParsing.cs (16)
473N(SyntaxKind.WhereKeyword); 517N(SyntaxKind.WhereKeyword); 562N(SyntaxKind.WhereKeyword); 575N(SyntaxKind.WhereKeyword); 616N(SyntaxKind.WhereKeyword); 661N(SyntaxKind.WhereKeyword); 674N(SyntaxKind.WhereKeyword); 729N(SyntaxKind.WhereKeyword); 800N(SyntaxKind.WhereKeyword); 816N(SyntaxKind.WhereKeyword); 870N(SyntaxKind.WhereKeyword); 886N(SyntaxKind.WhereKeyword); 930N(SyntaxKind.WhereKeyword); 975N(SyntaxKind.WhereKeyword); 1023N(SyntaxKind.WhereKeyword); 4220N(SyntaxKind.WhereKeyword);
Parsing\ScriptParsingTests.cs (1)
3332N(SyntaxKind.WhereKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
Formatting\CSharpSyntaxFormattingService.cs (1)
303'e' => kind == SyntaxKind.WhereKeyword,
Simplification\Reducers\CSharpEscapingReducer.cs (1)
89case SyntaxKind.WhereKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
99public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.WhereKeyword);
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
151case SyntaxKind.WhereKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
287case SyntaxKind.WhereKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
823if (token.IsKind(SyntaxKind.WhereKeyword) && 830token.HasMatchingText(SyntaxKind.WhereKeyword) && 852token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.WhereKeyword)) 2567if (token.IsKind(SyntaxKind.WhereKeyword) &&
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
397case SyntaxKind.WhereKeyword: