UNPKG

js-ast-parser

Version:
16 lines 611 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FunctionExpression = void 0; const constants_1 = require("../../constants"); const Expression_1 = require("./Expression"); class FunctionExpression extends Expression_1.Expression { constructor(currentToken) { super(); this.type = 'FunctionExpression'; this.code = constants_1.NodeCode.FunctionExpression; this.params = []; this.loc.start = currentToken.loc.start; } } exports.FunctionExpression = FunctionExpression; //# sourceMappingURL=FuntionExpression.js.map