| Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/BeautifySemanticProcessor.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/BeautifySemanticProcessor.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/BeautifySemanticProcessor.java
|
| index 261ccaec87730d686007166f2cf5a44d067005c4..01c0f9a31b6c2cb32e95da865c251fa3b489f5e7 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/BeautifySemanticProcessor.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/BeautifySemanticProcessor.java
|
| @@ -21,6 +21,7 @@ import com.google.dart.engine.ast.CompilationUnit;
|
| import com.google.dart.engine.ast.ExpressionFunctionBody;
|
| import com.google.dart.engine.ast.IntegerLiteral;
|
| import com.google.dart.engine.ast.IsExpression;
|
| +import com.google.dart.engine.ast.ListLiteral;
|
| import com.google.dart.engine.ast.ParenthesizedExpression;
|
| import com.google.dart.engine.ast.PrefixExpression;
|
| import com.google.dart.engine.ast.ReturnStatement;
|
| @@ -44,6 +45,10 @@ public class BeautifySemanticProcessor extends SemanticProcessor {
|
| if (node.getParent() instanceof ArgumentList) {
|
| return true;
|
| }
|
| + // list literal element
|
| + if (node.getParent() instanceof ListLiteral) {
|
| + return true;
|
| + }
|
| // RHS of assignment
|
| if (node.getParent() instanceof AssignmentExpression) {
|
| AssignmentExpression assignment = (AssignmentExpression) node.getParent();
|
|
|