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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 19811002: Do not emit substitutions for unnamed mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 6c8bdd14cffd97bbe5adc11e92dac55f53b77da0..bc876918b539a6bf9cd5c21605391f1b900a91a4 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1525,6 +1525,8 @@ abstract class BaseClassElementX extends ElementX implements ClassElement {
bool get hasBackendMembers => !backendMembers.isEmpty;
+ bool get isUnnamedMixinApplication => false;
+
InterfaceType computeType(Compiler compiler) {
if (thisType == null) {
if (origin == null) {
@@ -1987,6 +1989,7 @@ class MixinApplicationElementX extends BaseClassElementX
: super(name, enclosing, id, STATE_NOT_STARTED);
bool get isMixinApplication => true;
+ bool get isUnnamedMixinApplication => node is! NamedMixinApplication;
bool get hasConstructor => !constructors.isEmpty;
bool get hasLocalScopeMembers => !constructors.isEmpty;

Powered by Google App Engine
This is Rietveld 408576698