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

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

Issue 16103010: Fixes for translator and DDA status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/analyzer_experimental/lib/src/generated/parser.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/parser.dart b/pkg/analyzer_experimental/lib/src/generated/parser.dart
index ab49ad1905f1ad0cb2300532d188d5808982785a..0a82feddaad9fe93fca6ea17b0e5342143641bf3 100644
--- a/pkg/analyzer_experimental/lib/src/generated/parser.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/parser.dart
@@ -3610,7 +3610,7 @@ class Parser {
double value = 0.0;
try {
value = double.parse(token.lexeme);
- } on NumberFormatException catch (exception) {
+ } on FormatException catch (exception) {
}
return new DoubleLiteral.full(token, value);
} else if (matches5(TokenType.HEXADECIMAL)) {
@@ -3618,7 +3618,7 @@ class Parser {
int value = null;
try {
value = int.parse(token.lexeme.substring(2), radix: 16);
- } on NumberFormatException catch (exception) {
+ } on FormatException catch (exception) {
}
return new IntegerLiteral.full(token, value);
} else if (matches5(TokenType.INT)) {
@@ -3626,7 +3626,7 @@ class Parser {
int value = null;
try {
value = int.parse(token.lexeme);
- } on NumberFormatException catch (exception) {
+ } on FormatException catch (exception) {
}
return new IntegerLiteral.full(token, value);
} else if (matches5(TokenType.STRING)) {
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/java_core.dart ('k') | pkg/analyzer_experimental/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698