Method IsDeclaration
IsDeclaration(ISyntaxNode)
Indicates whether specified node is a declaration node (contains declaration of some syntax structure, such as class, namespace and so on).
public override bool IsDeclaration(ISyntaxNode node)
Parameters
node
ISyntaxNodeSpecifies
ISyntaxNode
to check-up.
Returns
- bool
True if specified node is declaration node; otherwise false.