avl._core.phase_manager module

class avl._core.phase_manager.PhaseManager[source]
static get_phase(name: str) Phase[source]

Gets a phase by name.

Parameters:

name (str) – Name of the phase.

Returns:

The phase with the given name.

Return type:

Phase

static add_phase(name, after: Phase | None = None, top_down: bool = True) Phase[source]

Adds a phase to the manager.

Parameters:
  • name (str) – Name of the phase.

  • after (Phase) – The phase to add after (optional).

  • top_down (bool) – Indicates if the phase is top-down (default is True).

Returns:

The added phase.

Return type:

Phase

static remove_phase(name: str) None[source]

Removes a phase from the manager.

Parameters:

name (str) – Name of the phase.

static next() Phase | None[source]

Moves to the next phase.

Returns:

The next phase.

Return type:

Phase

static prev() Phase | None[source]

Moves to the previous phase.

Returns:

The previous phase.

Return type:

Phase