@@ -218,16 +218,6 @@ class ClassElementImpl extends ClassOrMixinElementImpl
218218 return false ;
219219 }
220220
221- /// Return `true` if the class has a concrete `noSuchMethod()` method distinct
222- /// from the one declared in class `Object` , as per the Dart Language
223- /// Specification (section 10.4).
224- bool get hasNoSuchMethod {
225- MethodElement ? method = lookUpConcreteMethod (
226- FunctionElement .NO_SUCH_METHOD_METHOD_NAME , library);
227- var definingClass = method? .enclosingElement3 as ClassElementImpl ? ;
228- return definingClass != null && ! definingClass.isDartCoreObject;
229- }
230-
231221 @override
232222 bool get isAbstract {
233223 return hasModifier (Modifier .ABSTRACT );
@@ -5939,7 +5929,10 @@ abstract class InstanceElementImpl2 extends ElementImpl2
59395929}
59405930
59415931abstract class InterfaceElementImpl extends InstanceElementImpl
5942- implements InterfaceElement , InterfaceFragment {
5932+ implements
5933+ // ignore:deprecated_member_use_from_same_package
5934+ InterfaceElement ,
5935+ InterfaceFragment {
59435936 /// A list containing all of the mixins that are applied to the class being
59445937 /// extended in order to derive the superclass of this class.
59455938 List <InterfaceTypeImpl > _mixins = const [];
@@ -6152,6 +6145,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
61526145 );
61536146 }
61546147
6148+ @Deprecated ('Use InterfaceElementImpl2 instead' )
61556149 @override
61566150 MethodElement ? lookUpConcreteMethod (
61576151 String methodName, LibraryElement library) {
@@ -6167,6 +6161,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
61676161 .firstWhereOrNull ((getter) => getter.isAccessibleIn (library));
61686162 }
61696163
6164+ @Deprecated ('Use InterfaceElementImpl2 instead' )
61706165 @override
61716166 PropertyAccessorElement ? lookUpInheritedConcreteGetter (
61726167 String getterName, LibraryElement library) {
@@ -6188,6 +6183,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
61886183 }
61896184 }
61906185
6186+ @Deprecated ('Use InterfaceElementImpl2 instead' )
61916187 @override
61926188 MethodElement ? lookUpInheritedConcreteMethod (
61936189 String methodName, LibraryElement library) {
@@ -6209,6 +6205,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
62096205 setter.enclosingElement3 != this );
62106206 }
62116207
6208+ @Deprecated ('Use InterfaceElementImpl2 instead' )
62126209 @override
62136210 MethodElement ? lookUpInheritedMethod (
62146211 String methodName, LibraryElement library) {
@@ -6238,6 +6235,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
62386235 /// This method should be used only for error recovery during analysis,
62396236 /// when instance access to a static class member, defined in this class,
62406237 /// or a superclass.
6238+ @Deprecated ('Use InterfaceElementImpl2 instead' )
62416239 PropertyAccessorElementOrMember ? lookupStaticGetter (
62426240 String name, LibraryElement library) {
62436241 return _implementationsOfGetter (name).firstWhereOrNull (
@@ -6249,6 +6247,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
62496247 /// This method should be used only for error recovery during analysis,
62506248 /// when instance access to a static class member, defined in this class,
62516249 /// or a superclass.
6250+ @Deprecated ('Use InterfaceElementImpl2 instead' )
62526251 MethodElementOrMember ? lookupStaticMethod (
62536252 String name, LibraryElement library) {
62546253 return _implementationsOfMethod (name).firstWhereOrNull (
@@ -6285,6 +6284,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
62856284 /// The getters are returned based on the depth of their defining class; if
62866285 /// this class contains a definition of the getter it will occur first, if
62876286 /// Object contains a definition of the getter it will occur last.
6287+ @Deprecated ('Use InterfaceElementImpl2 instead' )
62886288 Iterable <PropertyAccessorElementOrMember > _implementationsOfGetter (
62896289 String getterName) sync * {
62906290 var visitedClasses = < InterfaceElement > {};
@@ -6315,6 +6315,7 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
63156315 /// The methods are returned based on the depth of their defining class; if
63166316 /// this class contains a definition of the method it will occur first, if
63176317 /// Object contains a definition of the method it will occur last.
6318+ @Deprecated ('Use InterfaceElementImpl2 instead' )
63186319 Iterable <MethodElementOrMember > _implementationsOfMethod (
63196320 String methodName) sync * {
63206321 var visitedClasses = < InterfaceElement > {};
0 commit comments