resolveTypeParameterBounds static method

Map<String, RuntimeType?> resolveTypeParameterBounds(
  1. STypeParameterList? typeParameters,
  2. Environment env
)

The bounds of typeParameters resolved STRICTLY in env: an undefined bound throws.

GitHub #9 — a method created while a module load is in progress is built with lenient bounds, because its bound may name a class a barrel has not exported yet (intl's parseWith<R, P extends NumberParserBase<R>>, which reaches NumberParserBase only through intl.dart). The bounds left unresolved are filled from this once the outermost load returns.

Implementation

static Map<String, RuntimeType?> resolveTypeParameterBounds(
  STypeParameterList? typeParameters,
  Environment env,
) => _extractTypeParameterBounds(typeParameters, env);