MCPcopy
hub / github.com/continuedev/continue / collapsedReplacement

Function collapsedReplacement

core/indexing/chunk/code.ts:7–12  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

5import { getParserForFile } from "../../util/treeSitter.js";
6
7function collapsedReplacement(node: SyntaxNode): string {
8 if (node.type === "statement_block") {
9 return "{ ... }";
10 }
11 return "...";
12}
13
14function firstChild(
15 node: SyntaxNode,

Callers 2

collapseChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected