(node)
| 1504 | } |
| 1505 | |
| 1506 | function getJsDocData(node) { |
| 1507 | const docs = typeof node?.getJsDocs === 'function' ? node.getJsDocs() : []; |
| 1508 | const tags = docs.flatMap(doc => doc.getTags()); |
| 1509 | |
| 1510 | return { |
| 1511 | description: |
| 1512 | docs.map(doc => doc.getDescription().replace(/\n+/g, ' ').trim()).find(Boolean) || '', |
| 1513 | defaultValue: tags.find(tag => tag.getTagName() === 'default')?.getCommentText() || '', |
| 1514 | selector: tags.find(tag => tag.getTagName() === 'selector')?.getCommentText() || '', |
| 1515 | deprecated: tags.some(tag => tag.getTagName() === 'deprecated'), |
| 1516 | private: tags.some(tag => tag.getTagName() === 'private') |
| 1517 | }; |
| 1518 | } |
| 1519 | |
| 1520 | function shouldOmitSymbol(sym) { |
| 1521 | return (sym.getDeclarations?.() || []).some(decl => { |
no outgoing calls
no test coverage detected