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

Method getNodesInFile

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

Get all nodes in a file

(filePath: string)

Source from the content-addressed store, hash-verified

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

Callers 15

getFileExportIndexFunction · 0.65
nodesInFileNamedFunction · 0.65
pythonModuleOfScriptFunction · 0.65
pythonModuleFileNodeFunction · 0.65
resolveJvmImportFunction · 0.65
declarationsInFunction · 0.65
resolveViaImportFunction · 0.65
resolveLuaRequireFunction · 0.65
angularComponentsFunction · 0.65

Calls

no outgoing calls

Tested by 15

callsFromFunction · 0.52
edgesFromFunction · 0.52
callsInFunction · 0.52
callsFromFunction · 0.52
stateOfFunction · 0.52
targetsOfFunction · 0.52
callsOfFunction · 0.52
graphOfFunction · 0.52
callsFromFunction · 0.52
callTargetsFunction · 0.52
takesFunction · 0.52
innerClosuresFunction · 0.52