Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(semantic):
AstNodeParentIter
fetch nodes lazily (#4533)
Refactor `AstNodeParentIter`, which is used to iterate down node ancestry chain. Fetch `AstNode` objects lazily, only when they're required by a `next()` call. If caller doesn't iterate all the way down the chain, likely this will result in 1 less array lookup.
- Loading branch information