117 references to WhereKeyword
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_QueryErrors.cs (1)
181
clauseKind = SyntaxFacts.GetText(SyntaxKind.
WhereKeyword
);
Parser\LanguageParser.cs (14)
1481
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
1837
this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
&&
1844
while (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
1852
var where = this.EatContextualToken(SyntaxKind.
WhereKeyword
);
1876
|| this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
3147
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
5126
this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
))
5186
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
7834
if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
9848
if (this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
)
12631
case SyntaxKind.
WhereKeyword
:
12733
case SyntaxKind.
WhereKeyword
:
12827
Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.
WhereKeyword
);
12829
this.EatContextualToken(SyntaxKind.
WhereKeyword
),
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
850
AddKeyword(SyntaxKind.
WhereKeyword
);
Syntax\SyntaxKindFacts.cs (4)
1159
case SyntaxKind.
WhereKeyword
:
1208
case SyntaxKind.
WhereKeyword
:
1247
return SyntaxKind.
WhereKeyword
;
1685
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 (6)
CSharpSyntaxFacts.cs (1)
291
case SyntaxKind.
WhereKeyword
:
ElasticTriviaFormattingRule.cs (4)
103
currentToken.IsKind(SyntaxKind.
WhereKeyword
) &&
118
firstTokenAfterTypeConstraint.IsKind(SyntaxKind.
WhereKeyword
) &&
362
(currentToken.Kind() == SyntaxKind.
WhereKeyword
&& currentToken.Parent.IsKind(SyntaxKind.WhereClause)) ||
408
case SyntaxKind.
WhereKeyword
:
QueryExpressionFormattingRule.cs (1)
150
case SyntaxKind.
WhereKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (4)
823
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
830
token.HasMatchingText(SyntaxKind.
WhereKeyword
) &&
852
token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.
WhereKeyword
))
2575
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (3)
17
: base(SyntaxKind.
WhereKeyword
)
90
if (token.Parent is IdentifierNameSyntax && token.HasMatchingText(SyntaxKind.
WhereKeyword
))
96
.IsKindOrHasMatchingText(SyntaxKind.
WhereKeyword
);
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
88
SyntaxFactory.Token(SyntaxKind.
WhereKeyword
)
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
235
parts.Add(Keyword(SyntaxKind.
WhereKeyword
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (66)
Generated\Syntax.Test.xml.Generated.cs (8)
233
=> InternalSyntaxFactory.WhereClause(InternalSyntaxFactory.Token(SyntaxKind.
WhereKeyword
), GenerateIdentifierName());
521
=> InternalSyntaxFactory.TypeParameterConstraintClause(InternalSyntaxFactory.Token(SyntaxKind.
WhereKeyword
), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.ColonToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.TypeParameterConstraintSyntax>());
1609
Assert.Equal(SyntaxKind.
WhereKeyword
, node.WhereKeyword.Kind);
2870
Assert.Equal(SyntaxKind.
WhereKeyword
, node.WhereKeyword.Kind);
10209
=> SyntaxFactory.WhereClause(SyntaxFactory.Token(SyntaxKind.
WhereKeyword
), GenerateIdentifierName());
10497
=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.Token(SyntaxKind.
WhereKeyword
), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.ColonToken), new SeparatedSyntaxList<TypeParameterConstraintSyntax>());
11585
Assert.Equal(SyntaxKind.
WhereKeyword
, node.WhereKeyword.Kind());
12846
Assert.Equal(SyntaxKind.
WhereKeyword
, node.WhereKeyword.Kind());
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
);
8594
N(SyntaxKind.
WhereKeyword
);
8921
N(SyntaxKind.
WhereKeyword
);
8970
N(SyntaxKind.
WhereKeyword
);
8983
N(SyntaxKind.
WhereKeyword
);
9071
N(SyntaxKind.
WhereKeyword
);
9089
N(SyntaxKind.
WhereKeyword
);
9143
N(SyntaxKind.
WhereKeyword
);
9161
N(SyntaxKind.
WhereKeyword
);
9322
N(SyntaxKind.
WhereKeyword
);
9359
N(SyntaxKind.
WhereKeyword
);
9375
N(SyntaxKind.
WhereKeyword
);
9689
N(SyntaxKind.
WhereKeyword
);
9728
N(SyntaxKind.
WhereKeyword
);
9744
N(SyntaxKind.
WhereKeyword
);
9792
N(SyntaxKind.
WhereKeyword
);
10295
N(SyntaxKind.
WhereKeyword
);
10357
N(SyntaxKind.
WhereKeyword
);
10434
N(SyntaxKind.
WhereKeyword
);
11078
N(SyntaxKind.
WhereKeyword
);
11140
N(SyntaxKind.
WhereKeyword
);
11213
N(SyntaxKind.
WhereKeyword
);
Parsing\ExpressionParsingTests.cs (2)
2433
Assert.Equal(SyntaxKind.
WhereKeyword
, ws.WhereKeyword.Kind());
4795
N(SyntaxKind.
WhereKeyword
);
Parsing\MemberDeclarationParsingTests.cs (8)
9215
N(SyntaxKind.
WhereKeyword
);
9270
N(SyntaxKind.
WhereKeyword
);
9337
N(SyntaxKind.
WhereKeyword
);
9422
N(SyntaxKind.
WhereKeyword
);
9480
N(SyntaxKind.
WhereKeyword
);
9530
N(SyntaxKind.
WhereKeyword
);
9585
N(SyntaxKind.
WhereKeyword
);
9647
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
);
4070
N(SyntaxKind.
WhereKeyword
);
Parsing\ScriptParsingTests.cs (1)
3332
N(SyntaxKind.
WhereKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
CSharpSyntaxFacts.cs (1)
291
case SyntaxKind.
WhereKeyword
:
ElasticTriviaFormattingRule.cs (4)
103
currentToken.IsKind(SyntaxKind.
WhereKeyword
) &&
118
firstTokenAfterTypeConstraint.IsKind(SyntaxKind.
WhereKeyword
) &&
362
(currentToken.Kind() == SyntaxKind.
WhereKeyword
&& currentToken.Parent.IsKind(SyntaxKind.WhereClause)) ||
408
case SyntaxKind.
WhereKeyword
:
Formatting\CSharpSyntaxFormattingService.cs (1)
305
'e' => kind == SyntaxKind.
WhereKeyword
,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (4)
823
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
830
token.HasMatchingText(SyntaxKind.
WhereKeyword
) &&
852
token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.
WhereKeyword
))
2575
if (token.IsKind(SyntaxKind.
WhereKeyword
) &&
QueryExpressionFormattingRule.cs (1)
150
case SyntaxKind.
WhereKeyword
:
Simplification\Reducers\CSharpEscapingReducer.cs (1)
90
case SyntaxKind.
WhereKeyword
:
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
384
case SyntaxKind.
WhereKeyword
: