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

Method getFileDependencies

src/graph/queries.ts:119–125  ·  view source on GitHub ↗

* Get dependencies of a file * * Returns all files that this file imports from. * * @param filePath - Path to the file * @returns Array of file paths this file depends on

(filePath: string)

Source from the content-addressed store, hash-verified

117 * @returns Array of file paths this file depends on
118 */
119 getFileDependencies(filePath: string): string[] {
120 // Follow the symbol-level cross-file edge graph, not just `imports`:
121 // an `imports` edge here points from a file to its own local import
122 // declarations (same-file), so the actual cross-file dependencies live in
123 // the resolved calls/references/instantiates/extends/... edges.
124 return this.queries.getDependencyFilePaths(filePath);
125 }
126
127 /**
128 * Get dependents of a file

Callers 1

buildFileFunction · 0.45

Calls 1

Tested by

no test coverage detected