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
+15-16Lines changed: 15 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1046,19 +1046,19 @@ nodes:
1046
1046
Represents an array pattern in pattern matching.
1047
1047
1048
1048
foo in 1, 2
1049
-
^^^^^^^^^^^
1049
+
^^^^
1050
1050
1051
1051
foo in [1, 2]
1052
-
^^^^^^^^^^^^^
1052
+
^^^^^^
1053
1053
1054
1054
foo in *bar
1055
-
^^^^^^^^^^^
1055
+
^^^^
1056
1056
1057
1057
foo in Bar[]
1058
-
^^^^^^^^^^^^
1058
+
^^^^^
1059
1059
1060
1060
foo in Bar[1, 2, 3]
1061
-
^^^^^^^^^^^^^^^^^^^
1061
+
^^^^^^^^^^^^
1062
1062
- name: AssocNode
1063
1063
fields:
1064
1064
- name: key
@@ -1167,7 +1167,7 @@ nodes:
1167
1167
Represents the else clause within the begin block.
1168
1168
1169
1169
begin x; rescue y; else z; end
1170
-
^^^^^^
1170
+
^^^^^^^^^^^
1171
1171
- name: ensure_clause
1172
1172
type: node?
1173
1173
kind: EnsureNode
@@ -1200,7 +1200,7 @@ nodes:
1200
1200
The expression that is being passed as a block argument. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
1201
1201
1202
1202
foo(&args)
1203
-
^^^^^
1203
+
^^^^
1204
1204
- name: operator_loc
1205
1205
type: location
1206
1206
comment: |
@@ -1212,7 +1212,7 @@ nodes:
1212
1212
Represents a block argument using `&`.
1213
1213
1214
1214
bar(&args)
1215
-
^^^^^^^^^^
1215
+
^^^^^
1216
1216
- name: BlockLocalVariableNode
1217
1217
flags: ParameterFlags
1218
1218
fields:
@@ -1753,7 +1753,7 @@ nodes:
1753
1753
Represents assigning to a local variable in pattern matching.
1754
1754
1755
1755
foo => [bar => baz]
1756
-
^^^^^^^^^^^^
1756
+
^^^^^^^^^^
1757
1757
- name: CaseMatchNode
1758
1758
fields:
1759
1759
- name: predicate
@@ -1763,7 +1763,7 @@ nodes:
1763
1763
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).
1764
1764
1765
1765
case true; in false; end
1766
-
^^^^
1766
+
^^^^
1767
1767
- name: conditions
1768
1768
type: node[]
1769
1769
kind: InNode
@@ -1779,7 +1779,7 @@ nodes:
1779
1779
Represents the else clause of the case match.
1780
1780
1781
1781
case true; in false; else; end
1782
-
^^^^
1782
+
^^^^^^^^^
1783
1783
- name: case_keyword_loc
1784
1784
type: location
1785
1785
comment: |
@@ -1826,7 +1826,7 @@ nodes:
1826
1826
Represents the else clause of the case statement.
1827
1827
1828
1828
case true; when false; else; end
1829
-
^^^^
1829
+
^^^^^^^^^
1830
1830
- name: case_keyword_loc
1831
1831
type: location
1832
1832
comment: |
@@ -1888,9 +1888,8 @@ nodes:
1888
1888
comment: |
1889
1889
Represents the body of the class.
1890
1890
1891
-
class Foo
1892
-
foo
1893
-
^^^
1891
+
class Foo; bar; end
1892
+
^^^
1894
1893
- name: end_keyword_loc
1895
1894
type: location
1896
1895
comment: |
@@ -4635,7 +4634,7 @@ nodes:
4635
4634
The else clause of the unless expression, if present.
0 commit comments