diff options
author | Péter Gömöri <[email protected]> | 2018-08-31 01:29:42 +0200 |
---|---|---|
committer | Péter Gömöri <[email protected]> | 2018-08-31 01:29:42 +0200 |
commit | a9e5bbd355a8ba191dca4c1d0fffb54ccef17b7d (patch) | |
tree | 91b6d5c1d6c921465aae71978985ea9752be6711 /lib | |
parent | 96aa684ffcae8f70898aa6b924fa82804d537488 (diff) | |
download | otp-a9e5bbd355a8ba191dca4c1d0fffb54ccef17b7d.tar.gz otp-a9e5bbd355a8ba191dca4c1d0fffb54ccef17b7d.tar.bz2 otp-a9e5bbd355a8ba191dca4c1d0fffb54ccef17b7d.zip |
Fix type spec of ms_transform:parse_trans/2
It can also return errors and warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stdlib/src/ms_transform.erl | 6 |
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(), |