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
|
|
@ -93,7 +93,7 @@ proc semBindStmt(c: PContext, n: PNode, toBind: var TIntSet): PNode =
|
|||
|
||||
proc semMixinStmt(c: PContext, n: PNode, toMixin: var TIntSet): PNode =
|
||||
for i in 0 .. < n.len:
|
||||
toMixin.incl(considerAcc(n.sons[i]).id)
|
||||
toMixin.incl(considerAccents(n.sons[i]).id)
|
||||
result = newNodeI(nkEmpty, n.info)
|
||||
|
||||
proc replaceIdentBySym(n: var PNode, s: PNode) =
|
||||
|
|
@ -151,7 +151,7 @@ proc onlyReplaceParams(c: var TemplCtx, n: PNode): PNode =
|
|||
result.sons[i] = onlyReplaceParams(c, n.sons[i])
|
||||
|
||||
proc newGenSym(kind: TSymKind, n: PNode, c: var TemplCtx): PSym =
|
||||
result = newSym(kind, considerAcc(n), c.owner, n.info)
|
||||
result = newSym(kind, considerAccents(n), c.owner, n.info)
|
||||
incl(result.flags, sfGenSym)
|
||||
incl(result.flags, sfShadowed)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue