51 references to OperatorKeyword
Microsoft.CodeAnalysis.CSharp (39)
_generated\0\Syntax.xml.Main.Generated.cs (12)
5483if (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); 5556if (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); 5969if (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); 6034if (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)
32623if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32699if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 33156if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 33221if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38050if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38126if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38583if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38648if (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) 3485return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3793if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 3835if (this.CurrentToken.Kind != SyntaxKind.OperatorKeyword || 3867if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 3873opKeyword = this.EatToken(SyntaxKind.OperatorKeyword); 3893opKeyword = this.EatToken(SyntaxKind.OperatorKeyword); 3952if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 4022this.PeekToken(1).Kind is SyntaxKind.OperatorKeyword) 4047var opKeyword = this.EatToken(SyntaxKind.OperatorKeyword); 6716case SyntaxKind.OperatorKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
692AddKeyword(SyntaxKind.OperatorKeyword); 740AddKeyword(SyntaxKind.OperatorKeyword);
Syntax\SyntaxKindFacts.cs (2)
1039return SyntaxKind.OperatorKeyword; 1740case 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) &&