refactor: Refactor some functions and add some stack helpers

Description

Adds a few helper functions to pave the way for #7472 (closed):

  • Iter2() - just like Iter(), but includes an index
  • IndexAt() - find the current position a branch is at in the stack

Also clarifies some names and makes some test helpers public.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap

Related to #7472 (closed)

Edited by Gary Holtz

Merge request reports

Loading