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