UNPKG

js-ast-parser

Version:
17 lines 740 B
"use strict"; 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