add comments noting when nodes start and end

master
Drake 1 year ago
parent 31fd9a4382
commit b937bd63f0

@ -68,6 +68,7 @@ function resolveNode(
) {
// deno-lint-ignore prefer-const
let instructions: string[] = [];
instructions.push(`/* start ${node.type} */`);
switch (node.type) {
case "VariableDeclaration": {
VariableDeclaration(
@ -122,6 +123,7 @@ function resolveNode(
default:
throw new Error(`Unimplemented node ${node.type}`);
}
instructions.push(`/* end ${node.type} */`);
return instructions;
}

Loading…
Cancel
Save