@elyx-code/project-logic-tree 0.0.6255 → 0.0.6257

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
@@ -32259,7 +32259,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
32259
32259
  )) {
32260
32260
  const d = this.getCounterparts();
32261
32261
  d.length && d.forEach((u) => {
32262
- if (!(t != null && t.hasRemoved(u.id))) {
32262
+ if ((!(t != null && t.hasRemoved(u.id)) || !t) && !u.deleted) {
32263
32263
  const {
32264
32264
  updated: h,
32265
32265
  removed: c,
@@ -32275,7 +32275,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
32275
32275
  }
32276
32276
  });
32277
32277
  }
32278
- if (!e && this.parent && (this.isError ? (this.parent.throws = null, t == null || t.add(this.parent, I.Updated)) : this.parent.removeOutputDeclaration(this, t)), this.isError && this.parent.type === n.ReturnStatement) {
32278
+ if (!e && this.parent && (this.isError ? (this.parent.throws = null, t == null || t.add(this.parent, I.Updated)) : this.parent.removeOutputDeclaration(this, t)), !e && this.parent && [n.BreakStatement, n.ContinueStatement].includes(
32279
+ this.parent.type
32280
+ ) && this.parent.parent && this.parent.parent.type === n.Loop && (t == null ? void 0 : t.self) === this && this.parent.parent.afterAllChildrenInitialized(t), this.isError && this.parent.type === n.ReturnStatement) {
32279
32281
  const {
32280
32282
  updated: d,
32281
32283
  added: u,
@@ -44089,7 +44091,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44089
44091
  )
44090
44092
  )) {
44091
44093
  const t = [], i = [], s = [], l = [], o = this.getUniqueReturnDeclarations(), d = this.outputsDeclarations;
44092
- return o.forEach((h, c) => {
44094
+ o.forEach((h, c) => {
44093
44095
  h.index !== c && (h.metaSync({ index: c }, e), t.push(h));
44094
44096
  }), o.forEach((h) => {
44095
44097
  const c = h.getDataType(e);
@@ -44188,18 +44190,22 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44188
44190
  );
44189
44191
  M.metaSync({ isList: !0 }, e), M.setParent(E, e), M.initChildren(e), e == null || e.add(M, I.Added), M.addSelfToProject(e), i.push(M);
44190
44192
  }
44191
- }), d.filter(
44193
+ });
44194
+ const u = d.filter(
44192
44195
  (h) => !o.find(
44193
44196
  (T) => F(h, this.project) === oe.fromReturnDeclarationToLoopOutputDeclarationName(T)
44194
44197
  )
44195
- ).forEach((h) => {
44196
- const { updated: c, removed: T } = h.remove(
44197
- {
44198
- ignoreUpstream: !1
44199
- },
44200
- e
44201
- );
44202
- t.push(...c), s.push(...T);
44198
+ );
44199
+ return console.log("outputDeclarationsToRemove", u), u.forEach((h) => {
44200
+ if (!(e != null && e.hasRemoved(h.id)) && !h.deleted) {
44201
+ const { updated: c, removed: T } = h.remove(
44202
+ {
44203
+ ignoreUpstream: !1
44204
+ },
44205
+ e
44206
+ );
44207
+ t.push(...c), s.push(...T);
44208
+ }
44203
44209
  }), e == null || e.attemptAutoclose("sync-outputs-declarations", this.id), {
44204
44210
  updated: p(t),
44205
44211
  added: p(i),
@@ -44461,7 +44467,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44461
44467
  const x = this.project.get(
44462
44468
  g[n.Loop][ee.List].inputs.list.id
44463
44469
  );
44464
- M && (!O.implements || O.implements.id !== M.id) && (O.setImplements(M, e), t.push(O));
44470
+ M && (!O.implements || O.implements.id !== M.id) && (O.setImplements(
44471
+ M,
44472
+ e
44473
+ ), t.push(O));
44465
44474
  let $ = O.getDataType(e);
44466
44475
  if (!$) {
44467
44476
  const q = {