@elyx-code/project-logic-tree 0.0.6926 → 0.0.6928
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 +2 -2
- package/dist/index.d.ts +17 -1
- package/dist/index.js +19 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9994,7 +9994,16 @@ export declare enum BaseValueDescriptorIds {
|
|
|
9994
9994
|
isPreexistingRowTransformerUpToDate: boolean;
|
|
9995
9995
|
};
|
|
9996
9996
|
|
|
9997
|
-
|
|
9997
|
+
/**
|
|
9998
|
+
* Checks whether a the scope owner requires all branches to end in return.
|
|
9999
|
+
*
|
|
10000
|
+
* This could be because of its type signature or because there is already one or more returns that would create a race condition
|
|
10001
|
+
* for any branches not connected to it.
|
|
10002
|
+
*
|
|
10003
|
+
* @param {PassThroughCallableEntityState} self
|
|
10004
|
+
* @returns
|
|
10005
|
+
*/
|
|
10006
|
+
export declare function checkParentEntryPointRequiresEndingBranchesInReturn(self: PassThroughCallableEntityState): boolean;
|
|
9998
10007
|
|
|
9999
10008
|
export declare function checkReachesOrIsTarget(entity: ExecutableEntityState, target: CallableEntityState): 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
|
|
10000
10009
|
|
|
@@ -35188,6 +35197,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
35188
35197
|
}[];
|
|
35189
35198
|
};
|
|
35190
35199
|
|
|
35200
|
+
/**
|
|
35201
|
+
* Validates that if the entity implements a descriptor with return values,
|
|
35202
|
+
* it has a termination on every branch
|
|
35203
|
+
*
|
|
35204
|
+
* @param {EntryPointEntityState} self
|
|
35205
|
+
* @returns {EntityError[]}
|
|
35206
|
+
*/
|
|
35191
35207
|
export declare function validateEntryPointsTermination(self: EntryPointEntityState): EntityError[];
|
|
35192
35208
|
|
|
35193
35209
|
export declare function validateErrorCaller(data: ElementGenerationTarget, callerEntity: CallerEntityState): {
|
package/dist/index.js
CHANGED
|
@@ -179529,24 +179529,31 @@ function M6i(s) {
|
|
|
179529
179529
|
);
|
|
179530
179530
|
}
|
|
179531
179531
|
function S6(s) {
|
|
179532
|
-
var
|
|
179532
|
+
var a, c, e, f;
|
|
179533
179533
|
if (s.type !== d.InternalCall) {
|
|
179534
179534
|
if (!jt.includes(s.parent.type))
|
|
179535
179535
|
return !1;
|
|
179536
|
-
const h =
|
|
179537
|
-
|
|
179536
|
+
const h = s.parent;
|
|
179537
|
+
if (!!h.returnStatements.length)
|
|
179538
|
+
return !0;
|
|
179539
|
+
const b = ((a = h.implements) == null ? void 0 : a.getDataType(null)) || null;
|
|
179540
|
+
return !(!b || ((c = b.entity) == null ? void 0 : c.id) === re["primitive-entity"].void.id);
|
|
179538
179541
|
}
|
|
179539
179542
|
if (!jt.includes(s.parent.parent.type))
|
|
179540
179543
|
return !1;
|
|
179541
|
-
const
|
|
179542
|
-
|
|
179544
|
+
const p = s.parent.parent;
|
|
179545
|
+
if (!!p.returnStatements.length)
|
|
179546
|
+
return !0;
|
|
179547
|
+
const r = ((e = p.implements) == null ? void 0 : e.getDataType(null)) || null;
|
|
179548
|
+
return !(!r || ((f = r.entity) == null ? void 0 : f.id) === re["primitive-entity"].void.id);
|
|
179543
179549
|
}
|
|
179544
179550
|
function A1(s) {
|
|
179545
|
-
|
|
179546
|
-
|
|
179547
|
-
|
|
179548
|
-
|
|
179549
|
-
|
|
179551
|
+
var f, h;
|
|
179552
|
+
const p = [], i = ((f = s.implements) == null ? void 0 : f.getDataType(null)) || null, r = s.returnStatements.length, a = ((h = i == null ? void 0 : i.entity) == null ? void 0 : h.id) !== re["primitive-entity"].void.id;
|
|
179553
|
+
if (ct(s).filter((m) => gt.includes(m.type) || !S6(
|
|
179554
|
+
m
|
|
179555
|
+
) ? !1 : !!(!m.successCalls.length && !m.errorCalls.length && m.calledBy.length)).length && (a || r)) {
|
|
179556
|
+
const m = Rt({
|
|
179550
179557
|
id: `${s.id}--${Ee.LackingReturnStatementOnSomeBranches}`,
|
|
179551
179558
|
message: `The '${s.type}' entity "${le(
|
|
179552
179559
|
s,
|
|
@@ -179556,7 +179563,7 @@ function A1(s) {
|
|
|
179556
179563
|
code: Ee.LackingReturnStatementOnSomeBranches,
|
|
179557
179564
|
entity: s
|
|
179558
179565
|
});
|
|
179559
|
-
p.push(
|
|
179566
|
+
p.push(m.error);
|
|
179560
179567
|
}
|
|
179561
179568
|
return p;
|
|
179562
179569
|
}
|
|
@@ -218910,7 +218917,7 @@ export {
|
|
|
218910
218917
|
cqi as checkIsOnlyNull,
|
|
218911
218918
|
tu as checkIsRequiredValue,
|
|
218912
218919
|
vDi as checkIsRowTransformerUpToDate,
|
|
218913
|
-
S6 as
|
|
218920
|
+
S6 as checkParentEntryPointRequiresEndingBranchesInReturn,
|
|
218914
218921
|
E5i as checkReachesOrIsTarget,
|
|
218915
218922
|
_s as checkScopeCompatibility,
|
|
218916
218923
|
C1 as checkShouldInputOrOutputBePartOfFinalVariableObjectValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6928",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|