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

Method getNodesInFile

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

Get all nodes in a file

(filePath: string)

Source from the content-addressed store, hash-verified

90export interface ResolutionContext {
91 /** Get all nodes in a file */
92 getNodesInFile(filePath: string): Node[];
93 /** Whether any node in the file is exported (`getNodesInFile(f).some(n => n.isExported)`), as one indexed probe. */
94 fileHasExportedNode?(filePath: string): boolean;
95 /** `getNodesInFile(f).filter(n => n.isExported)`, without decoding the rest of the file. */

Callers 15

getFileExportIndexFunction · 0.65
nodesInFileNamedFunction · 0.65
resolveViaImportFunction · 0.65
resolveLuaRequireFunction · 0.65
resolveRustPathReferenceFunction · 0.65
matchMemberFunctionRefFunction · 0.65
pythonFieldTypeFunction · 0.65
isSealedModuleFunction · 0.65

Calls

no outgoing calls

Tested by 9

innerClosuresFunction · 0.52
incompleteBodiesFunction · 0.52
incompleteBodiesFunction · 0.52
defOfFunction · 0.52
isTypeLevelFunction · 0.52
pinOrderFunction · 0.52
incompleteBodiesFunction · 0.52
callersOfFunction · 0.52
completeNamedBodiesFunction · 0.52