MCPcopy Index your code
hub / github.com/continuedev/continue / constructClassDefinitionChunk

Function constructClassDefinitionChunk

core/indexing/chunk/code.ts:110–123  ·  view source on GitHub ↗
(
  node: SyntaxNode,
  code: string,
  maxChunkSize: number,
)

Source from the content-addressed store, hash-verified

108];
109
110async function constructClassDefinitionChunk(
111 node: SyntaxNode,
112 code: string,
113 maxChunkSize: number,
114): Promise<string> {
115 return collapseChildren(
116 node,
117 code,
118 ["block", "class_body", "declaration_list"],
119 FUNCTION_DECLARATION_NODE_TYPEs,
120 FUNCTION_BLOCK_NODE_TYPES,
121 maxChunkSize,
122 );
123}
124
125async function constructFunctionDefinitionChunk(
126 node: SyntaxNode,

Callers

nothing calls this directly

Calls 1

collapseChildrenFunction · 0.85

Tested by

no test coverage detected