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

Unified Diff: pkg/compiler/lib/src/scanner/parser.dart

Issue 1173403002: dart2js: Fix hints in code base. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated to latest revision Created 5 years, 6 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/compiler/lib/src/scanner/parser.dart
diff --git a/pkg/compiler/lib/src/scanner/parser.dart b/pkg/compiler/lib/src/scanner/parser.dart
index 10e7dfc35d5ba61f592ce5a1705782f238316610..66d26bdf5cb0ae003c8eaaeeecbd59e0fb01fd59 100644
--- a/pkg/compiler/lib/src/scanner/parser.dart
+++ b/pkg/compiler/lib/src/scanner/parser.dart
@@ -1326,10 +1326,8 @@ class Parser {
externalModifier = token;
token = token.next;
}
- Token constKeyword = null;
if (optional('const', token)) {
- constKeyword = token;
- token = token.next;
+ token = token.next; // Skip const.
}
Token factoryKeyword = token;
listener.beginFactoryMethod(factoryKeyword);

Powered by Google App Engine
This is Rietveld 408576698