51 references to OperatorKeyword
Microsoft.CodeAnalysis.CSharp (39)
_generated\0\Syntax.xml.Main.Generated.cs (12)
5521
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
5579
=> SyntaxFactory.OperatorDeclaration(attributeLists, modifiers, returnType, explicitInterfaceSpecifier, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, parameterList, body, expressionBody, default);
5583
=> SyntaxFactory.OperatorDeclaration(default, default(SyntaxTokenList), returnType, default, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, SyntaxFactory.ParameterList(), default, default, default);
5594
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
5614
=> SyntaxFactory.ConversionOperatorDeclaration(attributeLists, modifiers, implicitOrExplicitKeyword, explicitInterfaceSpecifier, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, parameterList, body, expressionBody, default);
5618
=> SyntaxFactory.ConversionOperatorDeclaration(default, default(SyntaxTokenList), implicitOrExplicitKeyword, default, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, SyntaxFactory.ParameterList(), default, default, default);
6007
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
6057
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, parameters);
6061
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, operatorToken, default);
6072
if (operatorKeyword.Kind() != SyntaxKind.
OperatorKeyword
) throw new ArgumentException(nameof(operatorKeyword));
6085
=> SyntaxFactory.ConversionOperatorMemberCref(implicitOrExplicitKeyword, SyntaxFactory.Token(SyntaxKind.
OperatorKeyword
), default, type, parameters);
6089
=> 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)
1587
(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.
OperatorKeyword
))
1650
if (!parsingStatementNotDeclaration && currentTokenKind == SyntaxKind.
OperatorKeyword
)
3490
return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.
OperatorKeyword
;
3798
if (this.CurrentToken.Kind == SyntaxKind.
OperatorKeyword
)
3840
if (this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
||
3872
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.
OperatorKeyword
&& style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3878
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3898
opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
3957
if (this.CurrentToken.Kind == SyntaxKind.
OperatorKeyword
)
4027
this.PeekToken(1).Kind is SyntaxKind.
OperatorKeyword
)
4052
var opKeyword = this.EatToken(SyntaxKind.
OperatorKeyword
);
6721
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
) &&