gwt /
gwt /
15ff7001ee23926326c98aff1d84e6b6a2ccffa1 1) Incorporating a variant of a patch by sandymac in issue #599 to reduce
the amount of whitespace we generate around binary operators. Before, we
generated whitespace around every binOp. After this patch, we will only
generate whitespace between a binary operator and a unary operator that
occurs immediately before or after it.
2) A couple of other peephole fixes where spaces were being generated
unnecessarily.
3) Removed the JsDelete node. "delete" is truly an operator in JS, so
there's no reason not to really model it as such.
Patch by: scottb, sandymac (JsToStringGenerationVisitor.java; modified by me)
Review by: mmendez
Fixes: 599
M dev/core/src/com/google/gwt/dev/js/JsToStringGenerationVisitor.java
M dev/core/src/com/google/gwt/dev/js/JsAbstractVisitorWithEndVisits.java
M dev/core/src/com/google/gwt/dev/js/ast/JsBinaryOperator.java
M dev/core/src/com/google/gwt/dev/js/ast/JsUnaryOperator.java
M dev/core/src/com/google/gwt/dev/js/ast/JsVisitor.java
D dev/core/src/com/google/gwt/dev/js/ast/JsDelete.java
D dev/core/src/com/google/gwt/dev/js/ast/JsAbstractVisitorWithEndVisits.java
M dev/core/src/com/google/gwt/dev/js/ast/JsOperator.java
M dev/core/src/com/google/gwt/dev/js/JsAbstractVisitorWithAllVisits.java
M dev/core/src/com/google/gwt/dev/js/JsPrecedenceVisitor.java
M dev/core/src/com/google/gwt/dev/js/JsAbstractVisitorWithVisits.java
M dev/core/src/com/google/gwt/dev/js/JsParser.java
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@356 8db76d5a-ed1c-0410-87a9-c151d255dfc7
12 files changed