* 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)
| 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 |
no test coverage detected