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