Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Unified Diff: lib/src/js_ast/nodes.dart

Issue 2016483002: Enable strong mode in DDC, fix all warnings/errors (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/js_ast/builder.dart ('k') | lib/src/js_ast/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « lib/src/js_ast/builder.dart ('k') | lib/src/js_ast/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698