161 references to OperatorDeclaration
Microsoft.CodeAnalysis.CSharp (20)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
467case SyntaxKind.OperatorDeclaration:
Compilation\MemberSemanticModel.cs (1)
2174case SyntaxKind.OperatorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
90case SyntaxKind.OperatorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (4)
821case SyntaxKind.OperatorDeclaration: 854case SyntaxKind.OperatorDeclaration: 1081case SyntaxKind.OperatorDeclaration: 1680case SyntaxKind.OperatorDeclaration:
Declarations\DeclarationTreeBuilder.cs (3)
1102case SyntaxKind.OperatorDeclaration: 1198case SyntaxKind.OperatorDeclaration: 1239case SyntaxKind.OperatorDeclaration:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
583case SyntaxKind.OperatorDeclaration: 615case SyntaxKind.OperatorDeclaration:
Parser\LanguageParser.cs (2)
558or SyntaxKind.OperatorDeclaration 2394case SyntaxKind.OperatorDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
276case SyntaxKind.OperatorDeclaration: 391case SyntaxKind.OperatorDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5170case SyntaxKind.OperatorDeclaration:
Syntax\SyntaxExtensions.cs (2)
32case SyntaxKind.OperatorDeclaration: 243case SyntaxKind.OperatorDeclaration:
Syntax\SyntaxFacts.cs (1)
172case 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)
59case SyntaxKind.OperatorDeclaration: 128case SyntaxKind.OperatorDeclaration: 148case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
258or SyntaxKind.OperatorDeclaration) 280or SyntaxKind.OperatorDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
438case 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)
92if (previousToken.Parent.IsKind(SyntaxKind.OperatorDeclaration) && currentToken.IsOpenParenInParameterListOfAOperationDeclaration())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
63case SyntaxKind.OperatorDeclaration: 172case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1283case SyntaxKind.OperatorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
129SyntaxKind.OperatorDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
778case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
25{ SyntaxKind.OperatorDeclaration, 8 }, 120case SyntaxKind.OperatorDeclaration:
Microsoft.CodeAnalysis.CSharp.Features (16)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
132case SyntaxKind.OperatorDeclaration:
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
69case SyntaxKind.OperatorDeclaration: 127SyntaxKind.OperatorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
174case SyntaxKind.OperatorDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
619case SyntaxKind.OperatorDeclaration: 714case SyntaxKind.OperatorDeclaration: 1452case SyntaxKind.OperatorDeclaration:
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
47SyntaxKind.OperatorDeclaration or
LineSeparators\CSharpLineSeparatorService.cs (1)
86case SyntaxKind.OperatorDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
162case SyntaxKind.OperatorDeclaration: 192case SyntaxKind.OperatorDeclaration:
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForOperatorsHelper.cs (1)
27[SyntaxKind.OperatorDeclaration])
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
129SyntaxKind.OperatorDeclaration or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
276case SyntaxKind.OperatorDeclaration: 391case SyntaxKind.OperatorDeclaration:
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.OperatorDeclaration));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (74)
Parsing\AsyncParsingTests.cs (3)
851N(SyntaxKind.OperatorDeclaration); 1875N(SyntaxKind.OperatorDeclaration); 1940N(SyntaxKind.OperatorDeclaration);
Parsing\DeclarationParsingTests.cs (5)
5295Assert.Equal(SyntaxKind.OperatorDeclaration, cs.Members[0].Kind()); 5375Assert.Equal(SyntaxKind.OperatorDeclaration, cs.Members[0].Kind()); 5421N(SyntaxKind.OperatorDeclaration); 5489Assert.Equal(SyntaxKind.OperatorDeclaration, cs.Members[0].Kind()); 8211N(SyntaxKind.OperatorDeclaration);
Parsing\MemberDeclarationParsingTests.cs (62)
372N(SyntaxKind.OperatorDeclaration); 432N(SyntaxKind.OperatorDeclaration); 505N(SyntaxKind.OperatorDeclaration); 588N(SyntaxKind.OperatorDeclaration); 671N(SyntaxKind.OperatorDeclaration); 1560N(SyntaxKind.OperatorDeclaration); 2353N(SyntaxKind.OperatorDeclaration); 2495N(SyntaxKind.OperatorDeclaration); 2619N(SyntaxKind.OperatorDeclaration); 2725N(SyntaxKind.OperatorDeclaration); 2831N(SyntaxKind.OperatorDeclaration); 2887N(SyntaxKind.OperatorDeclaration); 2967N(SyntaxKind.OperatorDeclaration); 3018N(SyntaxKind.OperatorDeclaration); 3069N(SyntaxKind.OperatorDeclaration); 3133N(SyntaxKind.OperatorDeclaration); 3236N(SyntaxKind.OperatorDeclaration); 3381N(SyntaxKind.OperatorDeclaration); 3509N(SyntaxKind.OperatorDeclaration); 3619N(SyntaxKind.OperatorDeclaration); 3729N(SyntaxKind.OperatorDeclaration); 3789N(SyntaxKind.OperatorDeclaration); 3873N(SyntaxKind.OperatorDeclaration); 3928N(SyntaxKind.OperatorDeclaration); 3983N(SyntaxKind.OperatorDeclaration); 4051N(SyntaxKind.OperatorDeclaration); 4123N(SyntaxKind.OperatorDeclaration); 4186N(SyntaxKind.OperatorDeclaration); 4273N(SyntaxKind.OperatorDeclaration); 4407N(SyntaxKind.OperatorDeclaration); 4524N(SyntaxKind.OperatorDeclaration); 4623N(SyntaxKind.OperatorDeclaration); 4722N(SyntaxKind.OperatorDeclaration); 4777N(SyntaxKind.OperatorDeclaration); 4856N(SyntaxKind.OperatorDeclaration); 4906N(SyntaxKind.OperatorDeclaration); 4956N(SyntaxKind.OperatorDeclaration); 5019N(SyntaxKind.OperatorDeclaration); 5115N(SyntaxKind.OperatorDeclaration); 5253N(SyntaxKind.OperatorDeclaration); 5374N(SyntaxKind.OperatorDeclaration); 5477N(SyntaxKind.OperatorDeclaration); 5580N(SyntaxKind.OperatorDeclaration); 5639N(SyntaxKind.OperatorDeclaration); 5722N(SyntaxKind.OperatorDeclaration); 5776N(SyntaxKind.OperatorDeclaration); 5830N(SyntaxKind.OperatorDeclaration); 5897N(SyntaxKind.OperatorDeclaration); 5968N(SyntaxKind.OperatorDeclaration); 6030N(SyntaxKind.OperatorDeclaration); 6091N(SyntaxKind.OperatorDeclaration); 6165N(SyntaxKind.OperatorDeclaration); 9671N(SyntaxKind.OperatorDeclaration); 9719N(SyntaxKind.OperatorDeclaration); 9784N(SyntaxKind.OperatorDeclaration); 9850N(SyntaxKind.OperatorDeclaration); 10010N(SyntaxKind.OperatorDeclaration); 10069N(SyntaxKind.OperatorDeclaration); 11506N(SyntaxKind.OperatorDeclaration); 11830N(SyntaxKind.OperatorDeclaration); 18990N(SyntaxKind.OperatorDeclaration); 19071N(SyntaxKind.OperatorDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (2)
262N(SyntaxKind.OperatorDeclaration); 1532N(SyntaxKind.OperatorDeclaration);
Parsing\TypeArgumentListParsingTests.cs (2)
871N(SyntaxKind.OperatorDeclaration); 931N(SyntaxKind.OperatorDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (23)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
279var modifierList = AsModifierList(accessibility, modifiers, SyntaxKind.OperatorDeclaration); 630SyntaxKind.OperatorDeclaration => ((OperatorDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier), 651case SyntaxKind.OperatorDeclaration: 823case SyntaxKind.OperatorDeclaration: 1058case SyntaxKind.OperatorDeclaration: 1560case SyntaxKind.OperatorDeclaration: 2234case SyntaxKind.OperatorDeclaration: 2483SyntaxKind.OperatorDeclaration => ((OperatorDeclarationSyntax)declaration).Body?.Statements, 2510case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
59case SyntaxKind.OperatorDeclaration: 128case SyntaxKind.OperatorDeclaration: 148case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
258or SyntaxKind.OperatorDeclaration) 280or SyntaxKind.OperatorDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
438case 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)
92if (previousToken.Parent.IsKind(SyntaxKind.OperatorDeclaration) && currentToken.IsOpenParenInParameterListOfAOperationDeclaration())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
63case SyntaxKind.OperatorDeclaration: 172case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1283case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
778case SyntaxKind.OperatorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
25{ SyntaxKind.OperatorDeclaration, 8 }, 120case SyntaxKind.OperatorDeclaration:
Microsoft.VisualStudio.LanguageServices.CSharp (12)
CodeModel\CSharpCodeModelService.cs (7)
107case SyntaxKind.OperatorDeclaration: 160case SyntaxKind.OperatorDeclaration: 559case SyntaxKind.OperatorDeclaration: 612case SyntaxKind.OperatorDeclaration: 831case SyntaxKind.OperatorDeclaration: 860if (kind is SyntaxKind.OperatorDeclaration or 3509case SyntaxKind.OperatorDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (4)
53case SyntaxKind.OperatorDeclaration: 104case SyntaxKind.OperatorDeclaration: 406case SyntaxKind.OperatorDeclaration: 969case SyntaxKind.OperatorDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
209case SyntaxKind.OperatorDeclaration: