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
This change introduces new experimental properties to the analyzer
element model to identify elements related to declaring constructors.
The new properties are:
- `ConstructorElement.isDeclaring`: True for a declaring constructor.
- `ConstructorElement.isPrimary`: True if the constructor is primary
(which implies it is also `isDeclaring`).
- `FieldFormalParameterElement.isDeclaring`: True for a formal
parameter in a declaring constructor.
- `FieldElement.declaringFormalParameter`: A link from a field back
to the formal parameter that declared it, if it came from a
declaring constructor.
This allows other parts of the analyzer and analyzer clients to
understand the origin of these implicitly declared elements.
The change also updates the necessary serialization logic (manifest,
data version) and member proxies to support these new properties.
Bug: #61701
Change-Id: Iedefd6b5584d28a47aea0e90d6aedafaf8aecdef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/459580
Reviewed-by: Paul Berry <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
0 commit comments