I think `lineInfo` is what I'm looking for, and it looks like it exists! 
Combined with getType, since otherwise it's just the file that the findsym 
statement is in.
    
    
    from macros import lineInfo,getType
    macro findsym(x: typed): untyped =
      debugEcho(lineInfo(x.getType))
    findsym:
      lineInfo
    
    
    Run

=> `/usr/lib/nim/core/macros.nim(522, 14)`

Reply via email to