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

Unified Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 1026093002: Fix hints in the analyzer package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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/analyzer/lib/src/generated/parser.dart
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
index b303cc75d263e2eab566f487c99176c956a4c00c..4a4823fea536e72d1d6ec0e7ba9f9169bcccb007 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -1722,7 +1722,7 @@ class IncrementalParser {
newNode.offset != oldNode.offset) {
advanceToParent = true;
}
- } on InsufficientContextException catch (exception) {
+ } on InsufficientContextException {
advanceToParent = true;
} catch (exception) {
return null;
@@ -6742,7 +6742,7 @@ class Parser {
double value = 0.0;
try {
value = double.parse(token.lexeme);
- } on FormatException catch (exception) {
+ } on FormatException {
// The invalid format should have been reported by the scanner.
}
return new DoubleLiteral(token, value);
@@ -6751,7 +6751,7 @@ class Parser {
int value = null;
try {
value = int.parse(token.lexeme.substring(2), radix: 16);
- } on FormatException catch (exception) {
+ } on FormatException {
// The invalid format should have been reported by the scanner.
}
return new IntegerLiteral(token, value);
@@ -6760,7 +6760,7 @@ class Parser {
int value = null;
try {
value = int.parse(token.lexeme);
- } on FormatException catch (exception) {
+ } on FormatException {
// The invalid format should have been reported by the scanner.
}
return new IntegerLiteral(token, value);
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698