ml_switcheroo.core.rewriter.pipeline ==================================== .. py:module:: ml_switcheroo.core.rewriter.pipeline .. autoapi-nested-parse:: Orchestration logic for executing sequential rewriter passes. This module provides the ``RewriterPipeline``, which manages the sequential execution of multiple ``RewriterPass`` instances over a shared Context. Classes ------- .. autoapisummary:: ml_switcheroo.core.rewriter.pipeline.RewriterPipeline Module Contents --------------- .. py:class:: RewriterPipeline(passes: List[ml_switcheroo.core.rewriter.interface.RewriterPass]) Manages a sequence of rewriting passes and executes them in order. .. py:attribute:: passes .. py:method:: run(module: libcst.Module, context: ml_switcheroo.core.rewriter.context.RewriterContext) -> libcst.Module Executes all registered passes sequentially on the module. :param module: The source AST to transform. :param context: The shared execution state containing semantics and config. :returns: The fully transformed AST.