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

Unified Diff: sdk/lib/_internal/lib/js_mirrors.dart

Issue 25741005: Implement ObjectMirror.[] (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix mistake in merge conflict Created 7 years, 2 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/lib/js_mirrors.dart
diff --git a/sdk/lib/_internal/lib/js_mirrors.dart b/sdk/lib/_internal/lib/js_mirrors.dart
index 4d0fe517fc221b9a484387446e254ede35b54dcb..3832c89d2bbb2d27d76c5c5c4c2965e0f7a16f1a 100644
--- a/sdk/lib/_internal/lib/js_mirrors.dart
+++ b/sdk/lib/_internal/lib/js_mirrors.dart
@@ -421,6 +421,8 @@ class JsLibraryMirror extends JsDeclarationMirror with JsObjectMirror
// TODO(ahe): Test this getter.
DeclarationMirror get owner => null;
+
+ Function operator [](Symbol selector) => throw new UnimplementedError();
}
String n(Symbol symbol) => _symbol_dev.Symbol.getName(symbol);
@@ -775,6 +777,8 @@ class JsInstanceMirror extends JsObjectMirror implements InstanceMirror {
return JSInvocationMirror.invokeFromMirror(invocation, reflectee);
}
+ Function operator [](Symbol selector) => throw new UnimplementedError();
+
operator ==(other) {
return other is JsInstanceMirror &&
identical(reflectee, other.reflectee);
@@ -1323,6 +1327,8 @@ class JsClassMirror extends JsTypeMirror with JsObjectMirror
}
List<TypeMirror> get typeArguments => new List();
+
+ Function operator [](Symbol selector) => throw new UnimplementedError();
}
class JsVariableMirror extends JsDeclarationMirror implements VariableMirror {

Powered by Google App Engine
This is Rietveld 408576698