160 references to OperatorDeclaration
Microsoft.CodeAnalysis.CSharp (20)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
467
case SyntaxKind.
OperatorDeclaration
:
Compilation\MemberSemanticModel.cs (1)
2174
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
:
1680
case SyntaxKind.
OperatorDeclaration
:
Declarations\DeclarationTreeBuilder.cs (3)
1102
case SyntaxKind.
OperatorDeclaration
:
1198
case SyntaxKind.
OperatorDeclaration
:
1239
case SyntaxKind.
OperatorDeclaration
:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
583
case SyntaxKind.
OperatorDeclaration
:
615
case SyntaxKind.
OperatorDeclaration
:
Parser\LanguageParser.cs (2)
559
or SyntaxKind.
OperatorDeclaration
2395
case SyntaxKind.
OperatorDeclaration
:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
276
case SyntaxKind.
OperatorDeclaration
:
391
case SyntaxKind.
OperatorDeclaration
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5170
case SyntaxKind.
OperatorDeclaration
:
Syntax\SyntaxExtensions.cs (2)
32
case SyntaxKind.
OperatorDeclaration
:
243
case SyntaxKind.
OperatorDeclaration
:
Syntax\SyntaxFacts.cs (1)
172
case
OperatorDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForOperatorsHelper.cs (1)
27
[SyntaxKind.
OperatorDeclaration
])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
59
case SyntaxKind.
OperatorDeclaration
:
128
case SyntaxKind.
OperatorDeclaration
:
148
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
258
or SyntaxKind.
OperatorDeclaration
)
280
or SyntaxKind.
OperatorDeclaration
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
438
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
80
=> 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 (2)
63
case SyntaxKind.
OperatorDeclaration
:
172
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1290
case SyntaxKind.
OperatorDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
129
SyntaxKind.
OperatorDeclaration
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
778
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
25
{ SyntaxKind.
OperatorDeclaration
, 8 },
120
case SyntaxKind.
OperatorDeclaration
:
Microsoft.CodeAnalysis.CSharp.Features (16)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
132
case SyntaxKind.
OperatorDeclaration
:
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
69
case SyntaxKind.
OperatorDeclaration
:
127
SyntaxKind.
OperatorDeclaration
or
EditAndContinue\BreakpointSpans.cs (1)
174
case SyntaxKind.
OperatorDeclaration
:
EditAndContinue\SyntaxComparer.cs (3)
619
case SyntaxKind.
OperatorDeclaration
:
714
case SyntaxKind.
OperatorDeclaration
:
1452
case SyntaxKind.
OperatorDeclaration
:
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
47
SyntaxKind.
OperatorDeclaration
or
LineSeparators\CSharpLineSeparatorService.cs (1)
86
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)
129
SyntaxKind.
OperatorDeclaration
or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
276
case SyntaxKind.
OperatorDeclaration
:
391
case SyntaxKind.
OperatorDeclaration
:
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
38
&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.
OperatorDeclaration
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (74)
Parsing\AsyncParsingTests.cs (3)
851
N(SyntaxKind.
OperatorDeclaration
);
1875
N(SyntaxKind.
OperatorDeclaration
);
1940
N(SyntaxKind.
OperatorDeclaration
);
Parsing\DeclarationParsingTests.cs (5)
5295
Assert.Equal(SyntaxKind.
OperatorDeclaration
, cs.Members[0].Kind());
5375
Assert.Equal(SyntaxKind.
OperatorDeclaration
, cs.Members[0].Kind());
5421
N(SyntaxKind.
OperatorDeclaration
);
5489
Assert.Equal(SyntaxKind.
OperatorDeclaration
, cs.Members[0].Kind());
8211
N(SyntaxKind.
OperatorDeclaration
);
Parsing\MemberDeclarationParsingTests.cs (62)
372
N(SyntaxKind.
OperatorDeclaration
);
432
N(SyntaxKind.
OperatorDeclaration
);
505
N(SyntaxKind.
OperatorDeclaration
);
588
N(SyntaxKind.
OperatorDeclaration
);
671
N(SyntaxKind.
OperatorDeclaration
);
1560
N(SyntaxKind.
OperatorDeclaration
);
2353
N(SyntaxKind.
OperatorDeclaration
);
2495
N(SyntaxKind.
OperatorDeclaration
);
2619
N(SyntaxKind.
OperatorDeclaration
);
2725
N(SyntaxKind.
OperatorDeclaration
);
2831
N(SyntaxKind.
OperatorDeclaration
);
2887
N(SyntaxKind.
OperatorDeclaration
);
2967
N(SyntaxKind.
OperatorDeclaration
);
3018
N(SyntaxKind.
OperatorDeclaration
);
3069
N(SyntaxKind.
OperatorDeclaration
);
3133
N(SyntaxKind.
OperatorDeclaration
);
3236
N(SyntaxKind.
OperatorDeclaration
);
3381
N(SyntaxKind.
OperatorDeclaration
);
3509
N(SyntaxKind.
OperatorDeclaration
);
3619
N(SyntaxKind.
OperatorDeclaration
);
3729
N(SyntaxKind.
OperatorDeclaration
);
3789
N(SyntaxKind.
OperatorDeclaration
);
3873
N(SyntaxKind.
OperatorDeclaration
);
3928
N(SyntaxKind.
OperatorDeclaration
);
3983
N(SyntaxKind.
OperatorDeclaration
);
4051
N(SyntaxKind.
OperatorDeclaration
);
4123
N(SyntaxKind.
OperatorDeclaration
);
4186
N(SyntaxKind.
OperatorDeclaration
);
4273
N(SyntaxKind.
OperatorDeclaration
);
4407
N(SyntaxKind.
OperatorDeclaration
);
4524
N(SyntaxKind.
OperatorDeclaration
);
4623
N(SyntaxKind.
OperatorDeclaration
);
4722
N(SyntaxKind.
OperatorDeclaration
);
4777
N(SyntaxKind.
OperatorDeclaration
);
4856
N(SyntaxKind.
OperatorDeclaration
);
4906
N(SyntaxKind.
OperatorDeclaration
);
4956
N(SyntaxKind.
OperatorDeclaration
);
5019
N(SyntaxKind.
OperatorDeclaration
);
5115
N(SyntaxKind.
OperatorDeclaration
);
5253
N(SyntaxKind.
OperatorDeclaration
);
5374
N(SyntaxKind.
OperatorDeclaration
);
5477
N(SyntaxKind.
OperatorDeclaration
);
5580
N(SyntaxKind.
OperatorDeclaration
);
5639
N(SyntaxKind.
OperatorDeclaration
);
5722
N(SyntaxKind.
OperatorDeclaration
);
5776
N(SyntaxKind.
OperatorDeclaration
);
5830
N(SyntaxKind.
OperatorDeclaration
);
5897
N(SyntaxKind.
OperatorDeclaration
);
5968
N(SyntaxKind.
OperatorDeclaration
);
6030
N(SyntaxKind.
OperatorDeclaration
);
6091
N(SyntaxKind.
OperatorDeclaration
);
6165
N(SyntaxKind.
OperatorDeclaration
);
9671
N(SyntaxKind.
OperatorDeclaration
);
9719
N(SyntaxKind.
OperatorDeclaration
);
9784
N(SyntaxKind.
OperatorDeclaration
);
9850
N(SyntaxKind.
OperatorDeclaration
);
10010
N(SyntaxKind.
OperatorDeclaration
);
10069
N(SyntaxKind.
OperatorDeclaration
);
11506
N(SyntaxKind.
OperatorDeclaration
);
11830
N(SyntaxKind.
OperatorDeclaration
);
18990
N(SyntaxKind.
OperatorDeclaration
);
19071
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 (8)
278
var modifierList = AsModifierList(accessibility, modifiers, SyntaxKind.
OperatorDeclaration
);
629
SyntaxKind.
OperatorDeclaration
=> ((OperatorDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier),
650
case SyntaxKind.
OperatorDeclaration
:
822
case SyntaxKind.
OperatorDeclaration
:
1057
case SyntaxKind.
OperatorDeclaration
:
1559
case SyntaxKind.
OperatorDeclaration
:
2233
case SyntaxKind.
OperatorDeclaration
:
2482
SyntaxKind.
OperatorDeclaration
=> ((OperatorDeclarationSyntax)declaration).Body?.Statements,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
59
case SyntaxKind.
OperatorDeclaration
:
128
case SyntaxKind.
OperatorDeclaration
:
148
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
258
or SyntaxKind.
OperatorDeclaration
)
280
or SyntaxKind.
OperatorDeclaration
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
438
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
80
=> 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 (2)
63
case SyntaxKind.
OperatorDeclaration
:
172
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1290
case SyntaxKind.
OperatorDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
778
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)
209
case SyntaxKind.
OperatorDeclaration
: