51 references to OperatorKeyword
Microsoft.CodeAnalysis.CSharp (39)
_generated\0\Syntax.xml.Main.Generated.cs (12)
5521if (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); 5594if (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); 6007if (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); 6072if (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)
32758if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32834if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 33291if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 33356if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38180if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38256if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38713if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38778if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
Parser\DocumentationCommentParser.cs (3)
944case SyntaxKind.OperatorKeyword: 1018Debug.Assert(CurrentToken.Kind == SyntaxKind.OperatorKeyword); 1211SyntaxToken operatorKeyword = EatToken(SyntaxKind.OperatorKeyword);
Parser\LanguageParser.cs (12)
1587(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.OperatorKeyword)) 1650if (!parsingStatementNotDeclaration && currentTokenKind == SyntaxKind.OperatorKeyword) 3490return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3798if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 3840if (this.CurrentToken.Kind != SyntaxKind.OperatorKeyword || 3872if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 3878opKeyword = this.EatToken(SyntaxKind.OperatorKeyword); 3898opKeyword = this.EatToken(SyntaxKind.OperatorKeyword); 3957if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 4027this.PeekToken(1).Kind is SyntaxKind.OperatorKeyword) 4052var opKeyword = this.EatToken(SyntaxKind.OperatorKeyword); 6721case SyntaxKind.OperatorKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
692AddKeyword(SyntaxKind.OperatorKeyword); 740AddKeyword(SyntaxKind.OperatorKeyword);
Syntax\SyntaxKindFacts.cs (2)
1041return SyntaxKind.OperatorKeyword; 1742case SyntaxKind.OperatorKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72public 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)
492if (targetToken.Kind() == SyntaxKind.OperatorKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1193if (token.IsKind(SyntaxKind.OperatorKeyword) &&
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\CheckedKeywordRecommender.cs (1)
26if (targetToken.Kind() == SyntaxKind.OperatorKeyword)
Completion\KeywordRecommenders\OperatorKeywordRecommender.cs (1)
10internal sealed class OperatorKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.OperatorKeyword)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.OperatorKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
492if (targetToken.Kind() == SyntaxKind.OperatorKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1193if (token.IsKind(SyntaxKind.OperatorKeyword) &&
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
84CSharpSyntaxKind.OperatorKeyword,
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.OperatorKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
492if (targetToken.Kind() == SyntaxKind.OperatorKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1193if (token.IsKind(SyntaxKind.OperatorKeyword) &&