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

Function fileNode

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

Source from the content-addressed store, hash-verified

4786
4787 describe('Nix path import resolution', () => {
4788 function fileNode(filePath: string) {
4789 return cg.getNodesByKind('file').find((n) => n.filePath === filePath);
4790 }
4791
4792 function importedFilePaths(fromFile: string): string[] {
4793 const source = fileNode(fromFile);

Callers 1

importedFilePathsFunction · 0.85

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected