aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_except.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-12-15 09:21:20 +0100
committerBjörn Gustavsson <[email protected]>2017-01-12 12:10:11 +0100
commit70fde81204ee5b502dcdd836b6862cd41af2f94a (patch)
tree9aeef751e2f1ce99a0399fe7dbabb9ecbdd536d0 /lib/compiler/src/beam_except.erl
parentcccda0664fa8ba98e718838a0b9d0bc857ea8948 (diff)
downloadotp-70fde81204ee5b502dcdd836b6862cd41af2f94a.tar.gz
otp-70fde81204ee5b502dcdd836b6862cd41af2f94a.tar.bz2
otp-70fde81204ee5b502dcdd836b6862cd41af2f94a.zip
beam_except: Add types and specs
Diffstat (limited to 'lib/compiler/src/beam_except.erl')
-rw-r--r--lib/compiler/src/beam_except.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/compiler/src/beam_except.erl b/lib/compiler/src/beam_except.erl
index 4a181c1923..9801c68ee2 100644
--- a/lib/compiler/src/beam_except.erl
+++ b/lib/compiler/src/beam_except.erl
@@ -33,6 +33,9 @@
-import(lists, [reverse/1]).
+-spec module(beam_utils:module_code(), [compile:option()]) ->
+ {'ok',beam_utils:module_code()}.
+
module({Mod,Exp,Attr,Fs0,Lc}, _Opt) ->
Fs = [function(F) || F <- Fs0],
{ok,{Mod,Exp,Attr,Fs,Lc}}.
@@ -49,9 +52,9 @@ function({function,Name,Arity,CLabel,Is0}) ->
end.
-record(st,
- {lbl, %func_info label
- loc, %location for func_info
- arity %arity for function
+ {lbl :: beam_asm:label(), %func_info label
+ loc :: [_], %location for func_info
+ arity :: arity() %arity for function
}).
function_1(Is0) ->