UNPKG

js-ast-parser

Version:
15 lines 553 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ThrowStatement = void 0; const constants_1 = require("../../constants"); const Statement_1 = require("./Statement"); class ThrowStatement extends Statement_1.Statement { constructor(currentToken) { super(); this.type = 'ThrowStatement'; this.code = constants_1.NodeCode.ThrowStatement; this.loc.start = currentToken.loc.start; } } exports.ThrowStatement = ThrowStatement; //# sourceMappingURL=ThrowStatement.js.map