(source: string)
| 3279 | } |
| 3280 | |
| 3281 | function skipLeadingIgnoredTrivia(source: string): number { |
| 3282 | let index = source.charCodeAt(0) === 0xfeff ? 1 : 0 |
| 3283 | while (index < source.length) { |
| 3284 | while (index < source.length && /\s/.test(source[index])) index++ |
| 3285 | if (!source.startsWith("//", index)) return index |
| 3286 | const lineEnd = source.indexOf("\n", index) |
| 3287 | const end = lineEnd === -1 ? source.length : lineEnd + 1 |
| 3288 | if (!isSkippableDirectiveComment(source.slice(index, end))) return index |
| 3289 | index = end |
| 3290 | } |
| 3291 | return index |
| 3292 | } |
| 3293 | |
| 3294 | function sourceFileTopLevelJSDoc(sourceFile: ts.SourceFile): ParsedModuleJSDoc | undefined { |
| 3295 | const source = sourceFile.text |
no test coverage detected