MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getNodesInFileNamed

Method getNodesInFileNamed

src/resolution/types.ts:103–103  ·  view source on GitHub ↗

`getNodesInFile(f).filter(n => n.name === name)`, without decoding the rest of the file.

(filePath: string, name: string)

Source from the content-addressed store, hash-verified

101 getExportedNodesInFile?(filePath: string): Node[];
102 /** `getNodesInFile(f).filter(n => n.name === name)`, without decoding the rest of the file. */
103 getNodesInFileNamed?(filePath: string, name: string): Node[];
104 /** Get all nodes by name */
105 getNodesByName(name: string): Node[];
106 /**

Callers 6

nodesInFileNamedFunction · 0.80
declarationsInFunction · 0.80
wrappedChildFunction · 0.80
ownBindingFunction · 0.80
declaredValueFunction · 0.80
ownDeclarationsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected