ruby-syntax-tree / syntax_tree

Interact with the Ruby syntax tree
https://ruby-syntax-tree.github.io/syntax_tree/
MIT License
563 stars 54 forks source link

Fix WithScope for destructured post arguments #396

Closed vinistock closed 1 year ago

vinistock commented 1 year ago

This was caught by one of YARP's fixtures. When you have

def foo(a = 1, (b, c))
end

Then posts will include a MLHSParen, which we need to account for in WithScope and also in the typing annotations.