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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.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/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index 3110dd1091901711d0d3dbd4c80d44449aa5c574..4253cb1432619b6732deab29be83fcaf0def4317 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1092,19 +1092,15 @@ class FunctionElementX extends ElementX implements FunctionElement {
* The patch should be parsed as if it was in the current scope. Its
* signature must match this function's signature.
*/
- // TODO(lrn): Consider using [defaultImplementation] to store the patch.
FunctionElement patch = null;
FunctionElement origin = null;
/**
* If this is a redirecting factory, [defaultImplementation] will be
- * changed by the resolver to point to the redirection target. If
- * this is an interface constructor, [defaultImplementation] will be
- * changed by the resolver to point to the default implementation.
+ * changed by the resolver to point to the redirection target.
* Otherwise, [:identical(defaultImplementation, this):].
*/
- // TODO(ahe): Rename this field to redirectionTarget and remove
- // mention of interface constructors above.
+ // TODO(ahe): Rename this field to redirectionTarget.
FunctionElement defaultImplementation;
FunctionElementX(SourceString name,
@@ -1409,7 +1405,6 @@ abstract class BaseClassElementX extends ElementX implements ClassElement {
*/
InterfaceType rawTypeCache;
DartType supertype;
- DartType defaultClass;
Link<DartType> interfaces;
SourceString nativeTagInfo;
int supertypeLoadState;
@@ -1540,9 +1535,6 @@ abstract class BaseClassElementX extends ElementX implements ClassElement {
if (e.modifiers.isStatic()) continue;
return e;
}
- if (isInterface()) {
- return lookupSuperInterfaceMember(memberName, getLibrary());
- }
return null;
}
@@ -1807,7 +1799,6 @@ abstract class BaseClassElementX extends ElementX implements ClassElement {
return false;
}
- bool isInterface() => false;
bool isNative() => nativeTagInfo != null;
void setNative(String name) {
nativeTagInfo = new SourceString(name);

Powered by Google App Engine
This is Rietveld 408576698