Type alias SrcDesc

SrcDesc: (string | [ASTNode, any[]])[]

The SrcDesc is the intermediate description for source that is generated by ASTNodeWriters. It has a tree-like structure, defined by the following grammar:

SrcDesc ::= (string | [ASTNode, SrcDesc])*

Essentially its a tree of strings, with some ASTNode attached to it at given locations.

For example having [ASTNode#5, <SrcDescX>] in the tree, indicates that the source generated by <SrcDescX> corresponds precisely to ASTNode#5 in the source map.

Generated using TypeDoc