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 document BlockParameterNode fields #3256

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,27 @@ nodes:
fields:
- name: name
type: constant?
comment: |
The name of the block parameter.

def a(&b) # name `:b`
^
end
- name: name_loc
type: location?
comment: |
Represents the location of the block parameter name.

def a(&b)
^
- name: operator_loc
type: location
comment: |
Represents the location of the `&` operator.

def a(&b)
^
end
comment: |
Represents a block parameter of a method, block, or lambda definition.

Expand Down