summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-11-23 12:48:32 -0500
committerGitHub <noreply@github.com>2018-11-23 12:48:32 -0500
commit0fcf0e0c290facf35da650f8d9077c767e504d1b (patch)
tree5438b8e78f1773053bcb7c5a547ae6307cd8f155
parentc2076a613812461a20788cbade27f580761a1d82 (diff)
parent5b51f3cf591a3de15598a1d1d8040e10fdeaa678 (diff)
Merge pull request #1951 from ferd/fix-compiler-behaviour-spec
Fix typespecs of new compiler behaviour
-rw-r--r--src/rebar_compiler.erl4
1 files changed, 3 insertions, 1 deletions
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").