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

Function nodesInFileNamed

src/resolution/import-resolver.ts:349–351  ·  view source on GitHub ↗

The file's nodes named `name`, in `getNodesInFile` order.

(filePath: string, name: string, context: ResolutionContext)

Source from the content-addressed store, hash-verified

347
348/** The file's nodes named `name`, in `getNodesInFile` order. */
349function nodesInFileNamed(filePath: string, name: string, context: ResolutionContext): Node[] {
350 return context.getNodesInFileNamed?.(filePath, name) ?? nodesNamed(context, filePath, name).filter((n) => n.name === name);
351}
352
353/**
354 * The declaration a module default-exports: what its own `export default`

Callers 3

statedDefaultExportFunction · 0.85
exportedByNameFunction · 0.85
findExportedSymbolWalkFunction · 0.85

Calls 2

nodesNamedFunction · 0.90
getNodesInFileNamedMethod · 0.80

Tested by

no test coverage detected