@@ -2420,23 +2420,68 @@ nodes:
24202420 - name : constant
24212421 type : node?
24222422 kind :
2423- - ConstantReadNode
24242423 - ConstantPathNode
2424+ - ConstantReadNode
2425+ comment : |
2426+ Represents the optional constant preceding the pattern
2427+
2428+ foo in Foo(*bar, baz, *qux)
2429+ ^^^
24252430 - name : left
24262431 type : node
24272432 kind : SplatNode
2433+ comment : |
2434+ Represents the first wildcard node in the pattern.
2435+
2436+ foo in *bar, baz, *qux
2437+ ^^^^
2438+
2439+ foo in Foo(*bar, baz, *qux)
2440+ ^^^^
24282441 - name : requireds
24292442 type : node[]
24302443 kind : pattern expression
2444+ comment : |
2445+ Represents the nodes in between the wildcards.
2446+
2447+ foo in *bar, baz, *qux
2448+ ^^^
2449+
2450+ foo in Foo(*bar, baz, 1, *qux)
2451+ ^^^^^^
24312452 - name : right
24322453 type : node
24332454 kind :
24342455 - SplatNode
24352456 - on error : MissingNode
2457+ comment : |
2458+ Represents the second wildcard node in the pattern.
2459+
2460+ foo in *bar, baz, *qux
2461+ ^^^^
2462+
2463+ foo in Foo(*bar, baz, *qux)
2464+ ^^^^
24362465 - name : opening_loc
24372466 type : location?
2467+ comment : |
2468+ The location of the openingbrace.
2469+
2470+ foo in [*bar, baz, *qux]
2471+ ^
2472+
2473+ foo in Foo(*bar, baz, *qux)
2474+ ^
24382475 - name : closing_loc
24392476 type : location?
2477+ comment : |
2478+ The location of the closing brace.
2479+
2480+ foo in [*bar, baz, *qux]
2481+ ^
2482+
2483+ foo in Foo(*bar, baz, *qux)
2484+ ^
24402485 comment : |
24412486 Represents a find pattern in pattern matching.
24422487
@@ -2448,6 +2493,9 @@ nodes:
24482493
24492494 foo in Foo(*bar, baz, *qux)
24502495 ^^^^^^^^^^^^^^^^^^^^
2496+
2497+ foo => *bar, baz, *qux
2498+ ^^^^^^^^^^^^^^^
24512499 - name : FlipFlopNode
24522500 flags : RangeFlags
24532501 fields :
0 commit comments