next steps for first class iterators
This commit is contained in:
parent
1fada12a5f
commit
7a2c11d3cf
6 changed files with 75 additions and 16 deletions
|
|
@ -112,7 +112,9 @@ proc newAsgnStmt(c: PTransf, le: PNode, ri: PTransNode): PTransNode =
|
|||
result[0] = PTransNode(le)
|
||||
result[1] = ri
|
||||
|
||||
proc transformSymAux(c: PTransf, n: PNode): PNode =
|
||||
proc transformSymAux(c: PTransf, n: PNode): PNode =
|
||||
if n.sym.kind == skIterator and n.sym.typ.callConv == ccClosure:
|
||||
return liftIterSym(n)
|
||||
var b: PNode
|
||||
var tc = c.transCon
|
||||
if sfBorrow in n.sym.flags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue