(ast)
| 41 | } |
| 42 | |
| 43 | function findClassNode(ast) { |
| 44 | for (const node of ast.body) { |
| 45 | if (node.type === 'ClassDeclaration') return node |
| 46 | if (node.type === 'ExportNamedDeclaration' && node.declaration?.type === 'ClassDeclaration') return node.declaration |
| 47 | if (node.type === 'ExportDefaultDeclaration' && node.declaration?.type === 'ClassDeclaration') return node.declaration |
| 48 | } |
| 49 | return null |
| 50 | } |
| 51 | |
| 52 | function stripJsDoc(value) { |
| 53 | return value |