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

Unified Diff: utils/template/parser.dart

Issue 10887023: Use new try-catch syntax in runtime/, tools/, and utils/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « utils/pub/version.dart ('k') | utils/template/uitest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/template/parser.dart
diff --git a/utils/template/parser.dart b/utils/template/parser.dart
index 7b36704e82d989d6c32cd78c42d066a99ef8dc48..b9b27107303e428ff1c6d2b496b44f31ff3b5275 100644
--- a/utils/template/parser.dart
+++ b/utils/template/parser.dart
@@ -145,7 +145,7 @@ class Parser {
var message;
try {
message = 'expected $expected, but found $tok';
- } catch (final e) {
+ } catch (e) {
message = 'parsing error expected $expected';
}
_error(message, tok.span);
@@ -412,7 +412,7 @@ class Parser {
lastCSSIndexParsed = lastParsedChar;
return stylesheet;
- } catch (final cssParseException) {
+ } catch (cssParseException) {
// TODO(terry): Need SourceSpan from CSS parser to pass onto _error.
_error("Unexcepted CSS error: ${cssParseException.toString()}");
}
« no previous file with comments | « utils/pub/version.dart ('k') | utils/template/uitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698