9a4c9100ae
This renames ExtensionType.typeErasure and adds it to DartType. This also fixes the extension type erasure for when extension types are used in the arguments of an extension type. DartType.extensionTypeErasure can be used by backends to easily access the type without extension types for any type. TEST=pkg/kernel/test/extension_type_erasure_test.dart Change-Id: Ia49d273ed85111e3ae822720860a3e0be5ea0252 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329960 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Aske Simon Christensen <askesc@google.com> Reviewed-by: Srujan Gaddam <srujzs@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>