UNPKG

@ts-ast-parser/core

Version:

Reflects a simplified version of the TypeScript AST for generating documentation

10 lines 418 B
import { isFunctionDeclaration } from '../utils/function.js'; import { FunctionNode } from '../nodes/function-node.js'; export const functionFactory = { isNode: isFunctionDeclaration, create: (node, context) => { const reflectedNode = context.registerReflectedNode(node, () => new FunctionNode(node, null, context)); return [reflectedNode]; }, }; //# sourceMappingURL=create-function.js.map