Skip to content

Commit

Permalink
added acyclic pragma to some types
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Mar 3, 2024
1 parent 37e9306 commit 51feac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ast/cells.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/ast/model.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 51feac9

Please sign in to comment.