Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that creates an abstract syntax three node

Hierarchy

  • Node

Implements

Index

Constructors

constructor

  • new Node(index: number, token: Token, value?: undefined | string, keyword?: undefined | false | true, annotation?: Token, children?: Array<ASTNode>): Node

Properties

Optional annotation

annotation: Token

annotation token attached to the value

children

children: Array<ASTNode>

Nested nodes with a relation

index

index: number

Optional keyword

keyword: undefined | false | true

true if token is a keyword

token

token: Token

token enum from lexer

Optional value

value: undefined | string

value attached to the token

Generated using TypeDoc