You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a big breaking change, but I think it's necessary. Basically when I created this library I deviated from the compiler api and made forEachChild not return values that are returned from it. The problem with doing this is that it makes using forEachChild very impractical for finding values in the AST. I've regretted that deviation for a while now. Just need to bite the bullet and change this as soon as possible.
… API (same with `forEachDescendant`).
BREAKING CHANGE: These methods now stop when a value is returned in a callback and they will return the returned value.
This is a big breaking change, but I think it's necessary. Basically when I created this library I deviated from the compiler api and made
forEachChild
not return values that are returned from it. The problem with doing this is that it makes usingforEachChild
very impractical for finding values in the AST. I've regretted that deviation for a while now. Just need to bite the bullet and change this as soon as possible.Regarding #632
cc @cancerberoSgx
stop()
method toForEachDescendantTraversalControl
and removeForEachTraversalControl
when doing this.The text was updated successfully, but these errors were encountered: