@elyx-code/project-logic-tree 0.0.6813 → 0.0.6815
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 +210 -210
- package/dist/index.d.ts +51 -10
- package/dist/index.js +30685 -29983
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9542,7 +9542,10 @@ export declare enum BaseValueDescriptorIds {
|
|
|
9542
9542
|
PropertyIsConstantItsValueCantBeReset = "property-is-constant-its-value-cant-be-reset",
|
|
9543
9543
|
CannotWriteValueOfGlobalVariableDeclaration = "cannot-write-value-of-global-variable-declaration",
|
|
9544
9544
|
CannotReSetValueOfConstantVariable = "cannot-reset-value-of-constant-variable",
|
|
9545
|
-
CannotConnectToOwnNode = "cannot-connect-to-own-node"
|
|
9545
|
+
CannotConnectToOwnNode = "cannot-connect-to-own-node",
|
|
9546
|
+
VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage = "variable-declaration-cannot-be-moved-to-lower-scope-because-instances-usage",
|
|
9547
|
+
CannotChangeScopeBecauseItIsCalledByOtherEntities = "cannot-change-scope-because-it-is-called-by-other-entities",
|
|
9548
|
+
CannotChangeScopeBecauseItCallsOtherEntities = "cannot-change-scope-because-it-calls-other-entities"
|
|
9546
9549
|
}
|
|
9547
9550
|
|
|
9548
9551
|
export declare type CanvasEntityDisabledReason = CanvasEntityConnectionDisabledReason | CanvasEntityTestingDisabledReason | CanvasEntityOtherDisabledReason | StateMutationErrorCode;
|
|
@@ -9762,7 +9765,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
9762
9765
|
export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | ProjectState, child: EntityWithLogicScopeState | ProjectState, project: ProjectState): boolean;
|
|
9763
9766
|
|
|
9764
9767
|
/**
|
|
9765
|
-
* Checks whether the given data-type
|
|
9768
|
+
* Checks whether the given data-type ALLOWS for a null value.
|
|
9766
9769
|
* This is either because the 'entity' field is the primitive null-prototype
|
|
9767
9770
|
* Or because it has a literal-value, with its value set to `null`
|
|
9768
9771
|
* Or because the data-type is an or-group where at least one of its children meets the above requirements
|
|
@@ -9771,6 +9774,14 @@ export declare enum BaseValueDescriptorIds {
|
|
|
9771
9774
|
*/
|
|
9772
9775
|
export declare function checkIsNullable(dataType: DataTypeState | null): boolean;
|
|
9773
9776
|
|
|
9777
|
+
/**
|
|
9778
|
+
* Checks whether the given data-type is either explicitly set to null, or is an or-group where all options are explicitly set to null. In other words, whether the data-type allows only for a null value and nothing else.
|
|
9779
|
+
*
|
|
9780
|
+
* @param {DataTypeState | null} dataType the data-type to check
|
|
9781
|
+
* @returns {boolean} whether the given data-type is either explicitly set to null
|
|
9782
|
+
*/
|
|
9783
|
+
export declare function checkIsOnlyNull(dataType: DataTypeState | null): boolean;
|
|
9784
|
+
|
|
9774
9785
|
export declare function checkIsRequiredValue(entity: EntityWithValueState | PropertyState | ValueDescriptorState): boolean;
|
|
9775
9786
|
|
|
9776
9787
|
export declare function checkIsRowTransformerUpToDate(newestOpenRowTransformer: DefinitionEntityState, entity: DefinitionEntityState, lastPublishedEntityVersion: DefinitionEntityState): {
|
|
@@ -14236,9 +14247,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14236
14247
|
|
|
14237
14248
|
export declare function flattenCallers(entity: CallableEntityState): CallerEntityState[];
|
|
14238
14249
|
|
|
14239
|
-
export declare function flattenCalls(entities: CallableEntityState[]
|
|
14250
|
+
export declare function flattenCalls(entities: CallableEntityState[], options?: {
|
|
14251
|
+
sorting?: 'local-y-axis';
|
|
14252
|
+
}): CallableEntityState[];
|
|
14240
14253
|
|
|
14241
|
-
export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions
|
|
14254
|
+
export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions & {
|
|
14255
|
+
sorting?: 'local-y-axis';
|
|
14256
|
+
}): Promise<CallableEntityState[]>;
|
|
14242
14257
|
|
|
14243
14258
|
export declare function flattenCanvasAncestorsUntil(entity: CanvasEntityState, until: CanvasEntityState): {
|
|
14244
14259
|
list: CanvasEntityState[];
|
|
@@ -14333,9 +14348,20 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14333
14348
|
|
|
14334
14349
|
export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
|
|
14335
14350
|
|
|
14336
|
-
|
|
14351
|
+
/**
|
|
14352
|
+
* Recursively flattens all callable entities called by the given caller entity.
|
|
14353
|
+
* It doesn't include itself
|
|
14354
|
+
*
|
|
14355
|
+
* @param {CallerEntityState} element
|
|
14356
|
+
* @returns {CallableEntityState[]} Not including self
|
|
14357
|
+
*/
|
|
14358
|
+
export declare function flattenElementCalls(element: CallerEntityState, options?: {
|
|
14359
|
+
sorting?: 'local-y-axis';
|
|
14360
|
+
}): CallableEntityState[];
|
|
14337
14361
|
|
|
14338
|
-
export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions
|
|
14362
|
+
export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions & {
|
|
14363
|
+
sorting?: 'local-y-axis';
|
|
14364
|
+
}): Promise<CallableEntityState[]>;
|
|
14339
14365
|
|
|
14340
14366
|
export declare function flattenElementCallsOnTheSameScope(element: CallerEntityState): CallableEntityState[];
|
|
14341
14367
|
|
|
@@ -15366,9 +15392,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
15366
15392
|
|
|
15367
15393
|
export declare function getAllGloballyDeclaredFunctionDeclarationsExplanation(project: ProjectState): string;
|
|
15368
15394
|
|
|
15395
|
+
export declare function getAllGlobalValueReadingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueReadingEntityState[]>;
|
|
15396
|
+
|
|
15397
|
+
export declare function getAllGlobalValueWritingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueWritingEntityState[]>;
|
|
15398
|
+
|
|
15369
15399
|
export declare function getAllValueReadingChildren(entity: CanvasEntityState | InternalCallState): ValueReadingEntityState[];
|
|
15370
15400
|
|
|
15371
|
-
export declare function
|
|
15401
|
+
export declare function getAllValueWritingChildren(entity: CanvasEntityState | InternalCallState): ValueWritingEntityState[];
|
|
15372
15402
|
|
|
15373
15403
|
export declare function getAllVariablesInScope(project: ProjectState, variableDeclarations: VariableDeclarationState[], targetEntity?: UserManagedEntityState): VariableDeclarationState[];
|
|
15374
15404
|
|
|
@@ -18561,15 +18591,22 @@ export declare enum BaseValueDescriptorIds {
|
|
|
18561
18591
|
export declare function getImplementedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
|
|
18562
18592
|
|
|
18563
18593
|
export declare function getIncompatibleConnectionEntitiesAsync(entity: ArgumentDeclarationState | InputMapState | OutputMapState | LoopState | CallerEntityState | VariableState | ValueDescriptorState | ExecutableEntityState, connectionType: ConnectionNodeType, options?: YieldOptions & {
|
|
18564
|
-
|
|
18594
|
+
allowReadWriteToFixableScope?: boolean;
|
|
18565
18595
|
}): Promise<{
|
|
18566
18596
|
compatible: {
|
|
18567
|
-
[id: string]:
|
|
18597
|
+
[id: string]: {
|
|
18598
|
+
requiresCallConnectionTo: CallableEntityState | null;
|
|
18599
|
+
requiresCallConnectionToFrom: CallerEntityState | null;
|
|
18600
|
+
entity: EntityState;
|
|
18601
|
+
};
|
|
18568
18602
|
};
|
|
18569
18603
|
incompatible: {
|
|
18570
18604
|
[id: string]: {
|
|
18571
18605
|
entity: EntityState;
|
|
18572
18606
|
reasons: CanvasEntityConnectionDisabledReason[];
|
|
18607
|
+
fixable: boolean;
|
|
18608
|
+
requiresCallConnectionTo: CallableEntityState | null;
|
|
18609
|
+
requiresCallConnectionToFrom: CallerEntityState | null;
|
|
18573
18610
|
};
|
|
18574
18611
|
};
|
|
18575
18612
|
}>;
|
|
@@ -32536,7 +32573,11 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32536
32573
|
ValueReadingOverridesConstantProperty = "value-reading-overrides-constant-property",
|
|
32537
32574
|
DefaultValueOverridesConstantProperty = "default-value-overrides-constant-property",
|
|
32538
32575
|
ValueReadingOverridesConstantVariable = "value-reading-overrides-constant-variable",
|
|
32539
|
-
DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable"
|
|
32576
|
+
DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable",
|
|
32577
|
+
CannotSuccessCallItself = "cannot-success-call-itself",
|
|
32578
|
+
CannotErrorCallItself = "cannot-error-call-itself",
|
|
32579
|
+
CannotEntryCallItself = "cannot-entry-call-itself",
|
|
32580
|
+
CannotValueWriteItself = "cannot-value-write-itself"
|
|
32540
32581
|
}
|
|
32541
32582
|
|
|
32542
32583
|
export declare const STATIC_PROPERTY_HEIGHT = 49;
|