@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/node-types.json
CHANGED
|
@@ -1769,7 +1769,7 @@
|
|
|
1769
1769
|
},
|
|
1770
1770
|
"type": {
|
|
1771
1771
|
"multiple": false,
|
|
1772
|
-
"required":
|
|
1772
|
+
"required": false,
|
|
1773
1773
|
"types": [
|
|
1774
1774
|
{
|
|
1775
1775
|
"type": "array_type",
|
|
@@ -1803,21 +1803,49 @@
|
|
|
1803
1803
|
"multiple": true,
|
|
1804
1804
|
"required": false,
|
|
1805
1805
|
"types": [
|
|
1806
|
+
{
|
|
1807
|
+
"type": "annotation_type_declaration",
|
|
1808
|
+
"named": true
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"type": "block",
|
|
1812
|
+
"named": true
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"type": "class_declaration",
|
|
1816
|
+
"named": true
|
|
1817
|
+
},
|
|
1806
1818
|
{
|
|
1807
1819
|
"type": "constructor_declaration",
|
|
1808
1820
|
"named": true
|
|
1809
1821
|
},
|
|
1822
|
+
{
|
|
1823
|
+
"type": "enum_declaration",
|
|
1824
|
+
"named": true
|
|
1825
|
+
},
|
|
1810
1826
|
{
|
|
1811
1827
|
"type": "field_declaration",
|
|
1812
1828
|
"named": true
|
|
1813
1829
|
},
|
|
1830
|
+
{
|
|
1831
|
+
"type": "interface_declaration",
|
|
1832
|
+
"named": true
|
|
1833
|
+
},
|
|
1814
1834
|
{
|
|
1815
1835
|
"type": "method_declaration",
|
|
1816
1836
|
"named": true
|
|
1817
1837
|
},
|
|
1838
|
+
{
|
|
1839
|
+
"type": "record_declaration",
|
|
1840
|
+
"named": true
|
|
1841
|
+
},
|
|
1818
1842
|
{
|
|
1819
1843
|
"type": "static_initializer",
|
|
1820
1844
|
"named": true
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"type": "trait_declaration",
|
|
1848
|
+
"named": true
|
|
1821
1849
|
}
|
|
1822
1850
|
]
|
|
1823
1851
|
}
|
|
@@ -2970,6 +2998,18 @@
|
|
|
2970
2998
|
"multiple": true,
|
|
2971
2999
|
"required": false,
|
|
2972
3000
|
"types": [
|
|
3001
|
+
{
|
|
3002
|
+
"type": "annotation_type_declaration",
|
|
3003
|
+
"named": true
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"type": "block",
|
|
3007
|
+
"named": true
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"type": "class_declaration",
|
|
3011
|
+
"named": true
|
|
3012
|
+
},
|
|
2973
3013
|
{
|
|
2974
3014
|
"type": "constructor_declaration",
|
|
2975
3015
|
"named": true
|
|
@@ -2978,17 +3018,33 @@
|
|
|
2978
3018
|
"type": "enum_constant",
|
|
2979
3019
|
"named": true
|
|
2980
3020
|
},
|
|
3021
|
+
{
|
|
3022
|
+
"type": "enum_declaration",
|
|
3023
|
+
"named": true
|
|
3024
|
+
},
|
|
2981
3025
|
{
|
|
2982
3026
|
"type": "field_declaration",
|
|
2983
3027
|
"named": true
|
|
2984
3028
|
},
|
|
3029
|
+
{
|
|
3030
|
+
"type": "interface_declaration",
|
|
3031
|
+
"named": true
|
|
3032
|
+
},
|
|
2985
3033
|
{
|
|
2986
3034
|
"type": "method_declaration",
|
|
2987
3035
|
"named": true
|
|
2988
3036
|
},
|
|
3037
|
+
{
|
|
3038
|
+
"type": "record_declaration",
|
|
3039
|
+
"named": true
|
|
3040
|
+
},
|
|
2989
3041
|
{
|
|
2990
3042
|
"type": "static_initializer",
|
|
2991
3043
|
"named": true
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"type": "trait_declaration",
|
|
3047
|
+
"named": true
|
|
2992
3048
|
}
|
|
2993
3049
|
]
|
|
2994
3050
|
}
|
|
@@ -3017,6 +3073,16 @@
|
|
|
3017
3073
|
}
|
|
3018
3074
|
]
|
|
3019
3075
|
}
|
|
3076
|
+
},
|
|
3077
|
+
"children": {
|
|
3078
|
+
"multiple": true,
|
|
3079
|
+
"required": false,
|
|
3080
|
+
"types": [
|
|
3081
|
+
{
|
|
3082
|
+
"type": "annotation",
|
|
3083
|
+
"named": true
|
|
3084
|
+
}
|
|
3085
|
+
]
|
|
3020
3086
|
}
|
|
3021
3087
|
},
|
|
3022
3088
|
{
|
|
@@ -3611,6 +3677,28 @@
|
|
|
3611
3677
|
}
|
|
3612
3678
|
]
|
|
3613
3679
|
},
|
|
3680
|
+
"type": {
|
|
3681
|
+
"multiple": false,
|
|
3682
|
+
"required": false,
|
|
3683
|
+
"types": [
|
|
3684
|
+
{
|
|
3685
|
+
"type": "array_type",
|
|
3686
|
+
"named": true
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"type": "generic_type",
|
|
3690
|
+
"named": true
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
"type": "qualified_type",
|
|
3694
|
+
"named": true
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
"type": "type_identifier",
|
|
3698
|
+
"named": true
|
|
3699
|
+
}
|
|
3700
|
+
]
|
|
3701
|
+
},
|
|
3614
3702
|
"value": {
|
|
3615
3703
|
"multiple": false,
|
|
3616
3704
|
"required": true,
|
|
@@ -4601,6 +4689,16 @@
|
|
|
4601
4689
|
}
|
|
4602
4690
|
]
|
|
4603
4691
|
}
|
|
4692
|
+
},
|
|
4693
|
+
"children": {
|
|
4694
|
+
"multiple": true,
|
|
4695
|
+
"required": false,
|
|
4696
|
+
"types": [
|
|
4697
|
+
{
|
|
4698
|
+
"type": "annotation",
|
|
4699
|
+
"named": true
|
|
4700
|
+
}
|
|
4701
|
+
]
|
|
4604
4702
|
}
|
|
4605
4703
|
},
|
|
4606
4704
|
{
|
|
@@ -7478,7 +7576,7 @@
|
|
|
7478
7576
|
"fields": {
|
|
7479
7577
|
"arguments": {
|
|
7480
7578
|
"multiple": false,
|
|
7481
|
-
"required":
|
|
7579
|
+
"required": false,
|
|
7482
7580
|
"types": [
|
|
7483
7581
|
{
|
|
7484
7582
|
"type": "argument_list",
|
|
@@ -7486,6 +7584,16 @@
|
|
|
7486
7584
|
}
|
|
7487
7585
|
]
|
|
7488
7586
|
},
|
|
7587
|
+
"closure": {
|
|
7588
|
+
"multiple": false,
|
|
7589
|
+
"required": false,
|
|
7590
|
+
"types": [
|
|
7591
|
+
{
|
|
7592
|
+
"type": "closure",
|
|
7593
|
+
"named": true
|
|
7594
|
+
}
|
|
7595
|
+
]
|
|
7596
|
+
},
|
|
7489
7597
|
"function": {
|
|
7490
7598
|
"multiple": false,
|
|
7491
7599
|
"required": true,
|
|
@@ -8578,6 +8686,16 @@
|
|
|
8578
8686
|
}
|
|
8579
8687
|
]
|
|
8580
8688
|
},
|
|
8689
|
+
"body": {
|
|
8690
|
+
"multiple": false,
|
|
8691
|
+
"required": false,
|
|
8692
|
+
"types": [
|
|
8693
|
+
{
|
|
8694
|
+
"type": "class_body",
|
|
8695
|
+
"named": true
|
|
8696
|
+
}
|
|
8697
|
+
]
|
|
8698
|
+
},
|
|
8581
8699
|
"type": {
|
|
8582
8700
|
"multiple": false,
|
|
8583
8701
|
"required": true,
|
|
@@ -9839,6 +9957,16 @@
|
|
|
9839
9957
|
"named": true
|
|
9840
9958
|
}
|
|
9841
9959
|
]
|
|
9960
|
+
},
|
|
9961
|
+
"type_parameters": {
|
|
9962
|
+
"multiple": false,
|
|
9963
|
+
"required": false,
|
|
9964
|
+
"types": [
|
|
9965
|
+
{
|
|
9966
|
+
"type": "type_parameters",
|
|
9967
|
+
"named": true
|
|
9968
|
+
}
|
|
9969
|
+
]
|
|
9842
9970
|
}
|
|
9843
9971
|
},
|
|
9844
9972
|
"children": {
|
|
@@ -9848,6 +9976,10 @@
|
|
|
9848
9976
|
{
|
|
9849
9977
|
"type": "annotation",
|
|
9850
9978
|
"named": true
|
|
9979
|
+
},
|
|
9980
|
+
{
|
|
9981
|
+
"type": "super_interfaces",
|
|
9982
|
+
"named": true
|
|
9851
9983
|
}
|
|
9852
9984
|
]
|
|
9853
9985
|
}
|
|
@@ -14776,7 +14908,7 @@
|
|
|
14776
14908
|
"fields": {},
|
|
14777
14909
|
"children": {
|
|
14778
14910
|
"multiple": true,
|
|
14779
|
-
"required":
|
|
14911
|
+
"required": false,
|
|
14780
14912
|
"types": [
|
|
14781
14913
|
{
|
|
14782
14914
|
"type": "array_type",
|