Some types implicitly handled by toPreserve

This commit is contained in:
Emery Hemingway 2021-09-21 09:38:37 +02:00
parent 6b7a23fecf
commit ea50b05bad
1 changed files with 3 additions and 0 deletions

View File

@ -398,6 +398,9 @@ proc generateProcs(result: var seq[PNode]; scm: Schema; name: string; sn: Schema
nn(nkDotExpr, paramId, fieldId))
of snkTuple, snkVariableTuple:
stmts.add tupleConstructor(scm, sn, nn(nkDotExpr, paramId, fieldId))
of snkAtom, snkSequenceOf:
# already handled by toPreserve
discard
else:
raiseAssert("no case statement for " & $sn.kind & " " & $sn)
for bn in sn.nodes: