Implements a transformation from an ANTLR parse tree (the output of the parser) to an AST (a higher-level representation of the source code).

Hierarchy (view full)

Constructors

Properties

allowGenericNode: boolean = true

Use GenericNode as a strategy for missing factories for nodes.

issues: Issue[] = []

Additional issues found during the transformation process.

knownClasses: Map<string, Set<any>> = ...
source?: Source

Methods

  • Performs the transformation of a node and, recursively, its descendants. In addition to the overridden method, it also assigns the parseTreeNode to the AST node so that it can keep track of its position. However, a node factory can override the parseTreeNode of the nodes it creates (but not the parent).

    Parameters

    • Optional source: any
    • Optional parent: Node

    Returns Node[]

Generated using TypeDoc