Closed ncordon closed 5 years ago
ChildrenOrder
root
son1
son2
it = root.iterate(ChildrenOrder)
[son1, son2]
next(it)
This change is
uast/nodes/iter.go, line 236 at r1 (raw file):
We can rewrite the switch to: ```golang switch n.Kind() { case KindArray: // unfold case KindObject: // append default: // nothing (values, nil) } ```
Done.
ChildrenOrder
. Currently if we had aroot
with two childrenson1
andson2
, when callingit = root.iterate(ChildrenOrder)
, we were returned an array[son1, son2]
when callingnext(it)
. See #421 for contextChildrenOrder
This change is