Don't choke on nnkDotExpr nodes (#71)

Fixes #69
This commit is contained in:
LemonBoy 2018-09-03 00:25:51 +02:00 • committed by Andreas Rumpf
commit bd69de9f14

View file

@ -25,6 +25,8 @@ proc getName(n: NimNode): string =
result = getName(n[1]) & "-" & getName(n[2])
else:
expectKind(n, nnkIdent)
of nnkDotExpr:
result = getName(n[0]) & "." & getName(n[1])
else:
#echo repr n
expectKind(n, nnkIdent)