MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / finalizeSet

Method finalizeSet

out/cli.cjs:32039–32049  ·  view source on GitHub ↗
(elements2)

Source from the content-addressed store, hash-verified

32037 }
32038 const valueType = this._def.valueType;
32039 function finalizeSet(elements2) {
32040 const parsedSet = /* @__PURE__ */ new Set();
32041 for (const element of elements2) {
32042 if (element.status === "aborted")
32043 return parseUtil_1.INVALID;
32044 if (element.status === "dirty")
32045 status.dirty();
32046 parsedSet.add(element.value);
32047 }
32048 return { status: status.value, value: parsedSet };
32049 }
32050 const elements = [...ctx.data.values()].map((item, i3) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i3)));
32051 if (ctx.common.async) {
32052 return Promise.all(elements).then((elements2) => finalizeSet(elements2));

Callers

nothing calls this directly

Calls 2

dirtyMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected