Class ASTNodeFactory

Constructors

Properties

context: ASTContext
postprocessor: ASTPostprocessor

Methods

  • Return a copy of the given node, along with all its children. Optionally pass in a remapping from ids in the old context, to ids of the old context of any sibling nodes that may be referred in node (e.g. by referencedDeclaration fields).

    Type Parameters

    Parameters

    • node: T
    • Optional remappings: IDMap

    Returns T

  • Return a tuple containing a copy of the given node and all its children, and a mapping of ids between the old nodes and the new nodes.

    Optionally pass in a remapping from ids in the old context, to ids of the old context of any sibling nodes that may be referred in node (e.g. by referencedDeclaration fields).

    Type Parameters

    Parameters

    • node: T
    • Optional remappings: IDMap

    Returns [T, IDMap]

  • Return the list of arguments (after id and src) that need to be passed to node's constructor to recreate node.

    Type Parameters

    Parameters

    • node: T

    Returns any[]

Generated using TypeDoc