Renamed 'considerAcc' to 'considerAccents' for clarity
Added documentation string to 'considerAccents' Modified renderParamType's assertion to allow nkAcc nodes.
This commit is contained in:
parent
b54f66eeff
commit
055cdb2cdf
12 changed files with 33 additions and 33 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import renderer, strutils, ast, msgs, types
|
||||
import renderer, strutils, ast, msgs, types, astalgo
|
||||
|
||||
const defaultParamSeparator* = ","
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ proc renderParamTypes(found: var seq[string], n: PNode) =
|
|||
if not typ.isNil: typeStr = typeToString(typ, preferExported)
|
||||
if typeStr.len < 1: return
|
||||
for i in 0 .. <typePos:
|
||||
assert n[i].kind == nkIdent
|
||||
assert ((n[i].kind == nkIdent) or (n[i].kind == nkAccQuoted))
|
||||
found.add(typeStr)
|
||||
else:
|
||||
internalError(n.info, "renderParamTypes(found,n) with " & $n.kind)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue