14 references to WithKeyword
Microsoft.CodeAnalysis.CSharp (13)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Syntax.xml.Main.Generated.cs (4)
3358
if (withKeyword.Kind() != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
3365
=> SyntaxFactory.WithExpression(expression, SyntaxFactory.Token(SyntaxKind.
WithKeyword
), initializer);
3489
if (withKeyword.Kind() != SyntaxKind.
WithKeyword
) throw new ArgumentException(nameof(withKeyword));
3496
=> SyntaxFactory.WithElement(SyntaxFactory.Token(SyntaxKind.
WithKeyword
), argumentList ?? SyntaxFactory.ArgumentList());
Parser\LanguageParser.cs (6)
7777
if (nextToken.ContextualKind == SyntaxKind.
WithKeyword
)
8235
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken);
11393
return next.ContextualKind != SyntaxKind.
WithKeyword
;
11785
if (token1Kind == SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken)
13302
if (this.CurrentToken.ContextualKind == SyntaxKind.
WithKeyword
&&
13305
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
)