|
21 | 21 | /// the references to `String` and `int` are type arguments. |
22 | 22 | library; |
23 | 23 |
|
24 | | -import 'package:analyzer/dart/element/element.dart'; |
25 | 24 | import 'package:analyzer/dart/element/element2.dart'; |
26 | 25 | import 'package:analyzer/dart/element/nullability_suffix.dart'; |
27 | 26 | import 'package:analyzer/dart/element/type_visitor.dart'; |
@@ -244,50 +243,9 @@ abstract class FunctionType implements DartType { |
244 | 243 | /// optional parameters declared, then the map is empty. |
245 | 244 | List<DartType> get optionalParameterTypes; |
246 | 245 |
|
247 | | - /// A list containing the parameters elements of this type of function. |
248 | | - /// |
249 | | - /// The parameter types are not necessarily in the same order as they appear |
250 | | - /// in the declaration of the function. |
251 | | - @Deprecated('Use formalParameters instead') |
252 | | - List<ParameterElement> get parameters; |
253 | | - |
254 | | - /// All the positional parameter types, starting with the required ones, and |
255 | | - /// followed by the optional ones. |
256 | | - /// |
257 | | - /// Deprecated: this getter is a part of the analyzer's private |
258 | | - /// implementation, and was exposed by accident (see |
259 | | - /// https://github.com/dart-lang/sdk/issues/59763). Please use |
260 | | - /// [normalParameterTypes] and [optionalParameterTypes] instead. |
261 | | - @Deprecated('Please use normalParameterTypes and optionalParameterTypes') |
262 | | - List<DartType> get positionalParameterTypes; |
263 | | - |
264 | | - /// The number of elements of [positionalParameterTypes] that are required |
265 | | - /// parameters. |
266 | | - /// |
267 | | - /// Deprecated: this getter is a part of the analyzer's private |
268 | | - /// implementation, and was exposed by accident (see |
269 | | - /// https://github.com/dart-lang/sdk/issues/59763). Please use |
270 | | - /// [normalParameterTypes].length instead. |
271 | | - @Deprecated('Please use normalParameterTypes.length') |
272 | | - int get requiredPositionalParameterCount; |
273 | | - |
274 | 246 | /// The type of object returned by this type of function. |
275 | 247 | DartType get returnType; |
276 | 248 |
|
277 | | - /// All the named parameters, sorted by name. |
278 | | - /// |
279 | | - /// Deprecated: this getter is a part of the analyzer's private |
280 | | - /// implementation, and was exposed by accident (see |
281 | | - /// https://github.com/dart-lang/sdk/issues/59763). Please use [parameters] |
282 | | - /// instead. |
283 | | - @Deprecated('Please use parameters') |
284 | | - List<ParameterElement> get sortedNamedParameters; |
285 | | - |
286 | | - /// The formal type parameters of this generic function; for example, |
287 | | - /// `<T> T -> T`. |
288 | | - @Deprecated('Use typeParameters instead') |
289 | | - List<TypeParameterElement> get typeFormals; |
290 | | - |
291 | 249 | /// The type parameters. |
292 | 250 | @experimental |
293 | 251 | List<TypeParameterElement2> get typeParameters; |
|
0 commit comments