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