-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove the `Member? member` field: - Knowing a `ParameterInfo`s member is not too useful, because it doesn't tell us for which use of the member (tear-off getter, invocation) the `ParameterInfo` is for. - The `member` field has two uses: - To compute whether the function being called takes a receiver or context parameter. - In dispatch table builder: to check whether a selector (via its `ParameterInfo`) is for `noSuchMethod`. Both of these can be implemented more directly, as done in this CL: - Add `final bool takesContextOrReceiver` member to `ParameterInfo`. - Add `final bool alwaysAddToDispatchTable` member to `SelectorInfo` to handle the special case with `noSuchMethod`. - Add various assertions in `ParameterInfo` members. Change-Id: I473657f594c6306605677cf001854407d43f1347 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/398883 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Ömer Ağacan <[email protected]>
- Loading branch information
Showing
3 changed files
with
64 additions
and
54 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