209 references to OperatorKeyword
Microsoft.CodeAnalysis.CSharp (19)
Parser\DocumentationCommentParser.cs (3)
944
case SyntaxKind.
OperatorKeyword
:
983
Debug.Assert(CurrentToken.Kind == SyntaxKind.
OperatorKeyword
);
1145
SyntaxToken operatorKeyword = EatToken(SyntaxKind.
OperatorKeyword
);
Parser\LanguageParser.cs (12)
1535
(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.
OperatorKeyword
))
1598
if (!parsingStatementNotDeclaration && currentTokenKind == SyntaxKind.
OperatorKeyword
)
3252
return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.
OperatorKeyword
;
3553
if (this.CurrentToken.Kind == SyntaxKind.
OperatorKeyword
)
3595
if (this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
||
3627
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
&& style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3633
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3653
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3712
if (this.CurrentToken.Kind == SyntaxKind.
OperatorKeyword
)
3782
this.PeekToken(1).Kind is SyntaxKind.
OperatorKeyword
)
3807
var opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
6317
case SyntaxKind.
OperatorKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
691
AddKeyword(SyntaxKind.
OperatorKeyword
);
739
AddKeyword(SyntaxKind.
OperatorKeyword
);
Syntax\SyntaxKindFacts.cs (2)
1009
return SyntaxKind.
OperatorKeyword
;
1657
case SyntaxKind.
OperatorKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
61
public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.
OperatorKeyword
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
493
if (targetToken.Kind() == SyntaxKind.
OperatorKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1185
if (token.IsKind(SyntaxKind.
OperatorKeyword
) &&
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\CheckedKeywordRecommender.cs (1)
31
if (targetToken.Kind() == SyntaxKind.
OperatorKeyword
)
Completion\KeywordRecommenders\OperatorKeywordRecommender.cs (1)
13
: base(SyntaxKind.
OperatorKeyword
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (181)
Generated\Syntax.Test.xml.Generated.cs (16)
566
=> InternalSyntaxFactory.OperatorDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), GenerateIdentifierName(), null, InternalSyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), null, InternalSyntaxFactory.Token(SyntaxKind.PlusToken), GenerateParameterList(), null, null, null);
569
=> InternalSyntaxFactory.ConversionOperatorDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.ImplicitKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), null, GenerateIdentifierName(), GenerateParameterList(), null, null, null);
632
=> InternalSyntaxFactory.OperatorMemberCref(InternalSyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), null, InternalSyntaxFactory.Token(SyntaxKind.PlusToken), null);
635
=> InternalSyntaxFactory.ConversionOperatorMemberCref(InternalSyntaxFactory.Token(SyntaxKind.ImplicitKeyword), InternalSyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), null, GenerateIdentifierName(), null);
3071
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind);
3091
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind);
3371
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind);
3385
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind);
10782
=> SyntaxFactory.OperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.PlusToken), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10785
=> SyntaxFactory.ConversionOperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ImplicitKeyword), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default(SyntaxToken), GenerateIdentifierName(), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10848
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.PlusToken), default(CrefParameterListSyntax));
10851
=> SyntaxFactory.ConversionOperatorMemberCref(SyntaxFactory.Token(SyntaxKind.ImplicitKeyword), SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default(SyntaxToken), GenerateIdentifierName(), default(CrefParameterListSyntax));
13287
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind());
13307
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind());
13587
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind());
13601
Assert.Equal(SyntaxKind.
OperatorKeyword
, node.OperatorKeyword.Kind());
LexicalAndXml\CrefLexerTests.cs (5)
41
AssertTokens("operator", Token(SyntaxKind.
OperatorKeyword
));
50
AssertTokens("operator", Token(SyntaxKind.
OperatorKeyword
, "operator", "operator"));
59
AssertTokens("operator", Token(SyntaxKind.
OperatorKeyword
, "operator", "operator"));
378
Token(SyntaxKind.
OperatorKeyword
),
385
Token(SyntaxKind.
OperatorKeyword
),
Parsing\AsyncParsingTests.cs (7)
857
N(SyntaxKind.
OperatorKeyword
);
1656
N(SyntaxKind.
OperatorKeyword
);
1713
N(SyntaxKind.
OperatorKeyword
);
1767
N(SyntaxKind.
OperatorKeyword
);
1825
N(SyntaxKind.
OperatorKeyword
);
1882
N(SyntaxKind.
OperatorKeyword
);
1946
N(SyntaxKind.
OperatorKeyword
);
Parsing\CrefParsingTests.cs (35)
356
N(SyntaxKind.
OperatorKeyword
);
371
N(SyntaxKind.
OperatorKeyword
);
387
N(SyntaxKind.
OperatorKeyword
);
403
N(SyntaxKind.
OperatorKeyword
);
417
N(SyntaxKind.
OperatorKeyword
);
429
N(SyntaxKind.
OperatorKeyword
);
448
N(SyntaxKind.
OperatorKeyword
);
461
N(SyntaxKind.
OperatorKeyword
);
485
N(SyntaxKind.
OperatorKeyword
);
516
N(SyntaxKind.
OperatorKeyword
);
552
N(SyntaxKind.
OperatorKeyword
);
572
N(SyntaxKind.
OperatorKeyword
);
600
N(SyntaxKind.
OperatorKeyword
);
621
N(SyntaxKind.
OperatorKeyword
);
653
N(SyntaxKind.
OperatorKeyword
);
684
N(SyntaxKind.
OperatorKeyword
);
727
N(SyntaxKind.
OperatorKeyword
);
778
N(SyntaxKind.
OperatorKeyword
);
822
N(SyntaxKind.
OperatorKeyword
);
874
N(SyntaxKind.
OperatorKeyword
);
890
N(SyntaxKind.
OperatorKeyword
);
914
N(SyntaxKind.
OperatorKeyword
);
931
N(SyntaxKind.
OperatorKeyword
);
959
N(SyntaxKind.
OperatorKeyword
);
995
N(SyntaxKind.
OperatorKeyword
);
1034
N(SyntaxKind.
OperatorKeyword
);
1058
N(SyntaxKind.
OperatorKeyword
);
1090
N(SyntaxKind.
OperatorKeyword
);
1114
N(SyntaxKind.
OperatorKeyword
);
1150
N(SyntaxKind.
OperatorKeyword
);
1194
N(SyntaxKind.
OperatorKeyword
);
2065
N(SyntaxKind.
OperatorKeyword
);
2094
N(SyntaxKind.
OperatorKeyword
);
2125
N(SyntaxKind.
OperatorKeyword
);
2154
N(SyntaxKind.
OperatorKeyword
);
Parsing\DeclarationParsingTests.cs (7)
5302
Assert.Equal(SyntaxKind.
OperatorKeyword
, ps.OperatorKeyword.Kind());
5382
Assert.Equal(SyntaxKind.
OperatorKeyword
, ps.OperatorKeyword.Kind());
5427
N(SyntaxKind.
OperatorKeyword
);
5496
Assert.Equal(SyntaxKind.
OperatorKeyword
, ps.OperatorKeyword.Kind());
5559
Assert.Equal(SyntaxKind.
OperatorKeyword
, ms.OperatorKeyword.Kind());
5607
Assert.Equal(SyntaxKind.
OperatorKeyword
, ms.OperatorKeyword.Kind());
8219
N(SyntaxKind.
OperatorKeyword
);
Parsing\MemberDeclarationParsingTests.cs (107)
333
N(SyntaxKind.
OperatorKeyword
);
379
N(SyntaxKind.
OperatorKeyword
);
438
N(SyntaxKind.
OperatorKeyword
);
511
N(SyntaxKind.
OperatorKeyword
);
594
N(SyntaxKind.
OperatorKeyword
);
677
N(SyntaxKind.
OperatorKeyword
);
1568
N(SyntaxKind.
OperatorKeyword
);
1612
N(SyntaxKind.
OperatorKeyword
);
1681
N(SyntaxKind.
OperatorKeyword
);
2376
N(SyntaxKind.
OperatorKeyword
);
2518
M(SyntaxKind.
OperatorKeyword
);
2642
M(SyntaxKind.
OperatorKeyword
);
2748
N(SyntaxKind.
OperatorKeyword
);
2846
N(SyntaxKind.
OperatorKeyword
);
2910
N(SyntaxKind.
OperatorKeyword
);
2982
N(SyntaxKind.
OperatorKeyword
);
3033
N(SyntaxKind.
OperatorKeyword
);
3093
N(SyntaxKind.
OperatorKeyword
);
3164
N(SyntaxKind.
OperatorKeyword
);
3259
N(SyntaxKind.
OperatorKeyword
);
3404
M(SyntaxKind.
OperatorKeyword
);
3532
M(SyntaxKind.
OperatorKeyword
);
3642
N(SyntaxKind.
OperatorKeyword
);
3744
N(SyntaxKind.
OperatorKeyword
);
3812
N(SyntaxKind.
OperatorKeyword
);
3888
N(SyntaxKind.
OperatorKeyword
);
3943
N(SyntaxKind.
OperatorKeyword
);
4007
N(SyntaxKind.
OperatorKeyword
);
4082
N(SyntaxKind.
OperatorKeyword
);
4146
N(SyntaxKind.
OperatorKeyword
);
4209
N(SyntaxKind.
OperatorKeyword
);
4295
N(SyntaxKind.
OperatorKeyword
);
4429
M(SyntaxKind.
OperatorKeyword
);
4546
M(SyntaxKind.
OperatorKeyword
);
4645
N(SyntaxKind.
OperatorKeyword
);
4736
N(SyntaxKind.
OperatorKeyword
);
4799
N(SyntaxKind.
OperatorKeyword
);
4870
N(SyntaxKind.
OperatorKeyword
);
4920
N(SyntaxKind.
OperatorKeyword
);
4979
N(SyntaxKind.
OperatorKeyword
);
5049
N(SyntaxKind.
OperatorKeyword
);
5137
N(SyntaxKind.
OperatorKeyword
);
5275
M(SyntaxKind.
OperatorKeyword
);
5396
M(SyntaxKind.
OperatorKeyword
);
5499
N(SyntaxKind.
OperatorKeyword
);
5594
N(SyntaxKind.
OperatorKeyword
);
5661
N(SyntaxKind.
OperatorKeyword
);
5736
N(SyntaxKind.
OperatorKeyword
);
5790
N(SyntaxKind.
OperatorKeyword
);
5853
N(SyntaxKind.
OperatorKeyword
);
5927
N(SyntaxKind.
OperatorKeyword
);
5990
N(SyntaxKind.
OperatorKeyword
);
6052
N(SyntaxKind.
OperatorKeyword
);
6121
N(SyntaxKind.
OperatorKeyword
);
6187
N(SyntaxKind.
OperatorKeyword
);
6317
N(SyntaxKind.
OperatorKeyword
);
6417
N(SyntaxKind.
OperatorKeyword
);
6468
N(SyntaxKind.
OperatorKeyword
);
6568
N(SyntaxKind.
OperatorKeyword
);
6660
N(SyntaxKind.
OperatorKeyword
);
6723
N(SyntaxKind.
OperatorKeyword
);
6777
N(SyntaxKind.
OperatorKeyword
);
6827
N(SyntaxKind.
OperatorKeyword
);
6886
N(SyntaxKind.
OperatorKeyword
);
6956
N(SyntaxKind.
OperatorKeyword
);
7044
N(SyntaxKind.
OperatorKeyword
);
7157
M(SyntaxKind.
OperatorKeyword
);
7261
M(SyntaxKind.
OperatorKeyword
);
7365
N(SyntaxKind.
OperatorKeyword
);
7461
N(SyntaxKind.
OperatorKeyword
);
7528
N(SyntaxKind.
OperatorKeyword
);
7586
N(SyntaxKind.
OperatorKeyword
);
7640
N(SyntaxKind.
OperatorKeyword
);
7703
N(SyntaxKind.
OperatorKeyword
);
7777
N(SyntaxKind.
OperatorKeyword
);
7840
N(SyntaxKind.
OperatorKeyword
);
7902
N(SyntaxKind.
OperatorKeyword
);
7959
M(SyntaxKind.
OperatorKeyword
);
8013
M(SyntaxKind.
OperatorKeyword
);
8067
N(SyntaxKind.
OperatorKeyword
);
8121
N(SyntaxKind.
OperatorKeyword
);
8180
N(SyntaxKind.
OperatorKeyword
);
8237
M(SyntaxKind.
OperatorKeyword
);
8294
N(SyntaxKind.
OperatorKeyword
);
8346
N(SyntaxKind.
OperatorKeyword
);
8404
N(SyntaxKind.
OperatorKeyword
);
8460
N(SyntaxKind.
OperatorKeyword
);
8509
N(SyntaxKind.
OperatorKeyword
);
8579
N(SyntaxKind.
OperatorKeyword
);
8634
M(SyntaxKind.
OperatorKeyword
);
9677
N(SyntaxKind.
OperatorKeyword
);
9733
N(SyntaxKind.
OperatorKeyword
);
9790
N(SyntaxKind.
OperatorKeyword
);
9864
N(SyntaxKind.
OperatorKeyword
);
9912
N(SyntaxKind.
OperatorKeyword
);
9962
N(SyntaxKind.
OperatorKeyword
);
10016
N(SyntaxKind.
OperatorKeyword
);
10083
N(SyntaxKind.
OperatorKeyword
);
10133
N(SyntaxKind.
OperatorKeyword
);
11514
N(SyntaxKind.
OperatorKeyword
);
11560
N(SyntaxKind.
OperatorKeyword
);
11678
N(SyntaxKind.
OperatorKeyword
);
11838
N(SyntaxKind.
OperatorKeyword
);
19025
N(SyntaxKind.
OperatorKeyword
);
19106
N(SyntaxKind.
OperatorKeyword
);
19158
N(SyntaxKind.
OperatorKeyword
);
19230
N(SyntaxKind.
OperatorKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (2)
268
M(SyntaxKind.
OperatorKeyword
);
1538
N(SyntaxKind.
OperatorKeyword
);
Parsing\TypeArgumentListParsingTests.cs (2)
877
N(SyntaxKind.
OperatorKeyword
);
937
N(SyntaxKind.
OperatorKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
61
public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.
OperatorKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
493
if (targetToken.Kind() == SyntaxKind.
OperatorKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1185
if (token.IsKind(SyntaxKind.
OperatorKeyword
) &&
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1300
SyntaxKind.
OperatorKeyword
,