8064c1c342
Also add `legacyTypeRep<T>()` that is similar but performs a shallow conversion to a legacy type. Using this in compiler/dartdevc_native/ tests gives a better usability instead of constantly wrapping and unwrapping types. It allows us to avoid stripping off the legacy from a type when calling `wrapType()`. Issue: https://github.com/dart-lang/sdk/issues/40266 Change-Id: I07225f18c253222b31203b0b110233a3e018a7d0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142547 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>