aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_prettypr.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-12-21 14:15:47 +0100
committerHans Bolinder <[email protected]>2018-01-09 16:52:14 +0100
commit9ab233d389bfc40ddaa56af80ace5cc78470a92b (patch)
tree34d147cf48674aff810dd5a3ce563e7987907f18 /lib/syntax_tools/src/erl_prettypr.erl
parentcf3b2c808e8b7eccd39bedbb9c62432f7da5ca59 (diff)
downloadotp-9ab233d389bfc40ddaa56af80ace5cc78470a92b.tar.gz
otp-9ab233d389bfc40ddaa56af80ace5cc78470a92b.tar.bz2
otp-9ab233d389bfc40ddaa56af80ace5cc78470a92b.zip
syntax_tools: Correct handling of stacktrace variable
A quick fix to make the test suite work with the updated erl_eval. [I think that if "A:B:_" is allowed, it should have a representation in the abstract format, but that's another story. The pretty printer should not modify the source code, just print it nicely, IMHO. (But removing parentheses is OK)]
Diffstat (limited to 'lib/syntax_tools/src/erl_prettypr.erl')
-rw-r--r--lib/syntax_tools/src/erl_prettypr.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/syntax_tools/src/erl_prettypr.erl b/lib/syntax_tools/src/erl_prettypr.erl
index f03f326278..60a15c8e3f 100644
--- a/lib/syntax_tools/src/erl_prettypr.erl
+++ b/lib/syntax_tools/src/erl_prettypr.erl
@@ -780,8 +780,7 @@ lay_2(Node, Ctxt) ->
'_' ->
beside(D1, beside(text(":"), D2));
_ ->
- D3 = lay(erl_syntax:class_qualifier_stacktrace(Node),
- Ctxt1),
+ D3 = lay(Stacktrace, Ctxt1),
beside(D1, beside(beside(text(":"), D2),
beside(text(":"), D3)))
end;