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

Implement IsMoveableVariable check for inline array element access. #69098

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

AlekseyTs
Copy link
Contributor

@AlekseyTs AlekseyTs commented Jul 18, 2023

Relates to test plan #67826

@AlekseyTs AlekseyTs requested review from jjonescz and cston July 18, 2023 21:05
@AlekseyTs AlekseyTs requested a review from a team as a code owner July 18, 2023 21:05
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jul 18, 2023
@AlekseyTs
Copy link
Contributor Author

@tannergooding FYI

@AlekseyTs
Copy link
Contributor Author

@cston, @jjonescz, @dotnet/roslyn-compiler Please review

@jaredpar jaredpar added this to the 17.8 milestone Jul 19, 2023
Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 1)

if (elementAccess.GetItemOrSliceHelper is WellKnownMember.System_Span_T__get_Item or WellKnownMember.System_ReadOnlySpan_T__get_Item)
{
expr = elementAccess.Expression;
continue;
Copy link
Member

Choose a reason for hiding this comment

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

Should the behavior be detailed in the speclet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should the behavior be detailed in the speclet?

dotnet/csharplang#7362

@AlekseyTs AlekseyTs merged commit 1765b16 into dotnet:main Jul 20, 2023
25 checks passed
@ghost ghost modified the milestones: 17.8, Next Jul 20, 2023
@allisonchou allisonchou modified the milestones: Next, 17.8 P1 Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers New Feature - Inline Arrays untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants