UNPKG

js-ast-parser

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