-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
List-patterns: factor binding logic #57318
Merged
Merged
Changes from 29 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
025f398
Address some PROTOTYPE markers
jcouv 00e6ff2
Address feedback
jcouv b1112ce
Merge remote-tracking branch 'dotnet/features/list-patterns' into lis…
jcouv 8d16d55
Rename
jcouv 05f3611
More rename
jcouv 1c3417a
fix incorrect rename
jcouv 51be8eb
Revert most of the renaming
jcouv c3f1618
Use-site info
jcouv ddb617c
Merge remote-tracking branch 'dotnet/features/list-patterns' into lis…
jcouv d69d920
WIP on refactoring
jcouv 39ea1f6
update tests
jcouv 91a7ffa
CheckValue on placeholder
jcouv 7f36c4f
Merge remote-tracking branch 'dotnet/features/list-patterns' into lis…
jcouv 0f924db
Redo lowering change. Store receiver in IndexerAccess
jcouv d1288ed
Address feedback
jcouv adfee13
Address feedback (2)
jcouv dbdbe39
Address feedback (3)
jcouv a1a4243
Disable caching that is not necessary during a list pattern evaluation.
AlekseyTs c9f67d1
Merge remote-tracking branch 'features/list-patterns' into ImplicitIn…
AlekseyTs 05edc54
Address feedback (4)
jcouv 1912f37
Fix NullabilityRewriter
jcouv cd501b4
tweaks
jcouv aab5d74
compiler generated
jcouv 8be23fa
or
jcouv 6c132fa
Fix order of evaluation for nullability
jcouv a4ba54b
Clean up handling of an implicit indexer as a target of an assignment…
AlekseyTs dff82c5
Address feedback (5)
jcouv 9def40b
Improve SemanticModel handling of receiver under BoundIndexOrRangePat…
AlekseyTs 2965f6d
Check implicit copy directly
jcouv dea39c5
Address feedback (6)
jcouv 174d3f2
Fix 2 test baselines with missing members
jcouv bcc3336
tweak
jcouv 76d6d7b
Rename to ImplicitIndexer and IndexerOrSliceAccess
jcouv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this code path covered by tests? It is not obvious why returning
false
is the right thing to do for it. #ClosedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's covered by
DeconstructRefExtensionMethod
. The cases the only need to use the expression as an r-value are handled above (line 418,RequiresRValueOnly
case).