diff --git a/src/ast/cells.nim b/src/ast/cells.nim index abbc432a..fb88528a 100644 --- a/src/ast/cells.nim +++ b/src/ast/cells.nim @@ -25,11 +25,11 @@ type noSpaceLeft*: bool noSpaceRight*: bool - Cell* = ref object of RootObj + Cell* {.acyclic.} = ref object of RootObj when defined(js): aDebug*: cstring id*: CellId - parent*: Cell + parent* {.cursor.}: Cell flags*: CellFlags node*: AstNode referenceNode*: AstNode @@ -67,7 +67,7 @@ type cells*: Table[CellId, Cell] builder*: CellBuilder - CollectionCell* = ref object of Cell + CollectionCell* {.acyclic.} = ref object of Cell uiFlags*: UINodeFlags inline*: bool children*: seq[Cell] diff --git a/src/ast/model.nim b/src/ast/model.nim index 48acd704..794dd159 100644 --- a/src/ast/model.nim +++ b/src/ast/model.nim @@ -83,7 +83,7 @@ type class*: ClassId registryIndex: int32 # Index in the global node registry (0 if not registered) - model*: Model # gets set when inserted into a parent node which is in a model, or when inserted into a model + model* {.cursor.}: Model # gets set when inserted into a parent node which is in a model, or when inserted into a model parent* {.cursor.}: AstNode # gets set when inserted into a parent node role*: RoleId # gets set when inserted into a parent node