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

Unified Diff: pkg/compiler/lib/src/mirrors/dart2js_instance_mirrors.dart

Issue 1273983002: Hoist InstanceMirror.delegate to ObjectMirror. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | tests/lib/mirrors/delegate_class_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/mirrors/dart2js_instance_mirrors.dart
diff --git a/pkg/compiler/lib/src/mirrors/dart2js_instance_mirrors.dart b/pkg/compiler/lib/src/mirrors/dart2js_instance_mirrors.dart
index b29b582229bfcab7dfee5ea5110b60c476ebc3e9..9a2cbe29423176e09a923f8680d2f1c79c98bf97 100644
--- a/pkg/compiler/lib/src/mirrors/dart2js_instance_mirrors.dart
+++ b/pkg/compiler/lib/src/mirrors/dart2js_instance_mirrors.dart
@@ -18,6 +18,10 @@ abstract class ObjectMirrorMixin implements ObjectMirror {
[Map<Symbol, dynamic> namedArguments]) {
throw new UnsupportedError('ObjectMirror.invoke unsupported.');
}
+
+ delegate(Invocation invocation) {
+ throw new UnsupportedError('ObjectMirror.delegate unsupported');
+ }
}
abstract class InstanceMirrorMixin implements InstanceMirror {
@@ -26,10 +30,6 @@ abstract class InstanceMirrorMixin implements InstanceMirror {
get reflectee {
throw new UnsupportedError('InstanceMirror.reflectee unsupported.');
}
-
- delegate(Invocation invocation) {
- throw new UnsupportedError('InstanceMirror.delegate unsupported');
- }
}
InstanceMirror _convertConstantToInstanceMirror(
« no previous file with comments | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | tests/lib/mirrors/delegate_class_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698