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

Unified Diff: pkg/compiler/lib/src/resolution/class_hierarchy.dart

Issue 1504763003: Make NamedMixinApplicationElementX and EnumClassElementX implement DeclarationSite. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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/compiler/lib/src/parser/element_listener.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/class_hierarchy.dart
diff --git a/pkg/compiler/lib/src/resolution/class_hierarchy.dart b/pkg/compiler/lib/src/resolution/class_hierarchy.dart
index 64fb6a7593a34ed97faba97900228dd10c958655..f46b9fdc345e2f4bfdaa6eca017466a926b932bc 100644
--- a/pkg/compiler/lib/src/resolution/class_hierarchy.dart
+++ b/pkg/compiler/lib/src/resolution/class_hierarchy.dart
@@ -19,7 +19,8 @@ import '../elements/modelx.dart' show
ErroneousElementX,
MixinApplicationElementX,
SynthesizedConstructorElementX,
- TypeVariableElementX;
+ TypeVariableElementX,
+ UnnamedMixinApplicationElementX;
import '../ordered_typeset.dart' show
OrderedTypeSet,
OrderedTypeSetBuilder;
@@ -324,12 +325,12 @@ class ClassResolverVisitor extends TypeDefinitionVisitor {
DartType applyMixin(DartType supertype, DartType mixinType, Node node) {
String superName = supertype.name;
String mixinName = mixinType.name;
- MixinApplicationElementX mixinApplication = new MixinApplicationElementX(
- "${superName}+${mixinName}",
- element.compilationUnit,
- compiler.getNextFreeClassId(),
- node,
- new Modifiers.withFlags(new NodeList.empty(), Modifiers.FLAG_ABSTRACT));
+ MixinApplicationElementX mixinApplication =
+ new UnnamedMixinApplicationElementX(
+ "${superName}+${mixinName}",
+ element.compilationUnit,
+ compiler.getNextFreeClassId(),
+ node);
// Create synthetic type variables for the mixin application.
List<DartType> typeVariables = <DartType>[];
int index = 0;
@@ -379,9 +380,10 @@ class ClassResolverVisitor extends TypeDefinitionVisitor {
return constructor;
}
- void doApplyMixinTo(MixinApplicationElementX mixinApplication,
- DartType supertype,
- DartType mixinType) {
+ void doApplyMixinTo(
+ MixinApplicationElementX mixinApplication,
+ DartType supertype,
+ DartType mixinType) {
Node node = mixinApplication.parseNode(resolution.parsing);
if (mixinApplication.supertype != null) {
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698