last_child method

last_child

Moves the TreeWalker to the last visible child of the current node, and returns the new node. If the current node has no visible children, returns null, and retains the current node.

Returns

The new node, or null if the current node has no children in the TreeWalker’s logical view.

def last_child(self):
    ...

See Also