52 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)
4500SyntaxKind.AddKeyword => SyntaxKind.AddAccessorDeclaration, 5131case 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)
33SyntaxKind.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)
1284case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
375SyntaxKind.AddAccessorDeclaration or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
164GenerateAccessorDeclaration(@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)
33SyntaxKind.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 (11)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
565accessors.Add(AccessorDeclaration(SyntaxKind.AddAccessorDeclaration, addAccessorStatements)); 1585case SyntaxKind.AddAccessorDeclaration: 2470SyntaxKind.AddAccessorDeclaration or 2568case 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)
1284case SyntaxKind.AddAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
375SyntaxKind.AddAccessorDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
164GenerateAccessorDeclaration(@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: