View Source Patch.Mock.Code.Transforms.Clean (patch v0.14.0)

Cleans abstract form to prepare it for subsequent generation.

The following forms are retained:

  • module attribute
  • exports
  • no_auto_import compiler options (This is needed to prevent R14 shadow import warnings)
  • functions

Link to this section Summary

Link to this section Functions

Link to this function

transform(abstract_forms)

View Source
@spec transform(abstract_forms :: [Patch.Mock.Code.form()]) :: [
  Patch.Mock.Code.form()
]