Skip to content

Commit

Permalink
Add document BeginNode 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 aa7d797
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1084,20 +1084,50 @@ nodes:
fields:
- name: begin_keyword_loc
type: location?
comment: |
The location of the `begin` keyword.
begin x end
^^^^^
- name: statements
type: node?
kind: StatementsNode
comment: |
The statements within the begin block.
begin x end
^
- name: rescue_clause
type: node?
kind: RescueNode
comment: |
The rescue clause within the begin block.
begin x; rescue y; end
^^^^^^^^
- name: else_clause
type: node?
kind: ElseNode
comment: |
The else clause within the begin block.
begin x; rescue y; else z; end
^^^^^^
- name: ensure_clause
type: node?
kind: EnsureNode
comment: |
The ensure clause within the begin block.
begin x; ensure y; end
^^^^^^^^
- name: end_keyword_loc
type: location?
comment: |
The location of the `end` keyword.
begin x end
^^^
newline: false
comment: |
Represents a begin statement.
Expand Down

0 comments on commit aa7d797

Please sign in to comment.