de9f9f7eca
This CL adds a helper method to test if a type is the type `Function` from `dart:core`. The added method is applied in the constraint generation algorithms in the Analyzer and the CFE. Part of https://github.com/dart-lang/sdk/issues/54902 Change-Id: I94aae6247432a7e4a431cd68ae0326ea4f693cac Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362482 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>