From 10e23e915999ad3cb3911f22af195951da67f5df Mon Sep 17 00:00:00 2001 From: Clay Sweetser Date: Mon, 26 May 2014 10:42:10 -0400 Subject: [PATCH] Renamed considerAccents to considerQuotedIdent --- compiler/importer.nim | 4 ++-- compiler/lookups.nim | 20 ++++++++++---------- compiler/pragmas.nim | 2 +- compiler/sem.nim | 4 ++-- compiler/semcall.nim | 2 +- compiler/semexprs.nim | 10 +++++----- compiler/semgnrc.nim | 4 ++-- compiler/semstmts.nim | 4 ++-- compiler/semtempl.nim | 4 ++-- compiler/semtypes.nim | 2 +- compiler/sigmatch.nim | 6 +++--- 11 files changed, 31 insertions(+), 31 deletions(-) diff --git a/compiler/importer.nim b/compiler/importer.nim index 62fff63ee..b4cae017e 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.considerAccents(n) + let ident = lookups.considerQuotedIdent(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.considerAccents(n.sons[i]) + let ident = lookups.considerQuotedIdent(n.sons[i]) exceptSet.incl(ident.id) importAllSymbolsExcept(c, m, exceptSet) importForwarded(c, m.ast, exceptSet) diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 9b7ccf93a..aee64f52f 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -15,7 +15,7 @@ import proc ensureNoMissingOrUnusedSymbols(scope: PScope) -proc considerAccents*(n: PNode): PIdent = +proc considerQuotedIdent*(n: PNode): PIdent = ## Retrieve a PIdent from a PNode, taking into account accent nodes. case n.kind of nkIdent: result = n.ident @@ -23,7 +23,7 @@ proc considerAccents*(n: PNode): PIdent = of nkAccQuoted: case n.len of 0: globalError(n.info, errIdentifierExpected, renderTree(n)) - of 1: result = considerAccents(n.sons[0]) + of 1: result = considerQuotedIdent(n.sons[0]) else: var id = "" for i in 0..