fixes #1334
This commit is contained in:
parent
7ef076a04a
commit
ebe313e627
3 changed files with 40 additions and 13 deletions
|
|
@ -116,14 +116,6 @@ proc iiTablePut*(t: var TIITable, key, val: int)
|
|||
|
||||
# implementation
|
||||
|
||||
proc skipConv*(n: PNode): PNode =
|
||||
case n.kind
|
||||
of nkObjUpConv, nkObjDownConv, nkChckRange, nkChckRangeF, nkChckRange64:
|
||||
result = n.sons[0]
|
||||
of nkHiddenStdConv, nkHiddenSubConv, nkConv:
|
||||
result = n.sons[1]
|
||||
else: result = n
|
||||
|
||||
proc skipConvAndClosure*(n: PNode): PNode =
|
||||
result = n
|
||||
while true:
|
||||
|
|
@ -135,10 +127,6 @@ proc skipConvAndClosure*(n: PNode): PNode =
|
|||
result = result.sons[1]
|
||||
else: break
|
||||
|
||||
proc skipConvTakeType*(n: PNode): PNode =
|
||||
result = n.skipConv
|
||||
result.typ = n.typ
|
||||
|
||||
proc sameValue*(a, b: PNode): bool =
|
||||
result = false
|
||||
case a.kind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue