Compare commits

...

2 Commits

@ -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;
}

@ -15,8 +15,9 @@ export default function BlockStatement(
for (
const node of typedNode.stmts
) {
instructions = instructions.concat(
resolveNode(
console.log(node);
instructions.push(
...resolveNode(
node,
prc,
variableModificationThings,

Loading…
Cancel
Save