[dumpTree](http://forum.nim-lang.org///nim-lang.org/docs/macros.html#dumpTree.m,untyped)
 is what you are looking for.
    
    
    import macros
    
    dumpTree:
      type
        Person* = ref object
          name: string
      
      proc `name=`*(self: var Person, value: string) {.maxLength: 10,
                                                       required.} =
        name = value
      
      proc name*(self: Person): string = name
    

Reply via email to