js-ast-parser
Version:
把javascript代码字符串解析为AST对象
16 lines • 586 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SwitchStatement = void 0;
const constants_1 = require("../../constants");
const Statement_1 = require("./Statement");
class SwitchStatement extends Statement_1.Statement {
constructor(currentToken) {
super();
this.type = 'SwitchStatement';
this.code = constants_1.NodeCode.SwitchStatement;
this.cases = [];
this.loc.start = currentToken.loc.start;
}
}
exports.SwitchStatement = SwitchStatement;
//# sourceMappingURL=SwitchStatement.js.map