@@ -84,11 +84,6 @@ abstract class TypeProvider {
84
84
/// Return the type representing the built-in type `Never` .
85
85
DartType get neverType;
86
86
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
-
92
87
/// Return the element representing the built-in class `Null` .
93
88
ClassElement get nullElement;
94
89
@@ -138,20 +133,10 @@ abstract class TypeProvider {
138
133
/// given [valueType] . The type has the nullability suffix of this provider.
139
134
InterfaceType futureOrType (DartType valueType);
140
135
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
-
146
136
/// Return the instantiation of the built-in class `Future` with the
147
137
/// given [valueType] . The type has the nullability suffix of this provider.
148
138
InterfaceType futureType (DartType valueType);
149
139
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
-
155
140
/// Return `true` if [element] cannot be extended, implemented, or mixed in.
156
141
bool isNonSubtypableClass (ClassElement element);
157
142
@@ -169,46 +154,20 @@ abstract class TypeProvider {
169
154
/// given [elementType] . The type has the nullability suffix of this provider.
170
155
InterfaceType iterableType (DartType elementType);
171
156
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
-
177
157
/// Return the instantiation of the built-in class `List` with the
178
158
/// given [elementType] . The type has the nullability suffix of this provider.
179
159
InterfaceType listType (DartType elementType);
180
160
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
-
186
161
/// Return the instantiation of the built-in class `List` with the
187
162
/// given [keyType] and [valueType] . The type has the nullability suffix of
188
163
/// this provider.
189
164
InterfaceType mapType (DartType keyType, DartType valueType);
190
165
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
-
197
166
/// Return the instantiation of the built-in class `Set` with the
198
167
/// given [elementType] . The type has the nullability suffix of this provider.
199
168
InterfaceType setType (DartType elementType);
200
169
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
-
206
170
/// Return the instantiation of the built-in class `Stream` with the
207
171
/// given [elementType] . The type has the nullability suffix of this provider.
208
172
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);
214
173
}
0 commit comments