Removed debug prints.

This commit is contained in:
Joey Payne 2015-10-07 23:41:01 -06:00
commit 31317caca4

View file

@ -222,7 +222,6 @@ macro class*(head: untyped, body: untyped): untyped =
of nnkIteratorDef, nnkConverterDef, nnkMacroDef, nnkTemplateDef: of nnkIteratorDef, nnkConverterDef, nnkMacroDef, nnkTemplateDef:
# inject `self: T` into the arguments # inject `self: T` into the arguments
let n = copyNimTree(node) let n = copyNimTree(node)
echo n.treeRepr
n[3].insert(1, newIdentDefs(ident(objReference), typeName)) n[3].insert(1, newIdentDefs(ident(objReference), typeName))
result.insert(numRes, n) result.insert(numRes, n)
numRes += 1 numRes += 1
@ -291,7 +290,6 @@ macro class*(head: untyped, body: untyped): untyped =
# Empty <= We want to replace self # Empty <= We want to replace self
typeDecl[0][0][2][0][2] = recList typeDecl[0][0][2][0][2] = recList
result.insert(0, typeDecl) result.insert(0, typeDecl)
echo result.toStrLit()
when isMainModule: when isMainModule:
class Animal of RootObj: class Animal of RootObj: