Skip to content

Commit

Permalink
Add document BlockParametersNode fields
Browse files Browse the repository at this point in the history
Partially fixes: #2123
  • Loading branch information
ydah committed Nov 28, 2024
1 parent 93c0474 commit 75d1bde
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1172,13 +1172,49 @@ nodes:
- name: parameters
type: node?
kind: ParametersNode
comment: |
Represents the parameters of the block.
-> (a, b = 1; local) { }
^^^^^^^^
foo do |a, b = 1; local|
^^^^^^^^
end
- name: locals
type: node[]
kind: BlockLocalVariableNode
comment: |
Represents the local variables of the block.
-> (a, b = 1; local) { }
^^^^^
foo do |a, b = 1; local|
^^^^^
end
- name: opening_loc
type: location?
comment: |
Represents the opening location of the block parameters.
-> (a, b = 1; local) { }
^
foo do |a, b = 1; local|
^
end
- name: closing_loc
type: location?
comment: |
Represents the closing location of the block parameters.
-> (a, b = 1; local) { }
^
foo do |a, b = 1; local|
^
end
comment: |
Represents a block's parameters declaration.
Expand Down

0 comments on commit 75d1bde

Please sign in to comment.