Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2559. Add scoping tests #2835

Merged
merged 4 commits into from
Aug 29, 2024
Merged

#2559. Add scoping tests #2835

merged 4 commits into from
Aug 29, 2024

Conversation

sgrekhov
Copy link
Contributor

No description provided.

Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Noticed one small typo.

I somewhat bigger thing is the naming of the members when there is a name clash: They are named introductory... or augmenting.... I think there's a reason for this, but I still suspect that it would be easier for future maintainers of these tests (including ourselves ;-) if the clashing names have a name like clashingName... rather than introductory....

So what do you think? Is there a systematic reason for the current naming which would be disrupted if those declarations were renamed?

Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

One thing: LanguageFeatures/Augmentation-libraries/scoping_A01_t05.dart expects that it is possible to obtain a transformation from qux to this.qux in a situation where the library scope contains a declaration named qux (albeit in a different file). That isn't so (and it couldn't be so because then we would probably be unable to access that top-level declaration from the body of a declaration D in a different file if D has a member with that name, instance or static).

@sgrekhov
Copy link
Contributor Author

Thank you for pointing to this issue. Fixed. PTAL.

@sgrekhov sgrekhov requested a review from eernstg August 29, 2024 09:50
Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eernstg eernstg merged commit 5d830df into dart-lang:master Aug 29, 2024
2 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 30, 2024
2024-08-29 sgrekhov22@gmail.com dart-lang/co19#2559. Add tests for some corner cases (dart-lang/co19#2836)
2024-08-29 sgrekhov22@gmail.com Fixes dart-lang/co19#2838. Variable named `_` does not bind anything (dart-lang/co19#2840)
2024-08-29 sgrekhov22@gmail.com dart-lang/co19#2559. Add scoping tests (dart-lang/co19#2835)
2024-08-29 sgrekhov22@gmail.com dart-lang/co19#2559. Fix extension types syntax (dart-lang/co19#2837)
2024-08-27 sgrekhov22@gmail.com dart-lang/co19#2559. Add extension types tests (dart-lang/co19#2831)
2024-08-26 sgrekhov22@gmail.com dart-lang/co19#2559. Add metadata tests (dart-lang/co19#2832)
2024-08-23 sgrekhov22@gmail.com dart-lang/co19#2559. Add more constructor augmentation tests around formal parameters (dart-lang/co19#2830)

Change-Id: I55ef74d7a2c34edbfbbfd91570b7efb250d0d40d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/382884
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants