(sourceFile: ts.SourceFile)
| 68 | } |
| 69 | |
| 70 | static getFirstCommentBlock(sourceFile: ts.SourceFile): string | null { |
| 71 | for (const statement of sourceFile.statements) { |
| 72 | const comments = Comments.getCleanedCommentsForNode( |
| 73 | statement, |
| 74 | sourceFile, |
| 75 | ); |
| 76 | if (comments) return comments; |
| 77 | } |
| 78 | |
| 79 | return null; |
| 80 | } |
| 81 | |
| 82 | static getTsDocCommentsForFunction(node: ts.Node, sourceFile: ts.SourceFile) { |
| 83 | const params: Record<string, string> = {}; |
no test coverage detected