浏览代码

fix callback typespecs

pull/2246/head
Fred Hebert 5 年前
父节点
当前提交
4ae23c6881
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      src/rebar_compiler.erl

+ 6
- 2
src/rebar_compiler.erl 查看文件

@ -31,10 +31,14 @@
-callback dependencies(file:filename(), file:dirname(), [file:dirname()]) -> [file:filename()].
-callback dependencies(file:filename(), file:dirname(), [file:dirname()], term()) -> [file:filename()].
-callback compile(file:filename(), out_mappings(), rebar_dict(), list()) ->
ok | {ok, [string()]} | {ok, [string()], [string()]}.
ok | {ok, [string()]} | error | {error, [string()], [string()]} | skipped.
-callback compile_and_track(file:filename(), out_mappings(), rebar_dict(), list()) ->
{ok, [{file:filename(), file:filename(), term()}]} |
{ok, [{file:filename(), file:filename(), term()}], [string()]} |
{error, [string()], [string()]} | error.
-callback clean([file:filename()], rebar_app_info:t()) -> _.
-optional_callbacks([dependencies/4]).
-optional_callbacks([dependencies/4, compile_and_track/4]).
-define(RE_PREFIX, "^(?!\\._)").

正在加载...
取消
保存