1 override of GetAccessorDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
422public override SyntaxNode GetAccessorDeclaration(Accessibility accessibility, IEnumerable<SyntaxNode>? statements)
9 references to GetAccessorDeclaration
Microsoft.CodeAnalysis.CSharp.Features (1)
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
29=> (AccessorDeclarationSyntax)generator.GetAccessorDeclaration();
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
2812var getAccessor = (AccessorDeclarationSyntax)Generator.GetAccessorDeclaration();
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.vb (4)
1181Generator.GetAccessorDeclaration(Accessibility.NotApplicable, {Generator.ReturnStatement()})), 1191Generator.GetAccessorDeclaration(Accessibility.NotApplicable, {Generator.ReturnStatement()}), 1206Generator.GetAccessorDeclaration(Accessibility.Protected, {Generator.ReturnStatement()})), 1229Generator.GetAccessorDeclaration(Accessibility.Protected, {Generator.ReturnStatement()})),
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
379getAccessor = GetAccessorDeclaration(getMethodAccessibility < propertyAccessibility ? getMethodAccessibility : Accessibility.NotApplicable, getAccessorStatements);
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
251gen.GetAccessorDeclaration(statements: new[] { DefaultMethodStatement(gen, editor.SemanticModel.Compilation) }))); 463gen.GetAccessorDeclaration(statements: new[] { DefaultMethodStatement(gen, editor.SemanticModel.Compilation) })));