@elyx-code/project-logic-tree 0.0.597 → 0.0.598
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 +21 -21
- package/dist/index.umd.cjs +8 -8
- package/dist/tree/state/error.d.ts +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16240,7 +16240,7 @@ const uV = {
|
|
|
16240
16240
|
loops: [dV],
|
|
16241
16241
|
searches: [mV]
|
|
16242
16242
|
};
|
|
16243
|
-
var h = /* @__PURE__ */ ((n) => (n.Error = "error", n.Warning = "warning", n))(h || {}), b = /* @__PURE__ */ ((n) => (n.InvalidObjectStructure = "invalid-object-structure", n.NameNotUniqueInScope = "name-not-unique-in-scope", n.EmptyName = "empty-name", n.MissingCaller = "missing-caller", n.PropertyOverwrite = "property-overwrite", n.MethodOverwrite = "method-overwrite", n.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", n.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", n.UnreachableEntity = "unreachable-entity", n.
|
|
16243
|
+
var h = /* @__PURE__ */ ((n) => (n.Error = "error", n.Warning = "warning", n))(h || {}), b = /* @__PURE__ */ ((n) => (n.InvalidObjectStructure = "invalid-object-structure", n.NameNotUniqueInScope = "name-not-unique-in-scope", n.EmptyName = "empty-name", n.MissingCaller = "missing-caller", n.PropertyOverwrite = "property-overwrite", n.MethodOverwrite = "method-overwrite", n.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", n.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", n.UnreachableEntity = "unreachable-entity", n.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", n.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", n.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", n.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", n.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", n))(b || {}), p = /* @__PURE__ */ ((n) => (n.RootReference = "root-reference", n.ReferencedEntityNotFound = "referenced-entity-not-found", n.EntityIdNotUnique = "entity-id-not-unique", n.BuiltInEntityGenerated = "built-in-entity-generated", n.BuiltInEntityUpdated = "built-in-entity-updated", n.BuiltInEntityDeleted = "built-in-entity-deleted", n.UnknownEntityType = "unknown-entity-type", n.MissingTypeProperty = "missing-type-property", n.MissingIdProperty = "missing-id-property", n.BuiltInEntityParent = "built-in-entity-parent", n.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", n.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", n.RecommendedImplementOperationAction = "recommended-implement-operation-action", n.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", n.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", n.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", n.RecommendedImplementConditionAction = "recommended-implement-condition-action", n.InvalidReferenceObjectStructure = "invalid-reference-object-structure", n.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", n.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", n.InvalidParentReference = "invalid-parent-reference", n.InvalidImplementsReference = "invalid-implements-reference", n.InvalidExtendsReference = "invalid-extends-reference", n.InvalidGenerationActionPayload = "invalid-generation-action-payload", n.InvalidReference = "invalid-reference", n.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", n.InvalidUpdateEntityOperation = "invalid-update-entity-operation", n.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", n.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", n.UnrecognizedProperty = "unrecognized-property", n.SelfReference = "self-reference", n.DuplicateReference = "duplicate-reference", n.CallerWithIncompatibleScope = "caller-with-incompatible-scope", n.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", n.InvalidInputMapDeclaration = "invalid-input-map-declaration", n.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", n.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", n.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", n.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", n.OutputOverwrite = "output-overwrite", n.InputOverwrite = "input-overwrite", n.IncompatibleScope = "incompatible-scope", n.InvalidParentUpdate = "invalid-parent-update", n.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", n.InvalidParentRelationType = "invalid-parent-relation-type", n))(p || {}), S = /* @__PURE__ */ ((n) => (n.ScopeWithoutLogic = "scope-without-logic", n.ExtendingAbstractEntity = "extending-abstract-entity", n.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", n.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", n.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", n.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", n.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", n.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", n.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", n.IncorrectEntityImplementation = "incorrect-entity-implementation", n.IncorrectMethodImplementation = "incorrect-method-implementation", n.IncorrectPropertyImplementation = "incorrect-property-implementation", n.PropertyImplementsNonAbstact = "property-implements-non-abstract", n.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", n.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", n.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", n.MissingPropertyImplementation = "missing-property-implementation", n.MissingMethodImplementation = "missing-method-implementation", n.NoProperties = "no-properties", n.ReadingFromIncompatibleType = "reading-from-incompatible-type", n.WritingToIncompatibleType = "writing-to-incompatible-type", n.InvalidPropertiesCombination = "invalid-properties-combination", n.DisconnectedCallableEntity = "disconnected-callable-entity", n.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", n.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", n.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", n.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", n))(S || {});
|
|
16244
16244
|
class T {
|
|
16245
16245
|
constructor(e) {
|
|
16246
16246
|
// A deterministic error code, so if the same error occurs again in a subsequent validation run,
|
|
@@ -28498,8 +28498,8 @@ function A8(n) {
|
|
|
28498
28498
|
if (!i)
|
|
28499
28499
|
e.push(
|
|
28500
28500
|
j({
|
|
28501
|
-
id: `${n.id}--${b.
|
|
28502
|
-
code: b.
|
|
28501
|
+
id: `${n.id}--${b.InternalCallParentMissingDataType}`,
|
|
28502
|
+
code: b.InternalCallParentMissingDataType,
|
|
28503
28503
|
severity: h.Error,
|
|
28504
28504
|
message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,
|
|
28505
28505
|
issue: null,
|
|
@@ -28513,8 +28513,8 @@ function A8(n) {
|
|
|
28513
28513
|
].includes(i.type))
|
|
28514
28514
|
e.push(
|
|
28515
28515
|
j({
|
|
28516
|
-
id: `${n.id}--${b.
|
|
28517
|
-
code: b.
|
|
28516
|
+
id: `${n.id}--${b.InternalCallParentDeclarationEntityInvalidType}`,
|
|
28517
|
+
code: b.InternalCallParentDeclarationEntityInvalidType,
|
|
28518
28518
|
severity: h.Error,
|
|
28519
28519
|
message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
|
|
28520
28520
|
This variable's data-type has an 'entity' field that references an entity with id '${i.id}' and of type '${i.type}'.`,
|
|
@@ -28543,8 +28543,8 @@ This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s
|
|
|
28543
28543
|
const o = (i.methods || []).find((d) => d.id === n.declaration.id);
|
|
28544
28544
|
o ? o.type !== r.FunctionDeclaration ? e.push(
|
|
28545
28545
|
j({
|
|
28546
|
-
id: `${n.id}--${b.
|
|
28547
|
-
code: b.
|
|
28546
|
+
id: `${n.id}--${b.InternalCallDeclarationIsNotFunctionDeclaration}`,
|
|
28547
|
+
code: b.InternalCallDeclarationIsNotFunctionDeclaration,
|
|
28548
28548
|
severity: h.Error,
|
|
28549
28549
|
message: `Entity of type "${n.type}" with id "${n.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
28550
28550
|
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${s}`,
|
|
@@ -28553,8 +28553,8 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
|
|
|
28553
28553
|
}).error
|
|
28554
28554
|
) : n.declaration.parent.id !== i.id && e.push(
|
|
28555
28555
|
j({
|
|
28556
|
-
id: `${n.id}--${b.
|
|
28557
|
-
code: b.
|
|
28556
|
+
id: `${n.id}--${b.InternalCallDeclarationNotInParentDatatypeEntity}`,
|
|
28557
|
+
code: b.InternalCallDeclarationNotInParentDatatypeEntity,
|
|
28558
28558
|
severity: h.Error,
|
|
28559
28559
|
message: `Entity of type "${n.type}" with id "${n.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
|
|
28560
28560
|
The data type on this variable points to a different entity than the declaration of the internal-call.${s}`,
|
|
@@ -28563,8 +28563,8 @@ The data type on this variable points to a different entity than the declaration
|
|
|
28563
28563
|
}).error
|
|
28564
28564
|
) : e.push(
|
|
28565
28565
|
j({
|
|
28566
|
-
id: `${n.id}--${b.
|
|
28567
|
-
code: b.
|
|
28566
|
+
id: `${n.id}--${b.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
|
|
28567
|
+
code: b.InternalCallDeclarationNotFoundInParentDatatypeEntity,
|
|
28568
28568
|
severity: h.Error,
|
|
28569
28569
|
message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${s}`,
|
|
28570
28570
|
issue: null,
|
|
@@ -28682,8 +28682,8 @@ const ae = class ae {
|
|
|
28682
28682
|
if (!y)
|
|
28683
28683
|
a.push(
|
|
28684
28684
|
new T({
|
|
28685
|
-
id: `${i.id}--${
|
|
28686
|
-
code:
|
|
28685
|
+
id: `${i.id}--${b.InternalCallParentMissingDataType}`,
|
|
28686
|
+
code: b.InternalCallParentMissingDataType,
|
|
28687
28687
|
severity: h.Error,
|
|
28688
28688
|
message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${i.declaration}".`,
|
|
28689
28689
|
issue: null
|
|
@@ -28696,8 +28696,8 @@ const ae = class ae {
|
|
|
28696
28696
|
].includes(y.type))
|
|
28697
28697
|
a.push(
|
|
28698
28698
|
new T({
|
|
28699
|
-
id: `${i.id}--${
|
|
28700
|
-
code:
|
|
28699
|
+
id: `${i.id}--${b.InternalCallParentDeclarationEntityInvalidType}`,
|
|
28700
|
+
code: b.InternalCallParentDeclarationEntityInvalidType,
|
|
28701
28701
|
severity: h.Error,
|
|
28702
28702
|
message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
|
|
28703
28703
|
This variable's data-type has an 'entity' field that references an entity with id '${y.id}' and of type '${y.type}'.`,
|
|
@@ -28743,8 +28743,8 @@ ${Nn}`);
|
|
|
28743
28743
|
const O = (y.methods || []).find(($) => $.id === i.declaration);
|
|
28744
28744
|
O ? O.type !== r.FunctionDeclaration ? a.push(
|
|
28745
28745
|
new T({
|
|
28746
|
-
id: `${i.id}--${
|
|
28747
|
-
code:
|
|
28746
|
+
id: `${i.id}--${b.InternalCallDeclarationIsNotFunctionDeclaration}`,
|
|
28747
|
+
code: b.InternalCallDeclarationIsNotFunctionDeclaration,
|
|
28748
28748
|
severity: h.Error,
|
|
28749
28749
|
message: `Entity of type "${i.type}" with id "${i.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
28750
28750
|
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${m}`,
|
|
@@ -28752,8 +28752,8 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
|
|
|
28752
28752
|
})
|
|
28753
28753
|
) : g.parent.id !== y.id && a.push(
|
|
28754
28754
|
new T({
|
|
28755
|
-
id: `${i.id}--${
|
|
28756
|
-
code:
|
|
28755
|
+
id: `${i.id}--${b.InternalCallDeclarationNotInParentDatatypeEntity}`,
|
|
28756
|
+
code: b.InternalCallDeclarationNotInParentDatatypeEntity,
|
|
28757
28757
|
severity: h.Error,
|
|
28758
28758
|
message: `Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
|
|
28759
28759
|
The data type on this variable points to a different entity than the declaration of the internal-call.${m}`,
|
|
@@ -28761,8 +28761,8 @@ The data type on this variable points to a different entity than the declaration
|
|
|
28761
28761
|
})
|
|
28762
28762
|
) : a.push(
|
|
28763
28763
|
new T({
|
|
28764
|
-
id: `${i.id}--${
|
|
28765
|
-
code:
|
|
28764
|
+
id: `${i.id}--${b.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
|
|
28765
|
+
code: b.InternalCallDeclarationNotFoundInParentDatatypeEntity,
|
|
28766
28766
|
severity: h.Error,
|
|
28767
28767
|
message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${i.declaration}".${m}`,
|
|
28768
28768
|
issue: null
|