Skip to content

Commit aa7d797

Browse files
committed
Add document BeginNode fields
Partially fixes: #2123
1 parent 93c0474 commit aa7d797

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,20 +1084,50 @@ nodes:
10841084
fields:
10851085
- name: begin_keyword_loc
10861086
type: location?
1087+
comment: |
1088+
The location of the `begin` keyword.
1089+
1090+
begin x end
1091+
^^^^^
10871092
- name: statements
10881093
type: node?
10891094
kind: StatementsNode
1095+
comment: |
1096+
The statements within the begin block.
1097+
1098+
begin x end
1099+
^
10901100
- name: rescue_clause
10911101
type: node?
10921102
kind: RescueNode
1103+
comment: |
1104+
The rescue clause within the begin block.
1105+
1106+
begin x; rescue y; end
1107+
^^^^^^^^
10931108
- name: else_clause
10941109
type: node?
10951110
kind: ElseNode
1111+
comment: |
1112+
The else clause within the begin block.
1113+
1114+
begin x; rescue y; else z; end
1115+
^^^^^^
10961116
- name: ensure_clause
10971117
type: node?
10981118
kind: EnsureNode
1119+
comment: |
1120+
The ensure clause within the begin block.
1121+
1122+
begin x; ensure y; end
1123+
^^^^^^^^
10991124
- name: end_keyword_loc
11001125
type: location?
1126+
comment: |
1127+
The location of the `end` keyword.
1128+
1129+
begin x end
1130+
^^^
11011131
newline: false
11021132
comment: |
11031133
Represents a begin statement.

0 commit comments

Comments
 (0)