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

Function declaredLoader

src/resolution/frameworks/react.ts:705–708  ·  view source on GitHub ↗

* The module a value `filePath` declares as `name` loads lazily, and the * export its loader picks (`valueLoader`) — null for a value that loads none, * undefined when the file declares no such value.

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

Source from the content-addressed store, hash-verified

703 * undefined when the file declares no such value.
704 */
705function declaredLoader(name: string, filePath: string, context: ResolutionContext): { spec: string; member: string } | null | undefined {
706 const declaration = declaredValue(name, filePath, context);
707 return declaration ? valueLoader(declaration, context) : undefined;
708}
709
710/**
711 * The modules the values `filePath` declares load lazily, with the barrels the

Callers 1

lazyModulesFunction · 0.85

Calls 2

declaredValueFunction · 0.85
valueLoaderFunction · 0.85

Tested by

no test coverage detected