aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_recomment.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-10-05 14:08:59 +0300
committerBjörn Gustavsson <[email protected]>2010-10-05 14:55:56 +0200
commit44d6f54d6782d63a25d80f6d920d67adb33bda52 (patch)
treea3ab2dd639ba2a56506901b6a0297c012b0e217f /lib/syntax_tools/src/erl_recomment.erl
parent3cfec17ff7aff97c5ec862a8b9e97d245849f9c3 (diff)
downloadotp-44d6f54d6782d63a25d80f6d920d67adb33bda52.tar.gz
otp-44d6f54d6782d63a25d80f6d920d67adb33bda52.tar.bz2
otp-44d6f54d6782d63a25d80f6d920d67adb33bda52.zip
syntax_tools: Add types to record definitions
Diffstat (limited to 'lib/syntax_tools/src/erl_recomment.erl')
-rw-r--r--lib/syntax_tools/src/erl_recomment.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/syntax_tools/src/erl_recomment.erl b/lib/syntax_tools/src/erl_recomment.erl
index 94e760dad7..919e9cfc5d 100644
--- a/lib/syntax_tools/src/erl_recomment.erl
+++ b/lib/syntax_tools/src/erl_recomment.erl
@@ -215,7 +215,8 @@ comment_delta(Text) ->
%% the source file itself, but have been included by preprocessing. This
%% way, comments will not be inserted into such parts by mistake.
--record(filter, {file = undefined, line = 0 :: integer()}).
+-record(filter, {file = undefined :: file:filename() | 'undefined',
+ line = 0 :: integer()}).
filter_forms(Fs) ->
filter_forms(Fs, false, #filter{}).
@@ -721,8 +722,6 @@ tree_node_attrs(#tree{attrs = Attrs}) ->
%% =====================================================================
%% General utility functions
-%% Just the generic "maximum" function
-
%% Return the least positive integer of X and Y, or zero if none of them
%% are positive. (This is necessary for computing minimum source line
%% numbers, since zero (or negative) numbers may occur, but they