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

Unified Diff: lib/src/js_ast/builder.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/compiler/type_utilities.dart ('k') | lib/src/js_ast/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js_ast/builder.dart
diff --git a/lib/src/js_ast/builder.dart b/lib/src/js_ast/builder.dart
index 5037a3f0ef142003125f4e83838acf2d5f2f8dba..8b5f58a3d63d643bf9bb88514d555afa4594aad3 100644
--- a/lib/src/js_ast/builder.dart
+++ b/lib/src/js_ast/builder.dart
@@ -1154,7 +1154,7 @@ class MiniJsParser {
/** Parse a variable declaration list, with `var` or `let` [keyword] */
VariableDeclarationList parseVariableDeclarationList(
String keyword, [String firstIdentifier]) {
- var initialization = [];
+ var initialization = <VariableInitialization>[];
do {
var declarator;
@@ -1514,7 +1514,7 @@ class MiniJsParser {
}
expectCategory(COLON);
}
- List statements = new List<Statement>();
+ var statements = <Statement>[];
while (lastCategory != RBRACE &&
lastToken != 'case' &&
lastToken != 'default') {
« no previous file with comments | « lib/src/compiler/type_utilities.dart ('k') | lib/src/js_ast/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698