Files
carbon-lang/toolchain
josh11bandJosh L b894d4e62c Refactor StringifyTypeExpr (#4597)
* Make the step stack into a class
* Make the operations on the stack (pushing, popping, test for done)
into methods on the stack class.
* Add more kinds of steps (array bound and name).
* Rewrite cases to use the new kinds of steps. Afterward, none use
`Step::Next()` or the step index, so those get removed.
* Add another convenience method `PushTypeId`.
* Remove the `SemIR::File&` member from the steps, since it doesn't
change.

Hopefully using `step_stack.Push`... calls makes it clear that they are
resolved in the reverse order they are executed.

---------

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
2024-11-27 02:20:31 +00:00
..
2024-11-27 01:37:49 +00:00
2024-11-26 18:16:25 +00:00
2024-11-27 02:20:31 +00:00