partisan_otp_patches (partisan v6.0.0)

View Source

Structural AST patches applied AFTER the mechanical rewrite done by partisan_otp_rewrite:transform/2. Replaces, appends, or adds functions and exports in the already-rewritten forms for gen_server and gen modules.

Because the patches are injected into code that has already been rewritten, all patch source strings use partisan names directly (e.g. partisan:node(), partisan:send(), partisan_gen:get_opts()).

Summary

Functions

Apply all structural patches for OrigModule to the given forms.

Functions

apply_patches(OrigModule, Forms)

Apply all structural patches for OrigModule to the given forms.