aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_anno.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-02-13 13:32:53 +0100
committerHans Bolinder <[email protected]>2017-03-08 14:11:48 +0100
commitc3ed56aed626cfd169610c9dc08bede74a4aab3c (patch)
tree22c17b4d8af1fba901cd309a77f00c57dd646f4b /lib/stdlib/src/erl_anno.erl
parenta65c5dddda4a7d54f972be8412de2b37aabf6584 (diff)
downloadotp-c3ed56aed626cfd169610c9dc08bede74a4aab3c.tar.gz
otp-c3ed56aed626cfd169610c9dc08bede74a4aab3c.tar.bz2
otp-c3ed56aed626cfd169610c9dc08bede74a4aab3c.zip
stdlib: improve the erl_anno module's debug tests
Diffstat (limited to 'lib/stdlib/src/erl_anno.erl')
-rw-r--r--lib/stdlib/src/erl_anno.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/stdlib/src/erl_anno.erl b/lib/stdlib/src/erl_anno.erl
index d32c34dabd..d0310f52e2 100644
--- a/lib/stdlib/src/erl_anno.erl
+++ b/lib/stdlib/src/erl_anno.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2015. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2017. 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.
@@ -42,7 +42,7 @@
%% Debug: define DEBUG to make sure that annotations are handled as an
%% opaque type. Note that all abstract code need to be compiled with
-%% DEBUG=true. See also ./erl_pp.erl.
+%% DEBUG=true. See also ./erl_pp.erl and ./erl_parse.yrl.
%-define(DEBUG, true).
@@ -52,7 +52,11 @@
| {'record', record()}
| {'text', string()}.
+-ifdef(DEBUG).
+-opaque anno() :: [annotation(), ...].
+-else.
-opaque anno() :: location() | [annotation(), ...].
+-endif.
-type anno_term() :: term().
-type column() :: pos_integer().