summary refs log tree commit diff stats
path: root/compiler/importer.nim
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-19 00:21:14 +0530
committerAndreas Rumpf <rumpf_a@web.de>2018-12-18 19:51:14 +0100
commit2acefee0449b440b109aad9e5c263305dcd10f96 (patch)
treee9943f4b545124e5c7a99330938eafc9668a83b1 /compiler/importer.nim
parent8f4befe3680b1d2ce38d9b5e482a5436b49f122f (diff)
downloadNim-2acefee0449b440b109aad9e5c263305dcd10f96.tar.gz
Nimsuggest now shows gotodef for y in `from x import y` (#10023)
Diffstat (limited to 'compiler/importer.nim')
-rw-r--r--compiler/importer.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim
index 131b1ad8a..118d26d80 100644
--- a/compiler/importer.nim
+++ b/compiler/importer.nim
@@ -92,6 +92,7 @@ proc importSymbol(c: PContext, n: PNode, fromMod: PSym) =
         rawImportSymbol(c, e)
         e = nextIdentIter(it, fromMod.tab)
     else: rawImportSymbol(c, s)
+  suggestSym(c.config, n.info, s, c.graph.usageSym, false)
 
 proc importAllSymbolsExcept(c: PContext, fromMod: PSym, exceptSet: IntSet) =
   var i: TTabIter