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