diff options
author | Hans Bolinder <[email protected]> | 2018-09-04 10:30:29 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-09-04 10:30:29 +0200 |
commit | 89ec9b9c09ad4af2ee9b70d6e5efdec5394b31cd (patch) | |
tree | e1c5fa4b0a298c9bbe40ac6ab4b6c0e56c72d2d3 /lib | |
parent | 5801fcb2b36e04c433dcf0b90a8c47b86e34fc07 (diff) | |
parent | a9e5bbd355a8ba191dca4c1d0fffb54ccef17b7d (diff) | |
download | otp-89ec9b9c09ad4af2ee9b70d6e5efdec5394b31cd.tar.gz otp-89ec9b9c09ad4af2ee9b70d6e5efdec5394b31cd.tar.bz2 otp-89ec9b9c09ad4af2ee9b70d6e5efdec5394b31cd.zip |
Merge pull request #1945 from gomoripeti/ms_transform_spec
Fix type spec of ms_transform:parse_trans/2
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(), |