diff options
author | Clay Sweetser <clay.sweetser@gmail.com> | 2014-05-24 08:10:40 -0400 |
---|---|---|
committer | Clay Sweetser <clay.sweetser@gmail.com> | 2014-05-24 08:10:40 -0400 |
commit | 055cdb2cdf2d96f8990da17abfce1a9c442d36a3 (patch) | |
tree | e78a9563a925136f8fa40fc07070b85ae524c8c6 /compiler/importer.nim | |
parent | b54f66eeff4c9977a7e855f9f310216f59729860 (diff) | |
download | Nim-055cdb2cdf2d96f8990da17abfce1a9c442d36a3.tar.gz |
Renamed 'considerAcc' to 'considerAccents' for clarity
Added documentation string to 'considerAccents' Modified renderParamType's assertion to allow nkAcc nodes.
Diffstat (limited to 'compiler/importer.nim')
-rw-r--r-- | compiler/importer.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim index 7a73f2bbf..62fff63ee 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -93,7 +93,7 @@ proc rawImportSymbol(c: PContext, s: PSym) = if hasPattern(s): addPattern(c, s) proc importSymbol(c: PContext, n: PNode, fromMod: PSym) = - let ident = lookups.considerAcc(n) + let ident = lookups.considerAccents(n) let s = strTableGet(fromMod.tab, ident) if s == nil: localError(n.info, errUndeclaredIdentifier, ident.s) @@ -193,7 +193,7 @@ proc evalImportExcept*(c: PContext, n: PNode): PNode = addDecl(c, m) # add symbol to symbol table of module var exceptSet = initIntSet() for i in countup(1, sonsLen(n) - 1): - let ident = lookups.considerAcc(n.sons[i]) + let ident = lookups.considerAccents(n.sons[i]) exceptSet.incl(ident.id) importAllSymbolsExcept(c, m, exceptSet) importForwarded(c, m.ast, exceptSet) |