fixes #3333
This commit is contained in:
parent
64e1408920
commit
cab0c3e544
1 changed files with 6 additions and 6 deletions
|
|
@ -79,19 +79,19 @@ proc importSymbol(c: PContext, n: PNode, fromMod: PSym) =
|
||||||
else:
|
else:
|
||||||
when false:
|
when false:
|
||||||
if s.kind == skStub: loadStub(s)
|
if s.kind == skStub: loadStub(s)
|
||||||
if s.kind notin ExportableSymKinds:
|
let multiImport = s.kind notin ExportableSymKinds or s.kind in skProcKinds
|
||||||
internalError(c.config, n.info, "importSymbol: 2")
|
|
||||||
# for an enumeration we have to add all identifiers
|
# for an enumeration we have to add all identifiers
|
||||||
case s.kind
|
if multiImport:
|
||||||
of skProcKinds:
|
|
||||||
# for a overloadable syms add all overloaded routines
|
# for a overloadable syms add all overloaded routines
|
||||||
var it: TIdentIter
|
var it: TIdentIter
|
||||||
var e = initIdentIter(it, fromMod.tab, s.name)
|
var e = initIdentIter(it, fromMod.tab, s.name)
|
||||||
while e != nil:
|
while e != nil:
|
||||||
if e.name.id != s.name.id: internalError(c.config, n.info, "importSymbol: 3")
|
if e.name.id != s.name.id: internalError(c.config, n.info, "importSymbol: 3")
|
||||||
rawImportSymbol(c, e)
|
if s.kind in ExportableSymKinds:
|
||||||
|
rawImportSymbol(c, e)
|
||||||
e = nextIdentIter(it, fromMod.tab)
|
e = nextIdentIter(it, fromMod.tab)
|
||||||
else: rawImportSymbol(c, s)
|
else:
|
||||||
|
rawImportSymbol(c, s)
|
||||||
suggestSym(c.config, n.info, s, c.graph.usageSym, false)
|
suggestSym(c.config, n.info, s, c.graph.usageSym, false)
|
||||||
|
|
||||||
proc importAllSymbolsExcept(c: PContext, fromMod: PSym, exceptSet: IntSet) =
|
proc importAllSymbolsExcept(c: PContext, fromMod: PSym, exceptSet: IntSet) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue