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
{{ message }}
Repository navigation
[Bug]: CtIterator documentation does not match the the implementation. #6703
The documentation for CtIterator states that it is
A class to be able to iterate over the children elements in the tree of a given node, in depth-first order.
Either the documentation is wrong or the implementation is incorrect, because the iterator also reports the node on which the iterator is invoked.
This also causes an issue with CtElementImpl.descendantIterator(). I don't expect the calling node to be reported as a descendant of itself. At a minimum, this needs to be documented or the name of the function changed to something that reflects what it does, e.g., descendantOrSelfIterator.
Activity