You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.yml
+25
Original file line number
Diff line number
Diff line change
@@ -1713,16 +1713,41 @@ nodes:
1713
1713
- name: predicate
1714
1714
type: node?
1715
1715
kind: non-void expression
1716
+
comment: |
1717
+
Represents the predicate of the case match. This can be either `nil` or any [non-void expressions](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
1718
+
1719
+
case true; in false; end
1720
+
^^^^
1716
1721
- name: conditions
1717
1722
type: node[]
1718
1723
kind: InNode
1724
+
comment: |
1725
+
Represents the conditions of the case match.
1726
+
1727
+
case true; in false; end
1728
+
^^^^^^^^
1719
1729
- name: else_clause
1720
1730
type: node?
1721
1731
kind: ElseNode
1732
+
comment: |
1733
+
Represents the else clause of the case match.
1734
+
1735
+
case true; in false; else; end
1736
+
^^^^
1722
1737
- name: case_keyword_loc
1723
1738
type: location
1739
+
comment: |
1740
+
Represents the location of the `case` keyword.
1741
+
1742
+
case true; in false; end
1743
+
^^^^
1724
1744
- name: end_keyword_loc
1725
1745
type: location
1746
+
comment: |
1747
+
Represents the location of the `end` keyword.
1748
+
1749
+
case true; in false; end
1750
+
^^^
1726
1751
comment: |
1727
1752
Represents the use of a case statement for pattern matching.
0 commit comments