• Creates a deep copy of the specified AST node. The resulting copy will only contain semantically relevant information, such as the $type property and AST properties.

    References are copied without resolved cross reference. The specified function is used to rebuild them.

    Type Parameters

    Parameters

    Returns T