tree-sitter-java-orchard 0.5.4 → 0.5.5

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/src/grammar.json CHANGED
@@ -103,8 +103,8 @@
103
103
  "type": "CHOICE",
104
104
  "members": [
105
105
  {
106
- "type": "STRING",
107
- "value": "_"
106
+ "type": "PATTERN",
107
+ "value": "_+"
108
108
  },
109
109
  {
110
110
  "type": "BLANK"
@@ -205,8 +205,8 @@
205
205
  "type": "SEQ",
206
206
  "members": [
207
207
  {
208
- "type": "STRING",
209
- "value": "_"
208
+ "type": "PATTERN",
209
+ "value": "_+"
210
210
  },
211
211
  {
212
212
  "type": "PATTERN",
@@ -264,6 +264,18 @@
264
264
  }
265
265
  ]
266
266
  },
267
+ {
268
+ "type": "CHOICE",
269
+ "members": [
270
+ {
271
+ "type": "PATTERN",
272
+ "value": "_+"
273
+ },
274
+ {
275
+ "type": "BLANK"
276
+ }
277
+ ]
278
+ },
267
279
  {
268
280
  "type": "SEQ",
269
281
  "members": [
@@ -277,8 +289,8 @@
277
289
  "type": "SEQ",
278
290
  "members": [
279
291
  {
280
- "type": "STRING",
281
- "value": "_"
292
+ "type": "PATTERN",
293
+ "value": "_+"
282
294
  },
283
295
  {
284
296
  "type": "PATTERN",
@@ -344,8 +356,8 @@
344
356
  "type": "SEQ",
345
357
  "members": [
346
358
  {
347
- "type": "STRING",
348
- "value": "_"
359
+ "type": "PATTERN",
360
+ "value": "_+"
349
361
  },
350
362
  {
351
363
  "type": "PATTERN",
@@ -403,8 +415,8 @@
403
415
  "type": "SEQ",
404
416
  "members": [
405
417
  {
406
- "type": "STRING",
407
- "value": "_"
418
+ "type": "PATTERN",
419
+ "value": "_+"
408
420
  },
409
421
  {
410
422
  "type": "PATTERN",
@@ -438,8 +450,8 @@
438
450
  "type": "SEQ",
439
451
  "members": [
440
452
  {
441
- "type": "STRING",
442
- "value": "_"
453
+ "type": "PATTERN",
454
+ "value": "_+"
443
455
  },
444
456
  {
445
457
  "type": "PATTERN",
@@ -502,8 +514,8 @@
502
514
  "type": "SEQ",
503
515
  "members": [
504
516
  {
505
- "type": "STRING",
506
- "value": "_"
517
+ "type": "PATTERN",
518
+ "value": "_+"
507
519
  },
508
520
  {
509
521
  "type": "PATTERN",
@@ -558,8 +570,8 @@
558
570
  "type": "SEQ",
559
571
  "members": [
560
572
  {
561
- "type": "STRING",
562
- "value": "_"
573
+ "type": "PATTERN",
574
+ "value": "_+"
563
575
  },
564
576
  {
565
577
  "type": "PATTERN",
@@ -617,8 +629,8 @@
617
629
  "type": "SEQ",
618
630
  "members": [
619
631
  {
620
- "type": "STRING",
621
- "value": "_"
632
+ "type": "PATTERN",
633
+ "value": "_+"
622
634
  },
623
635
  {
624
636
  "type": "PATTERN",
@@ -657,70 +669,27 @@
657
669
  {
658
670
  "type": "TOKEN",
659
671
  "content": {
660
- "type": "CHOICE",
672
+ "type": "SEQ",
661
673
  "members": [
662
674
  {
663
- "type": "STRING",
664
- "value": "0"
675
+ "type": "PATTERN",
676
+ "value": "[0-9]+"
665
677
  },
666
678
  {
667
- "type": "SEQ",
668
- "members": [
669
- {
670
- "type": "PATTERN",
671
- "value": "[1-9]"
672
- },
673
- {
674
- "type": "CHOICE",
675
- "members": [
676
- {
677
- "type": "SEQ",
678
- "members": [
679
- {
680
- "type": "CHOICE",
681
- "members": [
682
- {
683
- "type": "STRING",
684
- "value": "_"
685
- },
686
- {
687
- "type": "BLANK"
688
- }
689
- ]
690
- },
691
- {
692
- "type": "SEQ",
693
- "members": [
694
- {
695
- "type": "PATTERN",
696
- "value": "[0-9]+"
697
- },
698
- {
699
- "type": "REPEAT",
700
- "content": {
701
- "type": "SEQ",
702
- "members": [
703
- {
704
- "type": "PATTERN",
705
- "value": "_+"
706
- },
707
- {
708
- "type": "PATTERN",
709
- "value": "[0-9]+"
710
- }
711
- ]
712
- }
713
- }
714
- ]
715
- }
716
- ]
717
- },
718
- {
719
- "type": "BLANK"
720
- }
721
- ]
722
- }
723
- ]
679
+ "type": "REPEAT",
680
+ "content": {
681
+ "type": "SEQ",
682
+ "members": [
683
+ {
684
+ "type": "PATTERN",
685
+ "value": "_+"
686
+ },
687
+ {
688
+ "type": "PATTERN",
689
+ "value": "[0-9]+"
690
+ }
691
+ ]
692
+ }
724
693
  }
725
694
  ]
726
695
  }
@@ -765,8 +734,8 @@
765
734
  "type": "SEQ",
766
735
  "members": [
767
736
  {
768
- "type": "STRING",
769
- "value": "_"
737
+ "type": "PATTERN",
738
+ "value": "_+"
770
739
  },
771
740
  {
772
741
  "type": "PATTERN",
@@ -798,70 +767,27 @@
798
767
  {
799
768
  "type": "TOKEN",
800
769
  "content": {
801
- "type": "CHOICE",
770
+ "type": "SEQ",
802
771
  "members": [
803
772
  {
804
- "type": "STRING",
805
- "value": "0"
773
+ "type": "PATTERN",
774
+ "value": "[0-9]+"
806
775
  },
807
776
  {
808
- "type": "SEQ",
809
- "members": [
810
- {
811
- "type": "PATTERN",
812
- "value": "[1-9]"
813
- },
814
- {
815
- "type": "CHOICE",
816
- "members": [
817
- {
818
- "type": "SEQ",
819
- "members": [
820
- {
821
- "type": "CHOICE",
822
- "members": [
823
- {
824
- "type": "STRING",
825
- "value": "_"
826
- },
827
- {
828
- "type": "BLANK"
829
- }
830
- ]
831
- },
832
- {
833
- "type": "SEQ",
834
- "members": [
835
- {
836
- "type": "PATTERN",
837
- "value": "[0-9]+"
838
- },
839
- {
840
- "type": "REPEAT",
841
- "content": {
842
- "type": "SEQ",
843
- "members": [
844
- {
845
- "type": "PATTERN",
846
- "value": "_+"
847
- },
848
- {
849
- "type": "PATTERN",
850
- "value": "[0-9]+"
851
- }
852
- ]
853
- }
854
- }
855
- ]
856
- }
857
- ]
858
- },
859
- {
860
- "type": "BLANK"
861
- }
862
- ]
863
- }
864
- ]
777
+ "type": "REPEAT",
778
+ "content": {
779
+ "type": "SEQ",
780
+ "members": [
781
+ {
782
+ "type": "PATTERN",
783
+ "value": "_+"
784
+ },
785
+ {
786
+ "type": "PATTERN",
787
+ "value": "[0-9]+"
788
+ }
789
+ ]
790
+ }
865
791
  }
866
792
  ]
867
793
  }
@@ -912,8 +838,8 @@
912
838
  "type": "SEQ",
913
839
  "members": [
914
840
  {
915
- "type": "STRING",
916
- "value": "_"
841
+ "type": "PATTERN",
842
+ "value": "_+"
917
843
  },
918
844
  {
919
845
  "type": "PATTERN",
@@ -980,8 +906,8 @@
980
906
  "type": "SEQ",
981
907
  "members": [
982
908
  {
983
- "type": "STRING",
984
- "value": "_"
909
+ "type": "PATTERN",
910
+ "value": "_+"
985
911
  },
986
912
  {
987
913
  "type": "PATTERN",
@@ -1028,8 +954,8 @@
1028
954
  "type": "SEQ",
1029
955
  "members": [
1030
956
  {
1031
- "type": "STRING",
1032
- "value": "_"
957
+ "type": "PATTERN",
958
+ "value": "_+"
1033
959
  },
1034
960
  {
1035
961
  "type": "PATTERN",
@@ -1065,8 +991,8 @@
1065
991
  "type": "SEQ",
1066
992
  "members": [
1067
993
  {
1068
- "type": "STRING",
1069
- "value": "_"
994
+ "type": "PATTERN",
995
+ "value": "_+"
1070
996
  },
1071
997
  {
1072
998
  "type": "PATTERN",
@@ -1116,70 +1042,27 @@
1116
1042
  {
1117
1043
  "type": "TOKEN",
1118
1044
  "content": {
1119
- "type": "CHOICE",
1045
+ "type": "SEQ",
1120
1046
  "members": [
1121
1047
  {
1122
- "type": "STRING",
1123
- "value": "0"
1048
+ "type": "PATTERN",
1049
+ "value": "[0-9]+"
1124
1050
  },
1125
1051
  {
1126
- "type": "SEQ",
1127
- "members": [
1128
- {
1129
- "type": "PATTERN",
1130
- "value": "[1-9]"
1131
- },
1132
- {
1133
- "type": "CHOICE",
1134
- "members": [
1135
- {
1136
- "type": "SEQ",
1137
- "members": [
1138
- {
1139
- "type": "CHOICE",
1140
- "members": [
1141
- {
1142
- "type": "STRING",
1143
- "value": "_"
1144
- },
1145
- {
1146
- "type": "BLANK"
1147
- }
1148
- ]
1149
- },
1150
- {
1151
- "type": "SEQ",
1152
- "members": [
1153
- {
1154
- "type": "PATTERN",
1155
- "value": "[0-9]+"
1156
- },
1157
- {
1158
- "type": "REPEAT",
1159
- "content": {
1160
- "type": "SEQ",
1161
- "members": [
1162
- {
1163
- "type": "PATTERN",
1164
- "value": "_+"
1165
- },
1166
- {
1167
- "type": "PATTERN",
1168
- "value": "[0-9]+"
1169
- }
1170
- ]
1171
- }
1172
- }
1173
- ]
1174
- }
1175
- ]
1176
- },
1177
- {
1178
- "type": "BLANK"
1179
- }
1180
- ]
1181
- }
1182
- ]
1052
+ "type": "REPEAT",
1053
+ "content": {
1054
+ "type": "SEQ",
1055
+ "members": [
1056
+ {
1057
+ "type": "PATTERN",
1058
+ "value": "_+"
1059
+ },
1060
+ {
1061
+ "type": "PATTERN",
1062
+ "value": "[0-9]+"
1063
+ }
1064
+ ]
1065
+ }
1183
1066
  }
1184
1067
  ]
1185
1068
  }
@@ -1327,7 +1210,7 @@
1327
1210
  },
1328
1211
  {
1329
1212
  "type": "SYMBOL",
1330
- "name": "_escape_sequence"
1213
+ "name": "escape_sequence"
1331
1214
  },
1332
1215
  {
1333
1216
  "type": "SYMBOL",
@@ -1383,39 +1266,6 @@
1383
1266
  }
1384
1267
  ]
1385
1268
  },
1386
- "_escape_sequence": {
1387
- "type": "CHOICE",
1388
- "members": [
1389
- {
1390
- "type": "PREC",
1391
- "value": 2,
1392
- "content": {
1393
- "type": "IMMEDIATE_TOKEN",
1394
- "content": {
1395
- "type": "SEQ",
1396
- "members": [
1397
- {
1398
- "type": "STRING",
1399
- "value": "\\"
1400
- },
1401
- {
1402
- "type": "PATTERN",
1403
- "value": "[^bfnrts'\\\"\\\\]"
1404
- }
1405
- ]
1406
- }
1407
- }
1408
- },
1409
- {
1410
- "type": "PREC",
1411
- "value": 1,
1412
- "content": {
1413
- "type": "SYMBOL",
1414
- "name": "escape_sequence"
1415
- }
1416
- }
1417
- ]
1418
- },
1419
1269
  "escape_sequence": {
1420
1270
  "type": "IMMEDIATE_TOKEN",
1421
1271
  "content": {
@@ -1600,6 +1450,23 @@
1600
1450
  "type": "SYMBOL",
1601
1451
  "name": "primary_expression"
1602
1452
  },
1453
+ {
1454
+ "type": "ALIAS",
1455
+ "content": {
1456
+ "type": "SYMBOL",
1457
+ "name": "_unary_complement_expression"
1458
+ },
1459
+ "named": true,
1460
+ "value": "unary_expression"
1461
+ },
1462
+ {
1463
+ "type": "SYMBOL",
1464
+ "name": "cast_expression"
1465
+ },
1466
+ {
1467
+ "type": "SYMBOL",
1468
+ "name": "switch_expression"
1469
+ },
1603
1470
  {
1604
1471
  "type": "SYMBOL",
1605
1472
  "name": "lambda_expression"
@@ -2579,57 +2446,11 @@
2579
2446
  "type": "CHOICE",
2580
2447
  "members": [
2581
2448
  {
2582
- "type": "PREC_LEFT",
2583
- "value": 15,
2584
- "content": {
2585
- "type": "SEQ",
2586
- "members": [
2587
- {
2588
- "type": "FIELD",
2589
- "name": "operator",
2590
- "content": {
2591
- "type": "STRING",
2592
- "value": "+"
2593
- }
2594
- },
2595
- {
2596
- "type": "FIELD",
2597
- "name": "operand",
2598
- "content": {
2599
- "type": "SYMBOL",
2600
- "name": "expression"
2601
- }
2602
- }
2603
- ]
2604
- }
2605
- },
2606
- {
2607
- "type": "PREC_LEFT",
2608
- "value": 15,
2609
- "content": {
2610
- "type": "SEQ",
2611
- "members": [
2612
- {
2613
- "type": "FIELD",
2614
- "name": "operator",
2615
- "content": {
2616
- "type": "STRING",
2617
- "value": "-"
2618
- }
2619
- },
2620
- {
2621
- "type": "FIELD",
2622
- "name": "operand",
2623
- "content": {
2624
- "type": "SYMBOL",
2625
- "name": "expression"
2626
- }
2627
- }
2628
- ]
2629
- }
2449
+ "type": "SYMBOL",
2450
+ "name": "_unary_complement_expression"
2630
2451
  },
2631
2452
  {
2632
- "type": "PREC_LEFT",
2453
+ "type": "PREC_RIGHT",
2633
2454
  "value": 15,
2634
2455
  "content": {
2635
2456
  "type": "SEQ",
@@ -2638,8 +2459,17 @@
2638
2459
  "type": "FIELD",
2639
2460
  "name": "operator",
2640
2461
  "content": {
2641
- "type": "STRING",
2642
- "value": "!"
2462
+ "type": "CHOICE",
2463
+ "members": [
2464
+ {
2465
+ "type": "STRING",
2466
+ "value": "+"
2467
+ },
2468
+ {
2469
+ "type": "STRING",
2470
+ "value": "-"
2471
+ }
2472
+ ]
2643
2473
  }
2644
2474
  },
2645
2475
  {
@@ -2652,33 +2482,42 @@
2652
2482
  }
2653
2483
  ]
2654
2484
  }
2655
- },
2656
- {
2657
- "type": "PREC_LEFT",
2658
- "value": 15,
2659
- "content": {
2660
- "type": "SEQ",
2661
- "members": [
2662
- {
2663
- "type": "FIELD",
2664
- "name": "operator",
2665
- "content": {
2485
+ }
2486
+ ]
2487
+ },
2488
+ "_unary_complement_expression": {
2489
+ "type": "PREC_RIGHT",
2490
+ "value": 15,
2491
+ "content": {
2492
+ "type": "SEQ",
2493
+ "members": [
2494
+ {
2495
+ "type": "FIELD",
2496
+ "name": "operator",
2497
+ "content": {
2498
+ "type": "CHOICE",
2499
+ "members": [
2500
+ {
2666
2501
  "type": "STRING",
2667
2502
  "value": "~"
2503
+ },
2504
+ {
2505
+ "type": "STRING",
2506
+ "value": "!"
2668
2507
  }
2669
- },
2670
- {
2671
- "type": "FIELD",
2672
- "name": "operand",
2673
- "content": {
2674
- "type": "SYMBOL",
2675
- "name": "expression"
2676
- }
2677
- }
2678
- ]
2508
+ ]
2509
+ }
2510
+ },
2511
+ {
2512
+ "type": "FIELD",
2513
+ "name": "operand",
2514
+ "content": {
2515
+ "type": "SYMBOL",
2516
+ "name": "expression"
2517
+ }
2679
2518
  }
2680
- }
2681
- ]
2519
+ ]
2520
+ }
2682
2521
  },
2683
2522
  "update_expression": {
2684
2523
  "type": "PREC_LEFT",
@@ -3792,6 +3631,10 @@
3792
3631
  {
3793
3632
  "type": "SYMBOL",
3794
3633
  "name": "generic_type"
3634
+ },
3635
+ {
3636
+ "type": "SYMBOL",
3637
+ "name": "scoped_type_identifier"
3795
3638
  }
3796
3639
  ]
3797
3640
  },
@@ -3875,6 +3718,18 @@
3875
3718
  {
3876
3719
  "type": "SEQ",
3877
3720
  "members": [
3721
+ {
3722
+ "type": "CHOICE",
3723
+ "members": [
3724
+ {
3725
+ "type": "SYMBOL",
3726
+ "name": "modifiers"
3727
+ },
3728
+ {
3729
+ "type": "BLANK"
3730
+ }
3731
+ ]
3732
+ },
3878
3733
  {
3879
3734
  "type": "SYMBOL",
3880
3735
  "name": "_unannotated_type"
@@ -6260,23 +6115,20 @@
6260
6115
  "type": "STRING",
6261
6116
  "value": "{"
6262
6117
  },
6263
- {
6264
- "type": "CHOICE",
6265
- "members": [
6266
- {
6267
- "type": "SYMBOL",
6268
- "name": "explicit_constructor_invocation"
6269
- },
6270
- {
6271
- "type": "BLANK"
6272
- }
6273
- ]
6274
- },
6275
6118
  {
6276
6119
  "type": "REPEAT",
6277
6120
  "content": {
6278
- "type": "SYMBOL",
6279
- "name": "statement"
6121
+ "type": "CHOICE",
6122
+ "members": [
6123
+ {
6124
+ "type": "SYMBOL",
6125
+ "name": "explicit_constructor_invocation"
6126
+ },
6127
+ {
6128
+ "type": "SYMBOL",
6129
+ "name": "statement"
6130
+ }
6131
+ ]
6280
6132
  }
6281
6133
  },
6282
6134
  {
@@ -6612,6 +6464,10 @@
6612
6464
  "type": "SYMBOL",
6613
6465
  "name": "enum_declaration"
6614
6466
  },
6467
+ {
6468
+ "type": "SYMBOL",
6469
+ "name": "record_declaration"
6470
+ },
6615
6471
  {
6616
6472
  "type": "SYMBOL",
6617
6473
  "name": "annotation_type_declaration"