-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathunified.dbscheme
More file actions
1072 lines (875 loc) · 31.8 KB
/
Copy pathunified.dbscheme
File metadata and controls
1072 lines (875 loc) · 31.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// CodeQL database schema for Unified
// Automatically generated from the tree-sitter grammar; do not edit
// To regenerate, run unified/scripts/create-extractor-pack.sh
/*- Files and folders -*/
/**
* The location of an element.
* The location spans column `startcolumn` of line `startline` to
* column `endcolumn` of line `endline` in file `file`.
* For more information, see
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
*/
locations_default(
unique int id: @location_default,
int file: @file ref,
int beginLine: int ref,
int beginColumn: int ref,
int endLine: int ref,
int endColumn: int ref
);
files(
unique int id: @file,
string name: string ref
);
folders(
unique int id: @folder,
string name: string ref
);
@container = @file | @folder
containerparent(
int parent: @container ref,
unique int child: @container ref
);
/*- Empty location -*/
empty_location(
int location: @location_default ref
);
/*- Source location prefix -*/
/**
* The source location of the snapshot.
*/
sourceLocationPrefix(string prefix : string ref);
/*- Diagnostic messages -*/
diagnostics(
unique int id: @diagnostic,
int severity: int ref,
string error_tag: string ref,
string error_message: string ref,
string full_error_message: string ref,
int location: @location_default ref
);
/*- Diagnostic messages: severity -*/
case @diagnostic.severity of
10 = @diagnostic_debug
| 20 = @diagnostic_info
| 30 = @diagnostic_warning
| 40 = @diagnostic_error
;
/*- YAML -*/
#keyset[parent, idx]
yaml (unique int id: @yaml_node,
int kind: int ref,
int parent: @yaml_node_parent ref,
int idx: int ref,
string tag: string ref,
string tostring: string ref);
case @yaml_node.kind of
0 = @yaml_scalar_node
| 1 = @yaml_mapping_node
| 2 = @yaml_sequence_node
| 3 = @yaml_alias_node
;
@yaml_collection_node = @yaml_mapping_node | @yaml_sequence_node;
@yaml_node_parent = @yaml_collection_node | @file;
yaml_anchors (unique int node: @yaml_node ref,
string anchor: string ref);
yaml_aliases (unique int alias: @yaml_alias_node ref,
string target: string ref);
yaml_scalars (unique int scalar: @yaml_scalar_node ref,
int style: int ref,
string value: string ref);
yaml_comments (unique int id: @yaml_comment,
string text: string ref,
string tostring: string ref);
yaml_errors (unique int id: @yaml_error,
string message: string ref);
yaml_locations(unique int locatable: @yaml_locatable ref,
int location: @location_default ref);
@yaml_locatable = @yaml_node | @yaml_error | @yaml_comment;
/*- Database metadata -*/
/**
* The CLI will automatically emit applicable tuples for this table,
* such as `databaseMetadata("isOverlay", "true")` when building an
* overlay database.
*/
databaseMetadata(
string metadataKey: string ref,
string value: string ref
);
/*- Overlay support -*/
/**
* The CLI will automatically emit tuples for each new/modified/deleted file
* when building an overlay database.
*/
overlayChangedFiles(
string path: string ref
);
/*- Unified dbscheme -*/
unified_accessor_declaration_body(
unique int unified_accessor_declaration: @unified_accessor_declaration ref,
unique int body: @unified_block ref
);
#keyset[unified_accessor_declaration, index]
unified_accessor_declaration_modifier(
int unified_accessor_declaration: @unified_accessor_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
#keyset[unified_accessor_declaration, index]
unified_accessor_declaration_parameter(
int unified_accessor_declaration: @unified_accessor_declaration ref,
int index: int ref,
unique int parameter: @unified_parameter ref
);
unified_accessor_declaration_type(
unique int unified_accessor_declaration: @unified_accessor_declaration ref,
unique int type__: @unified_type_expr ref
);
unified_accessor_declaration_def(
unique int id: @unified_accessor_declaration,
int accessor_kind: @unified_token_accessor_kind ref,
int name: @unified_token_identifier ref
);
#keyset[unified_argument, index]
unified_argument_modifier(
int unified_argument: @unified_argument ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_argument_name(
unique int unified_argument: @unified_argument ref,
unique int name: @unified_token_identifier ref
);
unified_argument_def(
unique int id: @unified_argument,
int value: @unified_expr ref
);
#keyset[unified_array_literal, index]
unified_array_literal_element(
int unified_array_literal: @unified_array_literal ref,
int index: int ref,
unique int element: @unified_expr ref
);
unified_array_literal_def(
unique int id: @unified_array_literal
);
unified_assign_expr_def(
unique int id: @unified_assign_expr,
int target: @unified_expr_or_pattern ref,
int value: @unified_expr ref
);
unified_associated_type_declaration_bound(
unique int unified_associated_type_declaration: @unified_associated_type_declaration ref,
unique int bound: @unified_type_expr ref
);
#keyset[unified_associated_type_declaration, index]
unified_associated_type_declaration_modifier(
int unified_associated_type_declaration: @unified_associated_type_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_associated_type_declaration_def(
unique int id: @unified_associated_type_declaration,
int name: @unified_token_identifier ref
);
#keyset[unified_base_type, index]
unified_base_type_modifier(
int unified_base_type: @unified_base_type ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_base_type_def(
unique int id: @unified_base_type,
int type__: @unified_type_expr ref
);
unified_binary_expr_def(
unique int id: @unified_binary_expr,
int left: @unified_expr ref,
int operator: @unified_token_infix_operator ref,
int right: @unified_expr ref
);
#keyset[unified_block, index]
unified_block_stmt(
int unified_block: @unified_block ref,
int index: int ref,
unique int stmt: @unified_stmt ref
);
unified_block_def(
unique int id: @unified_block
);
unified_bound_type_constraint_def(
unique int id: @unified_bound_type_constraint,
int bound: @unified_type_expr ref,
int type__: @unified_type_expr ref
);
unified_break_expr_label(
unique int unified_break_expr: @unified_break_expr ref,
unique int label: @unified_token_identifier ref
);
unified_break_expr_def(
unique int id: @unified_break_expr
);
#keyset[unified_bulk_importing_pattern, index]
unified_bulk_importing_pattern_modifier(
int unified_bulk_importing_pattern: @unified_bulk_importing_pattern ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_bulk_importing_pattern_def(
unique int id: @unified_bulk_importing_pattern
);
#keyset[unified_call_expr, index]
unified_call_expr_argument(
int unified_call_expr: @unified_call_expr ref,
int index: int ref,
unique int argument: @unified_argument ref
);
#keyset[unified_call_expr, index]
unified_call_expr_modifier(
int unified_call_expr: @unified_call_expr ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_call_expr_def(
unique int id: @unified_call_expr,
int callee: @unified_expr_or_type ref
);
unified_catch_clause_guard(
unique int unified_catch_clause: @unified_catch_clause ref,
unique int guard: @unified_expr ref
);
#keyset[unified_catch_clause, index]
unified_catch_clause_modifier(
int unified_catch_clause: @unified_catch_clause ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_catch_clause_pattern(
unique int unified_catch_clause: @unified_catch_clause ref,
unique int pattern: @unified_pattern ref
);
unified_catch_clause_def(
unique int id: @unified_catch_clause,
int body: @unified_block ref
);
#keyset[unified_class_like_declaration, index]
unified_class_like_declaration_base_type(
int unified_class_like_declaration: @unified_class_like_declaration ref,
int index: int ref,
unique int base_type: @unified_base_type ref
);
#keyset[unified_class_like_declaration, index]
unified_class_like_declaration_member(
int unified_class_like_declaration: @unified_class_like_declaration ref,
int index: int ref,
unique int member: @unified_member ref
);
#keyset[unified_class_like_declaration, index]
unified_class_like_declaration_modifier(
int unified_class_like_declaration: @unified_class_like_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_class_like_declaration_name(
unique int unified_class_like_declaration: @unified_class_like_declaration ref,
unique int name: @unified_token_identifier ref
);
#keyset[unified_class_like_declaration, index]
unified_class_like_declaration_type_constraint(
int unified_class_like_declaration: @unified_class_like_declaration ref,
int index: int ref,
unique int type_constraint: @unified_type_constraint ref
);
#keyset[unified_class_like_declaration, index]
unified_class_like_declaration_type_parameter(
int unified_class_like_declaration: @unified_class_like_declaration ref,
int index: int ref,
unique int type_parameter: @unified_type_parameter ref
);
unified_class_like_declaration_def(
unique int id: @unified_class_like_declaration
);
unified_compound_assign_expr_def(
unique int id: @unified_compound_assign_expr,
int operator: @unified_token_infix_operator ref,
int target: @unified_expr ref,
int value: @unified_expr ref
);
#keyset[unified_constructor_declaration, index]
unified_constructor_declaration_modifier(
int unified_constructor_declaration: @unified_constructor_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_constructor_declaration_name(
unique int unified_constructor_declaration: @unified_constructor_declaration ref,
unique int name: @unified_token_identifier ref
);
#keyset[unified_constructor_declaration, index]
unified_constructor_declaration_parameter(
int unified_constructor_declaration: @unified_constructor_declaration ref,
int index: int ref,
unique int parameter: @unified_parameter ref
);
unified_constructor_declaration_def(
unique int id: @unified_constructor_declaration,
int body: @unified_block ref
);
#keyset[unified_constructor_pattern, index]
unified_constructor_pattern_element(
int unified_constructor_pattern: @unified_constructor_pattern ref,
int index: int ref,
unique int element: @unified_pattern_element ref
);
#keyset[unified_constructor_pattern, index]
unified_constructor_pattern_modifier(
int unified_constructor_pattern: @unified_constructor_pattern ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_constructor_pattern_def(
unique int id: @unified_constructor_pattern,
int constructor: @unified_expr_or_type ref
);
unified_continue_expr_label(
unique int unified_continue_expr: @unified_continue_expr ref,
unique int label: @unified_token_identifier ref
);
unified_continue_expr_def(
unique int id: @unified_continue_expr
);
#keyset[unified_destructor_declaration, index]
unified_destructor_declaration_modifier(
int unified_destructor_declaration: @unified_destructor_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_destructor_declaration_def(
unique int id: @unified_destructor_declaration,
int body: @unified_block ref
);
unified_do_while_stmt_body(
unique int unified_do_while_stmt: @unified_do_while_stmt ref,
unique int body: @unified_block ref
);
#keyset[unified_do_while_stmt, index]
unified_do_while_stmt_modifier(
int unified_do_while_stmt: @unified_do_while_stmt ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_do_while_stmt_def(
unique int id: @unified_do_while_stmt,
int condition: @unified_expr ref
);
unified_equality_type_constraint_def(
unique int id: @unified_equality_type_constraint,
int left: @unified_type_expr ref,
int right: @unified_type_expr ref
);
@unified_expr = @unified_array_literal | @unified_assign_expr | @unified_binary_expr | @unified_block | @unified_break_expr | @unified_call_expr | @unified_compound_assign_expr | @unified_continue_expr | @unified_function_expr | @unified_if_expr | @unified_key_value_pair | @unified_map_literal | @unified_member_access_expr | @unified_name_expr | @unified_pattern_guard_expr | @unified_return_expr | @unified_switch_expr | @unified_throw_expr | @unified_token_boolean_literal | @unified_token_builtin_expr | @unified_token_empty_expr | @unified_token_float_literal | @unified_token_int_literal | @unified_token_regex_literal | @unified_token_string_literal | @unified_token_super_expr | @unified_token_unsupported_node | @unified_try_expr | @unified_tuple_expr | @unified_type_cast_expr | @unified_type_test_expr | @unified_unary_expr
unified_expr_equality_pattern_def(
unique int id: @unified_expr_equality_pattern,
int expr: @unified_expr ref
);
@unified_expr_or_pattern = @unified_expr | @unified_pattern
@unified_expr_or_type = @unified_expr | @unified_type_expr
unified_for_each_stmt_body(
unique int unified_for_each_stmt: @unified_for_each_stmt ref,
unique int body: @unified_block ref
);
unified_for_each_stmt_guard(
unique int unified_for_each_stmt: @unified_for_each_stmt ref,
unique int guard: @unified_expr ref
);
#keyset[unified_for_each_stmt, index]
unified_for_each_stmt_modifier(
int unified_for_each_stmt: @unified_for_each_stmt ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_for_each_stmt_def(
unique int id: @unified_for_each_stmt,
int iterable: @unified_expr ref,
int pattern: @unified_pattern ref
);
unified_function_declaration_body(
unique int unified_function_declaration: @unified_function_declaration ref,
unique int body: @unified_block ref
);
#keyset[unified_function_declaration, index]
unified_function_declaration_modifier(
int unified_function_declaration: @unified_function_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
#keyset[unified_function_declaration, index]
unified_function_declaration_parameter(
int unified_function_declaration: @unified_function_declaration ref,
int index: int ref,
unique int parameter: @unified_parameter ref
);
unified_function_declaration_return_type(
unique int unified_function_declaration: @unified_function_declaration ref,
unique int return_type: @unified_type_expr ref
);
#keyset[unified_function_declaration, index]
unified_function_declaration_type_constraint(
int unified_function_declaration: @unified_function_declaration ref,
int index: int ref,
unique int type_constraint: @unified_type_constraint ref
);
#keyset[unified_function_declaration, index]
unified_function_declaration_type_parameter(
int unified_function_declaration: @unified_function_declaration ref,
int index: int ref,
unique int type_parameter: @unified_type_parameter ref
);
unified_function_declaration_def(
unique int id: @unified_function_declaration,
int name: @unified_token_identifier ref
);
#keyset[unified_function_expr, index]
unified_function_expr_capture_declaration(
int unified_function_expr: @unified_function_expr ref,
int index: int ref,
unique int capture_declaration: @unified_variable_declaration ref
);
#keyset[unified_function_expr, index]
unified_function_expr_modifier(
int unified_function_expr: @unified_function_expr ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
#keyset[unified_function_expr, index]
unified_function_expr_parameter(
int unified_function_expr: @unified_function_expr ref,
int index: int ref,
unique int parameter: @unified_parameter ref
);
unified_function_expr_return_type(
unique int unified_function_expr: @unified_function_expr ref,
unique int return_type: @unified_type_expr ref
);
unified_function_expr_def(
unique int id: @unified_function_expr,
int body: @unified_block ref
);
#keyset[unified_function_type_expr, index]
unified_function_type_expr_parameter(
int unified_function_type_expr: @unified_function_type_expr ref,
int index: int ref,
unique int parameter: @unified_parameter ref
);
unified_function_type_expr_def(
unique int id: @unified_function_type_expr,
int return_type: @unified_type_expr ref
);
#keyset[unified_generic_type_expr, index]
unified_generic_type_expr_type_argument(
int unified_generic_type_expr: @unified_generic_type_expr ref,
int index: int ref,
unique int type_argument: @unified_type_expr ref
);
unified_generic_type_expr_def(
unique int id: @unified_generic_type_expr,
int base: @unified_type_expr ref
);
unified_guard_if_stmt_def(
unique int id: @unified_guard_if_stmt,
int condition: @unified_expr ref,
int else: @unified_block ref
);
unified_if_expr_else(
unique int unified_if_expr: @unified_if_expr ref,
unique int else: @unified_expr ref
);
unified_if_expr_then(
unique int unified_if_expr: @unified_if_expr ref,
unique int then: @unified_expr ref
);
unified_if_expr_def(
unique int id: @unified_if_expr,
int condition: @unified_expr ref
);
#keyset[unified_import_declaration, index]
unified_import_declaration_modifier(
int unified_import_declaration: @unified_import_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_import_declaration_pattern(
unique int unified_import_declaration: @unified_import_declaration ref,
unique int pattern: @unified_pattern ref
);
unified_import_declaration_def(
unique int id: @unified_import_declaration,
int imported_expr: @unified_expr ref
);
#keyset[unified_initializer_declaration, index]
unified_initializer_declaration_modifier(
int unified_initializer_declaration: @unified_initializer_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_initializer_declaration_def(
unique int id: @unified_initializer_declaration,
int body: @unified_block ref
);
unified_key_value_pair_def(
unique int id: @unified_key_value_pair,
int key__: @unified_expr ref,
int value: @unified_expr ref
);
unified_labeled_stmt_def(
unique int id: @unified_labeled_stmt,
int label: @unified_token_identifier ref,
int stmt: @unified_stmt ref
);
#keyset[unified_map_literal, index]
unified_map_literal_element(
int unified_map_literal: @unified_map_literal ref,
int index: int ref,
unique int element: @unified_expr ref
);
unified_map_literal_def(
unique int id: @unified_map_literal
);
@unified_member = @unified_accessor_declaration | @unified_associated_type_declaration | @unified_class_like_declaration | @unified_constructor_declaration | @unified_destructor_declaration | @unified_function_declaration | @unified_initializer_declaration | @unified_token_unsupported_node | @unified_type_alias_declaration | @unified_variable_declaration
unified_member_access_expr_def(
unique int id: @unified_member_access_expr,
int base: @unified_expr_or_type ref,
int member: @unified_token_identifier ref
);
unified_name_expr_def(
unique int id: @unified_name_expr,
int identifier: @unified_token_identifier ref
);
#keyset[unified_name_pattern, index]
unified_name_pattern_modifier(
int unified_name_pattern: @unified_name_pattern ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_name_pattern_def(
unique int id: @unified_name_pattern,
int identifier: @unified_token_identifier ref
);
unified_named_type_expr_qualifier(
unique int unified_named_type_expr: @unified_named_type_expr ref,
unique int qualifier: @unified_type_expr ref
);
unified_named_type_expr_def(
unique int id: @unified_named_type_expr,
int name: @unified_token_identifier ref
);
@unified_operator = @unified_token_infix_operator | @unified_token_postfix_operator | @unified_token_prefix_operator
unified_operator_syntax_declaration_fixity(
unique int unified_operator_syntax_declaration: @unified_operator_syntax_declaration ref,
unique int fixity: @unified_token_fixity ref
);
#keyset[unified_operator_syntax_declaration, index]
unified_operator_syntax_declaration_modifier(
int unified_operator_syntax_declaration: @unified_operator_syntax_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_operator_syntax_declaration_precedence(
unique int unified_operator_syntax_declaration: @unified_operator_syntax_declaration ref,
unique int precedence: @unified_expr ref
);
unified_operator_syntax_declaration_def(
unique int id: @unified_operator_syntax_declaration,
int name: @unified_token_identifier ref
);
unified_parameter_default(
unique int unified_parameter: @unified_parameter ref,
unique int default: @unified_expr ref
);
unified_parameter_external_name(
unique int unified_parameter: @unified_parameter ref,
unique int external_name: @unified_token_identifier ref
);
#keyset[unified_parameter, index]
unified_parameter_modifier(
int unified_parameter: @unified_parameter ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_parameter_pattern(
unique int unified_parameter: @unified_parameter ref,
unique int pattern: @unified_pattern ref
);
unified_parameter_type(
unique int unified_parameter: @unified_parameter ref,
unique int type__: @unified_type_expr ref
);
unified_parameter_def(
unique int id: @unified_parameter
);
@unified_pattern = @unified_bulk_importing_pattern | @unified_constructor_pattern | @unified_expr_equality_pattern | @unified_name_pattern | @unified_token_ignore_pattern | @unified_token_unsupported_node | @unified_tuple_pattern
unified_pattern_element_key(
unique int unified_pattern_element: @unified_pattern_element ref,
unique int key__: @unified_token_identifier ref
);
#keyset[unified_pattern_element, index]
unified_pattern_element_modifier(
int unified_pattern_element: @unified_pattern_element ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_pattern_element_def(
unique int id: @unified_pattern_element,
int pattern: @unified_pattern ref
);
unified_pattern_guard_expr_def(
unique int id: @unified_pattern_guard_expr,
int pattern: @unified_pattern ref,
int value: @unified_expr ref
);
unified_return_expr_value(
unique int unified_return_expr: @unified_return_expr ref,
unique int value: @unified_expr ref
);
unified_return_expr_def(
unique int id: @unified_return_expr
);
@unified_stmt = @unified_accessor_declaration | @unified_class_like_declaration | @unified_constructor_declaration | @unified_destructor_declaration | @unified_do_while_stmt | @unified_expr | @unified_for_each_stmt | @unified_function_declaration | @unified_guard_if_stmt | @unified_import_declaration | @unified_labeled_stmt | @unified_operator_syntax_declaration | @unified_type_alias_declaration | @unified_variable_declaration | @unified_while_stmt
unified_switch_case_guard(
unique int unified_switch_case: @unified_switch_case ref,
unique int guard: @unified_expr ref
);
#keyset[unified_switch_case, index]
unified_switch_case_modifier(
int unified_switch_case: @unified_switch_case ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
#keyset[unified_switch_case, index]
unified_switch_case_pattern(
int unified_switch_case: @unified_switch_case ref,
int index: int ref,
unique int pattern: @unified_pattern ref
);
unified_switch_case_def(
unique int id: @unified_switch_case,
int body: @unified_block ref
);
#keyset[unified_switch_expr, index]
unified_switch_expr_case(
int unified_switch_expr: @unified_switch_expr ref,
int index: int ref,
unique int case__: @unified_switch_case ref
);
#keyset[unified_switch_expr, index]
unified_switch_expr_modifier(
int unified_switch_expr: @unified_switch_expr ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_switch_expr_def(
unique int id: @unified_switch_expr,
int value: @unified_expr ref
);
unified_throw_expr_value(
unique int unified_throw_expr: @unified_throw_expr ref,
unique int value: @unified_expr ref
);
unified_throw_expr_def(
unique int id: @unified_throw_expr
);
unified_top_level_def(
unique int id: @unified_top_level,
int body: @unified_block ref
);
#keyset[unified_try_expr, index]
unified_try_expr_catch_clause(
int unified_try_expr: @unified_try_expr ref,
int index: int ref,
unique int catch_clause: @unified_catch_clause ref
);
#keyset[unified_try_expr, index]
unified_try_expr_modifier(
int unified_try_expr: @unified_try_expr ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_try_expr_def(
unique int id: @unified_try_expr,
int body: @unified_block ref
);
#keyset[unified_tuple_expr, index]
unified_tuple_expr_element(
int unified_tuple_expr: @unified_tuple_expr ref,
int index: int ref,
unique int element: @unified_expr ref
);
unified_tuple_expr_def(
unique int id: @unified_tuple_expr
);
#keyset[unified_tuple_pattern, index]
unified_tuple_pattern_element(
int unified_tuple_pattern: @unified_tuple_pattern ref,
int index: int ref,
unique int element: @unified_pattern_element ref
);
#keyset[unified_tuple_pattern, index]
unified_tuple_pattern_modifier(
int unified_tuple_pattern: @unified_tuple_pattern ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_tuple_pattern_def(
unique int id: @unified_tuple_pattern
);
unified_tuple_type_element_name(
unique int unified_tuple_type_element: @unified_tuple_type_element ref,
unique int name: @unified_token_identifier ref
);
unified_tuple_type_element_def(
unique int id: @unified_tuple_type_element,
int type__: @unified_type_expr ref
);
#keyset[unified_tuple_type_expr, index]
unified_tuple_type_expr_element(
int unified_tuple_type_expr: @unified_tuple_type_expr ref,
int index: int ref,
unique int element: @unified_tuple_type_element ref
);
unified_tuple_type_expr_def(
unique int id: @unified_tuple_type_expr
);
#keyset[unified_type_alias_declaration, index]
unified_type_alias_declaration_modifier(
int unified_type_alias_declaration: @unified_type_alias_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
#keyset[unified_type_alias_declaration, index]
unified_type_alias_declaration_type_constraint(
int unified_type_alias_declaration: @unified_type_alias_declaration ref,
int index: int ref,
unique int type_constraint: @unified_type_constraint ref
);
#keyset[unified_type_alias_declaration, index]
unified_type_alias_declaration_type_parameter(
int unified_type_alias_declaration: @unified_type_alias_declaration ref,
int index: int ref,
unique int type_parameter: @unified_type_parameter ref
);
unified_type_alias_declaration_def(
unique int id: @unified_type_alias_declaration,
int name: @unified_token_identifier ref,
int type__: @unified_type_expr ref
);
unified_type_cast_expr_def(
unique int id: @unified_type_cast_expr,
int expr: @unified_expr ref,
int operator: @unified_token_infix_operator ref,
int type__: @unified_type_expr ref
);
@unified_type_constraint = @unified_bound_type_constraint | @unified_equality_type_constraint
@unified_type_expr = @unified_function_type_expr | @unified_generic_type_expr | @unified_named_type_expr | @unified_token_inferred_type_expr | @unified_token_unsupported_node | @unified_tuple_type_expr
unified_type_parameter_bound(
unique int unified_type_parameter: @unified_type_parameter ref,
unique int bound: @unified_type_expr ref
);
#keyset[unified_type_parameter, index]
unified_type_parameter_modifier(
int unified_type_parameter: @unified_type_parameter ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_type_parameter_def(
unique int id: @unified_type_parameter,
int name: @unified_token_identifier ref
);
unified_type_test_expr_def(
unique int id: @unified_type_test_expr,
int expr: @unified_expr ref,
int operator: @unified_token_infix_operator ref,
int type__: @unified_type_expr ref
);
unified_type_test_pattern_def(
unique int id: @unified_type_test_pattern,
int pattern: @unified_pattern ref,
int type__: @unified_type_expr ref
);
unified_unary_expr_def(
unique int id: @unified_unary_expr,
int operand: @unified_expr ref,
int operator: @unified_operator ref
);
#keyset[unified_variable_declaration, index]
unified_variable_declaration_modifier(
int unified_variable_declaration: @unified_variable_declaration ref,
int index: int ref,
unique int modifier: @unified_token_modifier ref
);
unified_variable_declaration_type(
unique int unified_variable_declaration: @unified_variable_declaration ref,
unique int type__: @unified_type_expr ref
);
unified_variable_declaration_value(
unique int unified_variable_declaration: @unified_variable_declaration ref,
unique int value: @unified_expr ref