broken wip if statement changes

master
Drake 1 year ago
parent 129217fbea
commit a6d9604202

@ -94,25 +94,13 @@ export default function IfStatement(
: ""}`];
prc.count += 7;
const oldPRC = prc;
/*for (
const node of (typedNode.consequent as swc.BlockStatement)
.stmts
) {
ourInsts = ourInsts.concat(
resolveNode(
node,
prc,
variableModificationThings,
variablesTable,
),
);
}*/
BlockStatement(
typedNode.consequent,
variablesTable,
variableModificationThings,
prc,
ourInsts,
ourInsts = ourInsts.concat(
...resolveNode(
typedNode.consequent,
prc,
variableModificationThings,
variablesTable,
),
);
ourInsts[0] = ourInsts[0].replace(
"TODO",

Loading…
Cancel
Save