UNPKG

js-ast-parser

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