@elyx-code/project-logic-tree 0.0.6986 → 0.0.6988

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.d.ts CHANGED
@@ -12970,7 +12970,8 @@ export declare enum BaseValueDescriptorIds {
12970
12970
  DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable",
12971
12971
  CalledBeforeDeclaration = "called-before-declaration",
12972
12972
  CalledInParallelBranchToDeclaration = "called-in-parallel-branch-to-declaration",
12973
- HigherScopeThanDeclaration = "higher-scope-than-declaration"
12973
+ HigherScopeThanDeclaration = "higher-scope-than-declaration",
12974
+ ParentScopeRequiresReturnCurrentCatchesErrorWithNoCalls = "parent-scope-requires-return-current-catches-error-with-no-calls"
12974
12975
  }
12975
12976
 
12976
12977
  export declare type EntityPayloadUnion = BuiltInBaseEntityPayloadUnion | ProjectPayloadUnion | InstalledProjectPayloadUnion | DefinitionEntityPayloadUnion | FunctionDeclarationPayloadUnion | GlobalEventPayloadUnion | VariableDeclarationPayloadUnion | VariableInstancePayloadUnion | InputMapPayloadUnion | OutputMapPayloadUnion | ConditionPayloadUnion | OperationPayloadUnion | FunctionCallPayloadUnion | ArgumentDeclarationPayloadUnion | PrimitiveEntityPayloadUnion | DataTypePayloadUnion | PropertyPayloadUnion | ActionDescriptorPayloadUnion | ReturnStatementPayloadUnion | ContinueStatementPayloadUnion | BreakStatementPayloadUnion | LoopPayloadUnion | SearchPayloadUnion | ValueDescriptorPayloadUnion | InternalCallPayloadUnion | LiteralValuePayloadUnion;
@@ -14624,10 +14625,12 @@ export declare enum BaseValueDescriptorIds {
14624
14625
 
14625
14626
  export declare function flattenCalls(entities: CallableEntityState[], options?: {
14626
14627
  sorting?: 'local-y-axis';
14628
+ excludeLoopBodies?: boolean;
14627
14629
  }): CallableEntityState[];
14628
14630
 
14629
14631
  export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions & {
14630
14632
  sorting?: 'local-y-axis';
14633
+ excludeLoopBodies?: boolean;
14631
14634
  }): Promise<CallableEntityState[]>;
14632
14635
 
14633
14636
  export declare function flattenCanvasAncestorsUntil(entity: CanvasEntityState, until: CanvasEntityState): {
@@ -14732,15 +14735,19 @@ export declare enum BaseValueDescriptorIds {
14732
14735
  */
14733
14736
  export declare function flattenElementCalls(element: CallerEntityState, options?: {
14734
14737
  sorting?: 'local-y-axis';
14738
+ excludeLoopBodies?: boolean;
14735
14739
  }): CallableEntityState[];
14736
14740
 
14737
14741
  export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions & {
14738
14742
  sorting?: 'local-y-axis';
14743
+ excludeLoopBodies?: boolean;
14739
14744
  }): Promise<CallableEntityState[]>;
14740
14745
 
14741
14746
  export declare function flattenElementCallsOnTheSameScope(element: CallerEntityState): CallableEntityState[];
14742
14747
 
14743
- export declare function flattenElementCallsWithCallType(element: CallerEntityState): {
14748
+ export declare function flattenElementCallsWithCallType(element: CallerEntityState, options?: {
14749
+ excludeLoopBodies?: boolean;
14750
+ }): {
14744
14751
  callee: CallableEntityState;
14745
14752
  callType: 'success' | 'error' | 'entry' | 'loop-body';
14746
14753
  }[];
@@ -16011,7 +16018,7 @@ export declare enum BaseValueDescriptorIds {
16011
16018
  * often we need to check if the entity is called by parallel callers
16012
16019
  * Meaning that it either has to be compiled after all of them,
16013
16020
  * Or in the case of a condition caller, it cannot be compiled inside the block of either caller conditions
16014
-
16021
+ *
16015
16022
  * @param {CallableEntityState} entity The entity to check for parallel callers
16016
16023
  * @returns {{ ancestor: PassThroughCallableEntityState, callType: ('success'|'error') }[]} An array of independent parallel conditions direct calls
16017
16024
  */
@@ -28291,6 +28298,17 @@ export declare enum BaseValueDescriptorIds {
28291
28298
  callType: 'success' | 'error';
28292
28299
  }[];
28293
28300
 
28301
+ /**
28302
+ * Recursively resolves all entities that can throw errors and don't catch them, or call logic upon error
28303
+ * from the entry point, and without own ancestors or conditions or itself
28304
+ *
28305
+ * @param {CallableEntityState} entity The entity to resolve pass through entities with outputs for
28306
+ * @returns {{ ancestor: PassThroughCallableEntityWithOutputsState, call: CallableEntityState, callType: ('success'|'error') }[]} An array of independent parallel conditions direct calls
28307
+ */
28308
+ export declare function resolveAllParallelAncestorErrorCallersForEntity(entity: CallableEntityState): {
28309
+ caller: PassThroughCallableEntityWithOutputsState;
28310
+ }[];
28311
+
28294
28312
  declare function resolveAreThereConflictingColumnsInSelectAll(allColumnsSelector: AllColumnsSelector | null): boolean;
28295
28313
 
28296
28314
  export declare function resolveArgumentDeclarationValue(entity: ArgumentDeclarationState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
@@ -31655,6 +31673,16 @@ export declare enum BaseValueDescriptorIds {
31655
31673
  }[];
31656
31674
  };
31657
31675
 
31676
+ /**
31677
+ * Validates the error handling of the callable entity
31678
+ * If a parent scope should return, then the current entity can't catch and not call another entity
31679
+ * Because that means there is a branch without a return
31680
+ *
31681
+ * @param {PassThroughCallableEntityState} self
31682
+ * @returns {EntityError[]}
31683
+ */
31684
+ export declare function validateErrorHandling(self: PassThroughCallableEntityState): EntityError[];
31685
+
31658
31686
  export declare function validateFunctionCallDeclaration(functionDeclarationId: EntityId, project: ProjectState): {
31659
31687
  errors: EntityGenerationError[];
31660
31688
  explanations: {
@@ -31737,6 +31765,12 @@ export declare enum BaseValueDescriptorIds {
31737
31765
 
31738
31766
  export declare function validatePropertyName(entity: PropertyState | IPropertyGenerationTarget | IPropertyShallowTransfer | IPropertyTransfer, project: ProjectState): EntityGenerationError[];
31739
31767
 
31768
+ /**
31769
+ * Validates whether the callable entity is reachable from the project's closest entry point
31770
+ *
31771
+ * @param {PassThroughCallableEntityState} self
31772
+ * @returns {EntityError[]}
31773
+ */
31740
31774
  export declare function validateReachability(self: PassThroughCallableEntityState): EntityError[];
31741
31775
 
31742
31776
  export declare function validateReadsValueInActionPayload(readsValue: EntityId, project: ProjectState): {