Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add body field for end-less methods #226

Merged
merged 2 commits into from
Aug 24, 2022
Merged

Conversation

aibaars
Copy link
Contributor

@aibaars aibaars commented Aug 24, 2022

#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:

  • All tests pass in CI.
  • There are sufficient tests for the new fix/feature.
  • Grammar rules have not been renamed unless absolutely necessary.
  • The conflicts section hasn't grown too much.
  • The parser size hasn't grown too much (check the value of STATE_COUNT in src/parser.c).

@aryx aryx merged commit ad10432 into tree-sitter:master Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants