37 references to OperatorToken
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2074
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.OperatorKeyword), VisitToken(node.CheckedKeyword), VisitToken(node.
OperatorToken
), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (11)
12565
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || returnType != this.ReturnType || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || operatorKeyword != this.OperatorKeyword || checkedKeyword != this.CheckedKeyword || operatorToken != this.
OperatorToken
|| parameterList != this.ParameterList || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken)
12576
public new OperatorDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12578
public new OperatorDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12579
public OperatorDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, returnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12580
public OperatorDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, explicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12581
public OperatorDeclarationSyntax WithOperatorKeyword(SyntaxToken operatorKeyword) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, operatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12582
public OperatorDeclarationSyntax WithCheckedKeyword(SyntaxToken checkedKeyword) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, checkedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12585
public new OperatorDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, parameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12587
public new OperatorDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, body, this.ExpressionBody, this.SemicolonToken);
12589
public new OperatorDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, expressionBody, this.SemicolonToken);
12591
public new OperatorDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.
OperatorToken
, this.ParameterList, this.Body, this.ExpressionBody, semicolonToken);
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (3)
25
var location = syntax.
OperatorToken
.GetLocation();
34
else if (!syntax.
OperatorToken
.IsMissing && syntax.CheckedKeyword.IsKind(SyntaxKind.CheckedKeyword))
41
MessageID.IDS_FeatureUnsignedRightShift.CheckFeatureAvailability(diagnostics, syntax.
OperatorToken
);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (4)
60
Binder.CheckFeatureAvailability(syntax, MessageID.IDS_FeatureUserDefinedCompoundAssignmentOperators, diagnostics, ((OperatorDeclarationSyntax)syntax).
OperatorToken
.GetLocation());
65
!(syntax is OperatorDeclarationSyntax {
OperatorToken
: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken)))
197
if (syntax is OperatorDeclarationSyntax {
OperatorToken
: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken))
270
if (syntax is OperatorDeclarationSyntax {
OperatorToken
: var opToken } && opToken.Kind() is not (SyntaxKind.EqualsEqualsToken or SyntaxKind.ExclamationEqualsToken))
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
63
return ((OperatorDeclarationSyntax)member).
OperatorToken
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
201
=> member is OperatorDeclarationSyntax {
OperatorToken
.RawKind: (int)SyntaxKind.EqualsEqualsToken });
203
=> member is OperatorDeclarationSyntax {
OperatorToken
.RawKind: (int)SyntaxKind.ExclamationEqualsToken });
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
227
if (EqualOperatorPrecedence(x.
OperatorToken
, y.
OperatorToken
, out var result))
Microsoft.CodeAnalysis.CSharp.Features (7)
EditAndContinue\SyntaxComparer.cs (1)
1465
return ((OperatorDeclarationSyntax)node).
OperatorToken
;
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
74
OperatorDeclarationSyntax operatorDeclarationNode => operatorDeclarationNode.
OperatorToken
,
Organizing\Organizers\OperatorDeclarationOrganizer.cs (1)
33
syntax.
OperatorToken
,
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (2)
255
nameBuilder.Append(operatorDeclaration.
OperatorToken
.ToString());
269
operatorDeclaration.
OperatorToken
));
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
201
=> member is OperatorDeclarationSyntax {
OperatorToken
.RawKind: (int)SyntaxKind.EqualsEqualsToken });
203
=> member is OperatorDeclarationSyntax {
OperatorToken
.RawKind: (int)SyntaxKind.ExclamationEqualsToken });
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
63
return ((OperatorDeclarationSyntax)member).
OperatorToken
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
227
if (EqualOperatorPrecedence(x.
OperatorToken
, y.
OperatorToken
, out var result))
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
63
return ((OperatorDeclarationSyntax)member).
OperatorToken
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
227
if (EqualOperatorPrecedence(x.
OperatorToken
, y.
OperatorToken
, out var result))