rope
rope copied to clipboard
patchedast is currently not handling some `match-case` statement syntaxes
Is your feature request related to a problem? Please describe.
#456 adds pattern matching to rope, but it seems like support is incomplete as patchedast currently doesn't handle these nodes:
'MatchOr', 'MatchSequence', 'MatchSingleton', 'MatchStar',
This will likely cause extract refactoring to have issues when these syntaxes are being used.
Describe the solution you'd like
Implement these nodes.
Docs on how to implement this
- https://github.com/python-rope/rope/wiki/Supporting-new-syntax-for-refactoring