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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 11275316: Add a new interceptor class JsArray, and support intercepting some list methods with the new interc… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/enqueue.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/enqueue.dart (revision 15008)
+++ sdk/lib/_internal/compiler/implementation/enqueue.dart (working copy)
@@ -138,12 +138,6 @@
}
void registerInstantiatedClass(ClassElement cls) {
- if (cls.isInterface()) {
- compiler.internalErrorOnElement(
- // Use the current element, as this is where cls is referenced from.
- compiler.currentElement,
- 'Expected a class, but $cls is an interface.');
- }
universe.instantiatedClasses.add(cls);
onRegisterInstantiatedClass(cls);
compiler.backend.registerInstantiatedClass(cls, this);
@@ -239,9 +233,7 @@
if (seenClasses.contains(cls)) continue;
seenClasses.add(cls);
cls.ensureResolved(compiler);
- if (!cls.isInterface()) {
- cls.implementation.forEachMember(processInstantiatedClassMember);
- }
+ cls.implementation.forEachMember(processInstantiatedClassMember);
if (isResolutionQueue) {
compiler.resolver.checkMembers(cls);
}

Powered by Google App Engine
This is Rietveld 408576698