aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-09-04 14:03:55 +0200
committerSverker Eriksson <[email protected]>2018-09-04 14:03:55 +0200
commitc227e4aa03196dfa8c0228e1d9537299f66ba376 (patch)
treea75f11c7628bf9d3118a8c4d3647506a73ea8ec8 /lib
parent31e7b5ab0b72acbbca649b99ade82bba145cc390 (diff)
parent8593638d1ab72a26ca85a7ef189bb8b0c2e831e8 (diff)
downloadotp-c227e4aa03196dfa8c0228e1d9537299f66ba376.tar.gz
otp-c227e4aa03196dfa8c0228e1d9537299f66ba376.tar.bz2
otp-c227e4aa03196dfa8c0228e1d9537299f66ba376.zip
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/src/ms_transform.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stdlib/src/ms_transform.erl b/lib/stdlib/src/ms_transform.erl
index d117481d2e..3845e35e9b 100644
--- a/lib/stdlib/src/ms_transform.erl
+++ b/lib/stdlib/src/ms_transform.erl
@@ -224,10 +224,12 @@ transform_from_shell(Dialect, Clauses, BoundEnvironment) ->
%% Called when translating during compiling
%%
--spec parse_transform(Forms, Options) -> Forms2 when
+-spec parse_transform(Forms, Options) -> Forms2 | Errors | Warnings when
Forms :: [erl_parse:abstract_form() | erl_parse:form_info()],
Forms2 :: [erl_parse:abstract_form() | erl_parse:form_info()],
- Options :: term().
+ Options :: term(),
+ Errors :: {error, ErrInfo :: [tuple()], WarnInfo :: []},
+ Warnings :: {warning, Forms2, WarnInfo :: [tuple()]}.
parse_transform(Forms, _Options) ->
SaveFilename = setup_filename(),