MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / getFirstCommentBlock

Method getFirstCommentBlock

scripts/docs/lib/comments.ts:70–80  ·  view source on GitHub ↗
(sourceFile: ts.SourceFile)

Source from the content-addressed store, hash-verified

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> = {};

Callers 1

Calls 1

Tested by

no test coverage detected