diff --git a/config.yml b/config.yml index 0f50f30b94..d3746b0803 100644 --- a/config.yml +++ b/config.yml @@ -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.