18 references to WithKeyword
Microsoft.CodeAnalysis.CSharp (17)
_generated\0\Syntax.xml.Main.Generated.cs (4)
3363
if (withKeyword.Kind() != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
3370
=> SyntaxFactory.WithExpression(expression, SyntaxFactory.Token(SyntaxKind.
WithKeyword
), initializer);
3495
if (withKeyword.Kind() != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
3503
=> SyntaxFactory.WithElement(SyntaxFactory.Token(SyntaxKind.
WithKeyword
), argumentList ?? SyntaxFactory.ArgumentList());
_generated\1\Syntax.xml.Internal.Generated.cs (4)
30116
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
30304
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
35538
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
35726
if (withKeyword.Kind != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
Parser\LanguageParser.cs (6)
7841
if (nextToken.ContextualKind == SyntaxKind.
WithKeyword
)
8299
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken);
11457
return next.ContextualKind != SyntaxKind.
WithKeyword
;
11849
if (token1Kind == SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken)
13363
if (this.CurrentToken.ContextualKind == SyntaxKind.
WithKeyword
&&
13366
return _syntaxFactory.WithElement(this.EatContextualToken(SyntaxKind.
WithKeyword
), this.ParseParenthesizedArgumentList());
Syntax\SyntaxKindFacts.cs (3)
1295
case SyntaxKind.
WithKeyword
:
1418
return SyntaxKind.
WithKeyword
;
1872
case SyntaxKind.
WithKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\WithKeywordRecommender.cs (1)
11
internal sealed class WithKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
WithKeyword
)