diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-11-15 12:17:12 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-15 12:17:12 +0100 |
commit | 2104863910d8b54d575b81bc48a49770b2a8f93d (patch) | |
tree | 1dd529ac27b40e29ad2f546414f6dead3ac399a6 /compiler | |
parent | 632ec94b5d467393acb5c24840e665020275b643 (diff) | |
download | Nim-2104863910d8b54d575b81bc48a49770b2a8f93d.tar.gz |
nimfind: improvements
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtempl.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index 1829c05b3..14507cf9d 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -64,6 +64,7 @@ proc symChoice(c: PContext, n: PNode, s: PSym, r: TSymChoiceRule): PNode = # for instance 'nextTry' is both in tables.nim and astalgo.nim ... result = newSymNode(s, n.info) markUsed(c.config, n.info, s, c.graph.usageSym) + onUse(n.info, s) else: # semantic checking requires a type; ``fitNode`` deals with it # appropriately @@ -75,6 +76,7 @@ proc symChoice(c: PContext, n: PNode, s: PSym, r: TSymChoiceRule): PNode = if a.kind != skModule: incl(a.flags, sfUsed) addSon(result, newSymNode(a, n.info)) + onUse(n.info, a) a = nextOverloadIter(o, c, n) proc semBindStmt(c: PContext, n: PNode, toBind: var IntSet): PNode = |