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

Function getChildByField

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

Source from the content-addressed store, hash-verified

40 * Find a child node by field name
41 */
42export function getChildByField(node: SyntaxNode, fieldName: string): SyntaxNode | null {
43 return node.childForFieldName(fieldName);
44}
45
46/**
47 * Node types that *wrap* a declaration so a leading comment is a sibling of the

Callers 15

captureFnRefCandidatesFunction · 0.90
normalizeValueFunction · 0.90
normalizeSpecialFunction · 0.90
phpEnclosingCallNameFunction · 0.90
extractNameRawFunction · 0.90
cDeclaratorIdentifierFunction · 0.90
swiftPropertyInfoFunction · 0.90
flushValueRefsMethod · 0.90
visitNodeMethod · 0.90
extractFunctionMethod · 0.90
reactComponentHocMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected