aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2015-12-11 12:00:36 +0100
committerHans Bolinder <[email protected]>2016-01-20 10:06:09 +0100
commit2bf8c4726dfdf94bd6c190f1236c33a064238e02 (patch)
tree0c0af94a225a85937ce4686af8f07533bf0fba8c
parentf1e687312daa91591a2cee5038a2d9434e7db209 (diff)
downloadotp-2bf8c4726dfdf94bd6c190f1236c33a064238e02.tar.gz
otp-2bf8c4726dfdf94bd6c190f1236c33a064238e02.tar.bz2
otp-2bf8c4726dfdf94bd6c190f1236c33a064238e02.zip
syntax_tools: Correct a type
-rw-r--r--lib/syntax_tools/src/erl_recomment.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/syntax_tools/src/erl_recomment.erl b/lib/syntax_tools/src/erl_recomment.erl
index 72e1e2d2f5..5ce533285d 100644
--- a/lib/syntax_tools/src/erl_recomment.erl
+++ b/lib/syntax_tools/src/erl_recomment.erl
@@ -611,12 +611,15 @@ expand_comment(C) ->
attrs :: erl_syntax:syntaxTreeAttributes(),
precomments = [] :: [erl_syntax:syntaxTree()],
postcomments = [] :: [erl_syntax:syntaxTree()],
- subtrees = [] :: [erl_syntax:syntaxTree()]}).
+ subtrees = [] :: [extendedSyntaxTree()]}).
+
-record(list, {min = 0 :: integer(),
max = 0 :: integer(),
subtrees = [] :: [erl_syntax:syntaxTree()]}).
+-type extendedSyntaxTree() :: #tree{} | #leaf{} | #list{}.
+
leaf_node(Min, Max, Value) ->
#leaf{min = Min,
max = Max,