@ts-ast-parser/core
Version:
Reflects a simplified version of the TypeScript AST for generating documentation
12 lines • 428 B
JavaScript
import { isClassDeclaration } from '../utils/class.js';
import { ClassNode } from '../nodes/class-node.js';
export const classFactory = {
isNode: (node) => {
return isClassDeclaration(node);
},
create: (node, context) => {
const reflectedNode = context.registerReflectedNode(node, () => new ClassNode(node, context));
return [reflectedNode];
},
};
//# sourceMappingURL=create-class.js.map