Index: lib/src/js_ast/nodes.dart |
diff --git a/lib/src/js_ast/nodes.dart b/lib/src/js_ast/nodes.dart |
index be1e764806eee0f05a38179aba939dda738b9d91..9a50a5b2879cf57515e5c438aac7fd9540c5504f 100644 |
--- a/lib/src/js_ast/nodes.dart |
+++ b/lib/src/js_ast/nodes.dart |
@@ -845,7 +845,9 @@ abstract class BindingPattern extends Expression implements VariableBinding { |
class SimpleBindingPattern extends BindingPattern { |
final Identifier name; |
SimpleBindingPattern(Identifier name) |
- : super([new DestructuredVariable(name: name)]), this.name = name; |
+ : name = name, |
+ super([new DestructuredVariable(name: name)]); |
+ |
accept(NodeVisitor visitor) => visitor.visitSimpleBindingPattern(this); |
/// Avoid parenthesis when pretty-printing. |
@@ -964,7 +966,7 @@ class Binary extends Expression { |
List<Expression> commaToExpressionList() { |
if (!isCommaOperator) throw new StateError('not a comma expression'); |
- var exprs = []; |
+ var exprs = <Expression>[]; |
_flattenComma(exprs, left); |
_flattenComma(exprs, right); |
return exprs; |