NavigationTree

external interface NavigationTree(source)

Node in a tree of nested declarations in a file. The top node is always a script or module node.

Properties

Link copied to clipboard
abstract external var childItems: ReadonlyArray<NavigationTree>?

Present if non-empty

Link copied to clipboard
abstract external var kind: ScriptElementKind
Link copied to clipboard
abstract external var kindModifiers: String

ScriptElementKindModifier separated by commas, e.g. "public,abstract"

Link copied to clipboard
abstract external var nameSpan: TextSpan?
Link copied to clipboard
abstract external var spans: ReadonlyArray<TextSpan>

Spans of the nodes that generated this declaration. There will be more than one if this is the result of merging.

Link copied to clipboard
abstract external var text: String

Name of the declaration, or a short description, e.g. "".