aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-01-20 12:13:42 +0100
committerHans Bolinder <[email protected]>2016-01-20 12:13:42 +0100
commitc45652ee1b43ba4501651182a6d3c9f4789c3429 (patch)
treeea6ea04c20aa2d9fd44fa783edb8bae654815d76 /lib/syntax_tools/src
parentf9f2bfcc846f1711a712947c87eb5e690900483a (diff)
parent6e2d941bf278191c11f6d1cebdfab5e51419d734 (diff)
downloadotp-c45652ee1b43ba4501651182a6d3c9f4789c3429.tar.gz
otp-c45652ee1b43ba4501651182a6d3c9f4789c3429.tar.bz2
otp-c45652ee1b43ba4501651182a6d3c9f4789c3429.zip
Merge branch 'hb/stdlib/refine_abstr_types/OTP-10292'
* hb/stdlib/refine_abstr_types/OTP-10292: erts: Improve readability of The Abstract Format erts: Improve the documentation of the abstract format stdlib: Update erl_parse(3) stdlib: Refine the types of the abstract format compiler: Improve type and specs hipe: Improve types dialyzer: Improve a type doc: Update a refman example syntax_tools: Correct a type stdlib: Correct a type
Diffstat (limited to 'lib/syntax_tools/src')
-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,