Module default_formatter

Rebar3 Pretty Printing of abstract Erlang syntax trees, following our own preferred style.

Behaviours: rebar3_ast_formatter, rebar3_formatter.

References

Description

Rebar3 Pretty Printing of abstract Erlang syntax trees, following our own preferred style.

Function Index

format/3Prettyprint/formats an abstract Erlang syntax tree as text in the style of NextRoll.
format_file/3Format a file.
init/2Initialize the formatter and generate a state that will be passed in when calling other callbacks.

Function Details

format/3

format(Node::erl_syntax:syntaxTree(), EmptyLines::[pos_integer()], Options::rebar3_formatter:opts()) -> string()

Prettyprint/formats an abstract Erlang syntax tree as text in the style of NextRoll.

See also: erl_syntax, format/1, layout/2.

format_file/3

format_file(File::file:filename_all(), X2::nostate, Opts::rebar3_formatter:opts()) -> rebar3_formatter:result()

Format a file. Apply formatting rules to a file containing erlang code. Use Opts to configure the formatter.

init/2

init(X1::rebar3_formatter:opts(), X2::undefined | rebar_state:t()) -> nostate

Initialize the formatter and generate a state that will be passed in when calling other callbacks.


Generated by EDoc