SyntaxGenerator.GetDeclarationKind(SyntaxNode) Method

Definition

Gets the DeclarationKind for the declaration.

public:
 abstract Microsoft::CodeAnalysis::Editing::DeclarationKind GetDeclarationKind(Microsoft::CodeAnalysis::SyntaxNode ^ declaration);
public abstract Microsoft.CodeAnalysis.Editing.DeclarationKind GetDeclarationKind (Microsoft.CodeAnalysis.SyntaxNode declaration);
abstract member GetDeclarationKind : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.Editing.DeclarationKind
Public MustOverride Function GetDeclarationKind (declaration As SyntaxNode) As DeclarationKind

Parameters

declaration
SyntaxNode

Returns

Applies to