ASTWithSource.from constructor
ASTWithSource.from(
- ASTWithSource original,
- AST transformed
Replaces the perceived AST structure of original
with transform
.
However, the source and location remains the same (for debugging).
Implementation
ASTWithSource.from(
ASTWithSource original,
AST transformed,
) : this(transformed, original.source, original.location);