Skip to content

Align MatchCase end location#76

Merged
MichaReiser merged 2 commits intoRustPython:mainfrom
astral-sh:match-case-end-location
May 31, 2023
Merged

Align MatchCase end location#76
MichaReiser merged 2 commits intoRustPython:mainfrom
astral-sh:match-case-end-location

Conversation

@MichaReiser
Copy link
Contributor

Node's that contain a body (Suite/Vec<Stmt>) compute their end location by taking the end location from the last statement.

This PR aligns this behavior for MatchCase that, to this point, used the @R location.

@MichaReiser MichaReiser requested a review from youknowone May 31, 2023 07:38
@MichaReiser
Copy link
Contributor Author

Whoops sorry, race condition :D

@MichaReiser MichaReiser merged commit fe25708 into RustPython:main May 31, 2023
@MichaReiser MichaReiser deleted the match-case-end-location branch May 31, 2023 07:48
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