18 references to WithKeyword
Microsoft.CodeAnalysis.CSharp (17)
_generated\0\Syntax.xml.Main.Generated.cs (4)
3335
if (withKeyword.Kind() != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
3342
=> SyntaxFactory.WithExpression(expression, SyntaxFactory.Token(SyntaxKind.
WithKeyword
), initializer);
3467
if (withKeyword.Kind() != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
3475
=> SyntaxFactory.WithElement(SyntaxFactory.Token(SyntaxKind.
WithKeyword
), argumentList ?? SyntaxFactory.ArgumentList());
_generated\1\Syntax.xml.Internal.Generated.cs (4)
29961
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
30149
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
35388
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
35576
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
Parser\LanguageParser.cs (6)
7836
if (nextToken.ContextualKind == SyntaxKind.
WithKeyword
)
8294
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken);
11432
return next.ContextualKind != SyntaxKind.
WithKeyword
;
11824
if (token1Kind == SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken)
13327
if (this.CurrentToken.ContextualKind == SyntaxKind.
WithKeyword
&&
13330
return _syntaxFactory.WithElement(this.EatContextualToken(SyntaxKind.
WithKeyword
), this.ParseParenthesizedArgumentList());
Syntax\SyntaxKindFacts.cs (3)
1293
case SyntaxKind.
WithKeyword
:
1416
return SyntaxKind.
WithKeyword
;
1870
case SyntaxKind.
WithKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\WithKeywordRecommender.cs (1)
11
internal sealed class WithKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
WithKeyword
)