RustPython / Parser

MIT License
66 stars 24 forks source link

Align `MatchCase` end location #76

Closed MichaReiser closed 1 year ago

MichaReiser commented 1 year ago

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 commented 1 year ago

Whoops sorry, race condition :D