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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart

Issue 2978223002: Dummy DDC implementation of MirrorSystem (Closed)
Patch Set: Created 3 years, 5 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 | « pkg/dev_compiler/test/browser/language_tests.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart b/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart
index 1a6f26d8ac84d07897f405f94d7fd501c3b465ef..a6b0ac3ce70e227e831a0323f6a599edd4e506b1 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart
@@ -19,8 +19,7 @@ String getName(Symbol symbol) {
Symbol getSymbol(name, library) =>
throw new UnimplementedError("MirrorSystem.getSymbol unimplemented");
-final currentJsMirrorSystem = throw new UnimplementedError(
- "MirrorSystem.currentJsMirrorSystem unimplemented");
+final currentJsMirrorSystem = new JsMirrorSystem();
final _typeMirror = JS('', 'Symbol("_typeMirror")');
@@ -225,6 +224,14 @@ dynamic _toJsMap(Map<Symbol, dynamic> map) {
return obj;
}
+class JsMirrorSystem implements MirrorSystem {
+ get libraries => const {};
+
+ noSuchMethod(Invocation i) {
+ _unimplemented(this.runtimeType, i);
+ }
+}
+
class JsMirror implements Mirror {
noSuchMethod(Invocation i) {
_unimplemented(this.runtimeType, i);
« no previous file with comments | « pkg/dev_compiler/test/browser/language_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698