MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / resolveUID

Function resolveUID

src/utils/nskeyedarchiver-parser.ts:55–60  ·  view source on GitHub ↗

* Resolves a UID to its value in the $objects array

(objects: unknown[], uid: BplistUID | unknown)

Source from the content-addressed store, hash-verified

53 * Resolves a UID to its value in the $objects array
54 */
55function resolveUID(objects: unknown[], uid: BplistUID | unknown): unknown {
56 if (!isUID(uid)) return uid;
57 const index = uid.UID;
58 if (index < 0 || index >= objects.length) return undefined;
59 return objects[index];
60}
61
62/**
63 * Finds the index of a string in the $objects array

Callers 1

getValueForKeyFunction · 0.85

Calls 1

isUIDFunction · 0.85

Tested by

no test coverage detected