Skip to content

Test deprecation

test_deprecation

TestDeprecationPass dataclass

Bases: ModulePass

Test pass that does nothing and raises a DeprecationWarning.

Source code in xdsl/transforms/test_deprecation.py
 8
 9
10
11
12
13
14
15
16
@deprecated("hello")
class TestDeprecationPass(ModulePass):
    """
    Test pass that does nothing and raises a DeprecationWarning.
    """

    name = "test-deprecation"

    def apply(self, ctx: Context, op: builtin.ModuleOp) -> None: ...

name = 'test-deprecation' class-attribute instance-attribute

apply(ctx: Context, op: builtin.ModuleOp) -> None

Source code in xdsl/transforms/test_deprecation.py
16
def apply(self, ctx: Context, op: builtin.ModuleOp) -> None: ...