-
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.
[analyzer,parser] Check for named before positional in analyzer
Since the check or the absence of the check for a named argument appearing before a positional parameter is feature-specific considering the language feature that allows placing the named arguments anywhere, it should be performed by the listeners of the parser and guarded by an experiment flag, in alignment with other experimental featuers. This CL moves the check and the reporting of the error from the parser into the Analyzer, so that later this check can be skipped if the corresponding experiment flag is enabled. Part of #47451. Change-Id: Ib795d418af429ee04ecfff6dfa71ec1e836fe798 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216640 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Chloe Stefantsova <dmitryas@google.com>
- Loading branch information
Chloe Stefantsova
authored and
commit-bot@chromium.org
committed
Oct 14, 2021
1 parent
8516cdc
commit a666b5a
Showing
8 changed files
with
13 additions
and
718 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
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
173 changes: 0 additions & 173 deletions
173
...d/testcases/unscheduled_experiments/named_arguments_anywhere/all_kinds.dart.strong.expect
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
Oops, something went wrong.