This commit is contained in:
Araq 2014-08-19 22:35:16 +02:00
commit ebe313e627
3 changed files with 40 additions and 13 deletions

View file

@ -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