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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart

Issue 14907008: Remove support for interface in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 7 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/compiler/implementation/mirrors/dart2js_mirror.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
index 20a598acca43337cbd57c19c0dcd216e3e8dcdbc..75c1d44618a431036e3284cd3e632b1743216ed2 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
@@ -825,9 +825,9 @@ class Dart2JsClassMirror extends Dart2JsContainerMirror
return list;
}
- bool get isClass => !_class.isInterface();
+ bool get isClass => true;
- bool get isInterface => _class.isInterface();
+ bool get isInterface => false;
bool get isAbstract => _class.modifiers.isAbstract();
@@ -854,9 +854,6 @@ class Dart2JsClassMirror extends Dart2JsContainerMirror
* Returns the default type for this interface.
*/
ClassMirror get defaultFactory {
- if (_class.defaultClass != null) {
- return new Dart2JsInterfaceTypeMirror(mirrors, _class.defaultClass);
- }
return null;
}

Powered by Google App Engine
This is Rietveld 408576698