File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -1881,27 +1881,81 @@ nodes:
1881
1881
fields :
1882
1882
- name : constant
1883
1883
type : node?
1884
+ kind :
1885
+ - ConstantPathNode
1886
+ - ConstantReadNode
1887
+ comment : |
1888
+ Represents the optional constant preceding the pattern
1889
+
1890
+ foo in Foo(*bar, baz, *qux)
1891
+ ^^^
1884
1892
- name : left
1885
1893
type : node
1894
+ comment : |
1895
+ Represents the first wildcard node in the pattern.
1896
+
1897
+ foo in *bar, baz, *qux
1898
+ ^^^^
1899
+
1900
+ foo in Foo(*bar, baz, *qux)
1901
+ ^^^^
1886
1902
- name : requireds
1887
1903
type : node[]
1904
+ comment : |
1905
+ Represents the nodes in between the wildcards.
1906
+
1907
+ foo in *bar, baz, *qux
1908
+ ^^^
1909
+
1910
+ foo in Foo(*bar, baz, 1, *qux)
1911
+ ^^^^^^
1888
1912
- name : right
1889
1913
type : node
1914
+ comment : |
1915
+ Represents the second wildcard node in the pattern.
1916
+
1917
+ foo in *bar, baz, *qux
1918
+ ^^^^
1919
+
1920
+ foo in Foo(*bar, baz, *qux)
1921
+ ^^^^
1890
1922
- name : opening_loc
1891
1923
type : location?
1924
+ comment : |
1925
+ The location of the openingbrace.
1926
+
1927
+ foo in [*bar, baz, *qux]
1928
+ ^
1929
+
1930
+ foo in Foo(*bar, baz, *qux)
1931
+ ^
1892
1932
- name : closing_loc
1893
1933
type : location?
1934
+ comment : |
1935
+ The location of the closing brace.
1936
+
1937
+ foo in [*bar, baz, *qux]
1938
+ ^
1939
+
1940
+ foo in Foo(*bar, baz, *qux)
1941
+ ^
1894
1942
comment : |
1895
1943
Represents a find pattern in pattern matching.
1896
1944
1897
1945
foo in *bar, baz, *qux
1898
1946
^^^^^^^^^^^^^^^
1899
1947
1948
+ foo in *bar, *qux
1949
+ ^^^^^^^^^^
1950
+
1900
1951
foo in [*bar, baz, *qux]
1901
1952
^^^^^^^^^^^^^^^^^
1902
1953
1903
1954
foo in Foo(*bar, baz, *qux)
1904
1955
^^^^^^^^^^^^^^^^^^^^
1956
+
1957
+ foo => *bar, baz, *qux
1958
+ ^^^^^^^^^^^^^^^
1905
1959
- name : FlipFlopNode
1906
1960
fields :
1907
1961
- name : flags
You can’t perform that action at this time.
0 commit comments