Skip to content

Commit

Permalink
Merge pull request #3248 from ydah/doc-begin
Browse files Browse the repository at this point in the history
Add document BeginNode fields
  • Loading branch information
tenderlove authored Dec 2, 2024
2 parents 4c50e50 + b8f4098 commit 7082b36
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 @@ -1119,20 +1119,50 @@ nodes:
fields:
- name: begin_keyword_loc
type: location?
comment: |
Represents the location of the `begin` keyword.
begin x end
^^^^^
- name: statements
type: node?
kind: StatementsNode
comment: |
Represents the statements within the begin block.
begin x end
^
- name: rescue_clause
type: node?
kind: RescueNode
comment: |
Represents the rescue clause within the begin block.
begin x; rescue y; end
^^^^^^^^
- name: else_clause
type: node?
kind: ElseNode
comment: |
Represents the else clause within the begin block.
begin x; rescue y; else z; end
^^^^^^
- name: ensure_clause
type: node?
kind: EnsureNode
comment: |
Represents the ensure clause within the begin block.
begin x; ensure y; end
^^^^^^^^
- name: end_keyword_loc
type: location?
comment: |
Represents the location of the `end` keyword.
begin x end
^^^
newline: false
comment: |
Represents a begin statement.
Expand Down

0 comments on commit 7082b36

Please sign in to comment.