aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_block.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-12-15 09:24:33 +0100
committerBjörn Gustavsson <[email protected]>2017-01-12 12:10:12 +0100
commit6ddd19f68d1dd49ea54feb3386865f5328519ff5 (patch)
tree36a1563aa97576931ccd5f1cbb5a24438ff16714 /lib/compiler/src/beam_block.erl
parent2e5fcfe9dd7137ab96b3f136795cae82f111778a (diff)
downloadotp-6ddd19f68d1dd49ea54feb3386865f5328519ff5.tar.gz
otp-6ddd19f68d1dd49ea54feb3386865f5328519ff5.tar.bz2
otp-6ddd19f68d1dd49ea54feb3386865f5328519ff5.zip
Add specs for the beam_*:module/2 functions
Diffstat (limited to 'lib/compiler/src/beam_block.erl')
-rw-r--r--lib/compiler/src/beam_block.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_block.erl b/lib/compiler/src/beam_block.erl
index 6a35191f6e..6543e05e20 100644
--- a/lib/compiler/src/beam_block.erl
+++ b/lib/compiler/src/beam_block.erl
@@ -25,6 +25,9 @@
-export([module/2]).
-import(lists, [reverse/1,reverse/2,foldl/3,member/2]).
+-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}}.