aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-08-18 15:29:09 +0200
committerBjörn Gustavsson <[email protected]>2016-09-01 15:04:41 +0200
commitb4a93a0fc6d01cf2682652f7be16e020bdb10e3e (patch)
tree8db0eb9f0e287ed5d5a5cdc6d8e9acb2df254ba2 /lib/stdlib
parentc9f92612b6fb0b4e0fc0c098b2f5b35a4508ae8a (diff)
downloadotp-b4a93a0fc6d01cf2682652f7be16e020bdb10e3e.tar.gz
otp-b4a93a0fc6d01cf2682652f7be16e020bdb10e3e.tar.bz2
otp-b4a93a0fc6d01cf2682652f7be16e020bdb10e3e.zip
beam_lib: Correct type for the abstract code chunk
The abstract_code chunk can also contain {eof,_}, {error,_}, and {warning,_} in addition to the abstract forms that make up the Erlang syntax proper.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/beam_lib.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/beam_lib.erl b/lib/stdlib/src/beam_lib.erl
index fe9df601eb..d7ee5c1f5d 100644
--- a/lib/stdlib/src/beam_lib.erl
+++ b/lib/stdlib/src/beam_lib.erl
@@ -55,7 +55,7 @@
-type beam() :: module() | file:filename() | binary().
--type forms() :: [erl_parse:abstract_form()].
+-type forms() :: [erl_parse:abstract_form() | erl_parse:form_info()].
-type abst_code() :: {AbstVersion :: atom(), forms()} | 'no_abstract_code'.
-type dataB() :: binary().