The root node that represents the head of the AST. It only stores children.
Create a new RootNode.
The children of the node.
OverridesChildrenHolderNode.constructor
The children of the node.
OverridesChildrenHolderNode.children
The name of the node.
OverridesChildrenHolderNode.name
Adds a child to the node. If the node is aTextNode, attempts to flatten the node with a previous TextNode.
The child to add.
OverridesChildrenHolderNode.addChild
Clones the code, creating a new deep-copied node.
OverridesChildrenHolderNode.clone
Converts the node into a tree-like overview of all children.
The number of spaces to indent the output. Defaults to2.
The tree-like overview of all children.
Inherited fromChildrenHolderNode.nodeTree
ProtectednodeGets the children of the node tree.
The number of spaces to indent the output.
The children of the node tree.
Inherited fromChildrenHolderNode.nodeTreeChildren
ProtectednodeGets the heading of the node tree.
The heading of the node tree.
OverridesChildrenHolderNode.nodeTreeHeading
Gets the textual representation of the node as BBCode.An alias forBaseNode.toString.
Inherited fromChildrenHolderNode.toBBCode
The textual representation of the BBCode AST. It should return a string equivalent to the input toParser.parse.
OverridesChildrenHolderNode.toString
Generated usingTypeDoc