You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elements. Move extension type properties from fragment to element
The `typeErasure`, `primaryConstructor`, and `representation` fields are
properties of the extension type as a whole, not of any individual
declaration fragment.
This commit moves `typeErasure` from `ExtensionTypeFragmentImpl` to
`ExtensionTypeElementImpl` to better align the element model with this
concept.
As part of this refactoring, the `primaryConstructor` and
`representation` getters on `ExtensionTypeFragment` are now deprecated.
Clients should access these properties directly from the
`ExtensionTypeElement`, which serves as the single source of truth. All
internal call sites have been updated accordingly.
Change-Id: I359572c6f7fe1d562fadfb60873a6e34aed0e5ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445580
Reviewed-by: Paul Berry <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
0 commit comments