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

Unified Diff: lib/compiler/implementation/typechecker.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
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | lib/dom/scripts/idlparser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/typechecker.dart
diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
index f939586d118e738982603298a48edebd3443a619..1ac592b557d0c985ad4d34f88fe7e73a30751c5a 100644
--- a/lib/compiler/implementation/typechecker.dart
+++ b/lib/compiler/implementation/typechecker.dart
@@ -14,7 +14,7 @@ class TypeCheckerTask extends CompilerTask {
new TypeCheckerVisitor(compiler, elements, compiler.types);
try {
tree.accept(visitor);
- } catch (CancelTypeCheckException e) {
+ } on CancelTypeCheckException catch (e) {
if (LOG_FAILURES) {
// Do not warn about unimplemented features; log message instead.
compiler.log("'${e.node}': ${e.reason}");
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | lib/dom/scripts/idlparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698