Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[_fe_analyzer_shared] Change signature of extension type constructors.
The constructors for `SharedTypeView<TypeStructure>` and `SharedTypeSchemaView<TypeStructure>` are changed so that they accept `TypeStructure` rather than `SharedTypeStructure<TypeStructure>`. For context, I'm currently in the middle of migrating the analyzer so that it passes a type argument of `TypeImpl` instead of `DartType` when using generic types that accept a `TypeStructure` type argument. The purpose of this change is to ensure that when a given use of `SharedTypeView` or `SharedTypeSchemaView` has its type argument changed to `TypeImpl`, the type checker will ensure that the corresponding constructor argument satisfies `TypeImpl`. There is no change to runtime behavior. Change-Id: I34d540312b567e390e7dfa535806051e0d5f2868 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404900 Reviewed-by: Chloe Stefantsova <[email protected]> Commit-Queue: Paul Berry <[email protected]>
- Loading branch information