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

Unified Diff: lib/compiler/implementation/scanner/scanner_task.dart

Issue 10891022: Update corelib/ and lib/ to use the new try-catch syntax. (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
Index: lib/compiler/implementation/scanner/scanner_task.dart
diff --git a/lib/compiler/implementation/scanner/scanner_task.dart b/lib/compiler/implementation/scanner/scanner_task.dart
index a27eeb4a8e4cf8f5c2d5101661ba57bc9124ded9..af1888549f87d72e3ebfc3c29a1a883aa641a56e 100644
--- a/lib/compiler/implementation/scanner/scanner_task.dart
+++ b/lib/compiler/implementation/scanner/scanner_task.dart
@@ -115,7 +115,7 @@ class ScannerTask extends CompilerTask {
Token tokens;
try {
tokens = new StringScanner(script.text).tokenize();
- } catch (MalformedInputException ex) {
+ } on MalformedInputException catch (ex) {
Token token;
var message;
if (ex.position is num) {
« no previous file with comments | « lib/compiler/implementation/lib/regexp_helper.dart ('k') | lib/compiler/implementation/tools/mini_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698