@dekobon/tree-sitter-groovy 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/grammar.js +270 -57
- package/package.json +9 -3
- package/prebuilds/darwin-arm64/@dekobon+tree-sitter-groovy.node +0 -0
- package/prebuilds/linux-x64/@dekobon+tree-sitter-groovy.node +0 -0
- package/prebuilds/win32-x64/@dekobon+tree-sitter-groovy.node +0 -0
- package/src/grammar.json +590 -167
- package/src/node-types.json +135 -3
- package/src/parser.c +138298 -124064
- package/src/scanner.c +135 -5
- package/tree-sitter.json +1 -1
package/src/grammar.json
CHANGED
|
@@ -918,21 +918,29 @@
|
|
|
918
918
|
"type": "SEQ",
|
|
919
919
|
"members": [
|
|
920
920
|
{
|
|
921
|
-
"type": "
|
|
922
|
-
"
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
{
|
|
927
|
-
"type": "
|
|
928
|
-
"
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
921
|
+
"type": "CHOICE",
|
|
922
|
+
"members": [
|
|
923
|
+
{
|
|
924
|
+
"type": "FIELD",
|
|
925
|
+
"name": "type",
|
|
926
|
+
"content": {
|
|
927
|
+
"type": "CHOICE",
|
|
928
|
+
"members": [
|
|
929
|
+
{
|
|
930
|
+
"type": "SYMBOL",
|
|
931
|
+
"name": "_type"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"type": "SYMBOL",
|
|
935
|
+
"name": "multi_type"
|
|
936
|
+
}
|
|
937
|
+
]
|
|
933
938
|
}
|
|
934
|
-
|
|
935
|
-
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"type": "BLANK"
|
|
942
|
+
}
|
|
943
|
+
]
|
|
936
944
|
},
|
|
937
945
|
{
|
|
938
946
|
"type": "FIELD",
|
|
@@ -1599,6 +1607,10 @@
|
|
|
1599
1607
|
"type": "SYMBOL",
|
|
1600
1608
|
"name": "_class_member"
|
|
1601
1609
|
},
|
|
1610
|
+
{
|
|
1611
|
+
"type": "SYMBOL",
|
|
1612
|
+
"name": "block"
|
|
1613
|
+
},
|
|
1602
1614
|
{
|
|
1603
1615
|
"type": "STRING",
|
|
1604
1616
|
"value": ";"
|
|
@@ -1630,6 +1642,30 @@
|
|
|
1630
1642
|
{
|
|
1631
1643
|
"type": "SYMBOL",
|
|
1632
1644
|
"name": "static_initializer"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"type": "SYMBOL",
|
|
1648
|
+
"name": "enum_declaration"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"type": "SYMBOL",
|
|
1652
|
+
"name": "class_declaration"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
"type": "SYMBOL",
|
|
1656
|
+
"name": "interface_declaration"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"type": "SYMBOL",
|
|
1660
|
+
"name": "trait_declaration"
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"type": "SYMBOL",
|
|
1664
|
+
"name": "record_declaration"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"type": "SYMBOL",
|
|
1668
|
+
"name": "annotation_type_declaration"
|
|
1633
1669
|
}
|
|
1634
1670
|
]
|
|
1635
1671
|
},
|
|
@@ -1710,58 +1746,106 @@
|
|
|
1710
1746
|
]
|
|
1711
1747
|
},
|
|
1712
1748
|
"field_declaration": {
|
|
1713
|
-
"type": "
|
|
1749
|
+
"type": "CHOICE",
|
|
1714
1750
|
"members": [
|
|
1715
1751
|
{
|
|
1716
|
-
"type": "
|
|
1717
|
-
"
|
|
1718
|
-
"type": "SYMBOL",
|
|
1719
|
-
"name": "annotation"
|
|
1720
|
-
}
|
|
1721
|
-
},
|
|
1722
|
-
{
|
|
1723
|
-
"type": "REPEAT",
|
|
1752
|
+
"type": "PREC_DYNAMIC",
|
|
1753
|
+
"value": 1,
|
|
1724
1754
|
"content": {
|
|
1725
|
-
"type": "
|
|
1726
|
-
"
|
|
1755
|
+
"type": "SEQ",
|
|
1756
|
+
"members": [
|
|
1757
|
+
{
|
|
1758
|
+
"type": "REPEAT",
|
|
1759
|
+
"content": {
|
|
1760
|
+
"type": "SYMBOL",
|
|
1761
|
+
"name": "annotation"
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"type": "REPEAT",
|
|
1766
|
+
"content": {
|
|
1767
|
+
"type": "SYMBOL",
|
|
1768
|
+
"name": "_modifier"
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"type": "CHOICE",
|
|
1773
|
+
"members": [
|
|
1774
|
+
{
|
|
1775
|
+
"type": "STRING",
|
|
1776
|
+
"value": "def"
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"type": "FIELD",
|
|
1780
|
+
"name": "type",
|
|
1781
|
+
"content": {
|
|
1782
|
+
"type": "SYMBOL",
|
|
1783
|
+
"name": "_type"
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
]
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"type": "SYMBOL",
|
|
1790
|
+
"name": "variable_declarator"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"type": "REPEAT",
|
|
1794
|
+
"content": {
|
|
1795
|
+
"type": "SEQ",
|
|
1796
|
+
"members": [
|
|
1797
|
+
{
|
|
1798
|
+
"type": "STRING",
|
|
1799
|
+
"value": ","
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"type": "SYMBOL",
|
|
1803
|
+
"name": "variable_declarator"
|
|
1804
|
+
}
|
|
1805
|
+
]
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
]
|
|
1727
1809
|
}
|
|
1728
1810
|
},
|
|
1729
1811
|
{
|
|
1730
|
-
"type": "
|
|
1812
|
+
"type": "SEQ",
|
|
1731
1813
|
"members": [
|
|
1732
1814
|
{
|
|
1733
|
-
"type": "
|
|
1734
|
-
"
|
|
1815
|
+
"type": "REPEAT",
|
|
1816
|
+
"content": {
|
|
1817
|
+
"type": "SYMBOL",
|
|
1818
|
+
"name": "annotation"
|
|
1819
|
+
}
|
|
1735
1820
|
},
|
|
1736
1821
|
{
|
|
1737
|
-
"type": "
|
|
1738
|
-
"name": "type",
|
|
1822
|
+
"type": "REPEAT1",
|
|
1739
1823
|
"content": {
|
|
1740
1824
|
"type": "SYMBOL",
|
|
1741
|
-
"name": "
|
|
1825
|
+
"name": "_modifier"
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
"type": "SYMBOL",
|
|
1830
|
+
"name": "variable_declarator"
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"type": "REPEAT",
|
|
1834
|
+
"content": {
|
|
1835
|
+
"type": "SEQ",
|
|
1836
|
+
"members": [
|
|
1837
|
+
{
|
|
1838
|
+
"type": "STRING",
|
|
1839
|
+
"value": ","
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
"type": "SYMBOL",
|
|
1843
|
+
"name": "variable_declarator"
|
|
1844
|
+
}
|
|
1845
|
+
]
|
|
1742
1846
|
}
|
|
1743
1847
|
}
|
|
1744
1848
|
]
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
"type": "SYMBOL",
|
|
1748
|
-
"name": "variable_declarator"
|
|
1749
|
-
},
|
|
1750
|
-
{
|
|
1751
|
-
"type": "REPEAT",
|
|
1752
|
-
"content": {
|
|
1753
|
-
"type": "SEQ",
|
|
1754
|
-
"members": [
|
|
1755
|
-
{
|
|
1756
|
-
"type": "STRING",
|
|
1757
|
-
"value": ","
|
|
1758
|
-
},
|
|
1759
|
-
{
|
|
1760
|
-
"type": "SYMBOL",
|
|
1761
|
-
"name": "variable_declarator"
|
|
1762
|
-
}
|
|
1763
|
-
]
|
|
1764
|
-
}
|
|
1765
1849
|
}
|
|
1766
1850
|
]
|
|
1767
1851
|
},
|
|
@@ -1980,6 +2064,13 @@
|
|
|
1980
2064
|
"formal_parameter": {
|
|
1981
2065
|
"type": "SEQ",
|
|
1982
2066
|
"members": [
|
|
2067
|
+
{
|
|
2068
|
+
"type": "REPEAT",
|
|
2069
|
+
"content": {
|
|
2070
|
+
"type": "SYMBOL",
|
|
2071
|
+
"name": "annotation"
|
|
2072
|
+
}
|
|
2073
|
+
},
|
|
1983
2074
|
{
|
|
1984
2075
|
"type": "CHOICE",
|
|
1985
2076
|
"members": [
|
|
@@ -2063,6 +2154,13 @@
|
|
|
2063
2154
|
"name": "annotation"
|
|
2064
2155
|
}
|
|
2065
2156
|
},
|
|
2157
|
+
{
|
|
2158
|
+
"type": "REPEAT",
|
|
2159
|
+
"content": {
|
|
2160
|
+
"type": "SYMBOL",
|
|
2161
|
+
"name": "_modifier"
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2066
2164
|
{
|
|
2067
2165
|
"type": "STRING",
|
|
2068
2166
|
"value": "enum"
|
|
@@ -2122,8 +2220,83 @@
|
|
|
2122
2220
|
"type": "CHOICE",
|
|
2123
2221
|
"members": [
|
|
2124
2222
|
{
|
|
2125
|
-
"type": "
|
|
2126
|
-
"
|
|
2223
|
+
"type": "CHOICE",
|
|
2224
|
+
"members": [
|
|
2225
|
+
{
|
|
2226
|
+
"type": "STRING",
|
|
2227
|
+
"value": ","
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
"type": "SEQ",
|
|
2231
|
+
"members": [
|
|
2232
|
+
{
|
|
2233
|
+
"type": "CHOICE",
|
|
2234
|
+
"members": [
|
|
2235
|
+
{
|
|
2236
|
+
"type": "STRING",
|
|
2237
|
+
"value": ","
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
"type": "BLANK"
|
|
2241
|
+
}
|
|
2242
|
+
]
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"type": "STRING",
|
|
2246
|
+
"value": ";"
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
"type": "REPEAT",
|
|
2250
|
+
"content": {
|
|
2251
|
+
"type": "CHOICE",
|
|
2252
|
+
"members": [
|
|
2253
|
+
{
|
|
2254
|
+
"type": "SYMBOL",
|
|
2255
|
+
"name": "_class_member"
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
"type": "SYMBOL",
|
|
2259
|
+
"name": "block"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"type": "STRING",
|
|
2263
|
+
"value": ";"
|
|
2264
|
+
}
|
|
2265
|
+
]
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
]
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"type": "SEQ",
|
|
2272
|
+
"members": [
|
|
2273
|
+
{
|
|
2274
|
+
"type": "SYMBOL",
|
|
2275
|
+
"name": "_class_member"
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
"type": "REPEAT",
|
|
2279
|
+
"content": {
|
|
2280
|
+
"type": "CHOICE",
|
|
2281
|
+
"members": [
|
|
2282
|
+
{
|
|
2283
|
+
"type": "SYMBOL",
|
|
2284
|
+
"name": "_class_member"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"type": "SYMBOL",
|
|
2288
|
+
"name": "block"
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
"type": "STRING",
|
|
2292
|
+
"value": ";"
|
|
2293
|
+
}
|
|
2294
|
+
]
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
]
|
|
2298
|
+
}
|
|
2299
|
+
]
|
|
2127
2300
|
},
|
|
2128
2301
|
{
|
|
2129
2302
|
"type": "BLANK"
|
|
@@ -2133,40 +2306,24 @@
|
|
|
2133
2306
|
]
|
|
2134
2307
|
},
|
|
2135
2308
|
{
|
|
2136
|
-
"type": "
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
"type": "REPEAT",
|
|
2152
|
-
"content": {
|
|
2153
|
-
"type": "CHOICE",
|
|
2154
|
-
"members": [
|
|
2155
|
-
{
|
|
2156
|
-
"type": "SYMBOL",
|
|
2157
|
-
"name": "_class_member"
|
|
2158
|
-
},
|
|
2159
|
-
{
|
|
2160
|
-
"type": "STRING",
|
|
2161
|
-
"value": ";"
|
|
2162
|
-
}
|
|
2163
|
-
]
|
|
2309
|
+
"type": "REPEAT",
|
|
2310
|
+
"content": {
|
|
2311
|
+
"type": "CHOICE",
|
|
2312
|
+
"members": [
|
|
2313
|
+
{
|
|
2314
|
+
"type": "SYMBOL",
|
|
2315
|
+
"name": "_class_member"
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"type": "SYMBOL",
|
|
2319
|
+
"name": "block"
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
"type": "STRING",
|
|
2323
|
+
"value": ";"
|
|
2164
2324
|
}
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
},
|
|
2168
|
-
{
|
|
2169
|
-
"type": "BLANK"
|
|
2325
|
+
]
|
|
2326
|
+
}
|
|
2170
2327
|
}
|
|
2171
2328
|
]
|
|
2172
2329
|
},
|
|
@@ -2177,37 +2334,8 @@
|
|
|
2177
2334
|
]
|
|
2178
2335
|
},
|
|
2179
2336
|
"enum_constant": {
|
|
2180
|
-
"type": "
|
|
2181
|
-
"
|
|
2182
|
-
{
|
|
2183
|
-
"type": "FIELD",
|
|
2184
|
-
"name": "name",
|
|
2185
|
-
"content": {
|
|
2186
|
-
"type": "SYMBOL",
|
|
2187
|
-
"name": "identifier"
|
|
2188
|
-
}
|
|
2189
|
-
},
|
|
2190
|
-
{
|
|
2191
|
-
"type": "CHOICE",
|
|
2192
|
-
"members": [
|
|
2193
|
-
{
|
|
2194
|
-
"type": "FIELD",
|
|
2195
|
-
"name": "arguments",
|
|
2196
|
-
"content": {
|
|
2197
|
-
"type": "SYMBOL",
|
|
2198
|
-
"name": "argument_list"
|
|
2199
|
-
}
|
|
2200
|
-
},
|
|
2201
|
-
{
|
|
2202
|
-
"type": "BLANK"
|
|
2203
|
-
}
|
|
2204
|
-
]
|
|
2205
|
-
}
|
|
2206
|
-
]
|
|
2207
|
-
},
|
|
2208
|
-
"record_declaration": {
|
|
2209
|
-
"type": "PREC_RIGHT",
|
|
2210
|
-
"value": 0,
|
|
2337
|
+
"type": "PREC",
|
|
2338
|
+
"value": 1,
|
|
2211
2339
|
"content": {
|
|
2212
2340
|
"type": "SEQ",
|
|
2213
2341
|
"members": [
|
|
@@ -2218,10 +2346,6 @@
|
|
|
2218
2346
|
"name": "annotation"
|
|
2219
2347
|
}
|
|
2220
2348
|
},
|
|
2221
|
-
{
|
|
2222
|
-
"type": "STRING",
|
|
2223
|
-
"value": "record"
|
|
2224
|
-
},
|
|
2225
2349
|
{
|
|
2226
2350
|
"type": "FIELD",
|
|
2227
2351
|
"name": "name",
|
|
@@ -2230,31 +2354,119 @@
|
|
|
2230
2354
|
"name": "identifier"
|
|
2231
2355
|
}
|
|
2232
2356
|
},
|
|
2233
|
-
{
|
|
2234
|
-
"type": "FIELD",
|
|
2235
|
-
"name": "components",
|
|
2236
|
-
"content": {
|
|
2237
|
-
"type": "SYMBOL",
|
|
2238
|
-
"name": "record_components"
|
|
2239
|
-
}
|
|
2240
|
-
},
|
|
2241
2357
|
{
|
|
2242
2358
|
"type": "CHOICE",
|
|
2243
2359
|
"members": [
|
|
2244
2360
|
{
|
|
2245
2361
|
"type": "FIELD",
|
|
2246
|
-
"name": "
|
|
2362
|
+
"name": "arguments",
|
|
2247
2363
|
"content": {
|
|
2248
2364
|
"type": "SYMBOL",
|
|
2249
|
-
"name": "
|
|
2365
|
+
"name": "argument_list"
|
|
2366
|
+
}
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
"type": "BLANK"
|
|
2370
|
+
}
|
|
2371
|
+
]
|
|
2372
|
+
}
|
|
2373
|
+
]
|
|
2374
|
+
}
|
|
2375
|
+
},
|
|
2376
|
+
"record_declaration": {
|
|
2377
|
+
"type": "PREC_DYNAMIC",
|
|
2378
|
+
"value": 1,
|
|
2379
|
+
"content": {
|
|
2380
|
+
"type": "PREC_RIGHT",
|
|
2381
|
+
"value": 0,
|
|
2382
|
+
"content": {
|
|
2383
|
+
"type": "SEQ",
|
|
2384
|
+
"members": [
|
|
2385
|
+
{
|
|
2386
|
+
"type": "REPEAT",
|
|
2387
|
+
"content": {
|
|
2388
|
+
"type": "SYMBOL",
|
|
2389
|
+
"name": "annotation"
|
|
2390
|
+
}
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"type": "REPEAT",
|
|
2394
|
+
"content": {
|
|
2395
|
+
"type": "SYMBOL",
|
|
2396
|
+
"name": "_modifier"
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"type": "ALIAS",
|
|
2401
|
+
"content": {
|
|
2402
|
+
"type": "SYMBOL",
|
|
2403
|
+
"name": "_record_keyword"
|
|
2404
|
+
},
|
|
2405
|
+
"named": false,
|
|
2406
|
+
"value": "record"
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"type": "FIELD",
|
|
2410
|
+
"name": "name",
|
|
2411
|
+
"content": {
|
|
2412
|
+
"type": "SYMBOL",
|
|
2413
|
+
"name": "identifier"
|
|
2414
|
+
}
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"type": "CHOICE",
|
|
2418
|
+
"members": [
|
|
2419
|
+
{
|
|
2420
|
+
"type": "FIELD",
|
|
2421
|
+
"name": "type_parameters",
|
|
2422
|
+
"content": {
|
|
2423
|
+
"type": "SYMBOL",
|
|
2424
|
+
"name": "type_parameters"
|
|
2425
|
+
}
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
"type": "BLANK"
|
|
2429
|
+
}
|
|
2430
|
+
]
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
"type": "FIELD",
|
|
2434
|
+
"name": "components",
|
|
2435
|
+
"content": {
|
|
2436
|
+
"type": "SYMBOL",
|
|
2437
|
+
"name": "record_components"
|
|
2438
|
+
}
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"type": "CHOICE",
|
|
2442
|
+
"members": [
|
|
2443
|
+
{
|
|
2444
|
+
"type": "SYMBOL",
|
|
2445
|
+
"name": "super_interfaces"
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
"type": "BLANK"
|
|
2250
2449
|
}
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2450
|
+
]
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"type": "CHOICE",
|
|
2454
|
+
"members": [
|
|
2455
|
+
{
|
|
2456
|
+
"type": "FIELD",
|
|
2457
|
+
"name": "body",
|
|
2458
|
+
"content": {
|
|
2459
|
+
"type": "SYMBOL",
|
|
2460
|
+
"name": "class_body"
|
|
2461
|
+
}
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
"type": "BLANK"
|
|
2465
|
+
}
|
|
2466
|
+
]
|
|
2467
|
+
}
|
|
2468
|
+
]
|
|
2469
|
+
}
|
|
2258
2470
|
}
|
|
2259
2471
|
},
|
|
2260
2472
|
"record_components": {
|
|
@@ -2688,6 +2900,31 @@
|
|
|
2688
2900
|
"type": "STRING",
|
|
2689
2901
|
"value": "("
|
|
2690
2902
|
},
|
|
2903
|
+
{
|
|
2904
|
+
"type": "CHOICE",
|
|
2905
|
+
"members": [
|
|
2906
|
+
{
|
|
2907
|
+
"type": "CHOICE",
|
|
2908
|
+
"members": [
|
|
2909
|
+
{
|
|
2910
|
+
"type": "STRING",
|
|
2911
|
+
"value": "def"
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
"type": "FIELD",
|
|
2915
|
+
"name": "type",
|
|
2916
|
+
"content": {
|
|
2917
|
+
"type": "SYMBOL",
|
|
2918
|
+
"name": "_type"
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
]
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"type": "BLANK"
|
|
2925
|
+
}
|
|
2926
|
+
]
|
|
2927
|
+
},
|
|
2691
2928
|
{
|
|
2692
2929
|
"type": "FIELD",
|
|
2693
2930
|
"name": "variable",
|
|
@@ -2697,8 +2934,17 @@
|
|
|
2697
2934
|
}
|
|
2698
2935
|
},
|
|
2699
2936
|
{
|
|
2700
|
-
"type": "
|
|
2701
|
-
"
|
|
2937
|
+
"type": "CHOICE",
|
|
2938
|
+
"members": [
|
|
2939
|
+
{
|
|
2940
|
+
"type": "STRING",
|
|
2941
|
+
"value": "in"
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
"type": "STRING",
|
|
2945
|
+
"value": ":"
|
|
2946
|
+
}
|
|
2947
|
+
]
|
|
2702
2948
|
},
|
|
2703
2949
|
{
|
|
2704
2950
|
"type": "FIELD",
|
|
@@ -3426,8 +3672,22 @@
|
|
|
3426
3672
|
"type": "FIELD",
|
|
3427
3673
|
"name": "type",
|
|
3428
3674
|
"content": {
|
|
3429
|
-
"type": "
|
|
3430
|
-
"
|
|
3675
|
+
"type": "CHOICE",
|
|
3676
|
+
"members": [
|
|
3677
|
+
{
|
|
3678
|
+
"type": "SYMBOL",
|
|
3679
|
+
"name": "_type"
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"type": "ALIAS",
|
|
3683
|
+
"content": {
|
|
3684
|
+
"type": "SYMBOL",
|
|
3685
|
+
"name": "_diamond_type"
|
|
3686
|
+
},
|
|
3687
|
+
"named": true,
|
|
3688
|
+
"value": "generic_type"
|
|
3689
|
+
}
|
|
3690
|
+
]
|
|
3431
3691
|
}
|
|
3432
3692
|
},
|
|
3433
3693
|
{
|
|
@@ -3437,10 +3697,86 @@
|
|
|
3437
3697
|
"type": "SYMBOL",
|
|
3438
3698
|
"name": "argument_list"
|
|
3439
3699
|
}
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
"type": "CHOICE",
|
|
3703
|
+
"members": [
|
|
3704
|
+
{
|
|
3705
|
+
"type": "FIELD",
|
|
3706
|
+
"name": "body",
|
|
3707
|
+
"content": {
|
|
3708
|
+
"type": "SYMBOL",
|
|
3709
|
+
"name": "class_body"
|
|
3710
|
+
}
|
|
3711
|
+
},
|
|
3712
|
+
{
|
|
3713
|
+
"type": "BLANK"
|
|
3714
|
+
}
|
|
3715
|
+
]
|
|
3716
|
+
}
|
|
3717
|
+
]
|
|
3718
|
+
}
|
|
3719
|
+
},
|
|
3720
|
+
"_diamond_type": {
|
|
3721
|
+
"type": "PREC_RIGHT",
|
|
3722
|
+
"value": 2,
|
|
3723
|
+
"content": {
|
|
3724
|
+
"type": "SEQ",
|
|
3725
|
+
"members": [
|
|
3726
|
+
{
|
|
3727
|
+
"type": "FIELD",
|
|
3728
|
+
"name": "base",
|
|
3729
|
+
"content": {
|
|
3730
|
+
"type": "CHOICE",
|
|
3731
|
+
"members": [
|
|
3732
|
+
{
|
|
3733
|
+
"type": "ALIAS",
|
|
3734
|
+
"content": {
|
|
3735
|
+
"type": "SYMBOL",
|
|
3736
|
+
"name": "identifier"
|
|
3737
|
+
},
|
|
3738
|
+
"named": true,
|
|
3739
|
+
"value": "type_identifier"
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
"type": "SYMBOL",
|
|
3743
|
+
"name": "qualified_type"
|
|
3744
|
+
}
|
|
3745
|
+
]
|
|
3746
|
+
}
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"type": "FIELD",
|
|
3750
|
+
"name": "arguments",
|
|
3751
|
+
"content": {
|
|
3752
|
+
"type": "ALIAS",
|
|
3753
|
+
"content": {
|
|
3754
|
+
"type": "SYMBOL",
|
|
3755
|
+
"name": "_diamond_type_arguments"
|
|
3756
|
+
},
|
|
3757
|
+
"named": true,
|
|
3758
|
+
"value": "type_arguments"
|
|
3759
|
+
}
|
|
3440
3760
|
}
|
|
3441
3761
|
]
|
|
3442
3762
|
}
|
|
3443
3763
|
},
|
|
3764
|
+
"_diamond_type_arguments": {
|
|
3765
|
+
"type": "SEQ",
|
|
3766
|
+
"members": [
|
|
3767
|
+
{
|
|
3768
|
+
"type": "IMMEDIATE_TOKEN",
|
|
3769
|
+
"content": {
|
|
3770
|
+
"type": "STRING",
|
|
3771
|
+
"value": "<"
|
|
3772
|
+
}
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
"type": "STRING",
|
|
3776
|
+
"value": ">"
|
|
3777
|
+
}
|
|
3778
|
+
]
|
|
3779
|
+
},
|
|
3444
3780
|
"parenthesized_type_cast": {
|
|
3445
3781
|
"type": "PREC_RIGHT",
|
|
3446
3782
|
"value": 14,
|
|
@@ -3865,8 +4201,12 @@
|
|
|
3865
4201
|
"type": "CHOICE",
|
|
3866
4202
|
"members": [
|
|
3867
4203
|
{
|
|
3868
|
-
"type": "
|
|
3869
|
-
"
|
|
4204
|
+
"type": "RESERVED",
|
|
4205
|
+
"content": {
|
|
4206
|
+
"type": "SYMBOL",
|
|
4207
|
+
"name": "identifier"
|
|
4208
|
+
},
|
|
4209
|
+
"context_name": "property"
|
|
3870
4210
|
},
|
|
3871
4211
|
{
|
|
3872
4212
|
"type": "ALIAS",
|
|
@@ -3986,29 +4326,92 @@
|
|
|
3986
4326
|
}
|
|
3987
4327
|
},
|
|
3988
4328
|
"method_invocation": {
|
|
3989
|
-
"type": "
|
|
3990
|
-
"
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
{
|
|
3995
|
-
"type": "
|
|
3996
|
-
"
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4329
|
+
"type": "CHOICE",
|
|
4330
|
+
"members": [
|
|
4331
|
+
{
|
|
4332
|
+
"type": "PREC_LEFT",
|
|
4333
|
+
"value": 18,
|
|
4334
|
+
"content": {
|
|
4335
|
+
"type": "SEQ",
|
|
4336
|
+
"members": [
|
|
4337
|
+
{
|
|
4338
|
+
"type": "FIELD",
|
|
4339
|
+
"name": "function",
|
|
4340
|
+
"content": {
|
|
4341
|
+
"type": "SYMBOL",
|
|
4342
|
+
"name": "_expression"
|
|
4343
|
+
}
|
|
4344
|
+
},
|
|
4345
|
+
{
|
|
4346
|
+
"type": "FIELD",
|
|
4347
|
+
"name": "arguments",
|
|
4348
|
+
"content": {
|
|
4349
|
+
"type": "SYMBOL",
|
|
4350
|
+
"name": "argument_list"
|
|
4351
|
+
}
|
|
4352
|
+
},
|
|
4353
|
+
{
|
|
4354
|
+
"type": "FIELD",
|
|
4355
|
+
"name": "closure",
|
|
4356
|
+
"content": {
|
|
4357
|
+
"type": "SYMBOL",
|
|
4358
|
+
"name": "closure"
|
|
4359
|
+
}
|
|
4360
|
+
}
|
|
4361
|
+
]
|
|
4009
4362
|
}
|
|
4010
|
-
|
|
4011
|
-
|
|
4363
|
+
},
|
|
4364
|
+
{
|
|
4365
|
+
"type": "PREC_LEFT",
|
|
4366
|
+
"value": 17,
|
|
4367
|
+
"content": {
|
|
4368
|
+
"type": "SEQ",
|
|
4369
|
+
"members": [
|
|
4370
|
+
{
|
|
4371
|
+
"type": "FIELD",
|
|
4372
|
+
"name": "function",
|
|
4373
|
+
"content": {
|
|
4374
|
+
"type": "SYMBOL",
|
|
4375
|
+
"name": "_expression"
|
|
4376
|
+
}
|
|
4377
|
+
},
|
|
4378
|
+
{
|
|
4379
|
+
"type": "FIELD",
|
|
4380
|
+
"name": "arguments",
|
|
4381
|
+
"content": {
|
|
4382
|
+
"type": "SYMBOL",
|
|
4383
|
+
"name": "argument_list"
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
]
|
|
4387
|
+
}
|
|
4388
|
+
},
|
|
4389
|
+
{
|
|
4390
|
+
"type": "PREC_LEFT",
|
|
4391
|
+
"value": 17,
|
|
4392
|
+
"content": {
|
|
4393
|
+
"type": "SEQ",
|
|
4394
|
+
"members": [
|
|
4395
|
+
{
|
|
4396
|
+
"type": "FIELD",
|
|
4397
|
+
"name": "function",
|
|
4398
|
+
"content": {
|
|
4399
|
+
"type": "SYMBOL",
|
|
4400
|
+
"name": "_expression"
|
|
4401
|
+
}
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
"type": "FIELD",
|
|
4405
|
+
"name": "closure",
|
|
4406
|
+
"content": {
|
|
4407
|
+
"type": "SYMBOL",
|
|
4408
|
+
"name": "closure"
|
|
4409
|
+
}
|
|
4410
|
+
}
|
|
4411
|
+
]
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
]
|
|
4012
4415
|
},
|
|
4013
4416
|
"argument_list": {
|
|
4014
4417
|
"type": "SEQ",
|
|
@@ -6620,6 +7023,14 @@
|
|
|
6620
7023
|
[
|
|
6621
7024
|
"variable_declarator",
|
|
6622
7025
|
"_property_name"
|
|
7026
|
+
],
|
|
7027
|
+
[
|
|
7028
|
+
"variable_declarator",
|
|
7029
|
+
"_type"
|
|
7030
|
+
],
|
|
7031
|
+
[
|
|
7032
|
+
"formal_parameter",
|
|
7033
|
+
"_expression"
|
|
6623
7034
|
]
|
|
6624
7035
|
],
|
|
6625
7036
|
"precedences": [],
|
|
@@ -6639,9 +7050,21 @@
|
|
|
6639
7050
|
{
|
|
6640
7051
|
"type": "SYMBOL",
|
|
6641
7052
|
"name": "groovydoc_comment"
|
|
7053
|
+
},
|
|
7054
|
+
{
|
|
7055
|
+
"type": "SYMBOL",
|
|
7056
|
+
"name": "_record_keyword"
|
|
6642
7057
|
}
|
|
6643
7058
|
],
|
|
6644
7059
|
"inline": [],
|
|
6645
7060
|
"supertypes": [],
|
|
6646
|
-
"reserved": {
|
|
7061
|
+
"reserved": {
|
|
7062
|
+
"global": [
|
|
7063
|
+
{
|
|
7064
|
+
"type": "STRING",
|
|
7065
|
+
"value": "new"
|
|
7066
|
+
}
|
|
7067
|
+
],
|
|
7068
|
+
"property": []
|
|
7069
|
+
}
|
|
6647
7070
|
}
|