UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

26 lines (25 loc) 1.41 kB
"use strict"; var __extends = (this && this.__extends)/* istanbul ignore next */ || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var common_1 = require("./../common"); var base_1 = require("./../base"); var statement_1 = require("./../statement"); var SignaturedDeclaration_1 = require("./SignaturedDeclaration"); exports.FunctionExpressionBase = base_1.JSDocableNode(base_1.TextInsertableNode(base_1.BodiedNode(base_1.AsyncableNode(base_1.GeneratorableNode(statement_1.StatementedNode(SignaturedDeclaration_1.SignaturedDeclaration(base_1.ModifierableNode(base_1.NameableNode(common_1.Expression))))))))); var FunctionExpression = /** @class */ (function (_super) { __extends(FunctionExpression, _super); function FunctionExpression() { return _super !== null && _super.apply(this, arguments) || this; } return FunctionExpression; }(exports.FunctionExpressionBase)); exports.FunctionExpression = FunctionExpression;