Merge branch 'devel' into bigbreak
Conflicts: web/news.txt
This commit is contained in:
commit
201d3c9ed0
7 changed files with 35 additions and 27 deletions
|
|
@ -153,7 +153,7 @@ proc importModuleAs(n: PNode, realModule: PSym): PSym =
|
|||
localError(n.info, errGenerated, "module alias must be an identifier")
|
||||
elif n.sons[1].ident.id != realModule.name.id:
|
||||
# some misguided guy will write 'import abc.foo as foo' ...
|
||||
result = createModuleAlias(realModule, n.sons[1].ident, n.sons[1].info)
|
||||
result = createModuleAlias(realModule, n.sons[1].ident, realModule.info)
|
||||
|
||||
proc myImportModule(c: PContext, n: PNode): PSym =
|
||||
var f = checkModuleName(n)
|
||||
|
|
@ -173,7 +173,7 @@ proc evalImport(c: PContext, n: PNode): PNode =
|
|||
# ``addDecl`` needs to be done before ``importAllSymbols``!
|
||||
addDecl(c, m) # add symbol to symbol table of module
|
||||
importAllSymbolsExcept(c, m, emptySet)
|
||||
importForwarded(c, m.ast, emptySet)
|
||||
#importForwarded(c, m.ast, emptySet)
|
||||
|
||||
proc evalFrom(c: PContext, n: PNode): PNode =
|
||||
result = n
|
||||
|
|
@ -198,4 +198,4 @@ proc evalImportExcept*(c: PContext, n: PNode): PNode =
|
|||
let ident = lookups.considerQuotedIdent(n.sons[i])
|
||||
exceptSet.incl(ident.id)
|
||||
importAllSymbolsExcept(c, m, exceptSet)
|
||||
importForwarded(c, m.ast, exceptSet)
|
||||
#importForwarded(c, m.ast, exceptSet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue