MCPcopy
hub / github.com/colbymchenry/codegraph / getNodeText

Function getNodeText

src/extraction/tree-sitter-helpers.ts:35–37  ·  view source on GitHub ↗
(node: SyntaxNode, source: string)

Source from the content-addressed store, hash-verified

33 * Extract text from a syntax node
34 */
35export function getNodeText(node: SyntaxNode, source: string): string {
36 return source.substring(node.startIndex, node.endIndex);
37}
38
39/**
40 * Find a child node by field name

Callers 15

captureFnRefCandidatesFunction · 0.90
normalizeValueFunction · 0.90
normalizeSpecialFunction · 0.90
phpStringContentFunction · 0.90
extractNameRawFunction · 0.90
scalaBaseTypeNameFunction · 0.90
swiftPropertyInfoFunction · 0.90
bumpMethod · 0.90
flushValueRefsMethod · 0.90
visitNodeMethod · 0.90
extractFunctionMethod · 0.90
reactComponentHocMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected