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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/recover.dart

Issue 2675603002: Reduce strong mode errors and warnings (Closed)
Patch Set: comments & cleanup Created 3 years, 10 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
Index: pkg/front_end/lib/src/fasta/scanner/recover.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/recover.dart b/pkg/front_end/lib/src/fasta/scanner/recover.dart
index 1479be9c8f946ef9155fbe93609f36f99e24a662..b1dd4d0fcefd3f3dfa05976567e19817ff14e667 100644
--- a/pkg/front_end/lib/src/fasta/scanner/recover.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/recover.dart
@@ -54,7 +54,7 @@ Token defaultRecoveryStrategy(
Token beforeGoodTail;
recoverIdentifier(NonAsciiIdentifierToken first) {
- List codeUnits = <int>[];
+ var codeUnits = <int>[];
ahe 2017/02/07 11:03:08 Restore type.
Siggi Cherem (dart-lang) 2017/02/07 21:59:26 Done. Not sure if you know: in strong mode `var`
ahe 2017/02/08 19:59:24 Thank you. I prefer for types to be explicit as I
// True if the previous good token is an identifier and ends right where
// [first] starts. This is the case for input like `blåbærgrød`. In this

Powered by Google App Engine
This is Rietveld 408576698