partisan_otp_rewrite (partisan v6.0.0)

View Source

Mechanical AST rewrite engine for transforming OTP modules (gen_server, gen, etc.) into their Partisan equivalents. Stateless and deterministic.

Given the original module name and its parsed forms, produces a new list of forms with module names, remote calls, BIF calls, behaviour attributes, and atoms in data positions rewritten according to the Partisan rename map.

Summary

Functions

Walk the list of forms top-to-bottom, applying all rewrite rules.

Functions

transform(OrigModule, Forms)

Walk the list of forms top-to-bottom, applying all rewrite rules.