(part: RawJsDocPart)
| 225 | } |
| 226 | |
| 227 | const parseJsDocPart = (part: RawJsDocPart): ParsedJsDocPart[] => { |
| 228 | switch (part.getKindName()) { |
| 229 | case "JSDocText": |
| 230 | return parseJsDocText(part.compilerNode.text) |
| 231 | case "JSDocLink": |
| 232 | return [parseJsDocLink(part)] |
| 233 | default: |
| 234 | return throwInternalError( |
| 235 | `Unsupported JSDoc part kind ${part.getKindName()} at position ${part.getPos()} in ${part.getSourceFile().getFilePath()}` |
| 236 | ) |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | const parseJsDocText = (text: string | undefined): ParsedJsDocPart[] => { |
| 241 | if (!text) return [] |
nothing calls this directly
no test coverage detected
searching dependent graphs…