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