35 references to WithKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (4)
7403
if (nextToken.ContextualKind == SyntaxKind.
WithKeyword
)
7865
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken);
10853
return next.ContextualKind != SyntaxKind.
WithKeyword
;
11166
if (token1Kind == SyntaxKind.
WithKeyword
&& this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken)
Syntax\SyntaxKindFacts.cs (3)
1222
case SyntaxKind.
WithKeyword
:
1341
return SyntaxKind.
WithKeyword
;
1787
case 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());
1471
Assert.Equal(SyntaxKind.
WithKeyword
, node.WithKeyword.Kind);
10413
=> SyntaxFactory.WithExpression(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
WithKeyword
), GenerateInitializerExpression());
11687
Assert.Equal(SyntaxKind.
WithKeyword
, node.WithKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (1)
1221
N(SyntaxKind.
WithKeyword
);
Parsing\LambdaAttributeParsingTests.cs (1)
3167
N(SyntaxKind.
WithKeyword
);
Parsing\RecordParsing.cs (21)
1345
N(SyntaxKind.
WithKeyword
);
1427
N(SyntaxKind.
WithKeyword
);
1472
N(SyntaxKind.
WithKeyword
);
1499
N(SyntaxKind.
WithKeyword
);
1535
N(SyntaxKind.
WithKeyword
);
1586
N(SyntaxKind.
WithKeyword
);
1623
N(SyntaxKind.
WithKeyword
);
1664
N(SyntaxKind.
WithKeyword
);
1697
N(SyntaxKind.
WithKeyword
);
1704
N(SyntaxKind.
WithKeyword
);
1738
N(SyntaxKind.
WithKeyword
);
1802
N(SyntaxKind.
WithKeyword
);
1878
N(SyntaxKind.
WithKeyword
);
1899
N(SyntaxKind.
WithKeyword
);
1971
N(SyntaxKind.
WithKeyword
);
2010
N(SyntaxKind.
WithKeyword
);
2075
N(SyntaxKind.
WithKeyword
);
2129
N(SyntaxKind.
WithKeyword
);
2143
N(SyntaxKind.
WithKeyword
);
2189
N(SyntaxKind.
WithKeyword
);
2203
N(SyntaxKind.
WithKeyword
);