@elyx-code/project-logic-tree 0.0.6221 → 0.0.6222
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/definitions/types/return.d.ts +7 -4
- package/dist/index.js +9955 -9661
- package/dist/index.umd.cjs +167 -167
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +1 -1
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +1 -1
- package/dist/tree/state/break-statement/break-statement.d.ts +1 -1
- package/dist/tree/state/condition/condition.d.ts +1 -1
- package/dist/tree/state/continue-statement/continue-statement.d.ts +1 -1
- package/dist/tree/state/data-type/data-type.d.ts +1 -1
- package/dist/tree/state/definition-entity/definition-entity.d.ts +1 -1
- package/dist/tree/state/function-call/function-call.d.ts +1 -1
- package/dist/tree/state/function-declaration/function-declaration.d.ts +1 -1
- package/dist/tree/state/global-event/global-event.d.ts +1 -1
- package/dist/tree/state/input-map/input-map.d.ts +1 -1
- package/dist/tree/state/installed-project/installed-project.d.ts +1 -1
- package/dist/tree/state/internal-call/internal-call.d.ts +1 -1
- package/dist/tree/state/literal-value/literal-value.d.ts +1 -1
- package/dist/tree/state/loop/loop.d.ts +1 -1
- package/dist/tree/state/operation/operation.d.ts +1 -1
- package/dist/tree/state/output-map/output-map.d.ts +1 -1
- package/dist/tree/state/project/project.d.ts +1 -1
- package/dist/tree/state/property/property.d.ts +1 -1
- package/dist/tree/state/return-declaration/return-declaration.d.ts +1 -1
- package/dist/tree/state/return-statement/return-statement.d.ts +6 -5
- package/dist/tree/state/return-statement/return-statement.test.d.ts +1 -0
- package/dist/tree/state/search/search.d.ts +1 -1
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +9 -2
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +1 -1
- package/dist/tree/state/variable-instance/variable-instance.d.ts +1 -1
- package/dist/tree/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -72,7 +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
|
+
static new(changeSet?: ChangeSet | null): IActionDescriptorTransfer;
|
|
76
76
|
static fromGenerationTarget(data: IActionDescriptorGenerationTarget, parentProjectState: ProjectState): ActionDescriptorState;
|
|
77
77
|
static validateGenerationTarget(data: IActionDescriptorGenerationTarget, project: ProjectState): {
|
|
78
78
|
errors: EntityGenerationError[];
|
|
@@ -57,7 +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
|
+
static new(changeSet?: ChangeSet | null): IArgumentDeclarationTransfer;
|
|
61
61
|
static fromGenerationTarget(data: IArgumentDeclarationGenerationTarget, parentProjectState: ProjectState): ArgumentDeclarationState;
|
|
62
62
|
static validateGenerationTarget(data: IArgumentDeclarationGenerationTarget, project: ProjectState): {
|
|
63
63
|
errors: EntityGenerationError[];
|
|
@@ -53,7 +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
|
+
static new(changeSet?: ChangeSet | null): IBreakStatementTransfer;
|
|
57
57
|
static fromGenerationTarget(data: IBreakStatementGenerationTarget, parentProjectState: ProjectState): BreakStatementState;
|
|
58
58
|
static validateGenerationTarget(data: IBreakStatementGenerationTarget, project: ProjectState): {
|
|
59
59
|
errors: EntityGenerationError[];
|
|
@@ -55,7 +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
|
+
static new(changeSet?: ChangeSet | null): IConditionTransfer;
|
|
59
59
|
static fromGenerationTarget(data: IConditionGenerationTarget, parentProjectState: ProjectState): ConditionState;
|
|
60
60
|
static validateGenerationTarget(data: IConditionGenerationTarget, project: ProjectState): {
|
|
61
61
|
errors: EntityGenerationError[];
|
|
@@ -53,7 +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
|
+
static new(changeSet?: ChangeSet | null): IContinueStatementTransfer;
|
|
57
57
|
static fromGenerationTarget(data: IContinueStatementGenerationTarget, parentProjectState: ProjectState): ContinueStatementState;
|
|
58
58
|
static validateGenerationTarget(data: IContinueStatementGenerationTarget, project: ProjectState): {
|
|
59
59
|
errors: EntityGenerationError[];
|
|
@@ -66,7 +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
|
+
static new(changeSet?: ChangeSet | null): IDataTypeTransfer;
|
|
70
70
|
static fromGenerationTarget(data: IDataTypeGenerationTarget, parentProjectState: ProjectState): DataTypeState;
|
|
71
71
|
static validateGenerationTarget(data: IDataTypeGenerationTarget, project: ProjectState): {
|
|
72
72
|
errors: EntityGenerationError[];
|
|
@@ -63,7 +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
|
+
static new(changeSet?: ChangeSet | null): IDefinitionEntityTransfer;
|
|
67
67
|
static fromGenerationTarget(data: IDefinitionEntityGenerationTarget, parentProjectState: ProjectState): DefinitionEntityState;
|
|
68
68
|
static validateGenerationTarget(data: IDefinitionEntityGenerationTarget, project: ProjectState): {
|
|
69
69
|
errors: EntityGenerationError[];
|
|
@@ -59,7 +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
|
+
static new(changeSet?: ChangeSet | null): IFunctionCallTransfer;
|
|
63
63
|
static fromGenerationTarget(data: IFunctionCallGenerationTarget, parentProjectState: ProjectState): FunctionCallState;
|
|
64
64
|
static validateGenerationTarget(data: IFunctionCallGenerationTarget, project: ProjectState): {
|
|
65
65
|
errors: EntityGenerationError[];
|
|
@@ -67,7 +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
|
+
static new(changeSet?: ChangeSet | null): IFunctionDeclarationTransfer;
|
|
71
71
|
static fromGenerationTarget(data: IFunctionDeclarationGenerationTarget, parentProjectState: ProjectState): FunctionDeclarationState;
|
|
72
72
|
static validateGenerationTarget(data: IFunctionDeclarationGenerationTarget, project: ProjectState): {
|
|
73
73
|
errors: EntityGenerationError[];
|
|
@@ -54,7 +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
|
+
static new(changeSet?: ChangeSet | null): IGlobalEventTransfer;
|
|
58
58
|
static fromGenerationTarget(data: IGlobalEventGenerationTarget, parentProjectState: ProjectState): GlobalEventState;
|
|
59
59
|
static validateGenerationTarget(data: IGlobalEventGenerationTarget, project: ProjectState): {
|
|
60
60
|
errors: EntityGenerationError[];
|
|
@@ -65,7 +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
|
+
static new(changeSet?: ChangeSet | null): IInputMapTransfer;
|
|
69
69
|
static fromGenerationTarget(data: IInputMapGenerationTarget, parentProjectState: ProjectState): InputMapState;
|
|
70
70
|
static validateGenerationTarget(data: IInputMapGenerationTarget, project: ProjectState): {
|
|
71
71
|
errors: EntityGenerationError[];
|
|
@@ -49,7 +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
|
+
static new(changeSet?: ChangeSet | null): IInstalledProjectTransfer;
|
|
53
53
|
static fromGenerationTarget(data: IInstalledProjectGenerationTarget, parentProjectState: ProjectState): InstalledProjectState;
|
|
54
54
|
static validateGenerationTarget(data: IInstalledProjectGenerationTarget, project: ProjectState): {
|
|
55
55
|
errors: EntityGenerationError[];
|
|
@@ -58,7 +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
|
+
static new(changeSet?: ChangeSet | null): IInternalCallTransfer;
|
|
62
62
|
static fromGenerationTarget(data: IInternalCallGenerationTarget, parentProjectState: ProjectState): InternalCallState;
|
|
63
63
|
static validateGenerationTarget(data: IInternalCallGenerationTarget, project: ProjectState): {
|
|
64
64
|
errors: EntityGenerationError[];
|
|
@@ -64,7 +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
|
+
static new(changeSet?: ChangeSet | null): ILiteralValueTransfer;
|
|
68
68
|
static fromGenerationTarget(data: ILiteralValueGenerationTarget, parentProjectState: ProjectState): LiteralValueState;
|
|
69
69
|
static validateGenerationTarget(data: ILiteralValueGenerationTarget, project: ProjectState): {
|
|
70
70
|
errors: EntityGenerationError[];
|
|
@@ -73,7 +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
|
+
static new(changeSet?: ChangeSet | null): ILoopTransfer;
|
|
77
77
|
static fromGenerationTarget(data: ILoopGenerationTarget, parentProjectState: ProjectState): LoopState;
|
|
78
78
|
static validateGenerationTarget(data: ILoopGenerationTarget, project: ProjectState): {
|
|
79
79
|
errors: EntityGenerationError[];
|
|
@@ -58,7 +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
|
+
static new(changeSet?: ChangeSet | null): IOperationTransfer;
|
|
62
62
|
static fromGenerationTarget(data: IOperationGenerationTarget, parentProjectState: ProjectState): OperationState;
|
|
63
63
|
static validateGenerationTarget(data: IOperationGenerationTarget, project: ProjectState): {
|
|
64
64
|
errors: EntityGenerationError[];
|
|
@@ -58,7 +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
|
+
static new(changeSet?: ChangeSet | null): IOutputMapTransfer;
|
|
62
62
|
static fromGenerationTarget(data: IOutputMapGenerationTarget, parentProjectState: ProjectState): OutputMapState;
|
|
63
63
|
static validateGenerationTarget(data: IOutputMapGenerationTarget, project: ProjectState): {
|
|
64
64
|
errors: EntityGenerationError[];
|
|
@@ -98,7 +98,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
|
|
|
98
98
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
99
99
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
100
100
|
static PROPERTIES: string[];
|
|
101
|
-
static new(): IProjectTransfer;
|
|
101
|
+
static new(changeSet?: ChangeSet | null): IProjectTransfer;
|
|
102
102
|
static validateGenerationTarget(data: IProjectGenerationTarget, project: ProjectState): {
|
|
103
103
|
errors: EntityGenerationError[];
|
|
104
104
|
modifiedData: IProjectGenerationTarget;
|
|
@@ -62,7 +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
|
+
static new(changeSet?: ChangeSet | null): IPropertyTransfer;
|
|
66
66
|
static fromGenerationTarget(data: IPropertyGenerationTarget, parentProjectState: ProjectState): PropertyState;
|
|
67
67
|
static validateGenerationTarget(data: IPropertyGenerationTarget, project: ProjectState): {
|
|
68
68
|
errors: EntityGenerationError[];
|
|
@@ -61,7 +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
|
+
static new(changeSet?: ChangeSet | null): IReturnDeclarationTransfer;
|
|
65
65
|
static fromGenerationTarget(data: IReturnDeclarationGenerationTarget, parentProjectState: ProjectState): ReturnDeclarationState;
|
|
66
66
|
static validateGenerationTarget(data: IReturnDeclarationGenerationTarget, project: ProjectState): {
|
|
67
67
|
errors: EntityGenerationError[];
|
|
@@ -2,7 +2,7 @@ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateTemplate } from '../base';
|
|
4
4
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
5
|
-
import { CallerEntityState, EntityState,
|
|
5
|
+
import { CallerEntityState, EntityState, EntryPointEntityState, PassThroughCallableEntityState, UserManagedEntityState } from '../types';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
7
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
8
8
|
import { VersionedState } from '../version';
|
|
@@ -24,7 +24,7 @@ export declare class ReturnStatementState extends VersionedState implements IRet
|
|
|
24
24
|
throws: ReturnDeclarationState | null;
|
|
25
25
|
project: ProjectState;
|
|
26
26
|
errors: EntityError[];
|
|
27
|
-
parent:
|
|
27
|
+
parent: EntryPointEntityState;
|
|
28
28
|
detachedDependents: Record<EntityId, {
|
|
29
29
|
entity: UserManagedEntityState;
|
|
30
30
|
field: string;
|
|
@@ -52,7 +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
|
+
static new(changeSet?: ChangeSet | null): IReturnStatementTransfer;
|
|
56
56
|
static fromGenerationTarget(data: IReturnStatementGenerationTarget, parentProjectState: ProjectState): ReturnStatementState;
|
|
57
57
|
static validateGenerationTarget(data: IReturnStatementGenerationTarget, project: ProjectState): {
|
|
58
58
|
errors: EntityGenerationError[];
|
|
@@ -84,7 +84,7 @@ export declare class ReturnStatementState extends VersionedState implements IRet
|
|
|
84
84
|
removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): ReturnStatementState;
|
|
85
85
|
addOutputDeclaration(output: ReturnDeclarationState, changeSet?: ChangeSet | null): ReturnStatementState;
|
|
86
86
|
removeOutputDeclaration(output: ReturnDeclarationState, changeSet?: ChangeSet | null): ReturnStatementState;
|
|
87
|
-
setParent(parent:
|
|
87
|
+
setParent(parent: EntryPointEntityState, changeSet?: ChangeSet | null): ReturnStatementState;
|
|
88
88
|
initChildren(changeSet?: ChangeSet | null): ReturnStatementState;
|
|
89
89
|
subscribe(): ReturnStatementState;
|
|
90
90
|
unsubscribe(): ReturnStatementState;
|
|
@@ -117,6 +117,7 @@ export declare class ReturnStatementState extends VersionedState implements IRet
|
|
|
117
117
|
};
|
|
118
118
|
getErrors(): EntityError[];
|
|
119
119
|
getShallowErrors(): EntityError[];
|
|
120
|
-
clone(changeSet?: ChangeSet | null, parent?:
|
|
120
|
+
clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | null, newId?: string | null, subscribe?: boolean): ReturnStatementState;
|
|
121
|
+
syncReturnDeclarations(changeSet?: ChangeSet | null): IChangeSet<ReturnStatementState>;
|
|
121
122
|
}
|
|
122
123
|
export type ReturnStatementPayloadUnion = ReturnStatementState | ReturnStatementTypesUnion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -61,7 +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
|
+
static new(changeSet?: ChangeSet | null): ISearchTransfer;
|
|
65
65
|
static fromGenerationTarget(data: ISearchGenerationTarget, parentProjectState: ProjectState): SearchState;
|
|
66
66
|
static validateGenerationTarget(data: ISearchGenerationTarget, project: ProjectState): {
|
|
67
67
|
errors: EntityGenerationError[];
|
|
@@ -5,12 +5,17 @@ import { DataTypeState } from '../data-type';
|
|
|
5
5
|
import { ProjectState } from '../project/project';
|
|
6
6
|
import { ActionDescriptorState } from '../action-descriptor';
|
|
7
7
|
import { EntityError, EntityGenerationError } from '../error';
|
|
8
|
-
import { EntityState, UserManagedEntityState } from '../types';
|
|
8
|
+
import { EntityState, EntryPointEntityState, UserManagedEntityState } from '../types';
|
|
9
9
|
import { LiteralValueState } from '../literal-value';
|
|
10
10
|
import { LoopState } from '../loop';
|
|
11
11
|
import { SearchState } from '../search';
|
|
12
12
|
import { VersionedState } from '../version';
|
|
13
13
|
import { ChangeSet, IChangeSet } from '../change-set';
|
|
14
|
+
import { ReturnDeclarationState } from '../return-declaration';
|
|
15
|
+
import { ReturnStatementState } from '../return-statement';
|
|
16
|
+
import { BreakStatementState } from '../break-statement';
|
|
17
|
+
import { ContinueStatementState } from '../continue-statement';
|
|
18
|
+
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
14
19
|
|
|
15
20
|
export declare enum ValueDescriptorDependencyField {
|
|
16
21
|
DataTypeEntity = "data-type-entity"
|
|
@@ -55,7 +60,7 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
|
|
|
55
60
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
56
61
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
57
62
|
static PROPERTIES: string[];
|
|
58
|
-
static new(): IValueDescriptorTransfer;
|
|
63
|
+
static new(changeSet?: ChangeSet | null): IValueDescriptorTransfer;
|
|
59
64
|
static fromGenerationTarget(data: IValueDescriptorGenerationTarget, parentProjectState: ProjectState): ValueDescriptorState;
|
|
60
65
|
static validateGenerationTarget(data: IValueDescriptorGenerationTarget, project: ProjectState): {
|
|
61
66
|
errors: EntityGenerationError[];
|
|
@@ -119,5 +124,7 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
|
|
|
119
124
|
getDefaultValue(): LiteralValueState | null;
|
|
120
125
|
setDefaultValue(defaultValue: LiteralValueState): ValueDescriptorState;
|
|
121
126
|
removeDataType(): ValueDescriptorState;
|
|
127
|
+
implementAsReturnDeclaration(changeSet: (ChangeSet | null) | undefined, newParent: ReturnStatementState | BreakStatementState | ContinueStatementState, newId?: string): ReturnDeclarationState;
|
|
128
|
+
implementAsArgumentDeclaration(changeSet: (ChangeSet | null) | undefined, newParent: EntryPointEntityState, newId?: string): ArgumentDeclarationState;
|
|
122
129
|
}
|
|
123
130
|
export type ValueDescriptorPayloadUnion = ValueDescriptorState | ValueDescriptorTypesUnion;
|
|
@@ -69,7 +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
|
+
static new(changeSet?: ChangeSet | null): IVariableDeclarationTransfer;
|
|
73
73
|
static fromGenerationTarget(data: IVariableDeclarationGenerationTarget, parentProjectState: ProjectState): VariableDeclarationState;
|
|
74
74
|
static validateGenerationTarget(data: IVariableDeclarationGenerationTarget, project: ProjectState): {
|
|
75
75
|
errors: EntityGenerationError[];
|
|
@@ -66,7 +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
|
+
static new(changeSet?: ChangeSet | null): IVariableInstanceTransfer;
|
|
70
70
|
static fromGenerationTarget(data: IVariableInstanceGenerationTarget, parentProjectState: ProjectState): VariableInstanceState;
|
|
71
71
|
static validateGenerationTarget(data: IVariableInstanceGenerationTarget, project: ProjectState): {
|
|
72
72
|
errors: EntityGenerationError[];
|
|
@@ -198,6 +198,7 @@ export declare function checkIsMethod(entity: EntityState): boolean;
|
|
|
198
198
|
export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
|
|
199
199
|
export declare function getPrototypeByType(type: EntityType): EntityStateConstructor | null;
|
|
200
200
|
export declare function getScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | ProjectState | null;
|
|
201
|
+
export declare function getFirstNonLoopScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntryPointEntityState | ProjectState | null;
|
|
201
202
|
export declare function getRootEntryPointScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
|
|
202
203
|
export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | ProjectState, child: EntityWithLogicScopeState | ProjectState, project: ProjectState): boolean;
|
|
203
204
|
export declare enum ScopeCompatibilityType {
|
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.6222",
|
|
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",
|