177 references to WhereKeyword
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_QueryErrors.cs (1)
181
clauseKind = SyntaxFacts.GetText(SyntaxKind.
WhereKeyword
);
Parser\LanguageParser.cs (14)
1753
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
2127
this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
&&
2134
while (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
2142
var where = this.EatContextualToken(SyntaxKind.
WhereKeyword
);
2169
|| this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
3480
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
5447
this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
))
5506
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
8440
if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
10529
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
13542
case SyntaxKind.
WhereKeyword
:
13645
case SyntaxKind.
WhereKeyword
:
13739
Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
);
13741
this.EatContextualToken(SyntaxKind.
WhereKeyword
),
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
856
AddKeyword(SyntaxKind.
WhereKeyword
);
Syntax\SyntaxKindFacts.cs (4)
1192
case SyntaxKind.
WhereKeyword
:
1242
case SyntaxKind.
WhereKeyword
:
1281
return SyntaxKind.
WhereKeyword
;
1721
case SyntaxKind.
WhereKeyword
:
Syntax\SyntaxNormalizer.cs (3)
248
|| nextToken.Kind() == SyntaxKind.
WhereKeyword
) ? 1 : 0;
281
(nextToken.IsKind(SyntaxKind.
WhereKeyword
) && nextToken.Parent.IsKind(SyntaxKind.WhereClause)) ||
302
case SyntaxKind.
WhereKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
100
public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.
WhereKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
115
currentToken.IsKind(SyntaxKind.
WhereKeyword
) &&
130
firstTokenAfterTypeConstraint.IsKind(SyntaxKind.
WhereKeyword
) &&
375
(currentToken.Kind() == SyntaxKind.
WhereKeyword
&& currentToken.Parent.IsKind(SyntaxKind.WhereClause)) ||
416
case SyntaxKind.
WhereKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
151
case SyntaxKind.
WhereKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
294
case SyntaxKind.
WhereKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
823
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
830
token.HasMatchingText(SyntaxKind.
WhereKeyword
) &&
852
token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.
WhereKeyword
))
2567
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (3)
17
: base(SyntaxKind.
WhereKeyword
)
96
if (token.Parent is IdentifierNameSyntax && token.HasMatchingText(SyntaxKind.
WhereKeyword
))
102
.IsKindOrHasMatchingText(SyntaxKind.
WhereKeyword
);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
235
parts.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>());
1670
Assert.Equal(SyntaxKind.
WhereKeyword
, node.WhereKeyword.Kind);
2931
Assert.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>());
11886
Assert.Equal(SyntaxKind.
WhereKeyword
, node.WhereKeyword.Kind());
13147
Assert.Equal(SyntaxKind.
WhereKeyword
, node.WhereKeyword.Kind());
Parsing\AllowsConstraintParsing.cs (36)
48
N(SyntaxKind.
WhereKeyword
);
101
N(SyntaxKind.
WhereKeyword
);
157
N(SyntaxKind.
WhereKeyword
);
206
N(SyntaxKind.
WhereKeyword
);
260
N(SyntaxKind.
WhereKeyword
);
319
N(SyntaxKind.
WhereKeyword
);
386
N(SyntaxKind.
WhereKeyword
);
443
N(SyntaxKind.
WhereKeyword
);
498
N(SyntaxKind.
WhereKeyword
);
556
N(SyntaxKind.
WhereKeyword
);
611
N(SyntaxKind.
WhereKeyword
);
674
N(SyntaxKind.
WhereKeyword
);
727
N(SyntaxKind.
WhereKeyword
);
790
N(SyntaxKind.
WhereKeyword
);
808
N(SyntaxKind.
WhereKeyword
);
861
N(SyntaxKind.
WhereKeyword
);
884
N(SyntaxKind.
WhereKeyword
);
933
N(SyntaxKind.
WhereKeyword
);
951
N(SyntaxKind.
WhereKeyword
);
1000
N(SyntaxKind.
WhereKeyword
);
1023
N(SyntaxKind.
WhereKeyword
);
1067
N(SyntaxKind.
WhereKeyword
);
1125
N(SyntaxKind.
WhereKeyword
);
1179
N(SyntaxKind.
WhereKeyword
);
1233
N(SyntaxKind.
WhereKeyword
);
1287
N(SyntaxKind.
WhereKeyword
);
1344
N(SyntaxKind.
WhereKeyword
);
1401
N(SyntaxKind.
WhereKeyword
);
1458
N(SyntaxKind.
WhereKeyword
);
1514
N(SyntaxKind.
WhereKeyword
);
1583
N(SyntaxKind.
WhereKeyword
);
1637
N(SyntaxKind.
WhereKeyword
);
1691
N(SyntaxKind.
WhereKeyword
);
1748
N(SyntaxKind.
WhereKeyword
);
1805
N(SyntaxKind.
WhereKeyword
);
1862
N(SyntaxKind.
WhereKeyword
);
Parsing\DeclarationParsingTests.cs (29)
6764
N(SyntaxKind.
WhereKeyword
);
6829
N(SyntaxKind.
WhereKeyword
);
7003
N(SyntaxKind.
WhereKeyword
);
7046
N(SyntaxKind.
WhereKeyword
);
7089
N(SyntaxKind.
WhereKeyword
);
7137
N(SyntaxKind.
WhereKeyword
);
7181
N(SyntaxKind.
WhereKeyword
);
7229
N(SyntaxKind.
WhereKeyword
);
8499
N(SyntaxKind.
WhereKeyword
);
8826
N(SyntaxKind.
WhereKeyword
);
8875
N(SyntaxKind.
WhereKeyword
);
8888
N(SyntaxKind.
WhereKeyword
);
8976
N(SyntaxKind.
WhereKeyword
);
8994
N(SyntaxKind.
WhereKeyword
);
9048
N(SyntaxKind.
WhereKeyword
);
9066
N(SyntaxKind.
WhereKeyword
);
9227
N(SyntaxKind.
WhereKeyword
);
9264
N(SyntaxKind.
WhereKeyword
);
9280
N(SyntaxKind.
WhereKeyword
);
9594
N(SyntaxKind.
WhereKeyword
);
9633
N(SyntaxKind.
WhereKeyword
);
9649
N(SyntaxKind.
WhereKeyword
);
9697
N(SyntaxKind.
WhereKeyword
);
10200
N(SyntaxKind.
WhereKeyword
);
10262
N(SyntaxKind.
WhereKeyword
);
10339
N(SyntaxKind.
WhereKeyword
);
10983
N(SyntaxKind.
WhereKeyword
);
11045
N(SyntaxKind.
WhereKeyword
);
11118
N(SyntaxKind.
WhereKeyword
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (24)
371
N(SyntaxKind.
WhereKeyword
);
474
N(SyntaxKind.
WhereKeyword
);
592
N(SyntaxKind.
WhereKeyword
);
695
N(SyntaxKind.
WhereKeyword
);
882
N(SyntaxKind.
WhereKeyword
);
985
N(SyntaxKind.
WhereKeyword
);
1093
N(SyntaxKind.
WhereKeyword
);
1196
N(SyntaxKind.
WhereKeyword
);
1602
N(SyntaxKind.
WhereKeyword
);
1705
N(SyntaxKind.
WhereKeyword
);
2303
N(SyntaxKind.
WhereKeyword
);
2406
N(SyntaxKind.
WhereKeyword
);
2527
N(SyntaxKind.
WhereKeyword
);
2630
N(SyntaxKind.
WhereKeyword
);
2760
N(SyntaxKind.
WhereKeyword
);
2863
N(SyntaxKind.
WhereKeyword
);
2971
N(SyntaxKind.
WhereKeyword
);
3083
N(SyntaxKind.
WhereKeyword
);
3288
N(SyntaxKind.
WhereKeyword
);
3400
N(SyntaxKind.
WhereKeyword
);
3627
N(SyntaxKind.
WhereKeyword
);
3739
N(SyntaxKind.
WhereKeyword
);
3931
N(SyntaxKind.
WhereKeyword
);
4043
N(SyntaxKind.
WhereKeyword
);
Parsing\ExpressionParsingTests.cs (2)
2433
Assert.Equal(SyntaxKind.
WhereKeyword
, ws.WhereKeyword.Kind());
4795
N(SyntaxKind.
WhereKeyword
);
Parsing\MemberDeclarationParsingTests.cs (8)
9204
N(SyntaxKind.
WhereKeyword
);
9259
N(SyntaxKind.
WhereKeyword
);
9326
N(SyntaxKind.
WhereKeyword
);
9411
N(SyntaxKind.
WhereKeyword
);
9469
N(SyntaxKind.
WhereKeyword
);
9519
N(SyntaxKind.
WhereKeyword
);
9574
N(SyntaxKind.
WhereKeyword
);
9636
N(SyntaxKind.
WhereKeyword
);
Parsing\PatternParsingTests.cs (2)
362
N(SyntaxKind.
WhereKeyword
);
387
N(SyntaxKind.
WhereKeyword
);
Parsing\RecordParsing.cs (16)
473
N(SyntaxKind.
WhereKeyword
);
517
N(SyntaxKind.
WhereKeyword
);
562
N(SyntaxKind.
WhereKeyword
);
575
N(SyntaxKind.
WhereKeyword
);
616
N(SyntaxKind.
WhereKeyword
);
661
N(SyntaxKind.
WhereKeyword
);
674
N(SyntaxKind.
WhereKeyword
);
729
N(SyntaxKind.
WhereKeyword
);
800
N(SyntaxKind.
WhereKeyword
);
816
N(SyntaxKind.
WhereKeyword
);
870
N(SyntaxKind.
WhereKeyword
);
886
N(SyntaxKind.
WhereKeyword
);
930
N(SyntaxKind.
WhereKeyword
);
975
N(SyntaxKind.
WhereKeyword
);
1023
N(SyntaxKind.
WhereKeyword
);
4220
N(SyntaxKind.
WhereKeyword
);
Parsing\ScriptParsingTests.cs (1)
3332
N(SyntaxKind.
WhereKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
Simplification\Reducers\CSharpEscapingReducer.cs (1)
89
case SyntaxKind.
WhereKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
100
public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.
WhereKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
115
currentToken.IsKind(SyntaxKind.
WhereKeyword
) &&
130
firstTokenAfterTypeConstraint.IsKind(SyntaxKind.
WhereKeyword
) &&
375
(currentToken.Kind() == SyntaxKind.
WhereKeyword
&& currentToken.Parent.IsKind(SyntaxKind.WhereClause)) ||
416
case SyntaxKind.
WhereKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
151
case SyntaxKind.
WhereKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
294
case SyntaxKind.
WhereKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
823
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
830
token.HasMatchingText(SyntaxKind.
WhereKeyword
) &&
852
token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.
WhereKeyword
))
2567
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
398
case SyntaxKind.
WhereKeyword
: