53 references to AddAccessorDeclaration
Microsoft.CodeAnalysis.CSharp (16)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
306accessor = (parent.Kind() == SyntaxKind.AddAccessorDeclaration) ? eventSymbol.AddMethod : eventSymbol.RemoveMethod;
Compilation\MemberSemanticModel.cs (1)
2169case SyntaxKind.AddAccessorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
96case SyntaxKind.AddAccessorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (3)
788case SyntaxKind.AddAccessorDeclaration: 892case SyntaxKind.AddAccessorDeclaration: 1106case SyntaxKind.AddAccessorDeclaration:
Parser\LanguageParser.cs (2)
4481SyntaxKind.AddKeyword => SyntaxKind.AddAccessorDeclaration, 5088case SyntaxKind.AddAccessorDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
255case SyntaxKind.AddAccessorDeclaration:
Symbols\Source\SourceCustomEventAccessorSymbol.cs (2)
32isAdder: syntax.Kind() == SyntaxKind.AddAccessorDeclaration, 38Debug.Assert(syntax.Kind() == SyntaxKind.AddAccessorDeclaration || syntax.Kind() == SyntaxKind.RemoveAccessorDeclaration);
Symbols\Source\SourceCustomEventSymbol.cs (1)
87case SyntaxKind.AddAccessorDeclaration:
Symbols\Source\SourcePropertySymbol.cs (1)
266case SyntaxKind.AddAccessorDeclaration:
Syntax\SyntaxExtensions.cs (1)
41case SyntaxKind.AddAccessorDeclaration:
Syntax\SyntaxKindFacts.cs (2)
775return SyntaxKind.AddAccessorDeclaration; 790case SyntaxKind.AddAccessorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (1)
29SyntaxKind.AddAccessorDeclaration,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
159case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
440case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
44case SyntaxKind.AddAccessorDeclaration: 299case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1280case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
376SyntaxKind.AddAccessorDeclaration or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
145GenerateAccessorDeclaration(@event, @event.AddMethod, SyntaxKind.AddAccessorDeclaration, destination, info),
Microsoft.CodeAnalysis.CSharp.Features (6)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
59SyntaxKind.AddAccessorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
317case SyntaxKind.AddAccessorDeclaration:
EditAndContinue\SyntaxComparer.cs (2)
651case SyntaxKind.AddAccessorDeclaration: 720case SyntaxKind.AddAccessorDeclaration:
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (1)
29SyntaxKind.AddAccessorDeclaration,
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
255case SyntaxKind.AddAccessorDeclaration:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
IncrementalParsing\TypeChanges.cs (1)
142Assert.Equal(SyntaxKind.AddAccessorDeclaration, propertyType.AccessorList.Accessors[0].Kind());
Parsing\DeclarationParsingTests.cs (1)
4473TestClassEventWithValue(SyntaxKind.AddAccessorDeclaration, SyntaxKind.AddKeyword, SyntaxKind.IdentifierToken);
Parsing\FieldKeywordParsingTests.cs (1)
629N(useRemove ? SyntaxKind.RemoveAccessorDeclaration : SyntaxKind.AddAccessorDeclaration);
Parsing\MemberDeclarationParsingTests.cs (1)
11717N(SyntaxKind.AddAccessorDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
567accessors.Add(AccessorDeclaration(SyntaxKind.AddAccessorDeclaration, addAccessorStatements)); 1587case SyntaxKind.AddAccessorDeclaration: 2493SyntaxKind.AddAccessorDeclaration or 2528case SyntaxKind.AddAccessorDeclaration: 2602case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
159case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
440case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
44case SyntaxKind.AddAccessorDeclaration: 299case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1280case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
376SyntaxKind.AddAccessorDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
145GenerateAccessorDeclaration(@event, @event.AddMethod, SyntaxKind.AddAccessorDeclaration, destination, info),
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1448SyntaxKind.AddAccessorDeclaration)
Microsoft.VisualStudio.LanguageServices.CSharp (6)
CodeModel\CSharpCodeModelService.cs (4)
164case SyntaxKind.AddAccessorDeclaration: 1483case SyntaxKind.AddAccessorDeclaration: 1496SyntaxKind.AddAccessorDeclaration => MethodKind.EventAdd, 1506MethodKind.EventAdd => SyntaxKind.AddAccessorDeclaration,
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
62case SyntaxKind.AddAccessorDeclaration: 113case SyntaxKind.AddAccessorDeclaration: