klyn.code.ast.DeclarationNode.range
property
public property range as SourceRange
Description

Source range spanned by this declaration.

Returns

SourceRange of the declaration.

Example
import klyn.code.ast

node = DeclarationNode(DeclarationKind.CLASS, "Box", "class Box", SourceRange(1, 0, 5, 0))
assert node.range.startLine == 1