-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathphp.dbscheme
More file actions
1822 lines (1427 loc) · 63.7 KB
/
php.dbscheme
File metadata and controls
1822 lines (1427 loc) · 63.7 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 Php
// Automatically generated from the tree-sitter grammar; do not edit
// To regenerate, run the PHP extractor generate command
/*- 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_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;
/*- 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
);
/*- Php dbscheme -*/
php_anonymous_class_attributes(
unique int php_anonymous_class: @php_anonymous_class ref,
unique int attributes: @php_attribute_list ref
);
@php_anonymous_class_child_type = @php_arguments | @php_base_clause | @php_class_interface_clause | @php_token_abstract_modifier | @php_token_final_modifier | @php_token_readonly_modifier | @php_token_static_modifier | @php_token_var_modifier | @php_visibility_modifier
#keyset[php_anonymous_class, index]
php_anonymous_class_child(
int php_anonymous_class: @php_anonymous_class ref,
int index: int ref,
unique int child: @php_anonymous_class_child_type ref
);
php_anonymous_class_def(
unique int id: @php_anonymous_class,
int body: @php_declaration_list ref
);
php_anonymous_function_attributes(
unique int php_anonymous_function: @php_anonymous_function ref,
unique int attributes: @php_attribute_list ref
);
php_anonymous_function_reference_modifier(
unique int php_anonymous_function: @php_anonymous_function ref,
unique int reference_modifier: @php_token_reference_modifier ref
);
@php_anonymous_function_return_type_type = @php_token_bottom_type | @php_type__
php_anonymous_function_return_type(
unique int php_anonymous_function: @php_anonymous_function ref,
unique int return_type: @php_anonymous_function_return_type_type ref
);
php_anonymous_function_static_modifier(
unique int php_anonymous_function: @php_anonymous_function ref,
unique int static_modifier: @php_token_static_modifier ref
);
php_anonymous_function_child(
unique int php_anonymous_function: @php_anonymous_function ref,
unique int child: @php_anonymous_function_use_clause ref
);
php_anonymous_function_def(
unique int id: @php_anonymous_function,
int body: @php_compound_statement ref,
int parameters: @php_formal_parameters ref
);
@php_anonymous_function_use_clause_child_type = @php_by_ref | @php_variable_name
#keyset[php_anonymous_function_use_clause, index]
php_anonymous_function_use_clause_child(
int php_anonymous_function_use_clause: @php_anonymous_function_use_clause ref,
int index: int ref,
unique int child: @php_anonymous_function_use_clause_child_type ref
);
php_anonymous_function_use_clause_def(
unique int id: @php_anonymous_function_use_clause
);
php_argument_name(
unique int php_argument: @php_argument ref,
unique int name: @php_token_name ref
);
php_argument_reference_modifier(
unique int php_argument: @php_argument ref,
unique int reference_modifier: @php_token_reference_modifier ref
);
@php_argument_child_type = @php_expression | @php_token_name | @php_variadic_unpacking
php_argument_def(
unique int id: @php_argument,
int child: @php_argument_child_type ref
);
@php_arguments_child_type = @php_argument | @php_token_variadic_placeholder
#keyset[php_arguments, index]
php_arguments_child(
int php_arguments: @php_arguments ref,
int index: int ref,
unique int child: @php_arguments_child_type ref
);
php_arguments_def(
unique int id: @php_arguments
);
#keyset[php_array_creation_expression, index]
php_array_creation_expression_child(
int php_array_creation_expression: @php_array_creation_expression ref,
int index: int ref,
unique int child: @php_array_element_initializer ref
);
php_array_creation_expression_def(
unique int id: @php_array_creation_expression
);
@php_array_element_initializer_child_type = @php_by_ref | @php_expression | @php_variadic_unpacking
#keyset[php_array_element_initializer, index]
php_array_element_initializer_child(
int php_array_element_initializer: @php_array_element_initializer ref,
int index: int ref,
unique int child: @php_array_element_initializer_child_type ref
);
php_array_element_initializer_def(
unique int id: @php_array_element_initializer
);
php_arrow_function_attributes(
unique int php_arrow_function: @php_arrow_function ref,
unique int attributes: @php_attribute_list ref
);
php_arrow_function_reference_modifier(
unique int php_arrow_function: @php_arrow_function ref,
unique int reference_modifier: @php_token_reference_modifier ref
);
@php_arrow_function_return_type_type = @php_token_bottom_type | @php_type__
php_arrow_function_return_type(
unique int php_arrow_function: @php_arrow_function ref,
unique int return_type: @php_arrow_function_return_type_type ref
);
php_arrow_function_static_modifier(
unique int php_arrow_function: @php_arrow_function ref,
unique int static_modifier: @php_token_static_modifier ref
);
php_arrow_function_def(
unique int id: @php_arrow_function,
int body: @php_expression ref,
int parameters: @php_formal_parameters ref
);
@php_assignment_expression_left_type = @php_cast_expression | @php_dynamic_variable_name | @php_function_call_expression | @php_list_literal | @php_member_access_expression | @php_member_call_expression | @php_nullsafe_member_access_expression | @php_nullsafe_member_call_expression | @php_scoped_call_expression | @php_scoped_property_access_expression | @php_subscript_expression | @php_variable_name
php_assignment_expression_def(
unique int id: @php_assignment_expression,
int left: @php_assignment_expression_left_type ref,
int right: @php_expression ref
);
php_attribute_parameters(
unique int php_attribute: @php_attribute ref,
unique int parameters: @php_arguments ref
);
@php_attribute_child_type = @php_qualified_name | @php_token_name
php_attribute_def(
unique int id: @php_attribute,
int child: @php_attribute_child_type ref
);
#keyset[php_attribute_group, index]
php_attribute_group_child(
int php_attribute_group: @php_attribute_group ref,
int index: int ref,
unique int child: @php_attribute ref
);
php_attribute_group_def(
unique int id: @php_attribute_group
);
#keyset[php_attribute_list, index]
php_attribute_list_child(
int php_attribute_list: @php_attribute_list ref,
int index: int ref,
unique int child: @php_attribute_group ref
);
php_attribute_list_def(
unique int id: @php_attribute_list
);
@php_augmented_assignment_expression_left_type = @php_cast_expression | @php_dynamic_variable_name | @php_function_call_expression | @php_member_access_expression | @php_member_call_expression | @php_nullsafe_member_access_expression | @php_nullsafe_member_call_expression | @php_scoped_call_expression | @php_scoped_property_access_expression | @php_subscript_expression | @php_variable_name
case @php_augmented_assignment_expression.operator of
0 = @php_augmented_assignment_expression_percentequal
| 1 = @php_augmented_assignment_expression_ampersandequal
| 2 = @php_augmented_assignment_expression_starstarequal
| 3 = @php_augmented_assignment_expression_starequal
| 4 = @php_augmented_assignment_expression_plusequal
| 5 = @php_augmented_assignment_expression_minusequal
| 6 = @php_augmented_assignment_expression_dotequal
| 7 = @php_augmented_assignment_expression_slashequal
| 8 = @php_augmented_assignment_expression_langlelangleequal
| 9 = @php_augmented_assignment_expression_ranglerangleequal
| 10 = @php_augmented_assignment_expression_questionquestionequal
| 11 = @php_augmented_assignment_expression_caretequal
| 12 = @php_augmented_assignment_expression_pipeequal
;
php_augmented_assignment_expression_def(
unique int id: @php_augmented_assignment_expression,
int left: @php_augmented_assignment_expression_left_type ref,
int operator: int ref,
int right: @php_expression ref
);
@php_base_clause_child_type = @php_qualified_name | @php_token_name
#keyset[php_base_clause, index]
php_base_clause_child(
int php_base_clause: @php_base_clause ref,
int index: int ref,
unique int child: @php_base_clause_child_type ref
);
php_base_clause_def(
unique int id: @php_base_clause
);
case @php_binary_expression.operator of
0 = @php_binary_expression_bangequal
| 1 = @php_binary_expression_bangequalequal
| 2 = @php_binary_expression_percent
| 3 = @php_binary_expression_ampersand
| 4 = @php_binary_expression_ampersandampersand
| 5 = @php_binary_expression_star
| 6 = @php_binary_expression_starstar
| 7 = @php_binary_expression_plus
| 8 = @php_binary_expression_minus
| 9 = @php_binary_expression_dot
| 10 = @php_binary_expression_slash
| 11 = @php_binary_expression_langle
| 12 = @php_binary_expression_langlelangle
| 13 = @php_binary_expression_langleequal
| 14 = @php_binary_expression_langleequalrangle
| 15 = @php_binary_expression_langlerangle
| 16 = @php_binary_expression_equalequal
| 17 = @php_binary_expression_equalequalequal
| 18 = @php_binary_expression_rangle
| 19 = @php_binary_expression_rangleequal
| 20 = @php_binary_expression_ranglerangle
| 21 = @php_binary_expression_questionquestion
| 22 = @php_binary_expression_caret
| 23 = @php_binary_expression_and
| 24 = @php_binary_expression_instanceof
| 25 = @php_binary_expression_or
| 26 = @php_binary_expression_xor
| 27 = @php_binary_expression_pipe
| 28 = @php_binary_expression_pipepipe
;
@php_binary_expression_right_type = @php_dynamic_variable_name | @php_expression | @php_member_access_expression | @php_nullsafe_member_access_expression | @php_parenthesized_expression | @php_qualified_name | @php_scoped_property_access_expression | @php_subscript_expression | @php_token_name | @php_variable_name
php_binary_expression_def(
unique int id: @php_binary_expression,
int left: @php_expression ref,
int operator: int ref,
int right: @php_binary_expression_right_type ref
);
php_break_statement_child(
unique int php_break_statement: @php_break_statement ref,
unique int child: @php_expression ref
);
php_break_statement_def(
unique int id: @php_break_statement
);
@php_by_ref_child_type = @php_cast_expression | @php_dynamic_variable_name | @php_function_call_expression | @php_member_access_expression | @php_member_call_expression | @php_nullsafe_member_access_expression | @php_nullsafe_member_call_expression | @php_scoped_call_expression | @php_scoped_property_access_expression | @php_subscript_expression | @php_variable_name
php_by_ref_def(
unique int id: @php_by_ref,
int child: @php_by_ref_child_type ref
);
#keyset[php_case_statement, index]
php_case_statement_child(
int php_case_statement: @php_case_statement ref,
int index: int ref,
unique int child: @php_statement ref
);
php_case_statement_def(
unique int id: @php_case_statement,
int value: @php_expression ref
);
@php_cast_expression_value_type = @php_clone_expression | @php_error_suppression_expression | @php_include_expression | @php_include_once_expression | @php_primary_expression | @php_unary_op_expression
php_cast_expression_def(
unique int id: @php_cast_expression,
int type__: @php_token_cast_type ref,
int value: @php_cast_expression_value_type ref
);
php_catch_clause_name(
unique int php_catch_clause: @php_catch_clause ref,
unique int name: @php_variable_name ref
);
php_catch_clause_def(
unique int id: @php_catch_clause,
int body: @php_compound_statement ref,
int type__: @php_type_list ref
);
@php_class_constant_access_expression_child_type = @php_array_creation_expression | @php_cast_expression | @php_class_constant_access_expression | @php_dynamic_variable_name | @php_encapsed_string | @php_function_call_expression | @php_heredoc | @php_member_access_expression | @php_member_call_expression | @php_nowdoc | @php_nullsafe_member_access_expression | @php_nullsafe_member_call_expression | @php_object_creation_expression | @php_parenthesized_expression | @php_qualified_name | @php_scoped_call_expression | @php_scoped_property_access_expression | @php_string__ | @php_subscript_expression | @php_token_name | @php_token_relative_scope | @php_variable_name
#keyset[php_class_constant_access_expression, index]
php_class_constant_access_expression_child(
int php_class_constant_access_expression: @php_class_constant_access_expression ref,
int index: int ref,
unique int child: @php_class_constant_access_expression_child_type ref
);
php_class_constant_access_expression_def(
unique int id: @php_class_constant_access_expression
);
php_class_declaration_attributes(
unique int php_class_declaration: @php_class_declaration ref,
unique int attributes: @php_attribute_list ref
);
@php_class_declaration_child_type = @php_base_clause | @php_class_interface_clause | @php_token_abstract_modifier | @php_token_final_modifier | @php_token_readonly_modifier | @php_token_static_modifier | @php_token_var_modifier | @php_visibility_modifier
#keyset[php_class_declaration, index]
php_class_declaration_child(
int php_class_declaration: @php_class_declaration ref,
int index: int ref,
unique int child: @php_class_declaration_child_type ref
);
php_class_declaration_def(
unique int id: @php_class_declaration,
int body: @php_declaration_list ref,
int name: @php_token_name ref
);
@php_class_interface_clause_child_type = @php_qualified_name | @php_token_name
#keyset[php_class_interface_clause, index]
php_class_interface_clause_child(
int php_class_interface_clause: @php_class_interface_clause ref,
int index: int ref,
unique int child: @php_class_interface_clause_child_type ref
);
php_class_interface_clause_def(
unique int id: @php_class_interface_clause
);
php_clone_expression_def(
unique int id: @php_clone_expression,
int child: @php_primary_expression ref
);
#keyset[php_colon_block, index]
php_colon_block_child(
int php_colon_block: @php_colon_block ref,
int index: int ref,
unique int child: @php_statement ref
);
php_colon_block_def(
unique int id: @php_colon_block
);
#keyset[php_compound_statement, index]
php_compound_statement_child(
int php_compound_statement: @php_compound_statement ref,
int index: int ref,
unique int child: @php_statement ref
);
php_compound_statement_def(
unique int id: @php_compound_statement
);
php_conditional_expression_body(
unique int php_conditional_expression: @php_conditional_expression ref,
unique int body: @php_expression ref
);
php_conditional_expression_def(
unique int id: @php_conditional_expression,
int alternative: @php_expression ref,
int condition: @php_expression ref
);
php_const_declaration_attributes(
unique int php_const_declaration: @php_const_declaration ref,
unique int attributes: @php_attribute_list ref
);
php_const_declaration_type(
unique int php_const_declaration: @php_const_declaration ref,
unique int type__: @php_type__ ref
);
@php_const_declaration_child_type = @php_const_element | @php_token_abstract_modifier | @php_token_final_modifier | @php_token_readonly_modifier | @php_token_static_modifier | @php_token_var_modifier | @php_visibility_modifier
#keyset[php_const_declaration, index]
php_const_declaration_child(
int php_const_declaration: @php_const_declaration ref,
int index: int ref,
unique int child: @php_const_declaration_child_type ref
);
php_const_declaration_def(
unique int id: @php_const_declaration
);
@php_const_element_child_type = @php_expression | @php_token_name
#keyset[php_const_element, index]
php_const_element_child(
int php_const_element: @php_const_element ref,
int index: int ref,
unique int child: @php_const_element_child_type ref
);
php_const_element_def(
unique int id: @php_const_element
);
php_continue_statement_child(
unique int php_continue_statement: @php_continue_statement ref,
unique int child: @php_expression ref
);
php_continue_statement_def(
unique int id: @php_continue_statement
);
@php_declaration_list_child_type = @php_const_declaration | @php_method_declaration | @php_property_declaration | @php_use_declaration
#keyset[php_declaration_list, index]
php_declaration_list_child(
int php_declaration_list: @php_declaration_list ref,
int index: int ref,
unique int child: @php_declaration_list_child_type ref
);
php_declaration_list_def(
unique int id: @php_declaration_list
);
php_declare_directive_def(
unique int id: @php_declare_directive,
int child: @php_literal ref
);
@php_declare_statement_child_type = @php_declare_directive | @php_statement
#keyset[php_declare_statement, index]
php_declare_statement_child(
int php_declare_statement: @php_declare_statement ref,
int index: int ref,
unique int child: @php_declare_statement_child_type ref
);
php_declare_statement_def(
unique int id: @php_declare_statement
);
#keyset[php_default_statement, index]
php_default_statement_child(
int php_default_statement: @php_default_statement ref,
int index: int ref,
unique int child: @php_statement ref
);
php_default_statement_def(
unique int id: @php_default_statement
);
@php_disjunctive_normal_form_type_child_type = @php_intersection_type | @php_named_type | @php_optional_type | @php_token_primitive_type
#keyset[php_disjunctive_normal_form_type, index]
php_disjunctive_normal_form_type_child(
int php_disjunctive_normal_form_type: @php_disjunctive_normal_form_type ref,
int index: int ref,
unique int child: @php_disjunctive_normal_form_type_child_type ref
);
php_disjunctive_normal_form_type_def(
unique int id: @php_disjunctive_normal_form_type
);
php_do_statement_def(
unique int id: @php_do_statement,
int body: @php_statement ref,
int condition: @php_parenthesized_expression ref
);
@php_dynamic_variable_name_child_type = @php_dynamic_variable_name | @php_expression | @php_variable_name
php_dynamic_variable_name_def(
unique int id: @php_dynamic_variable_name,
int child: @php_dynamic_variable_name_child_type ref
);
@php_echo_statement_child_type = @php_expression | @php_sequence_expression
php_echo_statement_def(
unique int id: @php_echo_statement,
int child: @php_echo_statement_child_type ref
);
@php_else_clause_body_type = @php_colon_block | @php_statement
php_else_clause_def(
unique int id: @php_else_clause,
int body: @php_else_clause_body_type ref
);
@php_else_if_clause_body_type = @php_colon_block | @php_statement
php_else_if_clause_def(
unique int id: @php_else_if_clause,
int body: @php_else_if_clause_body_type ref,
int condition: @php_parenthesized_expression ref
);
@php_encapsed_string_child_type = @php_dynamic_variable_name | @php_expression | @php_member_access_expression | @php_subscript_expression | @php_token_escape_sequence | @php_token_string_content | @php_variable_name
#keyset[php_encapsed_string, index]
php_encapsed_string_child(
int php_encapsed_string: @php_encapsed_string ref,
int index: int ref,
unique int child: @php_encapsed_string_child_type ref
);
php_encapsed_string_def(
unique int id: @php_encapsed_string
);
php_enum_case_attributes(
unique int php_enum_case: @php_enum_case ref,
unique int attributes: @php_attribute_list ref
);
php_enum_case_value(
unique int php_enum_case: @php_enum_case ref,
unique int value: @php_expression ref
);
php_enum_case_def(
unique int id: @php_enum_case,
int name: @php_token_name ref
);
php_enum_declaration_attributes(
unique int php_enum_declaration: @php_enum_declaration ref,
unique int attributes: @php_attribute_list ref
);
@php_enum_declaration_child_type = @php_class_interface_clause | @php_token_primitive_type
#keyset[php_enum_declaration, index]
php_enum_declaration_child(
int php_enum_declaration: @php_enum_declaration ref,
int index: int ref,
unique int child: @php_enum_declaration_child_type ref
);
php_enum_declaration_def(
unique int id: @php_enum_declaration,
int body: @php_enum_declaration_list ref,
int name: @php_token_name ref
);
@php_enum_declaration_list_child_type = @php_enum_case | @php_method_declaration | @php_use_declaration
#keyset[php_enum_declaration_list, index]
php_enum_declaration_list_child(
int php_enum_declaration_list: @php_enum_declaration_list ref,
int index: int ref,
unique int child: @php_enum_declaration_list_child_type ref
);
php_enum_declaration_list_def(
unique int id: @php_enum_declaration_list
);
php_error_suppression_expression_def(
unique int id: @php_error_suppression_expression,
int child: @php_expression ref
);
php_exit_statement_child(
unique int php_exit_statement: @php_exit_statement ref,
unique int child: @php_expression ref
);
php_exit_statement_def(
unique int id: @php_exit_statement
);
@php_expression = @php_assignment_expression | @php_augmented_assignment_expression | @php_binary_expression | @php_cast_expression | @php_clone_expression | @php_conditional_expression | @php_error_suppression_expression | @php_include_expression | @php_include_once_expression | @php_match_expression | @php_primary_expression | @php_reference_assignment_expression | @php_require_expression | @php_require_once_expression | @php_unary_op_expression | @php_yield_expression
php_expression_statement_def(
unique int id: @php_expression_statement,
int child: @php_expression ref
);
php_finally_clause_def(
unique int id: @php_finally_clause,
int body: @php_compound_statement ref
);
#keyset[php_for_statement, index]
php_for_statement_body(
int php_for_statement: @php_for_statement ref,
int index: int ref,
unique int body: @php_statement ref
);
@php_for_statement_condition_type = @php_expression | @php_sequence_expression
php_for_statement_condition(
unique int php_for_statement: @php_for_statement ref,
unique int condition: @php_for_statement_condition_type ref
);
@php_for_statement_initialize_type = @php_expression | @php_sequence_expression
php_for_statement_initialize(
unique int php_for_statement: @php_for_statement ref,
unique int initialize: @php_for_statement_initialize_type ref
);
@php_for_statement_update_type = @php_expression | @php_sequence_expression
php_for_statement_update(
unique int php_for_statement: @php_for_statement ref,
unique int update: @php_for_statement_update_type ref
);
php_for_statement_def(
unique int id: @php_for_statement
);
@php_foreach_statement_body_type = @php_colon_block | @php_statement
php_foreach_statement_body(
unique int php_foreach_statement: @php_foreach_statement ref,
unique int body: @php_foreach_statement_body_type ref
);
@php_foreach_statement_child_type = @php_by_ref | @php_expression | @php_list_literal | @php_pair
#keyset[php_foreach_statement, index]
php_foreach_statement_child(
int php_foreach_statement: @php_foreach_statement ref,
int index: int ref,
unique int child: @php_foreach_statement_child_type ref
);
php_foreach_statement_def(
unique int id: @php_foreach_statement
);
@php_formal_parameters_child_type = @php_property_promotion_parameter | @php_simple_parameter | @php_variadic_parameter
#keyset[php_formal_parameters, index]
php_formal_parameters_child(
int php_formal_parameters: @php_formal_parameters ref,
int index: int ref,
unique int child: @php_formal_parameters_child_type ref
);
php_formal_parameters_def(
unique int id: @php_formal_parameters
);
@php_function_call_expression_function_type = @php_array_creation_expression | @php_dynamic_variable_name | @php_encapsed_string | @php_function_call_expression | @php_heredoc | @php_member_call_expression | @php_nowdoc | @php_nullsafe_member_call_expression | @php_object_creation_expression | @php_parenthesized_expression | @php_qualified_name | @php_scoped_call_expression | @php_string__ | @php_subscript_expression | @php_token_name | @php_variable_name
php_function_call_expression_def(
unique int id: @php_function_call_expression,
int arguments: @php_arguments ref,
int function: @php_function_call_expression_function_type ref
);
php_function_definition_attributes(
unique int php_function_definition: @php_function_definition ref,
unique int attributes: @php_attribute_list ref
);
@php_function_definition_return_type_type = @php_token_bottom_type | @php_type__
php_function_definition_return_type(
unique int php_function_definition: @php_function_definition ref,
unique int return_type: @php_function_definition_return_type_type ref
);
php_function_definition_child(
unique int php_function_definition: @php_function_definition ref,
unique int child: @php_token_reference_modifier ref
);
php_function_definition_def(
unique int id: @php_function_definition,
int body: @php_compound_statement ref,
int name: @php_token_name ref,
int parameters: @php_formal_parameters ref
);
#keyset[php_function_static_declaration, index]
php_function_static_declaration_child(
int php_function_static_declaration: @php_function_static_declaration ref,
int index: int ref,
unique int child: @php_static_variable_declaration ref
);
php_function_static_declaration_def(
unique int id: @php_function_static_declaration
);
@php_global_declaration_child_type = @php_dynamic_variable_name | @php_variable_name
#keyset[php_global_declaration, index]
php_global_declaration_child(
int php_global_declaration: @php_global_declaration ref,
int index: int ref,
unique int child: @php_global_declaration_child_type ref
);
php_global_declaration_def(
unique int id: @php_global_declaration
);
php_goto_statement_def(
unique int id: @php_goto_statement,
int child: @php_token_name ref
);
php_heredoc_value(
unique int php_heredoc: @php_heredoc ref,
unique int value: @php_heredoc_body ref
);
php_heredoc_def(
unique int id: @php_heredoc,
int end_tag: @php_token_heredoc_end ref,
int identifier: @php_token_heredoc_start ref
);
@php_heredoc_body_child_type = @php_dynamic_variable_name | @php_expression | @php_member_access_expression | @php_subscript_expression | @php_token_escape_sequence | @php_token_string_content | @php_variable_name
#keyset[php_heredoc_body, index]
php_heredoc_body_child(
int php_heredoc_body: @php_heredoc_body ref,
int index: int ref,
unique int child: @php_heredoc_body_child_type ref
);
php_heredoc_body_def(
unique int id: @php_heredoc_body
);
@php_if_statement_alternative_type = @php_else_clause | @php_else_if_clause
#keyset[php_if_statement, index]
php_if_statement_alternative(
int php_if_statement: @php_if_statement ref,
int index: int ref,
unique int alternative: @php_if_statement_alternative_type ref
);
@php_if_statement_body_type = @php_colon_block | @php_statement
php_if_statement_def(
unique int id: @php_if_statement,
int body: @php_if_statement_body_type ref,
int condition: @php_parenthesized_expression ref
);
php_include_expression_def(
unique int id: @php_include_expression,
int child: @php_expression ref
);
php_include_once_expression_def(
unique int id: @php_include_once_expression,
int child: @php_expression ref
);
php_interface_declaration_attributes(
unique int php_interface_declaration: @php_interface_declaration ref,
unique int attributes: @php_attribute_list ref
);
php_interface_declaration_child(
unique int php_interface_declaration: @php_interface_declaration ref,
unique int child: @php_base_clause ref
);
php_interface_declaration_def(
unique int id: @php_interface_declaration,
int body: @php_declaration_list ref,
int name: @php_token_name ref
);
@php_intersection_type_child_type = @php_named_type | @php_optional_type | @php_token_primitive_type
#keyset[php_intersection_type, index]
php_intersection_type_child(
int php_intersection_type: @php_intersection_type ref,
int index: int ref,
unique int child: @php_intersection_type_child_type ref
);
php_intersection_type_def(
unique int id: @php_intersection_type
);
@php_list_literal_child_type = @php_by_ref | @php_dynamic_variable_name | @php_expression | @php_function_call_expression | @php_list_literal | @php_member_access_expression | @php_member_call_expression | @php_nullsafe_member_access_expression | @php_nullsafe_member_call_expression | @php_scoped_call_expression | @php_scoped_property_access_expression | @php_subscript_expression | @php_variable_name
#keyset[php_list_literal, index]
php_list_literal_child(
int php_list_literal: @php_list_literal ref,
int index: int ref,
unique int child: @php_list_literal_child_type ref
);
php_list_literal_def(
unique int id: @php_list_literal
);
@php_literal = @php_encapsed_string | @php_heredoc | @php_nowdoc | @php_string__ | @php_token_boolean | @php_token_float | @php_token_integer | @php_token_null
@php_match_block_child_type = @php_match_conditional_expression | @php_match_default_expression
#keyset[php_match_block, index]
php_match_block_child(
int php_match_block: @php_match_block ref,
int index: int ref,
unique int child: @php_match_block_child_type ref
);
php_match_block_def(
unique int id: @php_match_block
);
#keyset[php_match_condition_list, index]
php_match_condition_list_child(
int php_match_condition_list: @php_match_condition_list ref,
int index: int ref,
unique int child: @php_expression ref
);
php_match_condition_list_def(
unique int id: @php_match_condition_list