@elyx-code/project-logic-tree 0.0.6201 → 0.0.6202
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 +11473 -10762
- package/dist/index.umd.cjs +111 -111
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +1 -0
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +1 -0
- package/dist/tree/state/break-statement/break-statement.d.ts +1 -0
- package/dist/tree/state/condition/condition.d.ts +1 -0
- package/dist/tree/state/continue-statement/continue-statement.d.ts +1 -0
- package/dist/tree/state/data-type/data-type.d.ts +1 -0
- package/dist/tree/state/definition-entity/definition-entity.d.ts +1 -0
- package/dist/tree/state/definition-entity/validation/logic-validation.d.ts +6 -0
- package/dist/tree/state/error.d.ts +29 -3
- package/dist/tree/state/function-call/function-call.d.ts +1 -0
- package/dist/tree/state/function-declaration/function-declaration.d.ts +1 -0
- package/dist/tree/state/global-event/global-event.d.ts +1 -0
- package/dist/tree/state/input-map/input-map.d.ts +1 -0
- package/dist/tree/state/installed-project/installed-project.d.ts +1 -0
- package/dist/tree/state/internal-call/internal-call.d.ts +1 -0
- package/dist/tree/state/literal-value/literal-value.d.ts +1 -0
- package/dist/tree/state/loop/loop.d.ts +1 -0
- package/dist/tree/state/operation/operation.d.ts +1 -0
- package/dist/tree/state/output-map/output-map.d.ts +1 -0
- package/dist/tree/state/property/property.d.ts +1 -0
- package/dist/tree/state/return-declaration/return-declaration.d.ts +1 -0
- package/dist/tree/state/return-statement/return-statement.d.ts +1 -0
- package/dist/tree/state/search/search.d.ts +1 -0
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +1 -0
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +1 -0
- package/dist/tree/state/variable-instance/variable-instance.d.ts +1 -0
- package/dist/tree/utils/index.d.ts +1 -1
- package/dist/tree/utils/shared-data-structure-entity.d.ts +13 -1
- package/package.json +1 -1
|
@@ -72,6 +72,7 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
|
|
|
72
72
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
73
73
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
74
74
|
static PROPERTIES: string[];
|
|
75
|
+
static new(): IActionDescriptorTransfer;
|
|
75
76
|
static fromGenerationTarget(data: IActionDescriptorGenerationTarget, parentProjectState: ProjectState): ActionDescriptorState;
|
|
76
77
|
static validateGenerationTarget(data: IActionDescriptorGenerationTarget, project: ProjectState): {
|
|
77
78
|
errors: EntityGenerationError[];
|
|
@@ -57,6 +57,7 @@ export declare class ArgumentDeclarationState extends VersionedState implements
|
|
|
57
57
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
58
58
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
59
59
|
static PROPERTIES: string[];
|
|
60
|
+
static new(): IArgumentDeclarationTransfer;
|
|
60
61
|
static fromGenerationTarget(data: IArgumentDeclarationGenerationTarget, parentProjectState: ProjectState): ArgumentDeclarationState;
|
|
61
62
|
static validateGenerationTarget(data: IArgumentDeclarationGenerationTarget, project: ProjectState): {
|
|
62
63
|
errors: EntityGenerationError[];
|
|
@@ -53,6 +53,7 @@ export declare class BreakStatementState extends VersionedState implements IBrea
|
|
|
53
53
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
54
54
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
55
55
|
static PROPERTIES: string[];
|
|
56
|
+
static new(): IBreakStatementTransfer;
|
|
56
57
|
static fromGenerationTarget(data: IBreakStatementGenerationTarget, parentProjectState: ProjectState): BreakStatementState;
|
|
57
58
|
static validateGenerationTarget(data: IBreakStatementGenerationTarget, project: ProjectState): {
|
|
58
59
|
errors: EntityGenerationError[];
|
|
@@ -55,6 +55,7 @@ export declare class ConditionState extends VersionedState implements ICondition
|
|
|
55
55
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
56
56
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
57
57
|
static PROPERTIES: string[];
|
|
58
|
+
static new(): IConditionTransfer;
|
|
58
59
|
static fromGenerationTarget(data: IConditionGenerationTarget, parentProjectState: ProjectState): ConditionState;
|
|
59
60
|
static validateGenerationTarget(data: IConditionGenerationTarget, project: ProjectState): {
|
|
60
61
|
errors: EntityGenerationError[];
|
|
@@ -53,6 +53,7 @@ export declare class ContinueStatementState extends VersionedState implements IC
|
|
|
53
53
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
54
54
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
55
55
|
static PROPERTIES: string[];
|
|
56
|
+
static new(): IContinueStatementTransfer;
|
|
56
57
|
static fromGenerationTarget(data: IContinueStatementGenerationTarget, parentProjectState: ProjectState): ContinueStatementState;
|
|
57
58
|
static validateGenerationTarget(data: IContinueStatementGenerationTarget, project: ProjectState): {
|
|
58
59
|
errors: EntityGenerationError[];
|
|
@@ -66,6 +66,7 @@ export declare class DataTypeState extends VersionedState implements IDataType,
|
|
|
66
66
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
67
67
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
68
68
|
static PROPERTIES: string[];
|
|
69
|
+
static new(): IDataTypeTransfer;
|
|
69
70
|
static fromGenerationTarget(data: IDataTypeGenerationTarget, parentProjectState: ProjectState): DataTypeState;
|
|
70
71
|
static validateGenerationTarget(data: IDataTypeGenerationTarget, project: ProjectState): {
|
|
71
72
|
errors: EntityGenerationError[];
|
|
@@ -63,6 +63,7 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
|
|
|
63
63
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
64
64
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
65
65
|
static PROPERTIES: string[];
|
|
66
|
+
static new(): IDefinitionEntityTransfer;
|
|
66
67
|
static fromGenerationTarget(data: IDefinitionEntityGenerationTarget, parentProjectState: ProjectState): DefinitionEntityState;
|
|
67
68
|
static validateGenerationTarget(data: IDefinitionEntityGenerationTarget, project: ProjectState): {
|
|
68
69
|
errors: EntityGenerationError[];
|
|
@@ -7,3 +7,9 @@ import { PropertyState } from '../../property';
|
|
|
7
7
|
export declare function validate(self: DefinitionEntityState): EntityError[];
|
|
8
8
|
export declare function getBasePropertiesNotImplemented(self: DefinitionEntityState, implementedEntity: DefinitionEntityState | BuiltInBaseEntityState): PropertyState[];
|
|
9
9
|
export declare function getBaseMethodsNotImplemented(self: DefinitionEntityState, implementedEntity: DefinitionEntityState | BuiltInBaseEntityState): ActionDescriptorState[];
|
|
10
|
+
export declare function validateCanImplementEntity(self: DefinitionEntityState, entityToImplement: BuiltInBaseEntityState | DefinitionEntityState): EntityError[];
|
|
11
|
+
export declare function validateCanExtendEntity(self: DefinitionEntityState, entityToExtend: BuiltInBaseEntityState | DefinitionEntityState, debug?: boolean): EntityError[];
|
|
12
|
+
export declare function validateCanBecomeStatic(self: DefinitionEntityState): EntityError[];
|
|
13
|
+
export declare function validateCanBecomeAbstract(self: DefinitionEntityState): EntityError[];
|
|
14
|
+
export declare function validateCanBecomeNonStatic(self: DefinitionEntityState): EntityError[];
|
|
15
|
+
export declare function validateCanBecomeNonAbstract(self: DefinitionEntityState): EntityError[];
|
|
@@ -10,8 +10,23 @@ export declare enum SharedEntityErrorCode {
|
|
|
10
10
|
NameNotUniqueInScope = "name-not-unique-in-scope",
|
|
11
11
|
EmptyName = "empty-name",
|
|
12
12
|
MissingCaller = "missing-caller",
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name",
|
|
14
|
+
PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name",
|
|
15
|
+
PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name",
|
|
16
|
+
PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name",
|
|
17
|
+
PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name",
|
|
18
|
+
PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name",
|
|
19
|
+
PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name",
|
|
20
|
+
PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name",
|
|
21
|
+
MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name",
|
|
22
|
+
MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name",
|
|
23
|
+
MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name",
|
|
24
|
+
MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name",
|
|
25
|
+
MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name",
|
|
26
|
+
MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name",
|
|
27
|
+
MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name",
|
|
28
|
+
MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name",
|
|
29
|
+
LoopBodyFunctionOverwrite = "loop-body-function-overwrite",
|
|
15
30
|
NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature",
|
|
16
31
|
ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type",
|
|
17
32
|
UnreachableEntity = "unreachable-entity",
|
|
@@ -71,8 +86,15 @@ export declare enum EntityGenerationErrorCode {
|
|
|
71
86
|
export declare enum EntityInstanceErrorCode {
|
|
72
87
|
NoPrimaryKeyProperty = "no-primary-key-property",
|
|
73
88
|
ScopeWithoutLogic = "scope-without-logic",
|
|
74
|
-
|
|
89
|
+
AbstractEntityImplements = "abstract-entity-implements",
|
|
90
|
+
ImplementsIncompatibleEntities = "implements-incompatible-entities",
|
|
91
|
+
ExtendsIncompatibleEntities = "extends-incompatible-entities",
|
|
92
|
+
NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity",
|
|
93
|
+
AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity",
|
|
94
|
+
NonStaticExtendingStaticEntity = "non-static-extending-static-entity",
|
|
95
|
+
StaticExtendingNonStaticEntity = "static-extending-non-static-entity",
|
|
75
96
|
ImplementingNonAbstractEntity = "implementing-non-abstract-entity",
|
|
97
|
+
ExtendingNonInteractiveEntity = "extending-non-interactive-entity",
|
|
76
98
|
AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods",
|
|
77
99
|
AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties",
|
|
78
100
|
StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties",
|
|
@@ -115,6 +137,8 @@ export interface IEntityError {
|
|
|
115
137
|
severity: EntityErrorSeverity;
|
|
116
138
|
code: SharedEntityErrorCode | EntityInstanceErrorCode;
|
|
117
139
|
entity: EntityState;
|
|
140
|
+
firstRelationship?: EntityState;
|
|
141
|
+
secondRelationship?: EntityState;
|
|
118
142
|
}
|
|
119
143
|
export declare class EntityGenerationError implements IEntityGenerationError {
|
|
120
144
|
id: string;
|
|
@@ -132,6 +156,8 @@ export declare class EntityError implements IEntityError {
|
|
|
132
156
|
severity: EntityErrorSeverity;
|
|
133
157
|
code: SharedEntityErrorCode | EntityInstanceErrorCode;
|
|
134
158
|
entity: EntityState;
|
|
159
|
+
firstRelationship?: EntityState;
|
|
160
|
+
secondRelationship?: EntityState;
|
|
135
161
|
constructor(error: IEntityError);
|
|
136
162
|
clone(): EntityError;
|
|
137
163
|
}
|
|
@@ -59,6 +59,7 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
|
|
|
59
59
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
60
60
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
61
61
|
static PROPERTIES: string[];
|
|
62
|
+
static new(): IFunctionCallTransfer;
|
|
62
63
|
static fromGenerationTarget(data: IFunctionCallGenerationTarget, parentProjectState: ProjectState): FunctionCallState;
|
|
63
64
|
static validateGenerationTarget(data: IFunctionCallGenerationTarget, project: ProjectState): {
|
|
64
65
|
errors: EntityGenerationError[];
|
|
@@ -67,6 +67,7 @@ export declare class FunctionDeclarationState extends VersionedState implements
|
|
|
67
67
|
static INMUATABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
68
68
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
69
69
|
static PROPERTIES: string[];
|
|
70
|
+
static new(): IFunctionDeclarationTransfer;
|
|
70
71
|
static fromGenerationTarget(data: IFunctionDeclarationGenerationTarget, parentProjectState: ProjectState): FunctionDeclarationState;
|
|
71
72
|
static validateGenerationTarget(data: IFunctionDeclarationGenerationTarget, project: ProjectState): {
|
|
72
73
|
errors: EntityGenerationError[];
|
|
@@ -54,6 +54,7 @@ export declare class GlobalEventState extends VersionedState implements IGlobalE
|
|
|
54
54
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
55
55
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
56
56
|
static PROPERTIES: string[];
|
|
57
|
+
static new(): IGlobalEventTransfer;
|
|
57
58
|
static fromGenerationTarget(data: IGlobalEventGenerationTarget, parentProjectState: ProjectState): GlobalEventState;
|
|
58
59
|
static validateGenerationTarget(data: IGlobalEventGenerationTarget, project: ProjectState): {
|
|
59
60
|
errors: EntityGenerationError[];
|
|
@@ -65,6 +65,7 @@ export declare class InputMapState extends VersionedState implements IInputMap,
|
|
|
65
65
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
66
66
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
67
67
|
static PROPERTIES: string[];
|
|
68
|
+
static new(): IInputMapTransfer;
|
|
68
69
|
static fromGenerationTarget(data: IInputMapGenerationTarget, parentProjectState: ProjectState): InputMapState;
|
|
69
70
|
static validateGenerationTarget(data: IInputMapGenerationTarget, project: ProjectState): {
|
|
70
71
|
errors: EntityGenerationError[];
|
|
@@ -49,6 +49,7 @@ export declare class InstalledProjectState extends VersionedState implements IIn
|
|
|
49
49
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
50
50
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
51
51
|
static PROPERTIES: string[];
|
|
52
|
+
static new(): IInstalledProjectTransfer;
|
|
52
53
|
static fromGenerationTarget(data: IInstalledProjectGenerationTarget, parentProjectState: ProjectState): InstalledProjectState;
|
|
53
54
|
static validateGenerationTarget(data: IInstalledProjectGenerationTarget, project: ProjectState): {
|
|
54
55
|
errors: EntityGenerationError[];
|
|
@@ -58,6 +58,7 @@ export declare class InternalCallState extends VersionedState implements IIntern
|
|
|
58
58
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
59
59
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
60
60
|
static PROPERTIES: string[];
|
|
61
|
+
static new(): IInternalCallTransfer;
|
|
61
62
|
static fromGenerationTarget(data: IInternalCallGenerationTarget, parentProjectState: ProjectState): InternalCallState;
|
|
62
63
|
static validateGenerationTarget(data: IInternalCallGenerationTarget, project: ProjectState): {
|
|
63
64
|
errors: EntityGenerationError[];
|
|
@@ -64,6 +64,7 @@ export declare class LiteralValueState extends VersionedState implements BaseSta
|
|
|
64
64
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
65
65
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
66
66
|
static PROPERTIES: string[];
|
|
67
|
+
static new(): ILiteralValueTransfer;
|
|
67
68
|
static fromGenerationTarget(data: ILiteralValueGenerationTarget, parentProjectState: ProjectState): LiteralValueState;
|
|
68
69
|
static validateGenerationTarget(data: ILiteralValueGenerationTarget, project: ProjectState): {
|
|
69
70
|
errors: EntityGenerationError[];
|
|
@@ -73,6 +73,7 @@ export declare class LoopState extends VersionedState implements ILoop, BaseStat
|
|
|
73
73
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
74
74
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
75
75
|
static PROPERTIES: string[];
|
|
76
|
+
static new(): ILoopTransfer;
|
|
76
77
|
static fromGenerationTarget(data: ILoopGenerationTarget, parentProjectState: ProjectState): LoopState;
|
|
77
78
|
static validateGenerationTarget(data: ILoopGenerationTarget, project: ProjectState): {
|
|
78
79
|
errors: EntityGenerationError[];
|
|
@@ -58,6 +58,7 @@ export declare class OperationState extends VersionedState implements IOperation
|
|
|
58
58
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
59
59
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
60
60
|
static PROPERTIES: string[];
|
|
61
|
+
static new(): IOperationTransfer;
|
|
61
62
|
static fromGenerationTarget(data: IOperationGenerationTarget, parentProjectState: ProjectState): OperationState;
|
|
62
63
|
static validateGenerationTarget(data: IOperationGenerationTarget, project: ProjectState): {
|
|
63
64
|
errors: EntityGenerationError[];
|
|
@@ -58,6 +58,7 @@ export declare class OutputMapState extends VersionedState implements IOutputMap
|
|
|
58
58
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
59
59
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
60
60
|
static PROPERTIES: string[];
|
|
61
|
+
static new(): IOutputMapTransfer;
|
|
61
62
|
static fromGenerationTarget(data: IOutputMapGenerationTarget, parentProjectState: ProjectState): OutputMapState;
|
|
62
63
|
static validateGenerationTarget(data: IOutputMapGenerationTarget, project: ProjectState): {
|
|
63
64
|
errors: EntityGenerationError[];
|
|
@@ -62,6 +62,7 @@ export declare class PropertyState extends VersionedState implements IProperty,
|
|
|
62
62
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
63
63
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
64
64
|
static PROPERTIES: string[];
|
|
65
|
+
static new(): IPropertyTransfer;
|
|
65
66
|
static fromGenerationTarget(data: IPropertyGenerationTarget, parentProjectState: ProjectState): PropertyState;
|
|
66
67
|
static validateGenerationTarget(data: IPropertyGenerationTarget, project: ProjectState): {
|
|
67
68
|
errors: EntityGenerationError[];
|
|
@@ -61,6 +61,7 @@ export declare class ReturnDeclarationState extends VersionedState implements IR
|
|
|
61
61
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
62
62
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
63
63
|
static PROPERTIES: string[];
|
|
64
|
+
static new(): IReturnDeclarationTransfer;
|
|
64
65
|
static fromGenerationTarget(data: IReturnDeclarationGenerationTarget, parentProjectState: ProjectState): ReturnDeclarationState;
|
|
65
66
|
static validateGenerationTarget(data: IReturnDeclarationGenerationTarget, project: ProjectState): {
|
|
66
67
|
errors: EntityGenerationError[];
|
|
@@ -52,6 +52,7 @@ export declare class ReturnStatementState extends VersionedState implements IRet
|
|
|
52
52
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
53
53
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
54
54
|
static PROPERTIES: string[];
|
|
55
|
+
static new(): IReturnStatementTransfer;
|
|
55
56
|
static fromGenerationTarget(data: IReturnStatementGenerationTarget, parentProjectState: ProjectState): ReturnStatementState;
|
|
56
57
|
static validateGenerationTarget(data: IReturnStatementGenerationTarget, project: ProjectState): {
|
|
57
58
|
errors: EntityGenerationError[];
|
|
@@ -61,6 +61,7 @@ export declare class SearchState extends VersionedState implements ISearch, Base
|
|
|
61
61
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
62
62
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
63
63
|
static PROPERTIES: string[];
|
|
64
|
+
static new(): ISearchTransfer;
|
|
64
65
|
static fromGenerationTarget(data: ISearchGenerationTarget, parentProjectState: ProjectState): SearchState;
|
|
65
66
|
static validateGenerationTarget(data: ISearchGenerationTarget, project: ProjectState): {
|
|
66
67
|
errors: EntityGenerationError[];
|
|
@@ -55,6 +55,7 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
|
|
|
55
55
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
56
56
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
57
57
|
static PROPERTIES: string[];
|
|
58
|
+
static new(): IValueDescriptorTransfer;
|
|
58
59
|
static fromGenerationTarget(data: IValueDescriptorGenerationTarget, parentProjectState: ProjectState): ValueDescriptorState;
|
|
59
60
|
static validateGenerationTarget(data: IValueDescriptorGenerationTarget, project: ProjectState): {
|
|
60
61
|
errors: EntityGenerationError[];
|
|
@@ -69,6 +69,7 @@ export declare class VariableDeclarationState extends VersionedState implements
|
|
|
69
69
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
70
70
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
71
71
|
static PROPERTIES: string[];
|
|
72
|
+
static new(): IVariableDeclarationTransfer;
|
|
72
73
|
static fromGenerationTarget(data: IVariableDeclarationGenerationTarget, parentProjectState: ProjectState): VariableDeclarationState;
|
|
73
74
|
static validateGenerationTarget(data: IVariableDeclarationGenerationTarget, project: ProjectState): {
|
|
74
75
|
errors: EntityGenerationError[];
|
|
@@ -66,6 +66,7 @@ export declare class VariableInstanceState extends VersionedState implements IVa
|
|
|
66
66
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
67
67
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
68
68
|
static PROPERTIES: string[];
|
|
69
|
+
static new(): IVariableInstanceTransfer;
|
|
69
70
|
static fromGenerationTarget(data: IVariableInstanceGenerationTarget, parentProjectState: ProjectState): VariableInstanceState;
|
|
70
71
|
static validateGenerationTarget(data: IVariableInstanceGenerationTarget, project: ProjectState): {
|
|
71
72
|
errors: EntityGenerationError[];
|
|
@@ -188,7 +188,7 @@ export declare function getLowestPersistedEntityImplementation(entity: Definitio
|
|
|
188
188
|
export declare function getExtendedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
|
|
189
189
|
export declare function getImplementedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
|
|
190
190
|
export declare function getExtendedDefinitionEntity(entity: DefinitionEntityState): DefinitionEntityState | null;
|
|
191
|
-
export declare function getBaseBuiltInEntities(entity: DefinitionEntityState): BuiltInBaseEntityState[];
|
|
191
|
+
export declare function getBaseBuiltInEntities(entity: DefinitionEntityState | BuiltInBaseEntityState): BuiltInBaseEntityState[];
|
|
192
192
|
export declare function getIsInteractive(entity: DefinitionEntityState | BuiltInBaseEntityState | PrimitiveEntityState): boolean;
|
|
193
193
|
export declare function checkIsGlobalVariable(entity: VariableDeclarationState): boolean;
|
|
194
194
|
export declare function checkIsGloballyDeclared(entity: ConditionState | FunctionCallState | OperationState | VariableDeclarationState | VariableInstanceState | FunctionCallState | LoopState | SearchState): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataTypeParentChildRelation, EntityId } from '../../definitions';
|
|
2
|
-
import { BuiltInBaseEntityState, DefinitionEntityState, DataTypeState, EntityState, IChangeSet, ProjectState, ChangeSet } from '../state';
|
|
2
|
+
import { BuiltInBaseEntityState, DefinitionEntityState, DataTypeState, EntityState, IChangeSet, ProjectState, PropertyState, ChangeSet, EntityError, FunctionDeclarationState, SharedEntityErrorCode, ActionDescriptorState } from '../state';
|
|
3
3
|
|
|
4
4
|
export declare function handleBeforeEntityImplementationSideEffects(self: DefinitionEntityState | BuiltInBaseEntityState, changeSet: ChangeSet | null): {
|
|
5
5
|
newEntities: EntityState[];
|
|
@@ -29,3 +29,15 @@ export declare function createDefinitionEntityFromJSONObject(data: {
|
|
|
29
29
|
hasCreated: boolean;
|
|
30
30
|
changeSet: IChangeSet<DefinitionEntityState>;
|
|
31
31
|
};
|
|
32
|
+
export declare function checkImplementationsOverlap(higherEntities: PropertyState[], baseEntities: PropertyState[], implementationErrorCode: SharedEntityErrorCode.PropertyOverwritesBasePropertyWithSameImplementation | SharedEntityErrorCode.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation | SharedEntityErrorCode.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation | SharedEntityErrorCode.PropertyOverwritesOtherSiblingWithSameImplementation, nameErrorCode: SharedEntityErrorCode.PropertyOverwritesBasePropertyWithSameName | SharedEntityErrorCode.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName | SharedEntityErrorCode.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName | SharedEntityErrorCode.PropertyOverwritesOtherSiblingWithSameName): {
|
|
33
|
+
errors: EntityError[];
|
|
34
|
+
overlap: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare function checkImplementationsOverlap(higherEntities: (FunctionDeclarationState | ActionDescriptorState)[], baseEntities: (FunctionDeclarationState | ActionDescriptorState)[], implementationErrorCode: SharedEntityErrorCode.MethodOverwritesBaseMethodWithSameImplementation | SharedEntityErrorCode.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation | SharedEntityErrorCode.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation | SharedEntityErrorCode.MethodOverwritesOtherSiblingWithSameImplementation, nameErrorCode: SharedEntityErrorCode.MethodOverwritesBaseMethodWithSameName | SharedEntityErrorCode.MethodOverwritesOtherImplementedEntitysMethodWithSameName | SharedEntityErrorCode.MethodOverwritesOtherExtendedEntitysMethodWithSameName | SharedEntityErrorCode.MethodOverwritesOtherSiblingWithSameName): {
|
|
37
|
+
errors: EntityError[];
|
|
38
|
+
overlap: boolean;
|
|
39
|
+
};
|
|
40
|
+
export declare function convertToAbstract(entity: DefinitionEntityState, changeSet: ChangeSet): DefinitionEntityState;
|
|
41
|
+
export declare function convertToNonAbstract(entity: DefinitionEntityState, changeSet: ChangeSet): DefinitionEntityState;
|
|
42
|
+
export declare function convertToStatic(entity: DefinitionEntityState, changeSet: ChangeSet): DefinitionEntityState;
|
|
43
|
+
export declare function convertToNonStatic(entity: DefinitionEntityState, changeSet: ChangeSet): DefinitionEntityState;
|
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.6202",
|
|
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",
|