Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Remove MISSING identifier on def foo(). #17

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

hugopl
Copy link
Contributor

@hugopl hugopl commented Nov 29, 2024

For:

def foo_bar()
end

It now generates:

source_file [0, 0] - [2, 0]
  def [0, 0] - [1, 3]
    method_def [0, 0] - [1, 3]
      name: identifier [0, 4] - [0, 11]

instead of:

source_file [0, 0] - [2, 0]
  def [0, 0] - [1, 3]
    method_def [0, 0] - [1, 3]
      name: identifier [0, 4] - [0, 11]
      params: method_param [0, 12] - [0, 12]
        name: MISSING identifier [0, 12] - [0, 12]

For:
```Crystal
def foo_bar()
end
```
It nos generates:

```
source_file [0, 0] - [2, 0]
  def [0, 0] - [1, 3]
    method_def [0, 0] - [1, 3]
      name: identifier [0, 4] - [0, 11]
```

instead of:

```
source_file [0, 0] - [2, 0]
  def [0, 0] - [1, 3]
    method_def [0, 0] - [1, 3]
      name: identifier [0, 4] - [0, 11]
      params: method_param [0, 12] - [0, 12]
        name: MISSING identifier [0, 12] - [0, 12]
```
@nobodywasishere nobodywasishere merged commit 50b4d59 into crystal-lang-tools:main Nov 29, 2024
3 checks passed
@hugopl hugopl deleted the empty-method-param branch December 3, 2024 12:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants