rebar3_mutate_ast (rebar3_mutate v0.5.4)
View SourceSummary
Types
-type mutation_point() :: #mutation_point{path :: [path_step()], operator :: rebar3_mutate_operators:operator(), file :: file:filename(), line :: non_neg_integer(), original :: erl_syntax:syntaxTree(), mutated :: erl_syntax:syntaxTree()}.
-type path_step() :: {pos_integer(), pos_integer()}.
Functions
-spec apply_mutation([erl_parse:abstract_form()], mutation_point()) -> [erl_parse:abstract_form()].
-spec describe_mutation(mutation_point()) -> iolist().
-spec get_point_file(mutation_point()) -> file:filename().
-spec get_point_line(mutation_point()) -> non_neg_integer().
-spec get_point_operator(mutation_point()) -> rebar3_mutate_operators:operator().
-spec mutation_points([erl_parse:abstract_form()], [rebar3_mutate_operators:operator()]) -> [mutation_point()].
-spec parse_file(file:filename(), [term()]) -> {ok, atom(), [erl_parse:abstract_form()]} | {error, term()}.