@@ -316,11 +316,6 @@ abstract class InstantiatedTypeAliasElement {
316316///
317317/// Clients may not extend, implement or mix-in this class.
318318abstract class InterfaceType implements ParameterizedType {
319- /// Return a list containing all of the accessors (getters and setters)
320- /// declared in this type.
321- @Deprecated ('Use getters or setters instead' )
322- List <PropertyAccessorElement > get accessors;
323-
324319 /// Return all the super-interfaces implemented by this interface. This
325320 /// includes superclasses, mixins, interfaces, and superclass constraints.
326321 List <InterfaceType > get allSupertypes;
@@ -343,10 +338,6 @@ abstract class InterfaceType implements ParameterizedType {
343338 /// by this method will have had their type parameters replaced.
344339 List <InterfaceType > get interfaces;
345340
346- /// Return a list containing all of the methods declared in this type.
347- @Deprecated ('Use methods2 instead' )
348- List <MethodElement > get methods;
349-
350341 /// Return a list containing all of the methods declared in this type.
351342 @experimental
352343 List <MethodElement2 > get methods2;
@@ -374,34 +365,16 @@ abstract class InterfaceType implements ParameterizedType {
374365 /// represent a mixin declaration.
375366 List <InterfaceType > get superclassConstraints;
376367
377- /// Return the element representing the getter with the given [name] that is
378- /// declared in this class, or `null` if this class does not declare a getter
379- /// with the given name.
380- @Deprecated ('Use getGetter2() instead' )
381- PropertyAccessorElement ? getGetter (String name);
382-
383368 /// Return the element representing the getter with the given [name] that is
384369 /// declared in this class, or `null` if this class does not declare a getter
385370 /// with the given name.
386371 GetterElement ? getGetter2 (String name);
387372
388- /// Return the element representing the method with the given [name] that is
389- /// declared in this class, or `null` if this class does not declare a method
390- /// with the given name.
391- @Deprecated ('Use getMethod2() instead' )
392- MethodElement ? getMethod (String name);
393-
394373 /// Return the element representing the method with the given [name] that is
395374 /// declared in this class, or `null` if this class does not declare a method
396375 /// with the given name.
397376 MethodElement2 ? getMethod2 (String name);
398377
399- /// Return the element representing the setter with the given [name] that is
400- /// declared in this class, or `null` if this class does not declare a setter
401- /// with the given name.
402- @Deprecated ('Use getSetter2() instead' )
403- PropertyAccessorElement ? getSetter (String name);
404-
405378 /// Return the element representing the setter with the given [name] that is
406379 /// declared in this class, or `null` if this class does not declare a setter
407380 /// with the given name.
@@ -420,25 +393,6 @@ abstract class InterfaceType implements ParameterizedType {
420393 ConstructorElement2 ? lookUpConstructor2 (
421394 String ? name, LibraryElement2 library);
422395
423- /// Return the getter with the given [name] .
424- ///
425- /// If [concrete] is `true` , then the concrete implementation is returned,
426- /// from this type, or its superclass.
427- ///
428- /// If [inherited] is `true` , then only getters from the superclass are
429- /// considered.
430- ///
431- /// If [recoveryStatic] is `true` , then static getters of the class,
432- /// and its superclasses are considered. Clients should not use it.
433- @Deprecated ('Use lookUpGetter3() instead' )
434- PropertyAccessorElement ? lookUpGetter2 (
435- String name,
436- LibraryElement library, {
437- bool concrete = false ,
438- bool inherited = false ,
439- bool recoveryStatic = false ,
440- });
441-
442396 /// Return the getter with the given [name] .
443397 ///
444398 /// If [concrete] is `true` , then the concrete implementation is returned,
@@ -457,25 +411,6 @@ abstract class InterfaceType implements ParameterizedType {
457411 bool recoveryStatic = false ,
458412 });
459413
460- /// Return the method with the given [name] .
461- ///
462- /// If [concrete] is `true` , then the concrete implementation is returned,
463- /// from this type, or its superclass.
464- ///
465- /// If [inherited] is `true` , then only methods from the superclass are
466- /// considered.
467- ///
468- /// If [recoveryStatic] is `true` , then static methods of the class,
469- /// and its superclasses are considered. Clients should not use it.
470- @Deprecated ('Use lookUpMethod3() instead' )
471- MethodElement ? lookUpMethod2 (
472- String name,
473- LibraryElement library, {
474- bool concrete = false ,
475- bool inherited = false ,
476- bool recoveryStatic = false ,
477- });
478-
479414 /// Return the method with the given [name] .
480415 ///
481416 /// If [concrete] is `true` , then the concrete implementation is returned,
@@ -494,25 +429,6 @@ abstract class InterfaceType implements ParameterizedType {
494429 bool recoveryStatic = false ,
495430 });
496431
497- /// Return the setter with the given [name] .
498- ///
499- /// If [concrete] is `true` , then the concrete implementation is returned,
500- /// from this type, or its superclass.
501- ///
502- /// If [inherited] is `true` , then only setters from the superclass are
503- /// considered.
504- ///
505- /// If [recoveryStatic] is `true` , then static setters of the class,
506- /// and its superclasses are considered. Clients should not use it.
507- @Deprecated ('Use lookUpSetter3() instead' )
508- PropertyAccessorElement ? lookUpSetter2 (
509- String name,
510- LibraryElement library, {
511- bool concrete = false ,
512- bool inherited = false ,
513- bool recoveryStatic = false ,
514- });
515-
516432 /// Return the setter with the given [name] .
517433 ///
518434 /// If [concrete] is `true` , then the concrete implementation is returned,
0 commit comments