@elyx-code/project-logic-tree 0.0.6828 → 0.0.6829
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.cjs +9 -9
- package/dist/index.d.ts +2 -1
- package/dist/index.js +103 -101
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78525,7 +78525,7 @@ class Re {
|
|
|
78525
78525
|
this.id = p.id, this.message = p.message, this.severity = p.severity, this.code = p.code;
|
|
78526
78526
|
}
|
|
78527
78527
|
toEntityError(p) {
|
|
78528
|
-
return this.code in De ? new
|
|
78528
|
+
return this.code in De ? new Wi({
|
|
78529
78529
|
id: this.id,
|
|
78530
78530
|
message: this.message,
|
|
78531
78531
|
severity: this.severity,
|
|
@@ -78534,7 +78534,7 @@ class Re {
|
|
|
78534
78534
|
}) : null;
|
|
78535
78535
|
}
|
|
78536
78536
|
}
|
|
78537
|
-
class
|
|
78537
|
+
class Wi {
|
|
78538
78538
|
constructor(p) {
|
|
78539
78539
|
// A deterministic error code, so if the same error occurs again in a subsequent validation run,
|
|
78540
78540
|
// it can be identified as the same problem
|
|
@@ -78559,7 +78559,7 @@ class Si {
|
|
|
78559
78559
|
this.id = p.id, this.message = p.message, this.severity = p.severity, this.code = p.code, this.entity = p.entity, this.firstRelationship = p.firstRelationship, this.secondRelationship = p.secondRelationship;
|
|
78560
78560
|
}
|
|
78561
78561
|
clone() {
|
|
78562
|
-
return new
|
|
78562
|
+
return new Wi({
|
|
78563
78563
|
id: this.id,
|
|
78564
78564
|
message: this.message,
|
|
78565
78565
|
severity: this.severity,
|
|
@@ -78582,7 +78582,7 @@ function AI(l) {
|
|
|
78582
78582
|
}
|
|
78583
78583
|
function Nt(l) {
|
|
78584
78584
|
const p = l.entity.errors.find((r) => r.id === l.id);
|
|
78585
|
-
return p ? { new: !1, error: p } : { new: !0, error: new
|
|
78585
|
+
return p ? { new: !1, error: p } : { new: !0, error: new Wi(l) };
|
|
78586
78586
|
}
|
|
78587
78587
|
function t3i(l, p) {
|
|
78588
78588
|
const i = /* @__PURE__ */ new Map();
|
|
@@ -78671,20 +78671,20 @@ function ID(l) {
|
|
|
78671
78671
|
return !0;
|
|
78672
78672
|
}
|
|
78673
78673
|
function uv(l) {
|
|
78674
|
-
return l.replace(/['"`]/g, "").replace(/[:(),.;?!\[\]{}<>]/g, " ").trim();
|
|
78674
|
+
return (l || "").replace(/['"`]/g, "").replace(/[:(),.;?!\[\]{}<>]/g, " ").trim();
|
|
78675
78675
|
}
|
|
78676
78676
|
function ar(l) {
|
|
78677
|
-
const i = uv(l).split(/[\s-]+/).filter((e) => e.length > 0);
|
|
78677
|
+
const i = uv(l || "").split(/[\s-]+/).filter((e) => e.length > 0);
|
|
78678
78678
|
if (i.length === 0)
|
|
78679
78679
|
return "";
|
|
78680
78680
|
const r = i[0], a = r[0].toLowerCase() + r.slice(1), c = i.slice(1).map((e) => e[0].toUpperCase() + e.slice(1));
|
|
78681
78681
|
return [a, ...c].join("");
|
|
78682
78682
|
}
|
|
78683
78683
|
function xy(l) {
|
|
78684
|
-
return uv(l).split(/[\s-]+/).filter((r) => r.length > 0).map((r) => r[0].toUpperCase() + r.slice(1)).join("");
|
|
78684
|
+
return uv(l || "").split(/[\s-]+/).filter((r) => r.length > 0).map((r) => r[0].toUpperCase() + r.slice(1)).join("");
|
|
78685
78685
|
}
|
|
78686
78686
|
function udi(l) {
|
|
78687
|
-
const p = uv(l).trim();
|
|
78687
|
+
const p = uv(l || "").trim();
|
|
78688
78688
|
if (!p)
|
|
78689
78689
|
return "";
|
|
78690
78690
|
const i = p.replace(/[\s_-]+/g, " ").split(" ").filter(Boolean), r = [];
|
|
@@ -78697,7 +78697,7 @@ function udi(l) {
|
|
|
78697
78697
|
return r.join("-");
|
|
78698
78698
|
}
|
|
78699
78699
|
function r3i(l) {
|
|
78700
|
-
const p = uv(l).trim();
|
|
78700
|
+
const p = uv(l || "").trim();
|
|
78701
78701
|
if (!p)
|
|
78702
78702
|
return "";
|
|
78703
78703
|
const i = p.replace(/[\s_-]+/g, " ").split(" ").filter(Boolean), r = [];
|
|
@@ -78713,7 +78713,7 @@ function gD(l) {
|
|
|
78713
78713
|
return udi(l).toLowerCase();
|
|
78714
78714
|
}
|
|
78715
78715
|
function Uh(l) {
|
|
78716
|
-
const p = uv(l).trim();
|
|
78716
|
+
const p = uv(l || "").trim();
|
|
78717
78717
|
if (!p)
|
|
78718
78718
|
return "";
|
|
78719
78719
|
let i = p.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1 $2").replace(/([a-z0-9])([A-Z][a-z0-9]*)/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
|
|
@@ -102691,7 +102691,7 @@ function Ru(l, p, i, r) {
|
|
|
102691
102691
|
) : ((T = h.implements) == null ? void 0 : T.id) === ((b = c.implements) == null ? void 0 : b.id);
|
|
102692
102692
|
});
|
|
102693
102693
|
if (e) {
|
|
102694
|
-
const h = new
|
|
102694
|
+
const h = new Wi({
|
|
102695
102695
|
id: c.id + "--" + e.id + "--" + r,
|
|
102696
102696
|
message: `Entity of type ${c.type} named "${c.name}" with id "${c.id}" overrides a base ${e.type} ${e.name} with id "${e.id}" that has the same name`,
|
|
102697
102697
|
severity: he.Error,
|
|
@@ -102702,7 +102702,7 @@ function Ru(l, p, i, r) {
|
|
|
102702
102702
|
a.push(h);
|
|
102703
102703
|
}
|
|
102704
102704
|
if (f) {
|
|
102705
|
-
const h = new
|
|
102705
|
+
const h = new Wi({
|
|
102706
102706
|
id: c.id + "--" + f.id + "--" + i,
|
|
102707
102707
|
message: `Entity of type ${c.type} named "${c.name}" with id "${c.id}" overrides a base ${f.type} ${f.name} with id "${f.id}" that implements the same base descriptor`,
|
|
102708
102708
|
severity: he.Error,
|
|
@@ -102723,7 +102723,7 @@ function Ru(l, p, i, r) {
|
|
|
102723
102723
|
) : ((b = T.implements) == null ? void 0 : b.id) === ((E = c.implements) == null ? void 0 : E.id);
|
|
102724
102724
|
});
|
|
102725
102725
|
if (e) {
|
|
102726
|
-
const T = new
|
|
102726
|
+
const T = new Wi({
|
|
102727
102727
|
id: e.id + "--" + c.id + "--" + r,
|
|
102728
102728
|
message: `Entity of type ${e.type} named "${e.name}" with id "${e.id}" overrides a base entity ${c.name} with id "${c.id}" that has the same name`,
|
|
102729
102729
|
severity: he.Error,
|
|
@@ -102734,7 +102734,7 @@ function Ru(l, p, i, r) {
|
|
|
102734
102734
|
a.push(T);
|
|
102735
102735
|
}
|
|
102736
102736
|
if (f) {
|
|
102737
|
-
const T = new
|
|
102737
|
+
const T = new Wi({
|
|
102738
102738
|
id: f.id + "--" + c.id + "--" + i,
|
|
102739
102739
|
message: `Entity of type ${f.type} named "${f.name}" with id "${f.id}" overrides a base entity ${c.name} with id "${c.id}" that implements the same base ${Array.isArray(
|
|
102740
102740
|
f == null ? void 0 : f.implements
|
|
@@ -103287,7 +103287,7 @@ function BF(l, p) {
|
|
|
103287
103287
|
override: p
|
|
103288
103288
|
};
|
|
103289
103289
|
if (r.includes(" ")) {
|
|
103290
|
-
const a = new
|
|
103290
|
+
const a = new Wi({
|
|
103291
103291
|
id: l.id + "--string-value-must-not-have-spaces",
|
|
103292
103292
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value cannot contain spaces.`,
|
|
103293
103293
|
severity: he.Error,
|
|
@@ -103314,7 +103314,7 @@ function mui(l, p) {
|
|
|
103314
103314
|
override: p
|
|
103315
103315
|
};
|
|
103316
103316
|
if (r.includes(" ")) {
|
|
103317
|
-
const a = new
|
|
103317
|
+
const a = new Wi({
|
|
103318
103318
|
id: l.id + "--string-value-must-not-have-spaces",
|
|
103319
103319
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value cannot contain spaces or dashes.`,
|
|
103320
103320
|
severity: he.Error,
|
|
@@ -103324,7 +103324,7 @@ function mui(l, p) {
|
|
|
103324
103324
|
i.push(a);
|
|
103325
103325
|
}
|
|
103326
103326
|
if (r.includes("-")) {
|
|
103327
|
-
const a = new
|
|
103327
|
+
const a = new Wi({
|
|
103328
103328
|
id: l.id + "--string-value-must-not-have-dashes",
|
|
103329
103329
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value cannot contain spaces or dashes.`,
|
|
103330
103330
|
severity: he.Error,
|
|
@@ -103342,7 +103342,7 @@ var Vd = /* @__PURE__ */ ((l) => (l.StatusCodeMustBeNumber = "status-code-must-b
|
|
|
103342
103342
|
function Tui(l, p) {
|
|
103343
103343
|
const i = [];
|
|
103344
103344
|
if (typeof p != "number") {
|
|
103345
|
-
const r = new
|
|
103345
|
+
const r = new Wi({
|
|
103346
103346
|
id: l.id + "--status-code-must-be-number",
|
|
103347
103347
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value must be a number.`,
|
|
103348
103348
|
severity: he.Error,
|
|
@@ -103355,7 +103355,7 @@ function Tui(l, p) {
|
|
|
103355
103355
|
};
|
|
103356
103356
|
}
|
|
103357
103357
|
if (p < 100) {
|
|
103358
|
-
const r = new
|
|
103358
|
+
const r = new Wi({
|
|
103359
103359
|
id: l.id + "--status-code-must-be-between-100-and-599",
|
|
103360
103360
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value must be a number between 100 and 599.`,
|
|
103361
103361
|
severity: he.Error,
|
|
@@ -103365,7 +103365,7 @@ function Tui(l, p) {
|
|
|
103365
103365
|
i.push(r);
|
|
103366
103366
|
}
|
|
103367
103367
|
if (p > 599) {
|
|
103368
|
-
const r = new
|
|
103368
|
+
const r = new Wi({
|
|
103369
103369
|
id: l.id + "--status-code-must-be-between-100-and-599",
|
|
103370
103370
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value must be a number between 100 and 599.`,
|
|
103371
103371
|
severity: he.Error,
|
|
@@ -103443,7 +103443,7 @@ class vui extends Lu {
|
|
|
103443
103443
|
const P = _.getDefaultValue();
|
|
103444
103444
|
return (P == null ? void 0 : P.value) || "";
|
|
103445
103445
|
}).includes(T)) {
|
|
103446
|
-
const I = new
|
|
103446
|
+
const I = new Wi({
|
|
103447
103447
|
id: h.id + "--" + Ra.MustBeUniqueAmongSameEntities,
|
|
103448
103448
|
message: `Entity of type ${h.type} with id "${h.id}" has an invalid value "${T}". The value must be unique among all endpoint paths.`,
|
|
103449
103449
|
severity: he.Error,
|
|
@@ -103605,7 +103605,7 @@ var ys = /* @__PURE__ */ ((l) => (l.UUIDMustBeString = "uuid-must-be-string", l.
|
|
|
103605
103605
|
function x3i(l, p) {
|
|
103606
103606
|
const i = [];
|
|
103607
103607
|
if (typeof p != "string") {
|
|
103608
|
-
const a = new
|
|
103608
|
+
const a = new Wi({
|
|
103609
103609
|
id: l.id + "--uuid-must-be-string",
|
|
103610
103610
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value must be text.`,
|
|
103611
103611
|
severity: he.Error,
|
|
@@ -103624,7 +103624,7 @@ function x3i(l, p) {
|
|
|
103624
103624
|
override: p
|
|
103625
103625
|
};
|
|
103626
103626
|
if (!sF(p)) {
|
|
103627
|
-
const a = new
|
|
103627
|
+
const a = new Wi({
|
|
103628
103628
|
id: l.id + "--uuid-must-be-valid-format",
|
|
103629
103629
|
message: `Entity of type ${l.type} with id "${l.id}" has an invalid value "${p}". The value must be a valid UUID format. Eg: "123e4567-e89b-12d3-a456-426614174000".`,
|
|
103630
103630
|
severity: he.Error,
|
|
@@ -125144,78 +125144,80 @@ function Q3i(l) {
|
|
|
125144
125144
|
}
|
|
125145
125145
|
function jK(l) {
|
|
125146
125146
|
switch (l) {
|
|
125147
|
-
case
|
|
125147
|
+
case Zi.CallIsInHigherScope:
|
|
125148
125148
|
return "In a higher scope";
|
|
125149
|
-
case
|
|
125149
|
+
case Zi.CallIsInLowerScope:
|
|
125150
125150
|
return "In a lower scope";
|
|
125151
|
-
case
|
|
125151
|
+
case Zi.CallerIsInHigherScope:
|
|
125152
125152
|
return "Caller is in a higher scope";
|
|
125153
|
-
case
|
|
125153
|
+
case Zi.CallerIsInLowerScope:
|
|
125154
125154
|
return "Caller is in a lower scope";
|
|
125155
|
-
case
|
|
125155
|
+
case Zi.CannotBeCalledByChildren:
|
|
125156
125156
|
return "Cannot be called by children";
|
|
125157
|
-
case
|
|
125157
|
+
case Zi.CannotCallAncestor:
|
|
125158
125158
|
return "Cannot call ancestor";
|
|
125159
|
-
case
|
|
125159
|
+
case Zi.CannotConnectToItself:
|
|
125160
125160
|
return "Cannot connect to itself";
|
|
125161
|
-
case
|
|
125161
|
+
case Zi.CannotReadMoreThanOneValue:
|
|
125162
125162
|
return "Cannot read more than one value";
|
|
125163
|
-
case
|
|
125163
|
+
case Zi.CannotReadValueFromChildren:
|
|
125164
125164
|
return "Cannot read value from entities executed after itself";
|
|
125165
|
-
case
|
|
125165
|
+
case Zi.CannotWriteValueToAncestor:
|
|
125166
125166
|
return "Cannot write value to ancestor";
|
|
125167
125167
|
case IA.Suggestion:
|
|
125168
125168
|
return "Suggestion";
|
|
125169
|
-
case
|
|
125169
|
+
case Zi.ContinueOrBreakStatementCalledFromOutsideLoop:
|
|
125170
125170
|
return "Cannot be called from outside loop";
|
|
125171
|
-
case
|
|
125171
|
+
case Zi.DataTypesNotCompatible:
|
|
125172
125172
|
return "Data types not compatible";
|
|
125173
|
-
case
|
|
125173
|
+
case Zi.ElementInLoopBodyCallingOutsideLoop:
|
|
125174
125174
|
return "Cannot call outside loop";
|
|
125175
|
-
case
|
|
125175
|
+
case Zi.ErrorOututMapCannotBeConnectedToParentSuccessBranchCallees:
|
|
125176
125176
|
return "Error cannot be connected to success branch";
|
|
125177
|
-
case
|
|
125177
|
+
case Zi.ExecutionsAlreadyConnected:
|
|
125178
125178
|
return "Executions already connected";
|
|
125179
|
-
case
|
|
125179
|
+
case Zi.IsNotValueReadingEntity:
|
|
125180
125180
|
return "Is not a value reading entity";
|
|
125181
|
-
case
|
|
125181
|
+
case Zi.IsNotValueWrittingEntity:
|
|
125182
125182
|
return "Is not a value writting entity";
|
|
125183
|
-
case
|
|
125183
|
+
case Zi.NotInScope:
|
|
125184
125184
|
return "Not in a compatible scope";
|
|
125185
|
-
case
|
|
125185
|
+
case Zi.OtherIncompatibleScopeReason:
|
|
125186
125186
|
return "Incompatible scope";
|
|
125187
|
-
case
|
|
125187
|
+
case Zi.SiblingInternalCallAlreadyUsedInParentVariable:
|
|
125188
125188
|
return "Internal call already used in parent variable";
|
|
125189
|
-
case
|
|
125189
|
+
case Zi.SuccessOutputMapCannotBeConnectedToParentErrorBranchCallees:
|
|
125190
125190
|
return "Success cannot be connected to error branch";
|
|
125191
|
-
case
|
|
125191
|
+
case Zi.ValuesAlreadyConnected:
|
|
125192
125192
|
return "Values already connected";
|
|
125193
|
-
case
|
|
125193
|
+
case Zi.CannotInteractWithInputInVariableWithInternalCalls:
|
|
125194
125194
|
return "Cannot interact with input in variable with internal calls";
|
|
125195
|
-
case
|
|
125195
|
+
case Zi.CannotInteractWithOutputInVariableWithInternalCalls:
|
|
125196
125196
|
return "Cannot interact with output in variable with internal calls";
|
|
125197
125197
|
case IA.CanvasGloballyDisabled:
|
|
125198
125198
|
return "Canvas is globally disabled";
|
|
125199
|
-
case
|
|
125199
|
+
case Zi.PropertyIsConstantItsValueCantBeReset:
|
|
125200
125200
|
return "Property is constant, its value can't be reset";
|
|
125201
|
-
case
|
|
125201
|
+
case Zi.CannotWriteValueOfGlobalVariableDeclaration:
|
|
125202
125202
|
return "Cannot write value of global variable declaration";
|
|
125203
|
-
case
|
|
125203
|
+
case Zi.CannotReSetValueOfConstantVariable:
|
|
125204
125204
|
return "Cannot re-set value of constant variable";
|
|
125205
|
-
case
|
|
125205
|
+
case Zi.CannotConnectToOwnNode:
|
|
125206
125206
|
return "It is part of the same node";
|
|
125207
|
-
case
|
|
125207
|
+
case Zi.CalledByErrorMustBePassThroughCallable:
|
|
125208
125208
|
return "Called by error must be pass-through callable";
|
|
125209
|
-
case
|
|
125209
|
+
case Zi.CannotChangeScopeBecauseItCallsOtherEntities:
|
|
125210
125210
|
return "Cannot change scope because it calls other entities in its current scope";
|
|
125211
|
-
case
|
|
125211
|
+
case Zi.CannotChangeScopeBecauseItIsCalledByOtherEntities:
|
|
125212
125212
|
return "Cannot change scope because it is called by other entities in its current scope";
|
|
125213
|
-
case
|
|
125213
|
+
case Zi.VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage:
|
|
125214
125214
|
return "Variable declaration cannot be moved to lower scope because its instances are used in the current or different incompatible lower scope";
|
|
125215
|
-
case
|
|
125215
|
+
case Zi.CalledBySourceMustBeCallerEntity:
|
|
125216
125216
|
return "Not a caller type";
|
|
125217
|
+
case Zi.CalledByErrorCannotBeConnectedToEntitiesCalledByOwnSuccessBranch:
|
|
125218
|
+
return "Already connected to the success branch from a common origin caller";
|
|
125217
125219
|
default:
|
|
125218
|
-
return Uh(l);
|
|
125220
|
+
return Uh(l || "");
|
|
125219
125221
|
}
|
|
125220
125222
|
}
|
|
125221
125223
|
function eqi(l, p) {
|
|
@@ -133382,9 +133384,9 @@ var k3 = {};
|
|
|
133382
133384
|
const a = (c) => [...new TextEncoder().encode(c)];
|
|
133383
133385
|
l.parseTextBlob = a;
|
|
133384
133386
|
})(k3);
|
|
133385
|
-
var
|
|
133386
|
-
Object.defineProperty(
|
|
133387
|
-
|
|
133387
|
+
var Si = {};
|
|
133388
|
+
Object.defineProperty(Si, "__esModule", { value: !0 });
|
|
133389
|
+
Si.createArrayDataTypeChain = Si.createListExpr = Si.createParenExpr = Si.createAlias = Si.createIdentifier = Si.createKeyword = Si.createPostfixOpExpr = Si.createPrefixOpExpr = Si.createFuncCall = Si.createMemberExprChain = Si.createJoinExprChain = Si.createCompoundSelectStmt = Si.createCompoundSelectStmtChain = Si.createCastOperatorExprChain = Si.createBinaryExpr = Si.createBinaryExprChain = Si.createStringConcatExprChain = void 0;
|
|
133388
133390
|
const ms = Pl, Abi = Av, Ibi = sa, xI = (l) => {
|
|
133389
133391
|
if (!l.left.range || !l.right.range)
|
|
133390
133392
|
return l;
|
|
@@ -133394,11 +133396,11 @@ const ms = Pl, Abi = Av, Ibi = sa, xI = (l) => {
|
|
|
133394
133396
|
function gbi(l, p) {
|
|
133395
133397
|
return p.reduce((i, [r, a]) => xI(K_(i, r, "", [], a)), l);
|
|
133396
133398
|
}
|
|
133397
|
-
|
|
133399
|
+
Si.createStringConcatExprChain = gbi;
|
|
133398
133400
|
function Rbi(l, p) {
|
|
133399
133401
|
return p.reduce((i, [r, a, c, e]) => xI(K_(i, r, a, c, e)), l);
|
|
133400
133402
|
}
|
|
133401
|
-
|
|
133403
|
+
Si.createBinaryExprChain = Rbi;
|
|
133402
133404
|
function K_(l, p, i, r, a) {
|
|
133403
133405
|
return {
|
|
133404
133406
|
type: "binary_expr",
|
|
@@ -133407,11 +133409,11 @@ function K_(l, p, i, r, a) {
|
|
|
133407
133409
|
right: (0, ms.leading)(a, r)
|
|
133408
133410
|
};
|
|
133409
133411
|
}
|
|
133410
|
-
|
|
133412
|
+
Si.createBinaryExpr = K_;
|
|
133411
133413
|
function wbi(l, p) {
|
|
133412
133414
|
return p.reduce((i, [r, a, c, e]) => xI(Dbi(i, r, a, c, e)), l);
|
|
133413
133415
|
}
|
|
133414
|
-
|
|
133416
|
+
Si.createCastOperatorExprChain = wbi;
|
|
133415
133417
|
function Dbi(l, p, i, r, a) {
|
|
133416
133418
|
return {
|
|
133417
133419
|
type: "cast_operator_expr",
|
|
@@ -133423,7 +133425,7 @@ function Dbi(l, p, i, r, a) {
|
|
|
133423
133425
|
function Cbi(l, p) {
|
|
133424
133426
|
return p.reduce((i, [r, a, c, e]) => xI(F3(i, r, a, c, e)), l);
|
|
133425
133427
|
}
|
|
133426
|
-
|
|
133428
|
+
Si.createCompoundSelectStmtChain = Cbi;
|
|
133427
133429
|
function F3(l, p, i, r, a) {
|
|
133428
133430
|
return {
|
|
133429
133431
|
type: "compound_select_stmt",
|
|
@@ -133432,7 +133434,7 @@ function F3(l, p, i, r, a) {
|
|
|
133432
133434
|
right: (0, ms.leading)(a, r)
|
|
133433
133435
|
};
|
|
133434
133436
|
}
|
|
133435
|
-
|
|
133437
|
+
Si.createCompoundSelectStmt = F3;
|
|
133436
133438
|
const Obi = (l) => {
|
|
133437
133439
|
var p, i;
|
|
133438
133440
|
if (!l.left.range)
|
|
@@ -133467,7 +133469,7 @@ function Vbi(l, p) {
|
|
|
133467
133469
|
}
|
|
133468
133470
|
}, l);
|
|
133469
133471
|
}
|
|
133470
|
-
|
|
133472
|
+
Si.createJoinExprChain = Vbi;
|
|
133471
133473
|
function Pbi(l) {
|
|
133472
133474
|
return l[1] === ".";
|
|
133473
133475
|
}
|
|
@@ -133477,7 +133479,7 @@ function xbi(l) {
|
|
|
133477
133479
|
function Nbi(l, p) {
|
|
133478
133480
|
return p.reduce((i, r) => xbi(r) ? Mbi(K3(i, r)) : Lbi($bi(i, r)), l);
|
|
133479
133481
|
}
|
|
133480
|
-
|
|
133482
|
+
Si.createMemberExprChain = Nbi;
|
|
133481
133483
|
function $bi(l, p) {
|
|
133482
133484
|
if (Pbi(p)) {
|
|
133483
133485
|
const [i, r, a, c] = p;
|
|
@@ -133504,7 +133506,7 @@ function K3(l, [p, i]) {
|
|
|
133504
133506
|
over: i.over
|
|
133505
133507
|
};
|
|
133506
133508
|
}
|
|
133507
|
-
|
|
133509
|
+
Si.createFuncCall = K3;
|
|
133508
133510
|
const Lbi = (l) => {
|
|
133509
133511
|
if (!l.object.range || !l.property.range)
|
|
133510
133512
|
return l;
|
|
@@ -133526,7 +133528,7 @@ function Gbi(l, p) {
|
|
|
133526
133528
|
expr: p
|
|
133527
133529
|
};
|
|
133528
133530
|
}
|
|
133529
|
-
|
|
133531
|
+
Si.createPrefixOpExpr = Gbi;
|
|
133530
133532
|
function Bbi(l, p) {
|
|
133531
133533
|
return {
|
|
133532
133534
|
type: "postfix_op_expr",
|
|
@@ -133534,40 +133536,40 @@ function Bbi(l, p) {
|
|
|
133534
133536
|
operator: l
|
|
133535
133537
|
};
|
|
133536
133538
|
}
|
|
133537
|
-
|
|
133539
|
+
Si.createPostfixOpExpr = Bbi;
|
|
133538
133540
|
const Ubi = (l) => ({
|
|
133539
133541
|
type: "keyword",
|
|
133540
133542
|
text: l,
|
|
133541
133543
|
name: l.toUpperCase()
|
|
133542
133544
|
});
|
|
133543
|
-
|
|
133545
|
+
Si.createKeyword = Ubi;
|
|
133544
133546
|
const jbi = (l, p) => ({
|
|
133545
133547
|
type: "identifier",
|
|
133546
133548
|
text: l,
|
|
133547
133549
|
name: p
|
|
133548
133550
|
});
|
|
133549
|
-
|
|
133551
|
+
Si.createIdentifier = jbi;
|
|
133550
133552
|
const kbi = (l, p) => {
|
|
133551
133553
|
if (!p)
|
|
133552
133554
|
return l;
|
|
133553
133555
|
const [i, r] = p;
|
|
133554
133556
|
return Object.assign({ type: "alias", expr: (0, ms.trailing)(l, i) }, r);
|
|
133555
133557
|
};
|
|
133556
|
-
|
|
133558
|
+
Si.createAlias = kbi;
|
|
133557
133559
|
const Fbi = (l, p, i) => ({
|
|
133558
133560
|
type: "paren_expr",
|
|
133559
133561
|
expr: (0, ms.surrounding)(l, p, i)
|
|
133560
133562
|
});
|
|
133561
|
-
|
|
133563
|
+
Si.createParenExpr = Fbi;
|
|
133562
133564
|
const Kbi = (l, p) => ({
|
|
133563
133565
|
type: "list_expr",
|
|
133564
133566
|
items: (0, Abi.readCommaSepList)(l, p)
|
|
133565
133567
|
});
|
|
133566
|
-
|
|
133568
|
+
Si.createListExpr = Kbi;
|
|
133567
133569
|
function qbi(l, p) {
|
|
133568
133570
|
return p.reduce((i, [r, a]) => Zbi(Sbi(i, r, a)), l);
|
|
133569
133571
|
}
|
|
133570
|
-
|
|
133572
|
+
Si.createArrayDataTypeChain = qbi;
|
|
133571
133573
|
const Zbi = (l) => {
|
|
133572
133574
|
if (!l.dataType.range || !l.bounds.range)
|
|
133573
133575
|
return l;
|
|
@@ -133653,7 +133655,7 @@ const GG = $I, nEi = (l) => (0, GG.getOptions)().includeRange ? Object.assign(Ob
|
|
|
133653
133655
|
MI.loc = nEi;
|
|
133654
133656
|
Object.defineProperty(Gy, "__esModule", { value: !0 });
|
|
133655
133657
|
Gy.PeggySyntaxError = Gy.parse = void 0;
|
|
133656
|
-
const cy = sa, Ww = Av, fy = k3, F =
|
|
133658
|
+
const cy = sa, Ww = Av, fy = k3, F = Si, Oo = Pl, $ = NI, In = $I, BG = LI, V = MI, q_ = (
|
|
133657
133659
|
// Generated by Peggy 3.0.2.
|
|
133658
133660
|
//
|
|
133659
133661
|
// https://peggyjs.org/
|
|
@@ -174941,7 +174943,7 @@ function ha(l) {
|
|
|
174941
174943
|
const p = [];
|
|
174942
174944
|
if (l.parent === l.project)
|
|
174943
174945
|
!l.calledBy.length && l.type !== d.VariableDeclaration && p.push(
|
|
174944
|
-
new
|
|
174946
|
+
new Wi({
|
|
174945
174947
|
id: `${l.id}--${ve.DisconnectedCallableEntity}`,
|
|
174946
174948
|
code: ve.DisconnectedCallableEntity,
|
|
174947
174949
|
severity: he.Warning,
|
|
@@ -174975,7 +174977,7 @@ This '${l.type}' is blocked `;
|
|
|
174975
174977
|
l.project
|
|
174976
174978
|
)}" with id "${f.id}" that calls a '${h.type}' entity with id "${h.id}"`, e < i.blocks.length - 1 ? a += ", " : a += ".";
|
|
174977
174979
|
}), p.push(
|
|
174978
|
-
new
|
|
174980
|
+
new Wi({
|
|
174979
174981
|
id: `${l.id}--${De.UnreachableEntity}`,
|
|
174980
174982
|
code: De.UnreachableEntity,
|
|
174981
174983
|
severity: he.Warning,
|
|
@@ -179843,7 +179845,7 @@ function I6(l) {
|
|
|
179843
179845
|
function bgi(l, p) {
|
|
179844
179846
|
const i = [], r = ea(p);
|
|
179845
179847
|
if (!p.abstract) {
|
|
179846
|
-
const e = new
|
|
179848
|
+
const e = new Wi({
|
|
179847
179849
|
id: l.id + "--" + p.id + "--" + ve.ImplementingNonAbstractEntity,
|
|
179848
179850
|
message: `Entity "${l.name}" with id "${l.id}" is implementing a non-abstract built-in entity "${p.name}" with id "${p.id}"`,
|
|
179849
179851
|
severity: he.Error,
|
|
@@ -179857,7 +179859,7 @@ function bgi(l, p) {
|
|
|
179857
179859
|
(e) => e.id !== p.id
|
|
179858
179860
|
);
|
|
179859
179861
|
if (l.abstract) {
|
|
179860
|
-
const e = new
|
|
179862
|
+
const e = new Wi({
|
|
179861
179863
|
id: l.id + "--" + p.id + "--" + ve.AbstractEntityImplements,
|
|
179862
179864
|
message: `Entity "${l.name}" with id "${l.id}" is marked as abstract and cannot implement built-in entity "${p.name}" with id "${p.id}"`,
|
|
179863
179865
|
severity: he.Error,
|
|
@@ -179868,7 +179870,7 @@ function bgi(l, p) {
|
|
|
179868
179870
|
i.push(e);
|
|
179869
179871
|
}
|
|
179870
179872
|
if (l.static && !p.static) {
|
|
179871
|
-
const e = new
|
|
179873
|
+
const e = new Wi({
|
|
179872
179874
|
id: l.id + "--" + p.id + "--" + ve.StaticImplementingNonStaticEntity,
|
|
179873
179875
|
message: `Entity "${l.name}" with id "${l.id}" is marked as static and cannot implement non-static built-in entity "${p.name}" with id "${p.id}"`,
|
|
179874
179876
|
severity: he.Error,
|
|
@@ -179879,7 +179881,7 @@ function bgi(l, p) {
|
|
|
179879
179881
|
i.push(e);
|
|
179880
179882
|
}
|
|
179881
179883
|
if (!l.static && p.static) {
|
|
179882
|
-
const e = new
|
|
179884
|
+
const e = new Wi({
|
|
179883
179885
|
id: l.id + "--" + p.id + "--" + ve.NonStaticImplementingStaticEntity,
|
|
179884
179886
|
message: `Entity "${l.name}" with id "${l.id}" is not marked as static and cannot implement static built-in entity "${p.name}" with id "${p.id}"`,
|
|
179885
179887
|
severity: he.Error,
|
|
@@ -179896,7 +179898,7 @@ function bgi(l, p) {
|
|
|
179896
179898
|
);
|
|
179897
179899
|
f.length && f.forEach((h) => {
|
|
179898
179900
|
if (h.id !== e.id) {
|
|
179899
|
-
const T = new
|
|
179901
|
+
const T = new Wi({
|
|
179900
179902
|
id: l.id + "--" + h.id + "--" + e.id + "--" + ve.ImplementsIncompatibleEntities,
|
|
179901
179903
|
message: `Entity "${l.name}" with id "${l.id}" is implementing built-in entity "${h.name}" with id "${h.id}" but also implements entity "${e.name}" with id "${e.id}" which is incompatible`,
|
|
179902
179904
|
severity: he.Error,
|
|
@@ -179915,7 +179917,7 @@ function bgi(l, p) {
|
|
|
179915
179917
|
);
|
|
179916
179918
|
E.length && E.forEach((I) => {
|
|
179917
179919
|
if (I.id !== b.id) {
|
|
179918
|
-
const _ = new
|
|
179920
|
+
const _ = new Wi({
|
|
179919
179921
|
id: l.id + "--" + I.id + "--" + b.id + "--" + ve.ImplementsIncompatibleEntities,
|
|
179920
179922
|
message: `Entity "${l.name}" with id "${l.id}" is implementing built-in entity "${I.name}" with id "${I.id}" but also implements entity "${b.name}" with id "${b.id}" which is incompatible`,
|
|
179921
179923
|
severity: he.Error,
|
|
@@ -179949,7 +179951,7 @@ function bgi(l, p) {
|
|
|
179949
179951
|
if (!r.find(
|
|
179950
179952
|
(f) => f.id === e.id
|
|
179951
179953
|
)) {
|
|
179952
|
-
const f = new
|
|
179954
|
+
const f = new Wi({
|
|
179953
179955
|
id: l.id + "--" + p.id + "--" + e.id + "--" + ve.ExtendsIncompatibleEntities,
|
|
179954
179956
|
message: `Entity "${l.name}" with id "${l.id}" is implementing built-in entity "${p.name}" with id "${p.id}" but also extends entity "${e.name}" with id "${e.id}" which is incompatible`,
|
|
179955
179957
|
severity: he.Error,
|
|
@@ -180050,7 +180052,7 @@ function Egi(l, p, i = !1) {
|
|
|
180050
180052
|
);
|
|
180051
180053
|
B.length && B.forEach((K) => {
|
|
180052
180054
|
if (K.id !== j.id) {
|
|
180053
|
-
const z = new
|
|
180055
|
+
const z = new Wi({
|
|
180054
180056
|
id: l.id + "--" + K.id + "--" + j.id + "--" + ve.ImplementsIncompatibleEntities,
|
|
180055
180057
|
message: `Entity "${l.name}" with id "${l.id}" is extending built-in entity "${K.name}" with id "${K.id}" but also extends or implements entity "${j.name}" with id "${j.id}" which is incompatible`,
|
|
180056
180058
|
severity: he.Error,
|
|
@@ -180105,7 +180107,7 @@ function Egi(l, p, i = !1) {
|
|
|
180105
180107
|
);
|
|
180106
180108
|
I.length && I.forEach((_) => {
|
|
180107
180109
|
if (_.id !== E.id) {
|
|
180108
|
-
const P = new
|
|
180110
|
+
const P = new Wi({
|
|
180109
180111
|
id: l.id + "--" + _.id + "--" + E.id + "--" + ve.ImplementsIncompatibleEntities,
|
|
180110
180112
|
message: `Entity "${l.name}" with id "${l.id}" is implementing built-in entity "${_.name}" with id "${_.id}" but also implements entity "${E.name}" with id "${E.id}" which is incompatible`,
|
|
180111
180113
|
severity: he.Error,
|
|
@@ -180124,7 +180126,7 @@ function Egi(l, p, i = !1) {
|
|
|
180124
180126
|
);
|
|
180125
180127
|
G.length && G.forEach((j) => {
|
|
180126
180128
|
if (j.id !== L.id) {
|
|
180127
|
-
const B = new
|
|
180129
|
+
const B = new Wi({
|
|
180128
180130
|
id: l.id + "--" + j.id + "--" + L.id + "--" + ve.ImplementsIncompatibleEntities,
|
|
180129
180131
|
message: `Entity "${l.name}" with id "${l.id}" is implementing built-in entity "${j.name}" with id "${j.id}" but also implements entity "${L.name}" with id "${L.id}" which is incompatible`,
|
|
180130
180132
|
severity: he.Error,
|
|
@@ -180172,7 +180174,7 @@ function Egi(l, p, i = !1) {
|
|
|
180172
180174
|
if (!a.find(
|
|
180173
180175
|
(I) => I.id === E.id
|
|
180174
180176
|
)) {
|
|
180175
|
-
const I = new
|
|
180177
|
+
const I = new Wi({
|
|
180176
180178
|
id: l.id + "--" + p.id + "--" + E.id + "--" + ve.ImplementsIncompatibleEntities,
|
|
180177
180179
|
message: `Entity "${l.name}" with id "${l.id}" is extending built-in entity "${p.name}" with id "${p.id}" but also extends entity "${E.name}" with id "${E.id}" which is incompatible`,
|
|
180178
180180
|
severity: he.Error,
|
|
@@ -180189,7 +180191,7 @@ function Agi(l) {
|
|
|
180189
180191
|
const p = [];
|
|
180190
180192
|
if (l.implements.forEach((i) => {
|
|
180191
180193
|
if (!i.static) {
|
|
180192
|
-
const r = new
|
|
180194
|
+
const r = new Wi({
|
|
180193
180195
|
id: l.id + "--" + i.id + "--" + ve.StaticImplementingNonStaticEntity,
|
|
180194
180196
|
message: `Entity "${l.name}" with id "${l.id}" is static but implements entity "${i.name}" with id "${i.id}" which is non-static`,
|
|
180195
180197
|
severity: he.Error,
|
|
@@ -180200,7 +180202,7 @@ function Agi(l) {
|
|
|
180200
180202
|
p.push(r);
|
|
180201
180203
|
}
|
|
180202
180204
|
}), l.extends && !l.extends.static) {
|
|
180203
|
-
const i = new
|
|
180205
|
+
const i = new Wi({
|
|
180204
180206
|
id: l.id + "--" + l.extends.id + "--" + ve.StaticExtendingNonStaticEntity,
|
|
180205
180207
|
message: `Entity "${l.name}" with id "${l.id}" is static but extends entity "${l.extends.name}" with id "${l.extends.id}" which is non-static`,
|
|
180206
180208
|
severity: he.Error,
|
|
@@ -180215,7 +180217,7 @@ function Agi(l) {
|
|
|
180215
180217
|
function Igi(l) {
|
|
180216
180218
|
const p = [];
|
|
180217
180219
|
if (l.implements.length) {
|
|
180218
|
-
const i = new
|
|
180220
|
+
const i = new Wi({
|
|
180219
180221
|
id: l.id + "--" + ve.AbstractEntityImplements,
|
|
180220
180222
|
message: `Entity "${l.name}" with id "${l.id}" cannot be marked as abstract because it implements other entities`,
|
|
180221
180223
|
severity: he.Error,
|
|
@@ -180225,7 +180227,7 @@ function Igi(l) {
|
|
|
180225
180227
|
p.push(i);
|
|
180226
180228
|
}
|
|
180227
180229
|
if (l.extends && !l.extends.abstract) {
|
|
180228
|
-
const i = new
|
|
180230
|
+
const i = new Wi({
|
|
180229
180231
|
id: l.id + "--" + l.extends.id + "--" + ve.AbstractExtendingNonAbstractEntity,
|
|
180230
180232
|
message: `Entity "${l.name}" with id "${l.id}" is abstract but extends entity "${l.extends.name}" with id "${l.extends.id}" which is non-abstract`,
|
|
180231
180233
|
severity: he.Error,
|
|
@@ -180240,7 +180242,7 @@ function Igi(l) {
|
|
|
180240
180242
|
function ggi(l) {
|
|
180241
180243
|
const p = [];
|
|
180242
180244
|
if (l.extends && l.extends.static) {
|
|
180243
|
-
const i = new
|
|
180245
|
+
const i = new Wi({
|
|
180244
180246
|
id: l.id + "--" + l.extends.id + "--" + ve.NonStaticExtendingStaticEntity,
|
|
180245
180247
|
message: `Entity "${l.name}" with id "${l.id}" is non-static but extends entity "${l.extends.name}" with id "${l.extends.id}" which is static`,
|
|
180246
180248
|
severity: he.Error,
|
|
@@ -180255,7 +180257,7 @@ function ggi(l) {
|
|
|
180255
180257
|
function Rgi(l) {
|
|
180256
180258
|
const p = [];
|
|
180257
180259
|
if (l.extends && l.extends.abstract) {
|
|
180258
|
-
const i = new
|
|
180260
|
+
const i = new Wi({
|
|
180259
180261
|
id: l.id + "--" + l.extends.id + "--" + ve.NonAbstractExtendingAbstractEntity,
|
|
180260
180262
|
message: `Entity "${l.name}" with id "${l.id}" is non-abstract but extends entity "${l.extends.name}" with id "${l.extends.id}" which is abstract`,
|
|
180261
180263
|
severity: he.Error,
|
|
@@ -190893,9 +190895,9 @@ function ywi(l, p) {
|
|
|
190893
190895
|
const i = [...l, ...p];
|
|
190894
190896
|
return Array.from(new Set(i));
|
|
190895
190897
|
}
|
|
190896
|
-
var
|
|
190898
|
+
var Zi = /* @__PURE__ */ ((l) => (l.ValuesAlreadyConnected = "values-already-connected", l.CannotReadMoreThanOneValue = "cannot-read-more-than-one-value", l.CannotReadValueFromChildren = "cannot-read-value-from-children", l.CannotBeCalledByChildren = "cannot-be-called-by-children", l.ExecutionsAlreadyConnected = "executions-already-connected", l.DataTypesNotCompatible = "data-types-not-compatible", l.CannotCallAncestor = "cannot-call-ancestor", l.CannotConnectToItself = "cannot-connect-to-itself", l.CannotWriteValueToAncestor = "cannot-write-value-to-ancestor", l.NotInScope = "not-in-scope", l.IsNotValueWrittingEntity = "is-not-value-writting-entity", l.IsNotValueReadingEntity = "is-not-value-reading-entity", l.ContinueOrBreakStatementCalledFromOutsideLoop = "continue-or-break-statement-called-from-outside-loop", l.ElementInLoopBodyCallingOutsideLoop = "element-in-loop-body-calling-outside-loop", l.CallerIsInHigherScope = "caller-is-in-higher-scope", l.CallerIsInLowerScope = "caller-is-in-lower-scope", l.CallIsInHigherScope = "call-is-in-higher-scope", l.CallIsInLowerScope = "call-is-in-lower-scope", l.CalledBySourceMustBeCallerEntity = "called-by-source-must-be-caller-entity", l.OtherIncompatibleScopeReason = "other-incompatible-scope-reason", l.SiblingInternalCallAlreadyUsedInParentVariable = "sibling-internal-call-already-used-in-parent-variable", l.ErrorOututMapCannotBeConnectedToParentSuccessBranchCallees = "error-output-map-cannot-be-connected-to-parent-success-branch-callees", l.SuccessOutputMapCannotBeConnectedToParentErrorBranchCallees = "success-output-map-cannot-be-connected-to-parent-error-branch-callees", l.CannotInteractWithInputInVariableWithInternalCalls = "cannot-interact-with-input-in-variable-with-internal-calls", l.CannotInteractWithOutputInVariableWithInternalCalls = "cannot-interact-with-output-in-variable-with-internal-calls", l.PropertyIsConstantItsValueCantBeReset = "property-is-constant-its-value-cant-be-reset", l.CannotWriteValueOfGlobalVariableDeclaration = "cannot-write-value-of-global-variable-declaration", l.CannotReSetValueOfConstantVariable = "cannot-reset-value-of-constant-variable", l.CannotConnectToOwnNode = "cannot-connect-to-own-node", l.VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage = "variable-declaration-cannot-be-moved-to-lower-scope-because-instances-usage", l.CannotChangeScopeBecauseItIsCalledByOtherEntities = "cannot-change-scope-because-it-is-called-by-other-entities", l.CannotChangeScopeBecauseItCallsOtherEntities = "cannot-change-scope-because-it-calls-other-entities", l.CalledByErrorMustBePassThroughCallable = "called-by-error-must-be-pass-through-callable", l.CalledByErrorCannotBeConnectedToEntitiesCalledByOwnSuccessBranch = "called-by-error-cannot-be-connected-to-entities-called-by-own-success-branch", l))(Zi || {});
|
|
190897
190899
|
const JZi = Object.values(
|
|
190898
|
-
|
|
190900
|
+
Zi
|
|
190899
190901
|
);
|
|
190900
190902
|
var N6 = /* @__PURE__ */ ((l) => (l.NotPartOfOngoingTest = "not-part-of-ongoing-test", l.CannotBeAddedToTest = "cannot-be-added-to-test", l))(N6 || {});
|
|
190901
190903
|
const YZi = Object.values(
|
|
@@ -212799,7 +212801,7 @@ export {
|
|
|
212799
212801
|
n6t as CRYPTO_OPERATIONS,
|
|
212800
212802
|
OZi as CallableEntityClass,
|
|
212801
212803
|
g6 as CallerEntityClass,
|
|
212802
|
-
|
|
212804
|
+
Zi as CanvasEntityConnectionDisabledReason,
|
|
212803
212805
|
IA as CanvasEntityOtherDisabledReason,
|
|
212804
212806
|
N6 as CanvasEntityTestingDisabledReason,
|
|
212805
212807
|
S as ChangeSet,
|
|
@@ -212873,7 +212875,7 @@ export {
|
|
|
212873
212875
|
Zri as EXTERNAL_INTERGRATION_OPERATIONS,
|
|
212874
212876
|
$E as EfimeralValueStore,
|
|
212875
212877
|
vui as EndpointEntity,
|
|
212876
|
-
|
|
212878
|
+
Wi as EntityError,
|
|
212877
212879
|
he as EntityErrorSeverity,
|
|
212878
212880
|
U1i as EntityFieldType,
|
|
212879
212881
|
Re as EntityGenerationError,
|