aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_type.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-01-13 12:07:06 +0100
committerGitHub <[email protected]>2017-01-13 12:07:06 +0100
commitfa208870c24b7b3cddf3ac0317371b419d1a08d8 (patch)
tree9c4290a7d6b6902ce68ad18e1358478b2add67ce /lib/compiler/src/beam_type.erl
parentee3f93aec3f2e8b49e0fa9a84ec4d68b687103c5 (diff)
parent4efd9935a5618fa6622e33eadb3d6add49ab1089 (diff)
downloadotp-fa208870c24b7b3cddf3ac0317371b419d1a08d8.tar.gz
otp-fa208870c24b7b3cddf3ac0317371b419d1a08d8.tar.bz2
otp-fa208870c24b7b3cddf3ac0317371b419d1a08d8.zip
Merge pull request #1285 from bjorng/bjorn/compiler/type-specs
Add types and specs for all compiler modules
Diffstat (limited to 'lib/compiler/src/beam_type.erl')
-rw-r--r--lib/compiler/src/beam_type.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_type.erl b/lib/compiler/src/beam_type.erl
index 9866dcd070..050c599d6b 100644
--- a/lib/compiler/src/beam_type.erl
+++ b/lib/compiler/src/beam_type.erl
@@ -26,6 +26,9 @@
-import(lists, [filter/2,foldl/3,keyfind/3,member/2,
reverse/1,reverse/2,sort/1]).
+-spec module(beam_utils:module_code(), [compile:option()]) ->
+ {'ok',beam_utils:module_code()}.
+
module({Mod,Exp,Attr,Fs0,Lc}, _Opts) ->
Fs = [function(F) || F <- Fs0],
{ok,{Mod,Exp,Attr,Fs,Lc}}.