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

Function nameValue

src/resolution/frameworks/react.ts:1871–1873  ·  view source on GitHub ↗

What a name holds in a loader: what it binds there, or else a name of the route's own file.

(name: string, scope: LoaderScope)

Source from the content-addressed store, hash-verified

1869
1870/** What a name holds in a loader: what it binds there, or else a name of the route's own file. */
1871function nameValue(name: string, scope: LoaderScope): Loaded | null {
1872 return scope.has(name) ? scope.get(name) ?? null : { kind: 'name', name };
1873}
1874
1875/** A property of a value: an export of a module, or what an object literal holds under `key`. */
1876function memberOf(value: Loaded | null, key: string): Loaded | null {

Callers 2

routeRenderFunction · 0.85
valueOfFunction · 0.85

Calls 2

hasMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected