typeFormals property

List<TypeParameterElement> typeFormals

The formal type parameters of this generic function; for example, <T> T -> T.

Implementation

//
// TODO(scheglov): Remove the mention for "typeParameters".
// These are distinct from the `typeParameters` list, which contains type
// parameters from surrounding contexts, and thus are free type variables
// from the perspective of this function type.
List<TypeParameterElement> get typeFormals;