Index: pkg/analyzer2dart/lib/src/modely.dart |
diff --git a/pkg/analyzer2dart/lib/src/modely.dart b/pkg/analyzer2dart/lib/src/modely.dart |
index 19c8b534df39929744a0485bab28b484d4d48906..e69d5f058066f889aa14880a85acf00f299f48dd 100644 |
--- a/pkg/analyzer2dart/lib/src/modely.dart |
+++ b/pkg/analyzer2dart/lib/src/modely.dart |
@@ -720,7 +720,8 @@ class TopLevelVariableElementY extends ElementY |
with AnalyzableElementY, |
AstElementY, |
TopLevelElementMixin, |
- VariableElementMixin |
+ VariableElementMixin, |
+ MemberElementMixin |
implements dart2js.FieldElement { |
analyzer.TopLevelVariableElement get element => super.element; |
@@ -810,7 +811,8 @@ class ConstructorElementY extends ElementY |
with AnalyzableElementY, |
AstElementY, |
FunctionElementMixin, |
- ClassMemberMixin |
+ ClassMemberMixin, |
+ MemberElementMixin |
implements dart2js.ConstructorElement { |
analyzer.ConstructorElement get element => super.element; |
@@ -861,7 +863,8 @@ class InstanceMethodElementY extends ElementY |
with AnalyzableElementY, |
AstElementY, |
FunctionElementMixin, |
- ClassMemberMixin |
+ ClassMemberMixin, |
+ MemberElementMixin |
implements dart2js.MethodElement { |
analyzer.MethodElement get element => super.element; |
@@ -888,3 +891,7 @@ class InstanceMethodElementY extends ElementY |
@override |
get nestedClosures => unsupported('nestedClosures'); |
} |
+ |
+abstract class MemberElementMixin implements dart2js.MemberElement { |
+ dart2js.Name get memberName => new dart2js.Name(name, library); |
+} |