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

Function fileNode

__tests__/resolution.test.ts:6063–6065  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

6061
6062 describe('Nix path import resolution', () => {
6063 function fileNode(filePath: string) {
6064 return cg.getNodesByKind('file').find((n) => n.filePath === filePath);
6065 }
6066
6067 function importedFilePaths(fromFile: string): string[] {
6068 const source = fileNode(fromFile);

Callers 1

importedFilePathsFunction · 0.85

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected