@@ -1422,7 +1422,7 @@ class ConstructorElementImpl extends ExecutableElementImpl
14221422 }
14231423
14241424 @override
1425- InterfaceElement get enclosingElement3 =>
1425+ InterfaceElementImpl get enclosingElement3 =>
14261426 super .enclosingElement3 as InterfaceElementImpl ;
14271427
14281428 @override
@@ -1433,7 +1433,7 @@ class ConstructorElementImpl extends ExecutableElementImpl
14331433 bool get hasLiteral {
14341434 if (super .hasLiteral) return true ;
14351435 var enclosingElement = enclosingElement3;
1436- if (enclosingElement is ! ExtensionTypeElement ) return false ;
1436+ if (enclosingElement is ! ExtensionTypeElementImpl ) return false ;
14371437 return this == enclosingElement.primaryConstructor &&
14381438 enclosingElement.hasLiteral;
14391439 }
@@ -1584,8 +1584,8 @@ class ConstructorElementImpl2 extends ExecutableElementImpl2
15841584 ConstructorElement2 get baseElement => this ;
15851585
15861586 @override
1587- InterfaceElement2 get enclosingElement2 =>
1588- ( firstFragment._enclosingElement3 as InterfaceFragment ) .element;
1587+ InterfaceElementImpl2 get enclosingElement2 =>
1588+ firstFragment.enclosingElement3 .element;
15891589
15901590 @override
15911591 bool get isConst => firstFragment.isConst;
@@ -1608,6 +1608,11 @@ class ConstructorElementImpl2 extends ExecutableElementImpl2
16081608 as ConstructorElementImpl ? )
16091609 ? .element;
16101610
1611+ @override
1612+ InterfaceType get returnType {
1613+ return firstFragment.returnType;
1614+ }
1615+
16111616 @override
16121617 ConstructorElement2 ? get superConstructor2 =>
16131618 (firstFragment.superConstructor? .declaration as ConstructorElementImpl ? )
@@ -3396,7 +3401,7 @@ class ElementLocationImpl implements ElementLocation {
33963401 }
33973402 ancestor = ancestor.enclosingElement2;
33983403 } else {
3399- components.insert (0 , ancestor.identifier);
3404+ components.insert (0 , ancestor.identifier);
34003405 if (ancestor is LocalFunctionElementImpl ) {
34013406 ancestor = (ancestor.wrappedElement._enclosingElement3
34023407 as ExecutableElementImpl )
@@ -5745,6 +5750,9 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
57455750 @override
57465751 String get displayName => name;
57475752
5753+ @override
5754+ InterfaceElementImpl2 get element;
5755+
57485756 @override
57495757 List <InterfaceType > get interfaces {
57505758 linkedData? .read (this );
0 commit comments