Skip to content

Refresh features/list-patterns with latest bits from main branch#53937

Merged
jcouv merged 2271 commits intodotnet:features/list-patternsfrom
jcouv:merge-master
Jun 8, 2021
Merged

Refresh features/list-patterns with latest bits from main branch#53937
jcouv merged 2271 commits intodotnet:features/list-patternsfrom
jcouv:merge-master

Conversation

@jcouv
Copy link
Copy Markdown
Member

@jcouv jcouv commented Jun 8, 2021

The last commit resolves the conflicts: 6470f61
FYI @alrz

CyrusNajmabadi and others added 30 commits May 18, 2021 13:03
These should have been left as is as a part of
299d55d, as this otherwise created
breaking API changes.
Only require telemetry validation in CI
…pi-break

Revert changes to TypeScriptWaitContext wrappers
Port 'Fix out of bound crash in lsp navto' to dev 16.11
CyrusNajmabadi and others added 17 commits June 4, 2021 22:09
Ensure we do not need to go back to compilations/symbols when a user selects a navbar item.
Use simpler, less allocating immutable array helper.
Add line numbers to contract failures
Gracefully fail when resolving unsupported symbolkeys in VB
@jcouv jcouv self-assigned this Jun 8, 2021
{
<<<<<<< HEAD
=======
CheckImplicitThisCopyInReadOnlyMember(receiverOpt, lengthOrCountProperty.GetMethod, diagnostics);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This call to CheckImplicitThisCopyInReadOnlyMember turned out unnecessary because the caller (for indexing via this[int]) already reported exactly the same diagnostic (see line 7932 above in diff).
Note that the other caller is for list-patterns (TryFindIndexerOrIndexerPattern in Binder_Patterns.cs). Added a test for that scenario (PatternIndexRangeReadOnly_01) but I don't think it should report this diagnostic anyway because the indexer access is off of a special receiver for patterns... CheckImplicitThisCopyInReadOnlyMember only reports when the receiver is this.

=======
CheckImplicitThisCopyInReadOnlyMember(receiverOpt, lengthOrCountProperty.GetMethod, diagnostics);
ReportDiagnosticsIfObsolete(diagnostics, property, syntax, hasBaseReceiver: false);
ReportDiagnosticsIfObsolete(diagnostics, lengthOrCountProperty, syntax, hasBaseReceiver: false);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Moved this check to caller (line 7934 above) for binding indexer.
For binding list-patterns we still have a PROTOTYPE marker tracking this in test ListPattern_ObsoleteMembers.

@jcouv jcouv marked this pull request as ready for review June 8, 2021 05:36
@jcouv jcouv requested review from a team as code owners June 8, 2021 05:36
@jcouv jcouv requested a review from a team June 8, 2021 05:36
@jcouv jcouv merged commit 37d8075 into dotnet:features/list-patterns Jun 8, 2021
@jcouv jcouv deleted the merge-master branch June 8, 2021 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.