51 references to OperatorKeyword
Microsoft.CodeAnalysis.CSharp (39)
_generated\0\Syntax.xml.Main.Generated.cs (12)
5483
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
5541
=> SyntaxFactory.OperatorDeclaration(attributeLists, modifiers, returnType, explicitInterfaceSpecifier, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, parameterList, body, expressionBody, default);
5545
=> SyntaxFactory.OperatorDeclaration(default, default(SyntaxTokenList), returnType, default, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, SyntaxFactory.ParameterList(), default, default, default);
5556
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
5576
=> SyntaxFactory.ConversionOperatorDeclaration(attributeLists, modifiers, implicitOrExplicitKeyword, explicitInterfaceSpecifier, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, parameterList, body, expressionBody, default);
5580
=> SyntaxFactory.ConversionOperatorDeclaration(default, default(SyntaxTokenList), implicitOrExplicitKeyword, default, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, SyntaxFactory.ParameterList(), default, default, default);
5969
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
6019
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, parameters);
6023
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, default);
6034
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
6047
=> SyntaxFactory.ConversionOperatorMemberCref(implicitOrExplicitKeyword, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, parameters);
6051
=> SyntaxFactory.ConversionOperatorMemberCref(implicitOrExplicitKeyword, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, default);
_generated\1\Syntax.xml.Internal.Generated.cs (8)
32623
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
32699
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
33156
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
33221
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38050
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38126
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38583
if (operatorKeyword.Kind != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
38648
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)
1587
(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.
OperatorKeyword
))
1650
if (!parsingStatementNotDeclaration && currentTokenKind == SyntaxKind.
OperatorKeyword
)
3485
return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.
OperatorKeyword
;
3793
if (this.CurrentToken.Kind == SyntaxKind.
OperatorKeyword
)
3835
if (this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
||
3867
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
&& style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3873
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3893
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3952
if (this.CurrentToken.Kind == SyntaxKind.
OperatorKeyword
)
4022
this.PeekToken(1).Kind is SyntaxKind.
OperatorKeyword
)
4047
var opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
6716
case SyntaxKind.
OperatorKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
692
AddKeyword(SyntaxKind.
OperatorKeyword
);
740
AddKeyword(SyntaxKind.
OperatorKeyword
);
Syntax\SyntaxKindFacts.cs (2)
1039
return SyntaxKind.
OperatorKeyword
;
1740
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
) &&