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