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

Unified Diff: runtime/lib/mirrors_impl.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 | « runtime/lib/double.dart ('k') | runtime/tests/vm/dart/isolate_mirror_local_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index b3c3f0dc5f6bf92ef61abf5bafeeb890c88cf235..9ecff9319fe8dff366b98a413f49cb7739295ce6 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -112,7 +112,7 @@ abstract class _LocalObjectMirrorImpl extends _LocalVMObjectMirrorImpl
try {
completer.complete(
_invoke(this, memberName, positionalArguments));
- } catch (var exception) {
+ } catch (exception) {
completer.completeException(exception);
}
return completer.future;
@@ -123,7 +123,7 @@ abstract class _LocalObjectMirrorImpl extends _LocalVMObjectMirrorImpl
Completer<InstanceMirror> completer = new Completer<InstanceMirror>();
try {
completer.complete(_getField(this, fieldName));
- } catch (var exception) {
+ } catch (exception) {
completer.completeException(exception);
}
return completer.future;
@@ -136,7 +136,7 @@ abstract class _LocalObjectMirrorImpl extends _LocalVMObjectMirrorImpl
Completer<InstanceMirror> completer = new Completer<InstanceMirror>();
try {
completer.complete(_setField(this, fieldName, arg));
- } catch (var exception) {
+ } catch (exception) {
completer.completeException(exception);
}
return completer.future;
@@ -273,7 +273,7 @@ class _LocalClosureMirrorImpl extends _LocalInstanceMirrorImpl
try {
completer.complete(
_apply(this, positionalArguments));
- } catch (var exception) {
+ } catch (exception) {
completer.completeException(exception);
}
return completer.future;
@@ -463,7 +463,7 @@ class _LocalClassMirrorImpl extends _LocalObjectMirrorImpl
try {
completer.complete(
_invokeConstructor(this, constructorName, positionalArguments));
- } catch (var exception) {
+ } catch (exception) {
completer.completeException(exception);
}
return completer.future;
@@ -752,7 +752,7 @@ class _Mirrors {
// Make a local mirror system.
try {
completer.complete(currentMirrorSystem());
- } catch (var exception) {
+ } catch (exception) {
completer.completeException(exception);
}
} else {
« no previous file with comments | « runtime/lib/double.dart ('k') | runtime/tests/vm/dart/isolate_mirror_local_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698