Method IsDeclarationNode
- Namespace
- Alternet.Syntax.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Advanced.v9.dll
IsDeclarationNode(ISyntaxNode)
When implemented by a class, indicates whether specified node is a declaration node (contains declaration of some syntax structure, such as class, namespace and so on).
bool IsDeclarationNode(ISyntaxNode node)
Parameters
node
ISyntaxNodeSpecifies
ISyntaxNode
to check-up.
Returns
- bool
True if specified node is declaration node; otherwise false.
IsDeclarationNode(ref ISyntaxNode, bool)
When implemented by a class, indicates whether specified node is a declaration node (contains declaration of some syntax structure, such as class, namespace and so on).
bool IsDeclarationNode(ref ISyntaxNode node, bool checkRegions)
Parameters
node
ISyntaxNodeSpecifies
ISyntaxNode
to check-up.checkRegions
boolIndicates that region nodes should be skipped.
Returns
- bool
True if specified node is declaration node; otherwise false.