@elyx-code/project-logic-tree 0.0.6813 → 0.0.6814
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 +42 -9
- package/dist/index.js +30629 -29945
- 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;
|
|
@@ -14236,9 +14239,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14236
14239
|
|
|
14237
14240
|
export declare function flattenCallers(entity: CallableEntityState): CallerEntityState[];
|
|
14238
14241
|
|
|
14239
|
-
export declare function flattenCalls(entities: CallableEntityState[]
|
|
14242
|
+
export declare function flattenCalls(entities: CallableEntityState[], options?: {
|
|
14243
|
+
sorting?: 'local-y-axis';
|
|
14244
|
+
}): CallableEntityState[];
|
|
14240
14245
|
|
|
14241
|
-
export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions
|
|
14246
|
+
export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions & {
|
|
14247
|
+
sorting?: 'local-y-axis';
|
|
14248
|
+
}): Promise<CallableEntityState[]>;
|
|
14242
14249
|
|
|
14243
14250
|
export declare function flattenCanvasAncestorsUntil(entity: CanvasEntityState, until: CanvasEntityState): {
|
|
14244
14251
|
list: CanvasEntityState[];
|
|
@@ -14333,9 +14340,20 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14333
14340
|
|
|
14334
14341
|
export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
|
|
14335
14342
|
|
|
14336
|
-
|
|
14343
|
+
/**
|
|
14344
|
+
* Recursively flattens all callable entities called by the given caller entity.
|
|
14345
|
+
* It doesn't include itself
|
|
14346
|
+
*
|
|
14347
|
+
* @param {CallerEntityState} element
|
|
14348
|
+
* @returns {CallableEntityState[]} Not including self
|
|
14349
|
+
*/
|
|
14350
|
+
export declare function flattenElementCalls(element: CallerEntityState, options?: {
|
|
14351
|
+
sorting?: 'local-y-axis';
|
|
14352
|
+
}): CallableEntityState[];
|
|
14337
14353
|
|
|
14338
|
-
export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions
|
|
14354
|
+
export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions & {
|
|
14355
|
+
sorting?: 'local-y-axis';
|
|
14356
|
+
}): Promise<CallableEntityState[]>;
|
|
14339
14357
|
|
|
14340
14358
|
export declare function flattenElementCallsOnTheSameScope(element: CallerEntityState): CallableEntityState[];
|
|
14341
14359
|
|
|
@@ -15366,9 +15384,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
15366
15384
|
|
|
15367
15385
|
export declare function getAllGloballyDeclaredFunctionDeclarationsExplanation(project: ProjectState): string;
|
|
15368
15386
|
|
|
15387
|
+
export declare function getAllGlobalValueReadingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueReadingEntityState[]>;
|
|
15388
|
+
|
|
15389
|
+
export declare function getAllGlobalValueWritingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueWritingEntityState[]>;
|
|
15390
|
+
|
|
15369
15391
|
export declare function getAllValueReadingChildren(entity: CanvasEntityState | InternalCallState): ValueReadingEntityState[];
|
|
15370
15392
|
|
|
15371
|
-
export declare function
|
|
15393
|
+
export declare function getAllValueWritingChildren(entity: CanvasEntityState | InternalCallState): ValueWritingEntityState[];
|
|
15372
15394
|
|
|
15373
15395
|
export declare function getAllVariablesInScope(project: ProjectState, variableDeclarations: VariableDeclarationState[], targetEntity?: UserManagedEntityState): VariableDeclarationState[];
|
|
15374
15396
|
|
|
@@ -18561,15 +18583,22 @@ export declare enum BaseValueDescriptorIds {
|
|
|
18561
18583
|
export declare function getImplementedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
|
|
18562
18584
|
|
|
18563
18585
|
export declare function getIncompatibleConnectionEntitiesAsync(entity: ArgumentDeclarationState | InputMapState | OutputMapState | LoopState | CallerEntityState | VariableState | ValueDescriptorState | ExecutableEntityState, connectionType: ConnectionNodeType, options?: YieldOptions & {
|
|
18564
|
-
|
|
18586
|
+
allowReadWriteToFixableScope?: boolean;
|
|
18565
18587
|
}): Promise<{
|
|
18566
18588
|
compatible: {
|
|
18567
|
-
[id: string]:
|
|
18589
|
+
[id: string]: {
|
|
18590
|
+
requiresCallConnectionTo: CallableEntityState | null;
|
|
18591
|
+
requiresCallConnectionToFrom: CallerEntityState | null;
|
|
18592
|
+
entity: EntityState;
|
|
18593
|
+
};
|
|
18568
18594
|
};
|
|
18569
18595
|
incompatible: {
|
|
18570
18596
|
[id: string]: {
|
|
18571
18597
|
entity: EntityState;
|
|
18572
18598
|
reasons: CanvasEntityConnectionDisabledReason[];
|
|
18599
|
+
fixable: boolean;
|
|
18600
|
+
requiresCallConnectionTo: CallableEntityState | null;
|
|
18601
|
+
requiresCallConnectionToFrom: CallerEntityState | null;
|
|
18573
18602
|
};
|
|
18574
18603
|
};
|
|
18575
18604
|
}>;
|
|
@@ -32536,7 +32565,11 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32536
32565
|
ValueReadingOverridesConstantProperty = "value-reading-overrides-constant-property",
|
|
32537
32566
|
DefaultValueOverridesConstantProperty = "default-value-overrides-constant-property",
|
|
32538
32567
|
ValueReadingOverridesConstantVariable = "value-reading-overrides-constant-variable",
|
|
32539
|
-
DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable"
|
|
32568
|
+
DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable",
|
|
32569
|
+
CannotSuccessCallItself = "cannot-success-call-itself",
|
|
32570
|
+
CannotErrorCallItself = "cannot-error-call-itself",
|
|
32571
|
+
CannotEntryCallItself = "cannot-entry-call-itself",
|
|
32572
|
+
CannotValueWriteItself = "cannot-value-write-itself"
|
|
32540
32573
|
}
|
|
32541
32574
|
|
|
32542
32575
|
export declare const STATIC_PROPERTY_HEIGHT = 49;
|