fixes #1690
This commit is contained in:
parent
280fa9624c
commit
f96e0a7523
2 changed files with 5 additions and 4 deletions
|
|
@ -735,7 +735,7 @@ type
|
|||
# check for the owner when touching 'usedGenerics'.
|
||||
usedGenerics*: seq[PInstantiation]
|
||||
tab*: TStrTable # interface table for modules
|
||||
of skLet, skVar, skField:
|
||||
of skLet, skVar, skField, skForVar:
|
||||
guard*: PSym
|
||||
else: nil
|
||||
magic*: TMagic
|
||||
|
|
|
|||
|
|
@ -450,9 +450,10 @@ proc debug(n: PSym) =
|
|||
writeln(stdout, "skUnknown")
|
||||
else:
|
||||
#writeln(stdout, ropeToStr(symToYaml(n, 0, 1)))
|
||||
writeln(stdout, ropeToStr(ropef("$1_$2: $3, $4, $5", [
|
||||
toRope(n.name.s), toRope(n.id), flagsToStr(n.flags),
|
||||
flagsToStr(n.loc.flags), lineInfoToStr(n.info)])))
|
||||
writeln(stdout, "$1_$2: $3, $4, $5, $6" % [
|
||||
n.name.s, $n.id, flagsToStr(n.flags).ropeToStr,
|
||||
flagsToStr(n.loc.flags).ropeToStr, lineInfoToStr(n.info).ropeToStr,
|
||||
$n.kind])
|
||||
|
||||
proc debug(n: PType) =
|
||||
writeln(stdout, ropeToStr(debugType(n)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue