Just a simple question. Is there any kind of documentation about what type of children NimNodes expect?
dumpAstGen:
type test = object
gives the result
nnkStmtList.newTree(
nnkTypeSection.newTree(
nnkTypeDef.newTree(
newIdentNode("test"),
newEmptyNode(),
nnkObjectTy.newTree(
newEmptyNode(),
newEmptyNode(),
newEmptyNode()
)
)
)
)
In regards to the nnkObjectTy statement It is unclear about what should be replaced for the three newEmptyNode() calls. I know you can just try different patterns, but it would be nice if I could just know what it expects or what is possible.