exfmt v0.1.0 API Reference

Modules

Exfmt, an opinionated Elixir source code formatter. 🌸

A set of functions for creating and manipulating algebra documents

Handling the conversion of infix operators to Algebgra

We leverage Code.string_to_quoted/2 to get the AST from Elixir source code. This is great as it’s maintained by the core team (i.e. not me). This is not great as it doesn’t preserve comments, so we need to extract them ourselves and then merge them into the AST later

Exceptions