agsamantha/node_modules/jintr/dist/nodes/SwitchCase.js
2024-10-02 15:15:21 -05:00

11 lines
365 B
JavaScript

import BaseJSNode from './BaseJSNode.js';
export default class SwitchCase extends BaseJSNode {
run() {
for (const stmt of this.node.consequent) {
const result = this.visitor.visitNode(stmt);
if (stmt.type === 'ContinueStatement' || stmt.type === 'BreakStatement') {
return result;
}
}
}
}