200 references to OperatorDeclaration
Microsoft.CodeAnalysis.CSharp (23)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
467
case SyntaxKind.
OperatorDeclaration
:
Compilation\MemberSemanticModel.cs (1)
2213
case SyntaxKind.
OperatorDeclaration
:
Compilation\MethodBodySemanticModel.cs (1)
90
case SyntaxKind.
OperatorDeclaration
:
Compilation\SyntaxTreeSemanticModel.cs (4)
821
case SyntaxKind.
OperatorDeclaration
:
854
case SyntaxKind.
OperatorDeclaration
:
1081
case SyntaxKind.
OperatorDeclaration
:
1707
case SyntaxKind.
OperatorDeclaration
:
Declarations\DeclarationTreeBuilder.cs (3)
1121
case SyntaxKind.
OperatorDeclaration
:
1217
case SyntaxKind.
OperatorDeclaration
:
1258
case SyntaxKind.
OperatorDeclaration
:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
583
case SyntaxKind.
OperatorDeclaration
:
615
case SyntaxKind.
OperatorDeclaration
:
Parser\LanguageParser.cs (2)
558
or SyntaxKind.
OperatorDeclaration
2455
case SyntaxKind.
OperatorDeclaration
:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
305
case SyntaxKind.
OperatorDeclaration
:
444
case SyntaxKind.
OperatorDeclaration
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5769
case SyntaxKind.
OperatorDeclaration
:
Syntax.xml.Internal.Generated.cs (2)
32281
return new OperatorDeclarationSyntax(SyntaxKind.
OperatorDeclaration
, attributeLists.Node, modifiers.Node, returnType, explicitInterfaceSpecifier, operatorKeyword, checkedKeyword, operatorToken, parameterList, body, expressionBody, semicolonToken, this.context);
37648
return new OperatorDeclarationSyntax(SyntaxKind.
OperatorDeclaration
, attributeLists.Node, modifiers.Node, returnType, explicitInterfaceSpecifier, operatorKeyword, checkedKeyword, operatorToken, parameterList, body, expressionBody, semicolonToken);
Syntax.xml.Syntax.Generated.cs (1)
12425
/// <item><description><see cref="SyntaxKind.
OperatorDeclaration
"/></description></item>
Syntax\SyntaxExtensions.cs (2)
32
case SyntaxKind.
OperatorDeclaration
:
243
case SyntaxKind.
OperatorDeclaration
:
Syntax\SyntaxFacts.cs (1)
172
case
OperatorDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForOperatorsHelper.cs (1)
27
[SyntaxKind.
OperatorDeclaration
])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
61
case SyntaxKind.
OperatorDeclaration
:
140
case SyntaxKind.
OperatorDeclaration
:
160
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
257
or SyntaxKind.
OperatorDeclaration
)
279
or SyntaxKind.
OperatorDeclaration
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
440
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
81
=> token.IsOpenParenInParameterList() && token.Parent.IsParentKind(SyntaxKind.
OperatorDeclaration
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
92
if (previousToken.Parent.IsKind(SyntaxKind.
OperatorDeclaration
) && currentToken.IsOpenParenInParameterListOfAOperationDeclaration())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
58
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1192
case SyntaxKind.
OperatorDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
128
SyntaxKind.
OperatorDeclaration
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
802
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
25
{ SyntaxKind.
OperatorDeclaration
, 8 },
120
case SyntaxKind.
OperatorDeclaration
:
Microsoft.CodeAnalysis.CSharp.Features (20)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
132
case SyntaxKind.
OperatorDeclaration
:
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
87
case SyntaxKind.
OperatorDeclaration
:
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
57
case SyntaxKind.
OperatorDeclaration
:
134
SyntaxKind.
OperatorDeclaration
or
EditAndContinue\BreakpointSpans.cs (1)
175
case SyntaxKind.
OperatorDeclaration
:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
100
case SyntaxKind.
OperatorDeclaration
:
1684
case SyntaxKind.
OperatorDeclaration
:
2058
case SyntaxKind.
OperatorDeclaration
:
EditAndContinue\SyntaxComparer.cs (3)
621
case SyntaxKind.
OperatorDeclaration
:
719
case SyntaxKind.
OperatorDeclaration
:
1464
case SyntaxKind.
OperatorDeclaration
:
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
47
SyntaxKind.
OperatorDeclaration
or
LineSeparators\CSharpLineSeparatorService.cs (1)
85
case SyntaxKind.
OperatorDeclaration
:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
162
case SyntaxKind.
OperatorDeclaration
:
192
case SyntaxKind.
OperatorDeclaration
:
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForOperatorsHelper.cs (1)
27
[SyntaxKind.
OperatorDeclaration
])
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
128
SyntaxKind.
OperatorDeclaration
or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
305
case SyntaxKind.
OperatorDeclaration
:
444
case SyntaxKind.
OperatorDeclaration
:
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
38
&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.
OperatorDeclaration
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (95)
Parsing\AsyncParsingTests.cs (3)
851
N(SyntaxKind.
OperatorDeclaration
);
1866
N(SyntaxKind.
OperatorDeclaration
);
1931
N(SyntaxKind.
OperatorDeclaration
);
Parsing\DeclarationParsingTests.cs (5)
5349
Assert.Equal(SyntaxKind.
OperatorDeclaration
, cs.Members[0].Kind());
5429
Assert.Equal(SyntaxKind.
OperatorDeclaration
, cs.Members[0].Kind());
5475
N(SyntaxKind.
OperatorDeclaration
);
5543
Assert.Equal(SyntaxKind.
OperatorDeclaration
, cs.Members[0].Kind());
8265
N(SyntaxKind.
OperatorDeclaration
);
Parsing\ExtensionsParsingTests.cs (1)
3447
N(SyntaxKind.
OperatorDeclaration
);
Parsing\MemberDeclarationParsingTests.cs (82)
372
N(SyntaxKind.
OperatorDeclaration
);
432
N(SyntaxKind.
OperatorDeclaration
);
505
N(SyntaxKind.
OperatorDeclaration
);
588
N(SyntaxKind.
OperatorDeclaration
);
653
N(SyntaxKind.
OperatorDeclaration
);
1563
N(SyntaxKind.
OperatorDeclaration
);
2356
N(SyntaxKind.
OperatorDeclaration
);
2498
N(SyntaxKind.
OperatorDeclaration
);
2622
N(SyntaxKind.
OperatorDeclaration
);
2728
N(SyntaxKind.
OperatorDeclaration
);
2834
N(SyntaxKind.
OperatorDeclaration
);
2890
N(SyntaxKind.
OperatorDeclaration
);
2970
N(SyntaxKind.
OperatorDeclaration
);
3021
N(SyntaxKind.
OperatorDeclaration
);
3072
N(SyntaxKind.
OperatorDeclaration
);
3136
N(SyntaxKind.
OperatorDeclaration
);
3239
N(SyntaxKind.
OperatorDeclaration
);
3384
N(SyntaxKind.
OperatorDeclaration
);
3512
N(SyntaxKind.
OperatorDeclaration
);
3622
N(SyntaxKind.
OperatorDeclaration
);
3732
N(SyntaxKind.
OperatorDeclaration
);
3792
N(SyntaxKind.
OperatorDeclaration
);
3876
N(SyntaxKind.
OperatorDeclaration
);
3931
N(SyntaxKind.
OperatorDeclaration
);
3986
N(SyntaxKind.
OperatorDeclaration
);
4054
N(SyntaxKind.
OperatorDeclaration
);
4126
N(SyntaxKind.
OperatorDeclaration
);
4189
N(SyntaxKind.
OperatorDeclaration
);
4276
N(SyntaxKind.
OperatorDeclaration
);
4410
N(SyntaxKind.
OperatorDeclaration
);
4527
N(SyntaxKind.
OperatorDeclaration
);
4626
N(SyntaxKind.
OperatorDeclaration
);
4725
N(SyntaxKind.
OperatorDeclaration
);
4780
N(SyntaxKind.
OperatorDeclaration
);
4859
N(SyntaxKind.
OperatorDeclaration
);
4909
N(SyntaxKind.
OperatorDeclaration
);
4959
N(SyntaxKind.
OperatorDeclaration
);
5022
N(SyntaxKind.
OperatorDeclaration
);
5118
N(SyntaxKind.
OperatorDeclaration
);
5256
N(SyntaxKind.
OperatorDeclaration
);
5377
N(SyntaxKind.
OperatorDeclaration
);
5480
N(SyntaxKind.
OperatorDeclaration
);
5583
N(SyntaxKind.
OperatorDeclaration
);
5642
N(SyntaxKind.
OperatorDeclaration
);
5725
N(SyntaxKind.
OperatorDeclaration
);
5779
N(SyntaxKind.
OperatorDeclaration
);
5833
N(SyntaxKind.
OperatorDeclaration
);
5900
N(SyntaxKind.
OperatorDeclaration
);
5971
N(SyntaxKind.
OperatorDeclaration
);
6033
N(SyntaxKind.
OperatorDeclaration
);
6094
N(SyntaxKind.
OperatorDeclaration
);
6168
N(SyntaxKind.
OperatorDeclaration
);
9674
N(SyntaxKind.
OperatorDeclaration
);
9722
N(SyntaxKind.
OperatorDeclaration
);
9787
N(SyntaxKind.
OperatorDeclaration
);
9853
N(SyntaxKind.
OperatorDeclaration
);
10013
N(SyntaxKind.
OperatorDeclaration
);
10072
N(SyntaxKind.
OperatorDeclaration
);
11509
N(SyntaxKind.
OperatorDeclaration
);
11833
N(SyntaxKind.
OperatorDeclaration
);
12429
N(SyntaxKind.
OperatorDeclaration
);
12482
N(SyntaxKind.
OperatorDeclaration
);
12536
N(SyntaxKind.
OperatorDeclaration
);
12597
N(SyntaxKind.
OperatorDeclaration
);
12673
N(SyntaxKind.
OperatorDeclaration
);
12758
N(SyntaxKind.
OperatorDeclaration
);
12843
N(SyntaxKind.
OperatorDeclaration
);
12928
N(SyntaxKind.
OperatorDeclaration
);
13013
N(SyntaxKind.
OperatorDeclaration
);
13098
N(SyntaxKind.
OperatorDeclaration
);
13183
N(SyntaxKind.
OperatorDeclaration
);
13268
N(SyntaxKind.
OperatorDeclaration
);
13353
N(SyntaxKind.
OperatorDeclaration
);
13447
N(SyntaxKind.
OperatorDeclaration
);
13522
N(SyntaxKind.
OperatorDeclaration
);
13588
N(SyntaxKind.
OperatorDeclaration
);
13663
N(SyntaxKind.
OperatorDeclaration
);
13712
N(SyntaxKind.
OperatorDeclaration
);
13769
N(SyntaxKind.
OperatorDeclaration
);
13851
N(SyntaxKind.
OperatorDeclaration
);
20494
N(SyntaxKind.
OperatorDeclaration
);
20575
N(SyntaxKind.
OperatorDeclaration
);
Parsing\TopLevelStatementsParsingTests.cs (2)
262
N(SyntaxKind.
OperatorDeclaration
);
1532
N(SyntaxKind.
OperatorDeclaration
);
Parsing\TypeArgumentListParsingTests.cs (2)
869
N(SyntaxKind.
OperatorDeclaration
);
929
N(SyntaxKind.
OperatorDeclaration
);
Microsoft.CodeAnalysis.CSharp.Workspaces (22)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
270
var modifierList = AsModifierList(accessibility, modifiers, SyntaxKind.
OperatorDeclaration
);
635
SyntaxKind.
OperatorDeclaration
=> ((OperatorDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier),
656
case SyntaxKind.
OperatorDeclaration
:
825
case SyntaxKind.
OperatorDeclaration
:
1057
case SyntaxKind.
OperatorDeclaration
:
1568
case SyntaxKind.
OperatorDeclaration
:
1907
case SyntaxKind.
OperatorDeclaration
:
2383
case SyntaxKind.
OperatorDeclaration
:
2632
SyntaxKind.
OperatorDeclaration
=> ((OperatorDeclarationSyntax)declaration).Body?.Statements,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
61
case SyntaxKind.
OperatorDeclaration
:
140
case SyntaxKind.
OperatorDeclaration
:
160
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
257
or SyntaxKind.
OperatorDeclaration
)
279
or SyntaxKind.
OperatorDeclaration
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
440
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
81
=> token.IsOpenParenInParameterList() && token.Parent.IsParentKind(SyntaxKind.
OperatorDeclaration
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
92
if (previousToken.Parent.IsKind(SyntaxKind.
OperatorDeclaration
) && currentToken.IsOpenParenInParameterListOfAOperationDeclaration())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
58
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1192
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
802
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
25
{ SyntaxKind.
OperatorDeclaration
, 8 },
120
case SyntaxKind.
OperatorDeclaration
:
Microsoft.VisualStudio.LanguageServices.CSharp (12)
CodeModel\CSharpCodeModelService.cs (7)
107
case SyntaxKind.
OperatorDeclaration
:
160
case SyntaxKind.
OperatorDeclaration
:
559
case SyntaxKind.
OperatorDeclaration
:
612
case SyntaxKind.
OperatorDeclaration
:
831
case SyntaxKind.
OperatorDeclaration
:
860
if (kind is SyntaxKind.
OperatorDeclaration
or
3509
case SyntaxKind.
OperatorDeclaration
:
CodeModel\CSharpCodeModelService.NodeLocator.cs (4)
53
case SyntaxKind.
OperatorDeclaration
:
104
case SyntaxKind.
OperatorDeclaration
:
406
case SyntaxKind.
OperatorDeclaration
:
969
case SyntaxKind.
OperatorDeclaration
:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
207
case SyntaxKind.
OperatorDeclaration
:
Roslyn.Diagnostics.CSharp.Analyzers (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
61
case SyntaxKind.
OperatorDeclaration
:
140
case SyntaxKind.
OperatorDeclaration
:
160
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
257
or SyntaxKind.
OperatorDeclaration
)
279
or SyntaxKind.
OperatorDeclaration
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
440
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
81
=> token.IsOpenParenInParameterList() && token.Parent.IsParentKind(SyntaxKind.
OperatorDeclaration
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
92
if (previousToken.Parent.IsKind(SyntaxKind.
OperatorDeclaration
) && currentToken.IsOpenParenInParameterListOfAOperationDeclaration())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
58
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1192
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
802
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
25
{ SyntaxKind.
OperatorDeclaration
, 8 },
120
case SyntaxKind.
OperatorDeclaration
: