From 5b51f3cf591a3de15598a1d1d8040e10fdeaa678 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Fri, 23 Nov 2018 12:01:03 -0500 Subject: Fix typespecs of new compiler behaviour --- src/rebar_compiler.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_compiler.erl b/src/rebar_compiler.erl index 092f898..7da265c 100644 --- a/src/rebar_compiler.erl +++ b/src/rebar_compiler.erl @@ -20,10 +20,12 @@ src_ext => extension(), out_mappings => out_mappings()}. -callback needed_files(digraph:graph(), [file:filename()], out_mappings(), - rebar_app_info:t()) -> [file:filename()]. + rebar_app_info:t()) -> + {{[file:filename()], term()}, {[file:filename()], term()}}. -callback dependencies(file:filename(), file:dirname(), [file:dirname()]) -> [file:filename()]. -callback compile(file:filename(), out_mappings(), rebar_dict(), list()) -> ok | {ok, [string()]} | {ok, [string()], [string()]}. +-callback clean([file:filename()], rebar_app_info:t()) -> _. -define(DAG_VSN, 2). -define(DAG_FILE, "source.dag"). -- cgit v1.1