aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-04-13 14:20:31 +0200
committerHans Bolinder <[email protected]>2016-04-28 16:16:11 +0200
commitb26c85dbbf6df6681c3c218eb200c6b946b85bc9 (patch)
tree891ef36e55669c9dbe2f06a35b50987ae4490353
parentf0ec1835897a017ec7d7613add1870850187b7b1 (diff)
downloadotp-b26c85dbbf6df6681c3c218eb200c6b946b85bc9.tar.gz
otp-b26c85dbbf6df6681c3c218eb200c6b946b85bc9.tar.bz2
otp-b26c85dbbf6df6681c3c218eb200c6b946b85bc9.zip
stdlib: Correct a type in module epp
-rw-r--r--lib/stdlib/src/epp.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/stdlib/src/epp.erl b/lib/stdlib/src/epp.erl
index 936c095aef..55a818e87c 100644
--- a/lib/stdlib/src/epp.erl
+++ b/lib/stdlib/src/epp.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2015. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2016. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -43,7 +43,10 @@
-type name() :: atom().
-type argspec() :: 'none' %No arguments
| non_neg_integer(). %Number of arguments
+-type argnames() :: [atom()].
-type tokens() :: [erl_scan:token()].
+-type predef() :: 'undefined' | {'none', tokens()}.
+-type userdef() :: {argspec(), {argnames(), tokens()}}.
-type used() :: {name(), argspec()}.
-type function_name_type() :: 'undefined'
@@ -63,7 +66,7 @@
sstk=[] :: [#epp{}], %State stack
path=[] :: [file:name()], %Include-path
macs = #{} %Macros (don't care locations)
- :: #{name() => {argspec(), tokens()}},
+ :: #{name() => predef() | [userdef()]},
uses = #{} %Macro use structure
:: #{name() => [{argspec(), [used()]}]},
default_encoding = ?DEFAULT_ENCODING :: source_encoding(),