tree-sitter / tree-sitter-ruby

Ruby grammar for tree-sitter
MIT License
176 stars 58 forks source link

Add body field for end-less methods #226

Closed aibaars closed 2 years ago

aibaars commented 2 years ago

224 added a body field for method bodies. However, we forgot about end-less methods., such as:

def foo = bar
def Object.foo = bar

As a result their bodies are still represented as unnamed children.

@npezza93 @maxbrunsfeld

Checklist: