@@ -84,11 +84,6 @@ abstract class TypeProvider {
8484 /// Return the type representing the built-in type `Never` .
8585 DartType get neverType;
8686
87- /// Return a list containing all of the types that cannot be either extended
88- /// or implemented.
89- @Deprecated ('Use isNonSubtypableClass instead' )
90- Set <ClassElement > get nonSubtypableClasses;
91-
9287 /// Return the element representing the built-in class `Null` .
9388 ClassElement get nullElement;
9489
@@ -138,20 +133,10 @@ abstract class TypeProvider {
138133 /// given [valueType] . The type has the nullability suffix of this provider.
139134 InterfaceType futureOrType (DartType valueType);
140135
141- /// Return the instantiation of the built-in class `FutureOr` with the
142- /// given [valueType] . The type has the nullability suffix of this provider.
143- @Deprecated ('Use futureOrType instead' )
144- InterfaceType futureOrType2 (DartType valueType);
145-
146136 /// Return the instantiation of the built-in class `Future` with the
147137 /// given [valueType] . The type has the nullability suffix of this provider.
148138 InterfaceType futureType (DartType valueType);
149139
150- /// Return the instantiation of the built-in class `Future` with the
151- /// given [valueType] . The type has the nullability suffix of this provider.
152- @Deprecated ('Use futureType instead' )
153- InterfaceType futureType2 (DartType valueType);
154-
155140 /// Return `true` if [element] cannot be extended, implemented, or mixed in.
156141 bool isNonSubtypableClass (ClassElement element);
157142
@@ -169,46 +154,20 @@ abstract class TypeProvider {
169154 /// given [elementType] . The type has the nullability suffix of this provider.
170155 InterfaceType iterableType (DartType elementType);
171156
172- /// Return the instantiation of the built-in class `Iterable` with the
173- /// given [elementType] . The type has the nullability suffix of this provider.
174- @Deprecated ('Use iterableType instead' )
175- InterfaceType iterableType2 (DartType elementType);
176-
177157 /// Return the instantiation of the built-in class `List` with the
178158 /// given [elementType] . The type has the nullability suffix of this provider.
179159 InterfaceType listType (DartType elementType);
180160
181- /// Return the instantiation of the built-in class `List` with the
182- /// given [elementType] . The type has the nullability suffix of this provider.
183- @Deprecated ('Use listType instead' )
184- InterfaceType listType2 (DartType elementType);
185-
186161 /// Return the instantiation of the built-in class `List` with the
187162 /// given [keyType] and [valueType] . The type has the nullability suffix of
188163 /// this provider.
189164 InterfaceType mapType (DartType keyType, DartType valueType);
190165
191- /// Return the instantiation of the built-in class `List` with the
192- /// given [keyType] and [valueType] . The type has the nullability suffix of
193- /// this provider.
194- @Deprecated ('Use mapType instead' )
195- InterfaceType mapType2 (DartType keyType, DartType valueType);
196-
197166 /// Return the instantiation of the built-in class `Set` with the
198167 /// given [elementType] . The type has the nullability suffix of this provider.
199168 InterfaceType setType (DartType elementType);
200169
201- /// Return the instantiation of the built-in class `Set` with the
202- /// given [elementType] . The type has the nullability suffix of this provider.
203- @Deprecated ('Use setType instead' )
204- InterfaceType setType2 (DartType elementType);
205-
206170 /// Return the instantiation of the built-in class `Stream` with the
207171 /// given [elementType] . The type has the nullability suffix of this provider.
208172 InterfaceType streamType (DartType elementType);
209-
210- /// Return the instantiation of the built-in class `Stream` with the
211- /// given [elementType] . The type has the nullability suffix of this provider.
212- @Deprecated ('Use streamType instead' )
213- InterfaceType streamType2 (DartType elementType);
214173}
0 commit comments