import parse from"../util/parse.js";import createTree from"../tree/create.js";import Transaction from"../transaction.js";/**
 * @param {Transaction} transaction
 */export default function parseNewTree(transaction){const{state,input,config:options}=transaction;const{measure}=state;if(typeof input==="string"){measure("parsing input for new tree");const{childNodes}=parse(input,undefined,options);const vTree=createTree(childNodes);if(vTree){transaction.newTree=vTree}measure("parsing input for new tree")}}