@elyx-code/project-logic-tree 0.0.6463 → 0.0.6465

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
@@ -1870,6 +1870,8 @@ export declare function checkAreDefinitionEntitiesCompatibleAsDataType(sourceDef
1870
1870
 
1871
1871
  export declare function checkArePropertiesCompatibleAsDataType(sourceProperty: PropertyState, targetProperty: PropertyState): boolean;
1872
1872
 
1873
+ export declare function checkEveryCallerReachesOrIsAncestor(entity: CallableEntityState, ancestor: CallerEntityState): boolean;
1874
+
1873
1875
  export declare function checkExtendsBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
1874
1876
 
1875
1877
  export declare function checkHasBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
@@ -3997,6 +3999,11 @@ export declare function findNextIndividualCommonCallerAncestorFromGiven(entityA:
3997
3999
  callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
3998
4000
  };
3999
4001
 
4002
+ export declare function findNextSingleCallerAncestor(target: CallableEntityState, from?: CallerEntityState): {
4003
+ ancestor: CallerEntityState | null;
4004
+ callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
4005
+ };
4006
+
4000
4007
  export declare function findReferencesToSelfInProject(element: EntityState): EntityState[];
4001
4008
 
4002
4009
  export declare function findReferenceToSelfInList(element: EntityState, elements: EntityState[]): EntityState[];
@@ -7883,6 +7890,12 @@ export declare function getParentCanvasEntity(entity: EntityState): CanvasEntity
7883
7890
 
7884
7891
  export declare function getParentCanvasEntityFromTransfer(entity: Element_2 | ElementTransfer | ElementShallowTransfer | IGenericReference, allKnownEntities: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>): DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer | null;
7885
7892
 
7893
+ /**
7894
+ * Most entities will be part of a logic chain that starts at an entry point entity
7895
+ * We we need to find the entry point entity that is the parent of the given entity
7896
+ * @param entity The entity to find the entry point for
7897
+ * @returns The entry point entity if found, or null if not found
7898
+ */
7886
7899
  export declare function getParentEntryPoint(entity: EntityState): EntryPointEntityState | null;
7887
7900
 
7888
7901
  export declare function getParentExecutableEntity(entity: EntityState): ExecutableEntityState | null;
@@ -8331,6 +8344,13 @@ export declare function getRelationalDBInstanceNameFromEntityId(entityId: string
8331
8344
 
8332
8345
  export declare function getRootEntryPointScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
8333
8346
 
8347
+ /**
8348
+ * Recursively access 'parent' property until we find the first parent entity that can own scope, or the project
8349
+ * @param entity EntityState or Element that has a 'parent' property
8350
+ * @param project ProjectState to check against
8351
+ * @param _initialEntity Initial entity to check against, used for recursion
8352
+ * @returns EntityWithLogicScopeState or ProjectState that owns the scope, or null if no valid scope owner is found
8353
+ */
8334
8354
  export declare function getScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState, _initialEntity?: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer | null): EntityWithLogicScopeState | ProjectState | null;
8335
8355
 
8336
8356
  declare function getSelectClauseFromSelectStatement(selectStatement: SelectStmt): SelectClause;