(text: string)
| 101 | ): u is ast.VariableStatement => u.getKind() === ast.ts.SyntaxKind.VariableStatement |
| 102 | |
| 103 | const parseDoc = (text: string) => { |
| 104 | const comment = parseComment(text) |
| 105 | return new Domain.Doc( |
| 106 | comment.description, |
| 107 | comment.tags["since"] ?? [], |
| 108 | comment.tags["deprecated"] ?? [], |
| 109 | comment.tags["example"] ?? [], |
| 110 | comment.tags["category"] ?? [], |
| 111 | comment.tags["throws"] ?? [], |
| 112 | comment.tags["see"] ?? [], |
| 113 | comment.tags |
| 114 | ) |
| 115 | } |
| 116 | |
| 117 | const shouldIgnore = (doc: Domain.Doc): boolean => { |
| 118 | return Record.has(doc.tags, "internal") || Record.has(doc.tags, "ignore") |
no test coverage detected