Skip to content
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
25 changes: 25 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1735,16 +1735,41 @@ nodes:
- name: predicate
type: node?
kind: non-void expression
comment: |
Represents the predicate of the case statement. This can be either `nil` or any [non-void expressions](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).

case true; when false; end
^^^^
- name: conditions
type: node[]
kind: WhenNode
comment: |
Represents the conditions of the case statement.

case true; when false; end
^^^^^^^^^^
- name: else_clause
type: node?
kind: ElseNode
comment: |
Represents the else clause of the case statement.

case true; when false; else; end
^^^^
- name: case_keyword_loc
type: location
comment: |
Represents the location of the `case` keyword.

case true; when false; end
^^^^
- name: end_keyword_loc
type: location
comment: |
Represents the location of the `end` keyword.

case true; when false; end
^^^
comment: |
Represents the use of a case statement.

Expand Down
Loading