ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Remove unneeded parentheses #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A lot of transformation passes adds parantheses around expressions because it 
does not know the context. For example, for template strings we can end up with 
code like this:

func(("a" + b + "c"))
x = ("d" + e);

We should remove these extra parens.

Original issue reported on code.google.com by arv@chromium.org on 13 Oct 2012 at 6:11