( diagnostics: ReadonlyArray<JSDocDiagnostic> )
| 1004 | } |
| 1005 | if (inFence) { |
| 1006 | continue |
| 1007 | } |
| 1008 | |
| 1009 | const match = /^@([A-Za-z][\w-]*)(?:\s+(.*))?$/.exec(trimmed) |
| 1010 | if (match) { |
| 1011 | current = { name: match[1], value: match[2]?.trim() ?? "", line: index } |
| 1012 | tags.push(current) |
| 1013 | continue |
| 1014 | } |
| 1015 | |
| 1016 | if (current !== undefined && trimmed !== "") { |
| 1017 | current.value = current.value === "" ? trimmed : `${current.value}\n${trimmed}` |
| 1018 | } else if (trimmed === "") { |
| 1019 | current = undefined |
| 1020 | } |
| 1021 | } |
no test coverage detected
searching dependent graphs…