klyn.code.ast.DeclarationNode.kind
property
public readonly property kind as DeclarationKind
Description

Structural kind of this declaration.

Returns

The DeclarationKind.

Example
import klyn.code.ast

node = DeclarationNode(DeclarationKind.CLASS, "Box", "class Box", SourceRange())
assert node.kind == DeclarationKind.CLASS