MCPcopy Create free account
hub / github.com/continuedev/continue / getTextContent

Function getTextContent

extensions/cli/src/ui/SyntaxHighlighter.ts:167–177  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

165
166 // Helper function to extract text content from a node
167 function getTextContent(node: any): string {
168 if (node.type === "text") {
169 return node.value || "";
170 }
171
172 if (node.type === "element" && node.children) {
173 return node.children.map(getTextContent).join("");
174 }
175
176 return "";
177 }
178
179 // Process all child nodes
180 if (result.children) {

Callers 1

processNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected