parent
b9cdad7497
commit
fc740c54ec
2 changed files with 15 additions and 1 deletions
|
|
@ -157,7 +157,10 @@ proc mapTypeToAstX(cache: IdentCache; t: PType; info: TLineInfo;
|
|||
of tyObject:
|
||||
if inst:
|
||||
result = newNodeX(nkObjectTy)
|
||||
result.add t.sym.ast[2][0].copyTree # copy object pragmas
|
||||
if t.sym.ast != nil:
|
||||
result.add t.sym.ast[2][0].copyTree # copy object pragmas
|
||||
else:
|
||||
result.add newNodeI(nkEmpty, info)
|
||||
if t.sons[0] == nil:
|
||||
result.add newNodeI(nkEmpty, info)
|
||||
else: # handle parent object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue