Text of patch.hexdocs.pm › Patch.Mock.Code.Transform.html as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Patch.Mock.Code.Transform — patch v0.16.1

View Source Patch.Mock.Code.Transform (patch v0.16.1) This module provides the ability to transform abstract forms. This module delegates transformation to purpose specific Transforms modules, see those modules for additional details on how specific transformations work. Patch.Mock.Code.Transforms.Clean for how a module is prepared for generation. Patch.Mock.Code.Transforms.Export for how exports are rewritten Patch.Mock.Code.Transforms.Filter for how functions are filtered Patch.Mock.Code.Transforms.Remote for how local calls are made remote Patch.Mock.Code.Transforms.Rename for how a module is renamed Patch.Mock.Code.Transforms.Reroute for how remote calls are rerouted Summary Functions clean(abstract_forms) See Patch.Mock.Code.Transforms.Clean.transform/1 . export(abstract_forms, exports) See Patch.Mock.Code.Transforms.Export.transform/2 . filter(abstract_forms, exports) See Patch.Mock.Code.Transforms.Filter.transform/2 . remote(abstract_forms, module) See Patch.Mock.Code.Transforms.Remote.transform/2 . rename(abstract_forms, module) See Patch.Mock.Code.Transforms.Rename.transform/2 . reroute(abstract_forms, source, destination) See Patch.Mock.Code.Transforms.Reroute.transform/3 .

Functions Link to this function clean(abstract_forms) View Source See Patch.Mock.Code.Transforms.Clean.transform/1 . Link to this function export(abstract_forms, exports) View Source See Patch.Mock.Code.Transforms.Export.transform/2 . Link to this function filter(abstract_forms, exports) View Source See Patch.Mock.Code.Transforms.Filter.transform/2 . Link to this function remote(abstract_forms, module) View Source See Patch.Mock.Code.Transforms.Remote.transform/2 .

Link to this function rename(abstract_forms, module) View Source See Patch.Mock.Code.Transforms.Rename.transform/2 . Link to this function reroute(abstract_forms, source, destination) View Source See Patch.Mock.Code.Transforms.Reroute.transform/3 .