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

Unified Diff: sdk/lib/_internal/js_runtime/lib/js_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
Index: sdk/lib/_internal/js_runtime/lib/js_mirrors.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/js_mirrors.dart b/sdk/lib/_internal/js_runtime/lib/js_mirrors.dart
index e5c849586aa7c5ff3fb4f6cf11bf4f09d2dfb9bd..aa836ca0baa45592736d39b2e0e4c2cee6b2a180 100644
--- a/sdk/lib/_internal/js_runtime/lib/js_mirrors.dart
+++ b/sdk/lib/_internal/js_runtime/lib/js_mirrors.dart
@@ -443,6 +443,10 @@ class JsLibraryMirror extends JsDeclarationMirror with JsObjectMirror
.invoke(#call, positionalArguments, namedArguments);
}
+ delegate(Invocation invocation) {
+ throw new UnimplementedError();
+ }
+
_loadField(String name) {
// TODO(ahe): What about lazily initialized fields? See
// [JsClassMirror.getField].
@@ -853,6 +857,10 @@ class JsMixinApplication extends JsTypeMirror with JsObjectMirror
null, setterSymbol(fieldName), [arg], null);
}
+ delegate(Invocation invocation) {
+ throw new UnimplementedError();
+ }
+
List<ClassMirror> get superinterfaces => [mixin];
Map<Symbol, MethodMirror> get __constructors => _mixin.__constructors;
@@ -1512,6 +1520,10 @@ class JsTypeBoundClassMirror extends JsDeclarationMirror
return _class.invoke(memberName, positionalArguments, namedArguments);
}
+ delegate(Invocation invocation) {
+ throw new UnimplementedError();
+ }
+
bool get isOriginalDeclaration => false;
ClassMirror get originalDeclaration => _class;
@@ -2028,6 +2040,10 @@ class JsClassMirror extends JsTypeMirror with JsObjectMirror
return reflect(mirror._invoke(positionalArguments, namedArguments));
}
+ delegate(Invocation invocation) {
+ throw new UnimplementedError();
+ }
+
bool get isOriginalDeclaration => true;
ClassMirror get originalDeclaration => this;
@@ -2609,6 +2625,7 @@ class BrokenClassMirror {
InstanceMirror getField(Symbol fieldName) => throw new UnimplementedError();
InstanceMirror setField(Symbol fieldName, Object value)
=> throw new UnimplementedError();
+ delegate(Invocation invocation) => throw new UnimplementedError();
List<TypeVariableMirror> get typeVariables => throw new UnimplementedError();
List<TypeMirror> get typeArguments => throw new UnimplementedError();
TypeMirror get originalDeclaration => throw new UnimplementedError();

Powered by Google App Engine
This is Rietveld 408576698