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

Function resolveObjectLiteralAlias

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

* `UploadApi.uploadARCapture()` where `UploadApi` is a NAMESPACE OBJECT — the * default-export façade most React Native API layers are written as: * * import { uploadARCapture } from './frames' * const UploadApi = { uploadARCapture, createFolder } * export default UploadApi * * The memb

(
  container: Node,
  member: string,
  ref: UnresolvedRef,
  context: ResolutionContext
)

Source from the content-addressed store, hash-verified

4104 * through its own imports. Calls accept callable targets only.
4105 */
4106function resolveObjectLiteralAlias(
4107 container: Node,
4108 member: string,
4109 ref: UnresolvedRef,
4110 context: ResolutionContext
4111): ResolvedRef | null {
4112 if (container.kind !== 'constant' && container.kind !== 'variable') return null;
4113 if (!JS_FAMILY_FILE.test(container.filePath)) return null;
4114 const resolved = resolveObjectLiteralBinding(container, member, ref, context);
4115 return resolved ? { ...resolved, confidence: 0.9, resolvedBy: 'import' } : null;
4116}
4117
4118function resolveModuleImportToFile(
4119 ref: UnresolvedRef,

Callers 1

resolveViaImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected