Don't use deprecated intsets.empty
This commit is contained in:
parent
63f9385327
commit
4a471d8231
1 changed files with 2 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ proc importAllSymbolsExcept(c: PContext, fromMod: PSym, exceptSet: IntSet) =
|
||||||
if s.kind != skEnumField:
|
if s.kind != skEnumField:
|
||||||
if s.kind notin ExportableSymKinds:
|
if s.kind notin ExportableSymKinds:
|
||||||
internalError(s.info, "importAllSymbols: " & $s.kind)
|
internalError(s.info, "importAllSymbols: " & $s.kind)
|
||||||
if exceptSet.empty or s.name.id notin exceptSet:
|
if s.name.id notin exceptSet:
|
||||||
rawImportSymbol(c, s)
|
rawImportSymbol(c, s)
|
||||||
s = nextIter(i, fromMod.tab)
|
s = nextIter(i, fromMod.tab)
|
||||||
|
|
||||||
|
|
@ -138,7 +138,7 @@ proc importForwarded(c: PContext, n: PNode, exceptSet: IntSet) =
|
||||||
let s = a.sym
|
let s = a.sym
|
||||||
if s.kind == skModule:
|
if s.kind == skModule:
|
||||||
importAllSymbolsExcept(c, s, exceptSet)
|
importAllSymbolsExcept(c, s, exceptSet)
|
||||||
elif exceptSet.empty or s.name.id notin exceptSet:
|
elif s.name.id notin exceptSet:
|
||||||
rawImportSymbol(c, s)
|
rawImportSymbol(c, s)
|
||||||
of nkExportExceptStmt:
|
of nkExportExceptStmt:
|
||||||
localError(n.info, errGenerated, "'export except' not implemented")
|
localError(n.info, errGenerated, "'export except' not implemented")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue