Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add document BeginNode fields #3248

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: |
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