51 references to OperatorKeyword
Microsoft.CodeAnalysis.CSharp (39)
_generated\0\Syntax.xml.Main.Generated.cs (12)
5507
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
5565
=> SyntaxFactory.OperatorDeclaration(attributeLists, modifiers, returnType, explicitInterfaceSpecifier, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, parameterList, body, expressionBody, default);
5569
=> SyntaxFactory.OperatorDeclaration(default, default(SyntaxTokenList), returnType, default, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, SyntaxFactory.ParameterList(), default, default, default);
5580
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
5600
=> SyntaxFactory.ConversionOperatorDeclaration(attributeLists, modifiers, implicitOrExplicitKeyword, explicitInterfaceSpecifier, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, parameterList, body, expressionBody, default);
5604
=> SyntaxFactory.ConversionOperatorDeclaration(default, default(SyntaxTokenList), implicitOrExplicitKeyword, default, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, SyntaxFactory.ParameterList(), default, default, default);
5993
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
6043
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, parameters);
6047
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, default);
6058
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
6071
=> SyntaxFactory.ConversionOperatorMemberCref(implicitOrExplicitKeyword, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, parameters);
6075
=> SyntaxFactory.ConversionOperatorMemberCref(implicitOrExplicitKeyword, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, default);
_generated\1\Syntax.xml.Internal.Generated.cs (8)
32758
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
32834
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
33291
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
33356
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38180
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38256
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38713
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38778
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
Parser\DocumentationCommentParser.cs (3)
944
case SyntaxKind.
OperatorKeyword
:
1018
Debug.Assert(CurrentToken.Kind == SyntaxKind.
OperatorKeyword
);
1211
SyntaxToken operatorKeyword = EatToken(SyntaxKind.
OperatorKeyword
);
Parser\LanguageParser.cs (12)
1601
(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.
OperatorKeyword
))
1664
if (!parsingStatementNotDeclaration && currentTokenKind == SyntaxKind.
OperatorKeyword
)
3485
return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.
OperatorKeyword
;
3787
while (this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
)
3826
if (this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
||
3858
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
&& style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3864
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3884
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3943
if (this.CurrentToken.Kind == SyntaxKind.
OperatorKeyword
)
4013
this.PeekToken(1).Kind is SyntaxKind.
OperatorKeyword
)
4038
var opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
6681
case SyntaxKind.
OperatorKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
692
AddKeyword(SyntaxKind.
OperatorKeyword
);
740
AddKeyword(SyntaxKind.
OperatorKeyword
);
Syntax\SyntaxKindFacts.cs (2)
1041
return SyntaxKind.
OperatorKeyword
;
1742
case SyntaxKind.
OperatorKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72
public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.
OperatorKeyword
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
492
if (targetToken.Kind() == SyntaxKind.
OperatorKeyword
&&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1193
if (token.IsKind(SyntaxKind.
OperatorKeyword
) &&
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\CheckedKeywordRecommender.cs (1)
26
if (targetToken.Kind() == SyntaxKind.
OperatorKeyword
)
Completion\KeywordRecommenders\OperatorKeywordRecommender.cs (1)
10
internal sealed class OperatorKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
OperatorKeyword
)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72
public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.
OperatorKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
492
if (targetToken.Kind() == SyntaxKind.
OperatorKeyword
&&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1193
if (token.IsKind(SyntaxKind.
OperatorKeyword
) &&
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
84
CSharpSyntaxKind.
OperatorKeyword
,
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72
public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.
OperatorKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
492
if (targetToken.Kind() == SyntaxKind.
OperatorKeyword
&&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1193
if (token.IsKind(SyntaxKind.
OperatorKeyword
) &&