diff options
author | Araq <rumpf_a@web.de> | 2020-07-27 08:05:52 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-07-27 08:05:52 +0200 |
commit | a0049d1fb0c997053ffafe8e53e8be6f611c4695 (patch) | |
tree | c4a47cc227c8e1c929473276bc74697726e022cb /compiler/importer.nim | |
parent | c229df95a4831d083c0465f745fd2ad0f64b9863 (diff) | |
download | Nim-a0049d1fb0c997053ffafe8e53e8be6f611c4695.tar.gz |
compiler: minor code cleanups
Diffstat (limited to 'compiler/importer.nim')
-rw-r--r-- | compiler/importer.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim index 844cb1ad0..34e76d7d9 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -187,10 +187,9 @@ proc impMod(c: PContext; it: PNode; importStmtResult: PNode) = let it = transformImportAs(c, it) let m = myImportModule(c, it, importStmtResult) if m != nil: - var emptySet: IntSet # ``addDecl`` needs to be done before ``importAllSymbols``! addDecl(c, m, it.info) # add symbol to symbol table of module - importAllSymbolsExcept(c, m, emptySet) + importAllSymbols(c, m) #importForwarded(c, m.ast, emptySet, m) proc evalImport*(c: PContext, n: PNode): PNode = |