@elyx-code/project-logic-tree 0.0.6179 → 0.0.6180
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 +162 -42
- package/dist/index.umd.cjs +71 -71
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30575,8 +30575,14 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
30575
30575
|
const d = C(
|
|
30576
30576
|
this.initialData.parent
|
|
30577
30577
|
), o = this.project.get(d);
|
|
30578
|
-
|
|
30579
|
-
|
|
30578
|
+
if (o)
|
|
30579
|
+
this.setParent(o, null), e.push(o);
|
|
30580
|
+
else
|
|
30581
|
+
throw new Error(
|
|
30582
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
30583
|
+
);
|
|
30584
|
+
} else
|
|
30585
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
30580
30586
|
if (this.initialData.readsValue) {
|
|
30581
30587
|
const d = C(
|
|
30582
30588
|
this.initialData.readsValue
|
|
@@ -31565,8 +31571,14 @@ Specifically for continue statements the parent needs to always be the 'loop' en
|
|
|
31565
31571
|
const d = C(
|
|
31566
31572
|
this.initialData.parent
|
|
31567
31573
|
), o = this.project.get(d);
|
|
31568
|
-
|
|
31569
|
-
|
|
31574
|
+
if (o)
|
|
31575
|
+
this.setParent(o, null), e.push(o);
|
|
31576
|
+
else
|
|
31577
|
+
throw new Error(
|
|
31578
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
31579
|
+
);
|
|
31580
|
+
} else
|
|
31581
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
31570
31582
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
31571
31583
|
const o = C(d), l = this.project.get(o);
|
|
31572
31584
|
l && (this.addEntryCaller(l, null), e.push(l));
|
|
@@ -32437,8 +32449,14 @@ Specifically for return statements the parent needs to always be the 'function-d
|
|
|
32437
32449
|
const d = C(
|
|
32438
32450
|
this.initialData.parent
|
|
32439
32451
|
), o = this.project.get(d);
|
|
32440
|
-
|
|
32441
|
-
|
|
32452
|
+
if (o)
|
|
32453
|
+
this.setParent(o, null), e.push(o);
|
|
32454
|
+
else
|
|
32455
|
+
throw new Error(
|
|
32456
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
32457
|
+
);
|
|
32458
|
+
} else
|
|
32459
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
32442
32460
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
32443
32461
|
const o = C(d), l = this.project.get(o);
|
|
32444
32462
|
l && (this.addEntryCaller(l, null), e.push(l));
|
|
@@ -34616,10 +34634,10 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
|
|
|
34616
34634
|
this.setParent(o, null), e.push(o);
|
|
34617
34635
|
else
|
|
34618
34636
|
throw new Error(
|
|
34619
|
-
|
|
34637
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
34620
34638
|
);
|
|
34621
34639
|
} else
|
|
34622
|
-
throw new Error(
|
|
34640
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
34623
34641
|
if (this.initialData.entity) {
|
|
34624
34642
|
const d = C(
|
|
34625
34643
|
this.initialData.entity
|
|
@@ -35779,8 +35797,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
35779
35797
|
const d = C(
|
|
35780
35798
|
this.initialData.parent
|
|
35781
35799
|
), o = this.project.get(d);
|
|
35782
|
-
|
|
35783
|
-
|
|
35800
|
+
if (o)
|
|
35801
|
+
this.setParent(o, null), e.push(o);
|
|
35802
|
+
else
|
|
35803
|
+
throw new Error(
|
|
35804
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
35805
|
+
);
|
|
35806
|
+
} else
|
|
35807
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
35784
35808
|
if (this.initialData.declaration) {
|
|
35785
35809
|
const d = C(
|
|
35786
35810
|
this.initialData.declaration
|
|
@@ -37982,8 +38006,14 @@ Specifically for break statements the parent needs to always be the 'loop' entit
|
|
|
37982
38006
|
const d = C(
|
|
37983
38007
|
this.initialData.parent
|
|
37984
38008
|
), o = this.project.get(d);
|
|
37985
|
-
|
|
37986
|
-
|
|
38009
|
+
if (o)
|
|
38010
|
+
this.setParent(o, null), e.push(o);
|
|
38011
|
+
else
|
|
38012
|
+
throw new Error(
|
|
38013
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
38014
|
+
);
|
|
38015
|
+
} else
|
|
38016
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
37987
38017
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
37988
38018
|
const o = C(d), l = this.project.get(o);
|
|
37989
38019
|
l && (l.addCall(this), e.push(l));
|
|
@@ -38926,8 +38956,14 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
38926
38956
|
const d = C(
|
|
38927
38957
|
this.initialData.parent
|
|
38928
38958
|
), o = this.project.get(d);
|
|
38929
|
-
|
|
38930
|
-
|
|
38959
|
+
if (o)
|
|
38960
|
+
this.setParent(o, null), e.push(o);
|
|
38961
|
+
else
|
|
38962
|
+
throw new Error(
|
|
38963
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
38964
|
+
);
|
|
38965
|
+
} else
|
|
38966
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
38931
38967
|
return {
|
|
38932
38968
|
updated: u(e),
|
|
38933
38969
|
added: u(t),
|
|
@@ -40318,8 +40354,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
40318
40354
|
const d = C(
|
|
40319
40355
|
this.initialData.parent
|
|
40320
40356
|
), o = this.project.get(d);
|
|
40321
|
-
|
|
40322
|
-
|
|
40357
|
+
if (o)
|
|
40358
|
+
this.setParent(o, null), e.push(o);
|
|
40359
|
+
else
|
|
40360
|
+
throw new Error(
|
|
40361
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
40362
|
+
);
|
|
40363
|
+
} else
|
|
40364
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
40323
40365
|
if (this.initialData.declaration) {
|
|
40324
40366
|
const d = C(
|
|
40325
40367
|
this.initialData.declaration
|
|
@@ -44100,8 +44142,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44100
44142
|
const d = C(
|
|
44101
44143
|
this.initialData.parent
|
|
44102
44144
|
), o = this.project.get(d);
|
|
44103
|
-
|
|
44104
|
-
|
|
44145
|
+
if (o)
|
|
44146
|
+
this.setParent(o, null), e.push(o);
|
|
44147
|
+
else
|
|
44148
|
+
throw new Error(
|
|
44149
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
44150
|
+
);
|
|
44151
|
+
} else
|
|
44152
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
44105
44153
|
if (this.initialData.readsValue) {
|
|
44106
44154
|
const d = C(
|
|
44107
44155
|
this.initialData.readsValue
|
|
@@ -45659,8 +45707,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
45659
45707
|
const d = C(
|
|
45660
45708
|
this.initialData.parent
|
|
45661
45709
|
), o = this.project.get(d);
|
|
45662
|
-
|
|
45663
|
-
|
|
45710
|
+
if (o)
|
|
45711
|
+
this.setParent(o, null), e.push(o);
|
|
45712
|
+
else
|
|
45713
|
+
throw new Error(
|
|
45714
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
45715
|
+
);
|
|
45716
|
+
} else
|
|
45717
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
45664
45718
|
if (this.initialData.readsValue) {
|
|
45665
45719
|
const d = C(
|
|
45666
45720
|
this.initialData.readsValue
|
|
@@ -47409,8 +47463,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
47409
47463
|
const d = C(
|
|
47410
47464
|
this.initialData.parent
|
|
47411
47465
|
), o = this.project.get(d);
|
|
47412
|
-
|
|
47413
|
-
|
|
47466
|
+
if (o)
|
|
47467
|
+
this.setParent(o, null), e.push(o);
|
|
47468
|
+
else
|
|
47469
|
+
throw new Error(
|
|
47470
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
47471
|
+
);
|
|
47472
|
+
} else
|
|
47473
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
47414
47474
|
return this.initialData.calledByEntry.forEach((d) => {
|
|
47415
47475
|
const o = C(d), l = this.project.get(o);
|
|
47416
47476
|
l && (this.addEntryCaller(l, null), e.push(l));
|
|
@@ -48577,8 +48637,14 @@ const je = class je extends tt {
|
|
|
48577
48637
|
const d = C(
|
|
48578
48638
|
this.initialData.parent
|
|
48579
48639
|
), o = this.project.get(d);
|
|
48580
|
-
|
|
48581
|
-
|
|
48640
|
+
if (o)
|
|
48641
|
+
this.setParent(o, null), e.push(o);
|
|
48642
|
+
else
|
|
48643
|
+
throw new Error(
|
|
48644
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
48645
|
+
);
|
|
48646
|
+
} else
|
|
48647
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
48582
48648
|
return {
|
|
48583
48649
|
updated: u(e),
|
|
48584
48650
|
added: u(t),
|
|
@@ -49545,8 +49611,14 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
49545
49611
|
const d = C(
|
|
49546
49612
|
this.initialData.parent
|
|
49547
49613
|
), o = this.project.get(d);
|
|
49548
|
-
|
|
49549
|
-
|
|
49614
|
+
if (o)
|
|
49615
|
+
this.setParent(o, null), e.push(o);
|
|
49616
|
+
else
|
|
49617
|
+
throw new Error(
|
|
49618
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
49619
|
+
);
|
|
49620
|
+
} else
|
|
49621
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
49550
49622
|
if (this.initialData.declaration) {
|
|
49551
49623
|
const d = C(
|
|
49552
49624
|
this.initialData.declaration
|
|
@@ -51005,8 +51077,14 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
51005
51077
|
), o = this.project.get(
|
|
51006
51078
|
d
|
|
51007
51079
|
);
|
|
51008
|
-
|
|
51009
|
-
|
|
51080
|
+
if (o)
|
|
51081
|
+
this.setParent(o, null), e.push(o);
|
|
51082
|
+
else
|
|
51083
|
+
throw new Error(
|
|
51084
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
51085
|
+
);
|
|
51086
|
+
} else
|
|
51087
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
51010
51088
|
if (this.initialData.readsValue) {
|
|
51011
51089
|
const d = C(
|
|
51012
51090
|
this.initialData.readsValue
|
|
@@ -51963,16 +52041,28 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
51963
52041
|
), o = this.project.get(
|
|
51964
52042
|
d
|
|
51965
52043
|
);
|
|
51966
|
-
|
|
51967
|
-
|
|
52044
|
+
if (o)
|
|
52045
|
+
this.setParent(o, null), e.push(o);
|
|
52046
|
+
else
|
|
52047
|
+
throw new Error(
|
|
52048
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
52049
|
+
);
|
|
52050
|
+
} else
|
|
52051
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
51968
52052
|
if (this.initialData.declaration) {
|
|
51969
52053
|
const d = C(
|
|
51970
52054
|
this.initialData.declaration
|
|
51971
52055
|
), o = this.project.get(
|
|
51972
52056
|
d
|
|
51973
52057
|
);
|
|
51974
|
-
|
|
51975
|
-
|
|
52058
|
+
if (o)
|
|
52059
|
+
this.setDeclaration(o), e.push(o);
|
|
52060
|
+
else
|
|
52061
|
+
throw new Error(
|
|
52062
|
+
`${this.type} with id '${this.id}' has a 'declaration' reference '${d}' that isn't found in the project`
|
|
52063
|
+
);
|
|
52064
|
+
} else
|
|
52065
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'declaration'`);
|
|
51976
52066
|
return {
|
|
51977
52067
|
updated: u(e),
|
|
51978
52068
|
added: u(t),
|
|
@@ -52885,8 +52975,14 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
52885
52975
|
), o = this.project.get(
|
|
52886
52976
|
d
|
|
52887
52977
|
);
|
|
52888
|
-
|
|
52889
|
-
|
|
52978
|
+
if (o)
|
|
52979
|
+
this.setParent(o, null), e.push(o);
|
|
52980
|
+
else
|
|
52981
|
+
throw new Error(
|
|
52982
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
52983
|
+
);
|
|
52984
|
+
} else
|
|
52985
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
52890
52986
|
if (this.initialData.implements) {
|
|
52891
52987
|
const d = C(this.initialData.implements), o = this.project.get(
|
|
52892
52988
|
d
|
|
@@ -53848,8 +53944,14 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
53848
53944
|
const d = C(
|
|
53849
53945
|
this.initialData.parent
|
|
53850
53946
|
), o = this.project.get(d);
|
|
53851
|
-
|
|
53852
|
-
|
|
53947
|
+
if (o)
|
|
53948
|
+
this.setParent(o, null), e.push(o);
|
|
53949
|
+
else
|
|
53950
|
+
throw new Error(
|
|
53951
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
53952
|
+
);
|
|
53953
|
+
} else
|
|
53954
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
53853
53955
|
if (this.initialData.valueAsTypeList && Array.isArray(this.initialData.valueAsTypeList))
|
|
53854
53956
|
this.valueAsTypeList = this.valueAsTypeList || [], this.initialData.valueAsTypeList.forEach((d) => {
|
|
53855
53957
|
const o = C(d), l = this.project.get(o);
|
|
@@ -54674,8 +54776,14 @@ ${Fr(
|
|
|
54674
54776
|
const d = C(
|
|
54675
54777
|
this.initialData.parent
|
|
54676
54778
|
), o = this.project.get(d);
|
|
54677
|
-
|
|
54678
|
-
|
|
54779
|
+
if (o)
|
|
54780
|
+
this.setParent(o, null), e.push(o);
|
|
54781
|
+
else
|
|
54782
|
+
throw new Error(
|
|
54783
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
54784
|
+
);
|
|
54785
|
+
} else
|
|
54786
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
54679
54787
|
return {
|
|
54680
54788
|
updated: u(e),
|
|
54681
54789
|
added: u(t),
|
|
@@ -57997,8 +58105,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
57997
58105
|
const d = C(
|
|
57998
58106
|
this.initialData.parent
|
|
57999
58107
|
), o = this.project.get(d);
|
|
58000
|
-
|
|
58001
|
-
|
|
58108
|
+
if (o)
|
|
58109
|
+
this.setParent(o, null), e.push(o);
|
|
58110
|
+
else
|
|
58111
|
+
throw new Error(
|
|
58112
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
58113
|
+
);
|
|
58114
|
+
} else
|
|
58115
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
58002
58116
|
if (this.initialData.declaration) {
|
|
58003
58117
|
const d = C(
|
|
58004
58118
|
this.initialData.declaration
|
|
@@ -62140,8 +62254,14 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
62140
62254
|
const d = C(
|
|
62141
62255
|
this.initialData.parent
|
|
62142
62256
|
), o = this.project.get(d);
|
|
62143
|
-
|
|
62144
|
-
|
|
62257
|
+
if (o)
|
|
62258
|
+
this.setParent(o, null), e.push(o);
|
|
62259
|
+
else
|
|
62260
|
+
throw new Error(
|
|
62261
|
+
`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`
|
|
62262
|
+
);
|
|
62263
|
+
} else
|
|
62264
|
+
throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
|
|
62145
62265
|
return this.initialData.extends.forEach((d) => {
|
|
62146
62266
|
const o = C(d), l = this.project.get(o);
|
|
62147
62267
|
l && (this.addExtension(l), l.type !== n.BuiltInBaseEntity && e.push(l));
|