-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More prep work to allow the linker to re-use resolution logic.
See #32525. This CL makes the following changes: - Extracts the logic from AbstractClassElementImpl.getSetter to a static method so it can be re-used by the summary linker. - Modifies ParameterElementImpl._resynthesizeTypeAndParameters so that it avoids unnecessary calls to resolveLinkedType. This is crucial because resolveLinkedType is not available when linking. - Makes it possible to suppress reporting of const evaluation errors when doing resolution. This is necessary because in order to report these errors we must do constant evaluation, which is not possible during summary linking. - Modifies ResolverVisitor._hasSerializedConstantInitializer to avoid unnecessary calls to LibraryElementImpl.hasResolutionCapability. This is crucial because the linker contains an implementation of LibraryElementImpl that's incompatible with LibraryElementImpl.hasResolutionCapability. Change-Id: Iec91bd8d6a68193e091c2438bafcd7cb15488d89 Reviewed-on: https://dart-review.googlesource.com/48681 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Paul Berry <[email protected]>
- Loading branch information
1 parent
91e6c8b
commit ebdee7e
Showing
3 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters