cfe9202393
This regressed in https://dart-review.googlesource.com/c/74664/. In Analyzer FunctionType.typeFormals returns TypeParameterElements instead of TypeParameterTypes; it is not safe to assume non-null bound for elements. Also fixes & clarifies the intent of _canEmitTypeAtTopLevel (formerly _typeIsLoaded). There was no reason to visit the typeFormals, as generic function types can always be emitted into the module. Change-Id: Ia8b9271c2d1b66dca934d032dcbbe4fe89146f1b Reviewed-on: https://dart-review.googlesource.com/76746 Reviewed-by: Alan Knight <alanknight@google.com>