@elyx-code/project-logic-tree 0.0.6483 → 0.0.6485

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -54918,13 +54918,12 @@ class Fn extends hp {
54918
54918
  error: null,
54919
54919
  results: []
54920
54920
  };
54921
- if (a.sort(
54921
+ a.sort(
54922
54922
  (w, A) => w.valueOwner.index - A.valueOwner.index
54923
54923
  ), r.declaration.implementation && (y = await r.declaration.implementation(
54924
54924
  r,
54925
54925
  a
54926
- ), r.id === "6ccf056e-d850-46bc-b803-778ef9841363"))
54927
- debugger;
54926
+ ));
54928
54927
  const v = r.outputs.map(
54929
54928
  (w, A) => {
54930
54929
  const O = w == null ? void 0 : w.getDataType(null), N = ut(
@@ -54965,8 +54964,6 @@ class Fn extends hp {
54965
54964
  value: A
54966
54965
  };
54967
54966
  }
54968
- if (r.id === "6ccf056e-d850-46bc-b803-778ef9841363")
54969
- debugger;
54970
54967
  return {
54971
54968
  value: y.value,
54972
54969
  entity: r,
@@ -56246,8 +56243,6 @@ class Fn extends hp {
56246
56243
  a,
56247
56244
  r
56248
56245
  );
56249
- if (r.id === "6ccf056e-d850-46bc-b803-778ef9841363")
56250
- debugger;
56251
56246
  return await ((E = p.onBeforeEntityExecution) == null ? void 0 : E.call(
56252
56247
  p,
56253
56248
  r,
@@ -102275,28 +102270,38 @@ function Bgt(d) {
102275
102270
  r.map((y) => $B(y)).flatMap((y) => mr.includes(y == null ? void 0 : y.type) ? y.calledBy : [y])
102276
102271
  );
102277
102272
  if (a.length === 1) {
102278
- if (Ot.includes(a[0].type))
102279
- return a[0].parent.type === f.Loop ? {
102280
- ancestor: a[0],
102273
+ const y = a[0];
102274
+ if (Ot.includes(y.type))
102275
+ return y.parent.type === f.Loop ? {
102276
+ ancestor: y,
102281
102277
  callType: "loop-body"
102282
102278
  } : {
102283
- ancestor: a[0],
102279
+ ancestor: y,
102284
102280
  callType: "entry"
102285
102281
  };
102286
- if (a[0].successCalls.includes(
102287
- u
102288
- ))
102282
+ if (u === y)
102289
102283
  return {
102290
- ancestor: a[0],
102284
+ ancestor: y,
102291
102285
  callType: "success"
102292
102286
  };
102293
- if (a[0].errorCalls.includes(
102287
+ if (y.successCalls.includes(
102294
102288
  u
102295
102289
  ))
102296
102290
  return {
102297
- ancestor: a[0],
102291
+ ancestor: y,
102292
+ callType: "success"
102293
+ };
102294
+ if (y.errorCalls.includes(u))
102295
+ return {
102296
+ ancestor: y,
102298
102297
  callType: "error"
102299
102298
  };
102299
+ throw new Error(
102300
+ `getEarliestSingleCallerAncestorOfValueWriterAndItsValueReaders: Could not be resolved, single caller found, but it is not a valid caller: ${W(
102301
+ y,
102302
+ u.project
102303
+ )}`
102304
+ );
102300
102305
  }
102301
102306
  const o = a.map((y) => {
102302
102307
  if (Ot.includes(y.type))