(source: string, end: number)
| 872 | } |
| 873 | |
| 874 | function skipDirectiveComments(source: string, end: number): number { |
| 875 | while (end > 0) { |
| 876 | const lineStart = source.lastIndexOf("\n", end - 1) + 1 |
| 877 | if (!isSkippableDirectiveComment(source.slice(lineStart, end))) { |
| 878 | return end |
| 879 | } |
| 880 | end = skipWhitespace(source, lineStart) |
| 881 | } |
| 882 | return end |
| 883 | } |
| 884 | |
| 885 | /** |
| 886 | * Finds the JSDoc block immediately preceding an AST node. |
no test coverage detected