Share via


SyntaxGenerator.GetAccessor(SyntaxNode, DeclarationKind) Method

Definition

Gets the accessor of the specified kind for the declaration.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ GetAccessor(Microsoft::CodeAnalysis::SyntaxNode ^ declaration, Microsoft::CodeAnalysis::Editing::DeclarationKind kind);
public Microsoft.CodeAnalysis.SyntaxNode GetAccessor (Microsoft.CodeAnalysis.SyntaxNode declaration, Microsoft.CodeAnalysis.Editing.DeclarationKind kind);
public Microsoft.CodeAnalysis.SyntaxNode? GetAccessor (Microsoft.CodeAnalysis.SyntaxNode declaration, Microsoft.CodeAnalysis.Editing.DeclarationKind kind);
member this.GetAccessor : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.Editing.DeclarationKind -> Microsoft.CodeAnalysis.SyntaxNode
Public Function GetAccessor (declaration As SyntaxNode, kind As DeclarationKind) As SyntaxNode

Parameters

declaration
SyntaxNode

Returns

Applies to