Support AST reuse in fromSource