35 references to WithKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (4)
7455if (nextToken.ContextualKind == SyntaxKind.WithKeyword) 7917|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken); 10918return next.ContextualKind != SyntaxKind.WithKeyword; 11231if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken)
Syntax\SyntaxKindFacts.cs (3)
1222case SyntaxKind.WithKeyword: 1341return SyntaxKind.WithKeyword; 1787case SyntaxKind.WithKeyword:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\WithKeywordRecommender.cs (1)
13: base(SyntaxKind.WithKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (27)
Generated\Syntax.Test.xml.Generated.cs (4)
197=> InternalSyntaxFactory.WithExpression(GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.WithKeyword), GenerateInitializerExpression()); 1471Assert.Equal(SyntaxKind.WithKeyword, node.WithKeyword.Kind); 10413=> SyntaxFactory.WithExpression(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.WithKeyword), GenerateInitializerExpression()); 11687Assert.Equal(SyntaxKind.WithKeyword, node.WithKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (1)
1221N(SyntaxKind.WithKeyword);
Parsing\LambdaAttributeParsingTests.cs (1)
3167N(SyntaxKind.WithKeyword);
Parsing\RecordParsing.cs (21)
1345N(SyntaxKind.WithKeyword); 1427N(SyntaxKind.WithKeyword); 1472N(SyntaxKind.WithKeyword); 1499N(SyntaxKind.WithKeyword); 1535N(SyntaxKind.WithKeyword); 1586N(SyntaxKind.WithKeyword); 1623N(SyntaxKind.WithKeyword); 1664N(SyntaxKind.WithKeyword); 1697N(SyntaxKind.WithKeyword); 1704N(SyntaxKind.WithKeyword); 1738N(SyntaxKind.WithKeyword); 1802N(SyntaxKind.WithKeyword); 1878N(SyntaxKind.WithKeyword); 1899N(SyntaxKind.WithKeyword); 1971N(SyntaxKind.WithKeyword); 2010N(SyntaxKind.WithKeyword); 2075N(SyntaxKind.WithKeyword); 2129N(SyntaxKind.WithKeyword); 2143N(SyntaxKind.WithKeyword); 2189N(SyntaxKind.WithKeyword); 2203N(SyntaxKind.WithKeyword);