Behaviours: rebar3_ast_formatter, rebar3_formatter.
References
format/3 | Pretty-prints/formats an abstract Erlang syntax tree as text in the style of NextRoll. |
format_file/3 | Format a file. |
init/2 | Initialize the formatter and generate a state that will be passed in when calling other callbacks. |
format(Node::erl_syntax:syntaxTree(), EmptyLines::[pos_integer()], Options::rebar3_formatter:opts()) -> string()
Pretty-prints/formats an abstract Erlang syntax tree as text in the style of NextRoll.
See also: erl_syntax, format/1, layout/2.
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(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