Skip to content

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

2 participants