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