ASTWithSource.from constructor

ASTWithSource.from(
  1. ASTWithSource original,
  2. 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);