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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748 | --
-- Copyright (C) 2014-2022, AdaCore
-- SPDX-License-Identifier: Apache-2.0
--
with GNATCOLL.GMP.Integers;
with Langkit_Support.Errors;
private with Langkit_Support.Internal.Analysis;
with Langkit_Support.Symbols; use Langkit_Support.Symbols;
with Langkit_Support.Token_Data_Handlers;
use Langkit_Support.Token_Data_Handlers;
with Langkit_Support.Types; use Langkit_Support.Types;
-- This package provides types and functions used in the whole Libadalang
-- package tree.
package Libadalang.Common is
use Support.Slocs, Support.Text;
subtype Big_Integer is GNATCOLL.GMP.Integers.Big_Integer;
-- Shortcut for ``GNATCOLL.GMP.Integers.Big_Integer``
Default_Charset : constant String := "iso-8859-1";
-- Default charset to use when creating analysis contexts
----------------
-- Exceptions --
----------------
File_Read_Error : exception renames Langkit_Support.Errors.File_Read_Error;
-- Subprograms may raise this when they cannot open a source file. Note
-- that this does *not* concern analysis unit getters, which create
-- diagnostic vectors for such errors.
Invalid_Input : exception renames Langkit_Support.Errors.Invalid_Input;
-- Raised by lexing functions (``Libadalang.Lexer``) when the input
-- contains an invalid byte sequence.
Invalid_Symbol_Error : exception renames Langkit_Support.Errors.Invalid_Symbol_Error;
-- Exception raise when an invalid symbol is passed to a subprogram.
Invalid_Unit_Name_Error : exception renames Langkit_Support.Errors.Invalid_Unit_Name_Error;
-- Raised when an invalid unit name is provided.
Native_Exception : exception renames Langkit_Support.Errors.Native_Exception;
-- Exception raised in language bindings when the underlying C API reports
-- an unexpected error that occurred in the library.
--
-- This kind of exception is raised for internal errors: they should never
-- happen in normal situations and if they are raised at some point, it
-- means the library state is potentially corrupted.
--
-- Nevertheless, the library does its best not to crash the program,
-- materializing internal errors using this kind of exception.
Precondition_Failure : exception renames Langkit_Support.Errors.Precondition_Failure;
-- Exception raised when an API is called while its preconditions are not
-- satisfied.
Property_Error : exception renames Langkit_Support.Errors.Property_Error;
-- Exception that is raised when an error occurs while evaluating any
-- function whose name starts with ``P_``. This is the only exceptions that
-- such functions can raise.
Stale_Reference_Error : exception renames Langkit_Support.Errors.Stale_Reference_Error;
-- Exception raised while trying to access data that was deallocated. This
-- happens when one tries to use a node whose unit has been reparsed, for
-- instance.
Syntax_Error : exception renames Langkit_Support.Errors.Syntax_Error;
-- Subprograms may raise this when they try to parse invalid syntax. Note
-- that this does *not* concern analysis unit getters, which create
-- diagnostic vectors for such errors.
Unknown_Charset : exception renames Langkit_Support.Errors.Unknown_Charset;
-- Raised by lexing functions (``Libadalang.Lexer``) when the input charset
-- is not supported.
-------------------
-- Introspection --
-------------------
Bad_Type_Error : exception renames Langkit_Support.Errors.Introspection.Bad_Type_Error;
-- Raised when introspection functions (``Libadalang.Introspection``) are
-- provided mismatching types/values.
Out_Of_Bounds_Error : exception renames Langkit_Support.Errors.Introspection.Out_Of_Bounds_Error;
-- Raised when introspection functions (``Libadalang.Introspection``) are
-- passed an out of bounds index.
---------------
-- Rewriting --
---------------
Template_Args_Error : exception renames Langkit_Support.Errors.Rewriting.Template_Args_Error;
-- Exception raised when the provided arguments for a template don't match
-- what the template expects.
Template_Format_Error : exception renames Langkit_Support.Errors.Rewriting.Template_Format_Error;
-- Exception raised when a template has an invalid syntax, such as badly
-- formatted placeholders.
Template_Instantiation_Error : exception renames Langkit_Support.Errors.Rewriting.Template_Instantiation_Error;
-- Exception raised when the instantiation of a template cannot be parsed.
---------------
-- Unparsing --
---------------
Malformed_Tree_Error : exception renames Langkit_Support.Errors.Unparsing.Malformed_Tree_Error;
-- Raised when unparsing functions working on rewritten trees
-- (``Libadalang.Rewriting``) are called on malformed trees.
----------------------------
-- Misc enumeration types --
----------------------------
type Analysis_Unit_Kind is
(Unit_Specification, Unit_Body)
with Convention => C;
-- Specify a kind of analysis unit. Specification units provide an
-- interface to the outer world while body units provide an
-- implementation for the corresponding interface.
function Trace_Image (Self : Analysis_Unit_Kind) return String
is (Self'Image);
type Lookup_Kind is
(Recursive, Flat, Minimal)
with Convention => C;
function Trace_Image (Self : Lookup_Kind) return String
is (Self'Image);
type Designated_Env_Kind is
(None, Current_Env, Named_Env, Direct_Env)
with Convention => C;
-- Discriminant for DesignatedEnv structures.
function Trace_Image (Self : Designated_Env_Kind) return String
is (Self'Image);
type Ref_Result_Kind is
(No_Ref, Precise, Imprecise, Error)
with Convention => C;
-- Kind for the result of a cross reference operation.
--
-- * ``no_ref`` is for no reference, it is the null value for this enum.
--
-- * ``precise`` is when the reference result is precise.
--
-- * ``imprecise`` is when there was an error computing the precise
-- result, and a result was gotten in an imprecise fashion.
--
-- * ``error`` is for unrecoverable errors (either there is no imprecise
-- path for the request you made, or the imprecise path errored out
-- too).
function Trace_Image (Self : Ref_Result_Kind) return String
is (Self'Image);
type Call_Expr_Kind is
(Call, Array_Slice, Array_Index, Type_Conversion)
with Convention => C;
-- Kind of CallExpr type.
--
-- * ``call`` is when the CallExpr is a procedure or function call.
--
-- * ``array_slice``, ``array_index`` is when the CallExpr is in fact an
-- array slice or an array subcomponent access expression,
-- respectively.
--
-- * ``type_conversion`` is when the CallExpr is a type conversion.
function Trace_Image (Self : Call_Expr_Kind) return String
is (Self'Image);
type Grammar_Rule is
(Parent_List_Rule, Protected_Type_Decl_Rule, Protected_Op_Rule, Protected_El_Rule, Protected_Def_Rule, Protected_Decl_Rule, Task_Item_Rule, Task_Def_Rule, Task_Type_Decl_Rule, Subtype_Decl_Rule, Interface_Type_Def_Rule, Unconstrained_Index_Rule, Array_Type_Def_Rule, Discrete_Subtype_Definition_Rule, Constraint_List_Rule, Signed_Int_Type_Def_Rule, Mod_Int_Type_Def_Rule, Derived_Type_Def_Rule, Composite_Constraint_Assoc_Rule, Composite_Constraint_Rule, Digits_Constraint_Rule, Delta_Constraint_Rule, Range_Constraint_Rule, Constraint_Rule, Discriminant_Spec_Rule, Discr_Spec_List_Rule, Discriminant_Part_Rule, Enum_Literal_Decl_Rule, Formal_Discrete_Type_Def_Rule, Record_Def_Rule, Range_Spec_Rule, Real_Type_Def_Rule, Sexpr_Or_Box_Rule, Ordinary_Fixed_Point_Def_Rule, Decimal_Fixed_Point_Def_Rule, Floating_Point_Def_Rule, Record_Type_Def_Rule, Access_Def_Rule, Enum_Type_Def_Rule, Type_Def_Rule, Variant_Rule, Anonymous_Type_Decl_Rule, Incomplete_Type_Decl_Rule, Type_Decl_Rule, Variant_Part_Rule, Component_Def_Rule, Component_Item_Rule, Component_Decl_Rule, Component_List_Rule, Generic_Decl_Rule, Generic_Formal_Part_Rule, Generic_Formal_Decl_Rule, Formal_Type_Decl_Rule, Formal_Subp_Decl_Rule, Renaming_Clause_Rule, Generic_Renaming_Decl_Rule, Generic_Instantiation_Rule, Exception_Decl_Rule, Basic_Decls_Rule, Package_Renaming_Decl_Rule, Package_Decl_Rule, Basic_Decl_Rule, Object_Decl_Rule, Sub_Object_Decl_Rule, No_Type_Object_Renaming_Decl_Rule, Ext_Ret_Stmt_Object_Decl_Rule, Defining_Id_List_Rule, Number_Decl_Rule, Contract_Case_Assoc_Rule, Contract_Cases_Expr_Rule, Abstract_State_Decl_Rule, Multi_Abstract_State_Decl_Rule, Aspect_Assoc_Rule, Aspect_Spec_Rule, Single_Task_Decl_Rule, Overriding_Indicator_Rule, Entry_Decl_Rule, Component_Clause_Rule, Aspect_Clause_Rule, Param_Spec_Rule, Param_Specs_Rule, Subp_Spec_Rule, Expr_Fn_Rule, Null_Subp_Decl_Rule, Abstract_Subp_Decl_Rule, Subp_Renaming_Decl_Rule, Simple_Subp_Decl_Rule, Subp_Decl_Rule, With_Clause_Rule, Context_Item_Rule, Use_Clause_Rule, Use_Package_Clause_Rule, Use_Type_Clause_Rule, Subtype_Indication_Rule, Discrete_Subtype_Indication_Rule, Constrained_Subtype_Indication_Rule, Type_Expr_Rule, Anonymous_Type_Rule, Mode_Rule, Pragma_Argument_Rule, Pragma_Rule, Subunit_Rule, Library_Unit_Body_Rule, Library_Unit_Renaming_Decl_Rule, Library_Item_Rule, Compilation_Unit_Rule, Compilation_Rule, Decl_Part_Rule, Entry_Body_Rule, Protected_Body_Rule, Protected_Body_Stub_Rule, Task_Body_Rule, Task_Body_Stub_Rule, Package_Body_Stub_Rule, Package_Body_Rule, Terminate_Alternative_Rule, Select_Stmt_Rule, Accept_Stmt_Rule, Case_Alt_Rule, Case_Stmt_Rule, Ext_Return_Stmt_Rule, Iblock_Stmt_Rule, Block_Stmt_Rule, While_Loop_Spec_Rule, Iloop_Stmt_Rule, Loop_Stmt_Rule, Compound_Stmt_Rule, Elsif_Part_Rule, If_Stmt_Rule, Raise_Stmt_Rule, Delay_Stmt_Rule, Abort_Stmt_Rule, Body_Rule, Body_Stub_Rule, Subp_Body_Stub_Rule, Recov_Decl_Part_Rule, Subp_Body_Rule, Handled_Stmts_Rule, Exception_Handler_Rule, Stmts_Rule, Label_Rule, Stmt_Rule, Call_Stmt_Rule, Simple_Stmt_Rule, Null_Stmt_Rule, Assignment_Stmt_Rule, Goto_Stmt_Rule, Exit_Stmt_Rule, Return_Stmt_Rule, Requeue_Stmt_Rule, Identifier_Rule, Char_Literal_Rule, String_Literal_Rule, Defining_Id_Rule, Dec_Literal_Rule, Int_Literal_Rule, Num_Literal_Rule, Null_Literal_Rule, Allocator_Rule, For_Loop_Param_Spec_Rule, Quantified_Expr_Rule, Case_Expr_Rule, Case_Expr_Alt_Rule, Raise_Expr_Rule, If_Expr_Rule, Conditional_Expr_Rule, Box_Expr_Rule, Others_Designator_Rule, Iterated_Assoc_Rule, Aggregate_Assoc_Rule, Regular_Aggregate_Rule, Bracket_Aggregate_Rule, Aggregate_Rule, Direct_Name_Rule, Param_Assoc_Rule, Call_Suffix_Rule, Attr_Suffix_Rule, Qualified_Name_Rule, Qual_Name_Internal_Rule, Value_Sequence_Rule, Name_Rule, Defining_Name_Rule, Direct_Name_Or_Target_Name_Rule, Target_Name_Rule, Update_Attr_Aggregate_Rule, Update_Attr_Content_Rule, Multidim_Array_Assoc_Rule, Subtype_Name_Rule, Static_Name_Rule, Primary_Rule, Paren_Expr_Rule, Declare_Expr_Rule, Factor_Rule, Term_Rule, Unop_Term_Rule, Simple_Expr_Rule, Boolean_Op_Rule, Discrete_Range_Rule, Choice_Rule, Choice_List_Rule, Rel_Op_Rule, Membership_Choice_Rule, Membership_Choice_List_Rule, Relation_Rule, Expr_Rule, Pp_Directive_Rule, Pp_Then_Rule, Pp_Expr_Rule, Pp_Term_Rule)
with Convention => C;
-- Gramar rule to use for parsing.
function Trace_Image (Self : Grammar_Rule) return String
is (Self'Image);
-----------
-- Nodes --
-----------
type Ada_Node_Kind_Type is
(Ada_Abort_Absent, Ada_Abort_Present, Ada_Abstract_Absent, Ada_Abstract_Present, Ada_Ada_Node_List, Ada_Abstract_State_Decl_List, Ada_Alternatives_List, Ada_Constraint_List, Ada_Decl_List, Ada_Stmt_List, Ada_Aspect_Assoc_List, Ada_Base_Assoc_List, Ada_Assoc_List, Ada_Basic_Decl_List, Ada_Case_Expr_Alternative_List, Ada_Case_Stmt_Alternative_List, Ada_Compilation_Unit_List, Ada_Concat_Operand_List, Ada_Contract_Case_Assoc_List, Ada_Defining_Name_List, Ada_Discriminant_Spec_List, Ada_Elsif_Expr_Part_List, Ada_Elsif_Stmt_Part_List, Ada_Enum_Literal_Decl_List, Ada_Expr_Alternatives_List, Ada_Discriminant_Choice_List, Ada_Name_List, Ada_Parent_List, Ada_Param_Spec_List, Ada_Pragma_Node_List, Ada_Select_When_Part_List, Ada_Unconstrained_Array_Index_List, Ada_Variant_List, Ada_Aliased_Absent, Ada_Aliased_Present, Ada_All_Absent, Ada_All_Present, Ada_Constrained_Array_Indices, Ada_Unconstrained_Array_Indices, Ada_Aspect_Assoc, Ada_At_Clause, Ada_Attribute_Def_Clause, Ada_Enum_Rep_Clause, Ada_Record_Rep_Clause, Ada_Aspect_Spec, Ada_Contract_Case_Assoc, Ada_Pragma_Argument_Assoc, Ada_Entry_Spec, Ada_Enum_Subp_Spec, Ada_Subp_Spec, Ada_Synthetic_Binary_Spec, Ada_Synthetic_Unary_Spec, Ada_Component_List, Ada_Known_Discriminant_Part, Ada_Unknown_Discriminant_Part, Ada_Entry_Completion_Formal_Params, Ada_Generic_Formal_Part, Ada_Null_Record_Def, Ada_Record_Def, Ada_Aggregate_Assoc, Ada_Multi_Dim_Array_Assoc, Ada_Composite_Constraint_Assoc, Ada_Iterated_Assoc, Ada_Param_Assoc, Ada_Abstract_State_Decl, Ada_Anonymous_Expr_Decl, Ada_Component_Decl, Ada_Discriminant_Spec, Ada_Generic_Formal_Obj_Decl, Ada_Generic_Formal_Package, Ada_Generic_Formal_Subp_Decl, Ada_Generic_Formal_Type_Decl, Ada_Param_Spec, Ada_Synthetic_Formal_Param_Decl, Ada_Generic_Package_Internal, Ada_Package_Decl, Ada_Discrete_Base_Subtype_Decl, Ada_Subtype_Decl, Ada_Classwide_Type_Decl, Ada_Incomplete_Type_Decl, Ada_Incomplete_Formal_Type_Decl, Ada_Incomplete_Tagged_Type_Decl, Ada_Protected_Type_Decl, Ada_Task_Type_Decl, Ada_Single_Task_Type_Decl, Ada_Anonymous_Type_Decl, Ada_Synth_Anonymous_Type_Decl, Ada_Concrete_Type_Decl, Ada_Formal_Type_Decl, Ada_Abstract_Subp_Decl, Ada_Abstract_Formal_Subp_Decl, Ada_Concrete_Formal_Subp_Decl, Ada_Subp_Decl, Ada_Entry_Decl, Ada_Enum_Literal_Decl, Ada_Synthetic_Char_Enum_Lit, Ada_Generic_Subp_Internal, Ada_Synthetic_Subp_Decl, Ada_Accept_Stmt_Body, Ada_Expr_Function, Ada_Null_Subp_Decl, Ada_Subp_Body, Ada_Subp_Renaming_Decl, Ada_Package_Body_Stub, Ada_Protected_Body_Stub, Ada_Subp_Body_Stub, Ada_Task_Body_Stub, Ada_Entry_Body, Ada_Package_Body, Ada_Protected_Body, Ada_Task_Body, Ada_Entry_Index_Spec, Ada_Error_Decl, Ada_Exception_Decl, Ada_Exception_Handler, Ada_For_Loop_Var_Decl, Ada_Generic_Package_Decl, Ada_Generic_Subp_Decl, Ada_Generic_Package_Instantiation, Ada_Generic_Subp_Instantiation, Ada_Generic_Package_Renaming_Decl, Ada_Generic_Subp_Renaming_Decl, Ada_Label_Decl, Ada_Named_Stmt_Decl, Ada_Number_Decl, Ada_Object_Decl, Ada_Extended_Return_Stmt_Object_Decl, Ada_No_Type_Object_Renaming_Decl, Ada_Package_Renaming_Decl, Ada_Single_Protected_Decl, Ada_Single_Task_Decl, Ada_Case_Stmt_Alternative, Ada_Compilation_Unit, Ada_Component_Clause, Ada_Component_Def, Ada_Constant_Absent, Ada_Constant_Present, Ada_Composite_Constraint, Ada_Delta_Constraint, Ada_Digits_Constraint, Ada_Range_Constraint, Ada_Declarative_Part, Ada_Private_Part, Ada_Public_Part, Ada_Elsif_Expr_Part, Ada_Elsif_Stmt_Part, Ada_Abstract_State_Decl_Expr, Ada_Allocator, Ada_Aggregate, Ada_Bracket_Aggregate, Ada_Delta_Aggregate, Ada_Bracket_Delta_Aggregate, Ada_Null_Record_Aggregate, Ada_Bin_Op, Ada_Relation_Op, Ada_Box_Expr, Ada_Case_Expr_Alternative, Ada_Concat_Op, Ada_Concat_Operand, Ada_Case_Expr, Ada_If_Expr, Ada_Contract_Cases, Ada_Decl_Expr, Ada_Membership_Expr, Ada_Attribute_Ref, Ada_Call_Expr, Ada_Defining_Name, Ada_Synthetic_Defining_Name, Ada_Discrete_Subtype_Name, Ada_Dotted_Name, Ada_End_Name, Ada_Explicit_Deref, Ada_Qual_Expr, Ada_Reduce_Attribute_Ref, Ada_Char_Literal, Ada_Identifier, Ada_Op_Abs, Ada_Op_And, Ada_Op_And_Then, Ada_Op_Concat, Ada_Op_Div, Ada_Op_Double_Dot, Ada_Op_Eq, Ada_Op_Gt, Ada_Op_Gte, Ada_Op_In, Ada_Op_Lt, Ada_Op_Lte, Ada_Op_Minus, Ada_Op_Mod, Ada_Op_Mult, Ada_Op_Neq, Ada_Op_Not, Ada_Op_Not_In, Ada_Op_Or, Ada_Op_Or_Else, Ada_Op_Plus, Ada_Op_Pow, Ada_Op_Rem, Ada_Op_Xor, Ada_String_Literal, Ada_Null_Literal, Ada_Int_Literal, Ada_Real_Literal, Ada_Synthetic_Identifier, Ada_Target_Name, Ada_Update_Attribute_Ref, Ada_Paren_Expr, Ada_Quantified_Expr, Ada_Raise_Expr, Ada_Un_Op, Ada_Handled_Stmts, Ada_Interface_Kind_Limited, Ada_Interface_Kind_Protected, Ada_Interface_Kind_Synchronized, Ada_Interface_Kind_Task, Ada_Iter_Type_In, Ada_Iter_Type_Of, Ada_Library_Item, Ada_Limited_Absent, Ada_Limited_Present, Ada_For_Loop_Spec, Ada_While_Loop_Spec, Ada_Mode_Default, Ada_Mode_In, Ada_Mode_In_Out, Ada_Mode_Out, Ada_Multi_Abstract_State_Decl, Ada_Not_Null_Absent, Ada_Not_Null_Present, Ada_Null_Component_Decl, Ada_Others_Designator, Ada_Overriding_Not_Overriding, Ada_Overriding_Overriding, Ada_Overriding_Unspecified, Ada_Params, Ada_Paren_Abstract_State_Decl, Ada_Pp_Else_Directive, Ada_Pp_Elsif_Directive, Ada_Pp_End_If_Directive, Ada_Pp_If_Directive, Ada_Pp_Then_Kw, Ada_Pragma_Node, Ada_Private_Absent, Ada_Private_Present, Ada_Protected_Def, Ada_Protected_Absent, Ada_Protected_Present, Ada_Quantifier_All, Ada_Quantifier_Some, Ada_Range_Spec, Ada_Renaming_Clause, Ada_Synthetic_Renaming_Clause, Ada_Reverse_Absent, Ada_Reverse_Present, Ada_Select_When_Part, Ada_Accept_Stmt, Ada_Accept_Stmt_With_Stmts, Ada_For_Loop_Stmt, Ada_Loop_Stmt, Ada_While_Loop_Stmt, Ada_Begin_Block, Ada_Decl_Block, Ada_Case_Stmt, Ada_Extended_Return_Stmt, Ada_If_Stmt, Ada_Named_Stmt, Ada_Select_Stmt, Ada_Error_Stmt, Ada_Abort_Stmt, Ada_Assign_Stmt, Ada_Call_Stmt, Ada_Delay_Stmt, Ada_Exit_Stmt, Ada_Goto_Stmt, Ada_Label, Ada_Null_Stmt, Ada_Raise_Stmt, Ada_Requeue_Stmt, Ada_Return_Stmt, Ada_Terminate_Alternative, Ada_Subp_Kind_Function, Ada_Subp_Kind_Procedure, Ada_Subunit, Ada_Synchronized_Absent, Ada_Synchronized_Present, Ada_Tagged_Absent, Ada_Tagged_Present, Ada_Task_Def, Ada_Type_Attributes_Repository, Ada_Access_To_Subp_Def, Ada_Anonymous_Type_Access_Def, Ada_Type_Access_Def, Ada_Array_Type_Def, Ada_Derived_Type_Def, Ada_Enum_Type_Def, Ada_Formal_Discrete_Type_Def, Ada_Interface_Type_Def, Ada_Mod_Int_Type_Def, Ada_Private_Type_Def, Ada_Decimal_Fixed_Point_Def, Ada_Floating_Point_Def, Ada_Ordinary_Fixed_Point_Def, Ada_Record_Type_Def, Ada_Signed_Int_Type_Def, Ada_Anonymous_Type, Ada_Enum_Lit_Synth_Type_Expr, Ada_Subtype_Indication, Ada_Constrained_Subtype_Indication, Ada_Discrete_Subtype_Indication, Ada_Synthetic_Type_Expr, Ada_Unconstrained_Array_Index, Ada_Until_Absent, Ada_Until_Present, Ada_Use_Package_Clause, Ada_Use_Type_Clause, Ada_Value_Sequence, Ada_Variant, Ada_Variant_Part, Ada_With_Clause, Ada_With_Private_Absent, Ada_With_Private_Present);
-- Type for concrete nodes
for Ada_Node_Kind_Type use
(Ada_Abort_Absent => 1, Ada_Abort_Present => 2, Ada_Abstract_Absent => 3, Ada_Abstract_Present => 4, Ada_Ada_Node_List => 5, Ada_Abstract_State_Decl_List => 6, Ada_Alternatives_List => 7, Ada_Constraint_List => 8, Ada_Decl_List => 9, Ada_Stmt_List => 10, Ada_Aspect_Assoc_List => 11, Ada_Base_Assoc_List => 12, Ada_Assoc_List => 13, Ada_Basic_Decl_List => 14, Ada_Case_Expr_Alternative_List => 15, Ada_Case_Stmt_Alternative_List => 16, Ada_Compilation_Unit_List => 17, Ada_Concat_Operand_List => 18, Ada_Contract_Case_Assoc_List => 19, Ada_Defining_Name_List => 20, Ada_Discriminant_Spec_List => 21, Ada_Elsif_Expr_Part_List => 22, Ada_Elsif_Stmt_Part_List => 23, Ada_Enum_Literal_Decl_List => 24, Ada_Expr_Alternatives_List => 25, Ada_Discriminant_Choice_List => 26, Ada_Name_List => 27, Ada_Parent_List => 28, Ada_Param_Spec_List => 29, Ada_Pragma_Node_List => 30, Ada_Select_When_Part_List => 31, Ada_Unconstrained_Array_Index_List => 32, Ada_Variant_List => 33, Ada_Aliased_Absent => 34, Ada_Aliased_Present => 35, Ada_All_Absent => 36, Ada_All_Present => 37, Ada_Constrained_Array_Indices => 38, Ada_Unconstrained_Array_Indices => 39, Ada_Aspect_Assoc => 40, Ada_At_Clause => 41, Ada_Attribute_Def_Clause => 42, Ada_Enum_Rep_Clause => 43, Ada_Record_Rep_Clause => 44, Ada_Aspect_Spec => 45, Ada_Contract_Case_Assoc => 46, Ada_Pragma_Argument_Assoc => 47, Ada_Entry_Spec => 48, Ada_Enum_Subp_Spec => 49, Ada_Subp_Spec => 50, Ada_Synthetic_Binary_Spec => 51, Ada_Synthetic_Unary_Spec => 52, Ada_Component_List => 53, Ada_Known_Discriminant_Part => 54, Ada_Unknown_Discriminant_Part => 55, Ada_Entry_Completion_Formal_Params => 56, Ada_Generic_Formal_Part => 57, Ada_Null_Record_Def => 58, Ada_Record_Def => 59, Ada_Aggregate_Assoc => 60, Ada_Multi_Dim_Array_Assoc => 61, Ada_Composite_Constraint_Assoc => 62, Ada_Iterated_Assoc => 63, Ada_Param_Assoc => 64, Ada_Abstract_State_Decl => 65, Ada_Anonymous_Expr_Decl => 66, Ada_Component_Decl => 67, Ada_Discriminant_Spec => 68, Ada_Generic_Formal_Obj_Decl => 69, Ada_Generic_Formal_Package => 70, Ada_Generic_Formal_Subp_Decl => 71, Ada_Generic_Formal_Type_Decl => 72, Ada_Param_Spec => 73, Ada_Synthetic_Formal_Param_Decl => 74, Ada_Generic_Package_Internal => 75, Ada_Package_Decl => 76, Ada_Discrete_Base_Subtype_Decl => 77, Ada_Subtype_Decl => 78, Ada_Classwide_Type_Decl => 79, Ada_Incomplete_Type_Decl => 80, Ada_Incomplete_Formal_Type_Decl => 81, Ada_Incomplete_Tagged_Type_Decl => 82, Ada_Protected_Type_Decl => 83, Ada_Task_Type_Decl => 84, Ada_Single_Task_Type_Decl => 85, Ada_Anonymous_Type_Decl => 86, Ada_Synth_Anonymous_Type_Decl => 87, Ada_Concrete_Type_Decl => 88, Ada_Formal_Type_Decl => 89, Ada_Abstract_Subp_Decl => 90, Ada_Abstract_Formal_Subp_Decl => 91, Ada_Concrete_Formal_Subp_Decl => 92, Ada_Subp_Decl => 93, Ada_Entry_Decl => 94, Ada_Enum_Literal_Decl => 95, Ada_Synthetic_Char_Enum_Lit => 96, Ada_Generic_Subp_Internal => 97, Ada_Synthetic_Subp_Decl => 98, Ada_Accept_Stmt_Body => 99, Ada_Expr_Function => 100, Ada_Null_Subp_Decl => 101, Ada_Subp_Body => 102, Ada_Subp_Renaming_Decl => 103, Ada_Package_Body_Stub => 104, Ada_Protected_Body_Stub => 105, Ada_Subp_Body_Stub => 106, Ada_Task_Body_Stub => 107, Ada_Entry_Body => 108, Ada_Package_Body => 109, Ada_Protected_Body => 110, Ada_Task_Body => 111, Ada_Entry_Index_Spec => 112, Ada_Error_Decl => 113, Ada_Exception_Decl => 114, Ada_Exception_Handler => 115, Ada_For_Loop_Var_Decl => 116, Ada_Generic_Package_Decl => 117, Ada_Generic_Subp_Decl => 118, Ada_Generic_Package_Instantiation => 119, Ada_Generic_Subp_Instantiation => 120, Ada_Generic_Package_Renaming_Decl => 121, Ada_Generic_Subp_Renaming_Decl => 122, Ada_Label_Decl => 123, Ada_Named_Stmt_Decl => 124, Ada_Number_Decl => 125, Ada_Object_Decl => 126, Ada_Extended_Return_Stmt_Object_Decl => 127, Ada_No_Type_Object_Renaming_Decl => 128, Ada_Package_Renaming_Decl => 129, Ada_Single_Protected_Decl => 130, Ada_Single_Task_Decl => 131, Ada_Case_Stmt_Alternative => 132, Ada_Compilation_Unit => 133, Ada_Component_Clause => 134, Ada_Component_Def => 135, Ada_Constant_Absent => 136, Ada_Constant_Present => 137, Ada_Composite_Constraint => 138, Ada_Delta_Constraint => 139, Ada_Digits_Constraint => 140, Ada_Range_Constraint => 141, Ada_Declarative_Part => 142, Ada_Private_Part => 143, Ada_Public_Part => 144, Ada_Elsif_Expr_Part => 145, Ada_Elsif_Stmt_Part => 146, Ada_Abstract_State_Decl_Expr => 147, Ada_Allocator => 148, Ada_Aggregate => 149, Ada_Bracket_Aggregate => 150, Ada_Delta_Aggregate => 151, Ada_Bracket_Delta_Aggregate => 152, Ada_Null_Record_Aggregate => 153, Ada_Bin_Op => 154, Ada_Relation_Op => 155, Ada_Box_Expr => 156, Ada_Case_Expr_Alternative => 157, Ada_Concat_Op => 158, Ada_Concat_Operand => 159, Ada_Case_Expr => 160, Ada_If_Expr => 161, Ada_Contract_Cases => 162, Ada_Decl_Expr => 163, Ada_Membership_Expr => 164, Ada_Attribute_Ref => 165, Ada_Call_Expr => 166, Ada_Defining_Name => 167, Ada_Synthetic_Defining_Name => 168, Ada_Discrete_Subtype_Name => 169, Ada_Dotted_Name => 170, Ada_End_Name => 171, Ada_Explicit_Deref => 172, Ada_Qual_Expr => 173, Ada_Reduce_Attribute_Ref => 174, Ada_Char_Literal => 175, Ada_Identifier => 176, Ada_Op_Abs => 177, Ada_Op_And => 178, Ada_Op_And_Then => 179, Ada_Op_Concat => 180, Ada_Op_Div => 181, Ada_Op_Double_Dot => 182, Ada_Op_Eq => 183, Ada_Op_Gt => 184, Ada_Op_Gte => 185, Ada_Op_In => 186, Ada_Op_Lt => 187, Ada_Op_Lte => 188, Ada_Op_Minus => 189, Ada_Op_Mod => 190, Ada_Op_Mult => 191, Ada_Op_Neq => 192, Ada_Op_Not => 193, Ada_Op_Not_In => 194, Ada_Op_Or => 195, Ada_Op_Or_Else => 196, Ada_Op_Plus => 197, Ada_Op_Pow => 198, Ada_Op_Rem => 199, Ada_Op_Xor => 200, Ada_String_Literal => 201, Ada_Null_Literal => 202, Ada_Int_Literal => 203, Ada_Real_Literal => 204, Ada_Synthetic_Identifier => 205, Ada_Target_Name => 206, Ada_Update_Attribute_Ref => 207, Ada_Paren_Expr => 208, Ada_Quantified_Expr => 209, Ada_Raise_Expr => 210, Ada_Un_Op => 211, Ada_Handled_Stmts => 212, Ada_Interface_Kind_Limited => 213, Ada_Interface_Kind_Protected => 214, Ada_Interface_Kind_Synchronized => 215, Ada_Interface_Kind_Task => 216, Ada_Iter_Type_In => 217, Ada_Iter_Type_Of => 218, Ada_Library_Item => 219, Ada_Limited_Absent => 220, Ada_Limited_Present => 221, Ada_For_Loop_Spec => 222, Ada_While_Loop_Spec => 223, Ada_Mode_Default => 224, Ada_Mode_In => 225, Ada_Mode_In_Out => 226, Ada_Mode_Out => 227, Ada_Multi_Abstract_State_Decl => 228, Ada_Not_Null_Absent => 229, Ada_Not_Null_Present => 230, Ada_Null_Component_Decl => 231, Ada_Others_Designator => 232, Ada_Overriding_Not_Overriding => 233, Ada_Overriding_Overriding => 234, Ada_Overriding_Unspecified => 235, Ada_Params => 236, Ada_Paren_Abstract_State_Decl => 237, Ada_Pp_Else_Directive => 238, Ada_Pp_Elsif_Directive => 239, Ada_Pp_End_If_Directive => 240, Ada_Pp_If_Directive => 241, Ada_Pp_Then_Kw => 242, Ada_Pragma_Node => 243, Ada_Private_Absent => 244, Ada_Private_Present => 245, Ada_Protected_Def => 246, Ada_Protected_Absent => 247, Ada_Protected_Present => 248, Ada_Quantifier_All => 249, Ada_Quantifier_Some => 250, Ada_Range_Spec => 251, Ada_Renaming_Clause => 252, Ada_Synthetic_Renaming_Clause => 253, Ada_Reverse_Absent => 254, Ada_Reverse_Present => 255, Ada_Select_When_Part => 256, Ada_Accept_Stmt => 257, Ada_Accept_Stmt_With_Stmts => 258, Ada_For_Loop_Stmt => 259, Ada_Loop_Stmt => 260, Ada_While_Loop_Stmt => 261, Ada_Begin_Block => 262, Ada_Decl_Block => 263, Ada_Case_Stmt => 264, Ada_Extended_Return_Stmt => 265, Ada_If_Stmt => 266, Ada_Named_Stmt => 267, Ada_Select_Stmt => 268, Ada_Error_Stmt => 269, Ada_Abort_Stmt => 270, Ada_Assign_Stmt => 271, Ada_Call_Stmt => 272, Ada_Delay_Stmt => 273, Ada_Exit_Stmt => 274, Ada_Goto_Stmt => 275, Ada_Label => 276, Ada_Null_Stmt => 277, Ada_Raise_Stmt => 278, Ada_Requeue_Stmt => 279, Ada_Return_Stmt => 280, Ada_Terminate_Alternative => 281, Ada_Subp_Kind_Function => 282, Ada_Subp_Kind_Procedure => 283, Ada_Subunit => 284, Ada_Synchronized_Absent => 285, Ada_Synchronized_Present => 286, Ada_Tagged_Absent => 287, Ada_Tagged_Present => 288, Ada_Task_Def => 289, Ada_Type_Attributes_Repository => 290, Ada_Access_To_Subp_Def => 291, Ada_Anonymous_Type_Access_Def => 292, Ada_Type_Access_Def => 293, Ada_Array_Type_Def => 294, Ada_Derived_Type_Def => 295, Ada_Enum_Type_Def => 296, Ada_Formal_Discrete_Type_Def => 297, Ada_Interface_Type_Def => 298, Ada_Mod_Int_Type_Def => 299, Ada_Private_Type_Def => 300, Ada_Decimal_Fixed_Point_Def => 301, Ada_Floating_Point_Def => 302, Ada_Ordinary_Fixed_Point_Def => 303, Ada_Record_Type_Def => 304, Ada_Signed_Int_Type_Def => 305, Ada_Anonymous_Type => 306, Ada_Enum_Lit_Synth_Type_Expr => 307, Ada_Subtype_Indication => 308, Ada_Constrained_Subtype_Indication => 309, Ada_Discrete_Subtype_Indication => 310, Ada_Synthetic_Type_Expr => 311, Ada_Unconstrained_Array_Index => 312, Ada_Until_Absent => 313, Ada_Until_Present => 314, Ada_Use_Package_Clause => 315, Ada_Use_Type_Clause => 316, Ada_Value_Sequence => 317, Ada_Variant => 318, Ada_Variant_Part => 319, Ada_With_Clause => 320, Ada_With_Private_Absent => 321, Ada_With_Private_Present => 322);
subtype Ada_Ada_Node is Ada_Node_Kind_Type
range Ada_Abort_Absent .. Ada_With_Private_Present;
--% no-document: True
subtype Ada_Abort_Node is Ada_Node_Kind_Type
range Ada_Abort_Absent .. Ada_Abort_Present;
--% no-document: True
subtype Ada_Abort_Absent_Range is Ada_Node_Kind_Type
range Ada_Abort_Absent .. Ada_Abort_Absent;
--% no-document: True
subtype Ada_Abort_Present_Range is Ada_Node_Kind_Type
range Ada_Abort_Present .. Ada_Abort_Present;
--% no-document: True
subtype Ada_Abstract_Node is Ada_Node_Kind_Type
range Ada_Abstract_Absent .. Ada_Abstract_Present;
--% no-document: True
subtype Ada_Abstract_Absent_Range is Ada_Node_Kind_Type
range Ada_Abstract_Absent .. Ada_Abstract_Absent;
--% no-document: True
subtype Ada_Abstract_Present_Range is Ada_Node_Kind_Type
range Ada_Abstract_Present .. Ada_Abstract_Present;
--% no-document: True
subtype Ada_Ada_List is Ada_Node_Kind_Type
range Ada_Ada_Node_List .. Ada_Variant_List;
--% no-document: True
subtype Ada_Ada_Node_List_Range is Ada_Node_Kind_Type
range Ada_Ada_Node_List .. Ada_Stmt_List;
--% no-document: True
subtype Ada_Abstract_State_Decl_List_Range is Ada_Node_Kind_Type
range Ada_Abstract_State_Decl_List .. Ada_Abstract_State_Decl_List;
--% no-document: True
subtype Ada_Alternatives_List_Range is Ada_Node_Kind_Type
range Ada_Alternatives_List .. Ada_Alternatives_List;
--% no-document: True
subtype Ada_Constraint_List_Range is Ada_Node_Kind_Type
range Ada_Constraint_List .. Ada_Constraint_List;
--% no-document: True
subtype Ada_Decl_List_Range is Ada_Node_Kind_Type
range Ada_Decl_List .. Ada_Decl_List;
--% no-document: True
subtype Ada_Stmt_List_Range is Ada_Node_Kind_Type
range Ada_Stmt_List .. Ada_Stmt_List;
--% no-document: True
subtype Ada_Aspect_Assoc_List_Range is Ada_Node_Kind_Type
range Ada_Aspect_Assoc_List .. Ada_Aspect_Assoc_List;
--% no-document: True
subtype Ada_Base_Assoc_List_Range is Ada_Node_Kind_Type
range Ada_Base_Assoc_List .. Ada_Base_Assoc_List;
--% no-document: True
subtype Ada_Basic_Assoc_List is Ada_Node_Kind_Type
range Ada_Assoc_List .. Ada_Assoc_List;
--% no-document: True
subtype Ada_Assoc_List_Range is Ada_Node_Kind_Type
range Ada_Assoc_List .. Ada_Assoc_List;
--% no-document: True
subtype Ada_Basic_Decl_List_Range is Ada_Node_Kind_Type
range Ada_Basic_Decl_List .. Ada_Basic_Decl_List;
--% no-document: True
subtype Ada_Case_Expr_Alternative_List_Range is Ada_Node_Kind_Type
range Ada_Case_Expr_Alternative_List .. Ada_Case_Expr_Alternative_List;
--% no-document: True
subtype Ada_Case_Stmt_Alternative_List_Range is Ada_Node_Kind_Type
range Ada_Case_Stmt_Alternative_List .. Ada_Case_Stmt_Alternative_List;
--% no-document: True
subtype Ada_Compilation_Unit_List_Range is Ada_Node_Kind_Type
range Ada_Compilation_Unit_List .. Ada_Compilation_Unit_List;
--% no-document: True
subtype Ada_Concat_Operand_List_Range is Ada_Node_Kind_Type
range Ada_Concat_Operand_List .. Ada_Concat_Operand_List;
--% no-document: True
subtype Ada_Contract_Case_Assoc_List_Range is Ada_Node_Kind_Type
range Ada_Contract_Case_Assoc_List .. Ada_Contract_Case_Assoc_List;
--% no-document: True
subtype Ada_Defining_Name_List_Range is Ada_Node_Kind_Type
range Ada_Defining_Name_List .. Ada_Defining_Name_List;
--% no-document: True
subtype Ada_Discriminant_Spec_List_Range is Ada_Node_Kind_Type
range Ada_Discriminant_Spec_List .. Ada_Discriminant_Spec_List;
--% no-document: True
subtype Ada_Elsif_Expr_Part_List_Range is Ada_Node_Kind_Type
range Ada_Elsif_Expr_Part_List .. Ada_Elsif_Expr_Part_List;
--% no-document: True
subtype Ada_Elsif_Stmt_Part_List_Range is Ada_Node_Kind_Type
range Ada_Elsif_Stmt_Part_List .. Ada_Elsif_Stmt_Part_List;
--% no-document: True
subtype Ada_Enum_Literal_Decl_List_Range is Ada_Node_Kind_Type
range Ada_Enum_Literal_Decl_List .. Ada_Enum_Literal_Decl_List;
--% no-document: True
subtype Ada_Expr_List is Ada_Node_Kind_Type
range Ada_Expr_Alternatives_List .. Ada_Expr_Alternatives_List;
--% no-document: True
subtype Ada_Expr_Alternatives_List_Range is Ada_Node_Kind_Type
range Ada_Expr_Alternatives_List .. Ada_Expr_Alternatives_List;
--% no-document: True
subtype Ada_Identifier_List is Ada_Node_Kind_Type
range Ada_Discriminant_Choice_List .. Ada_Discriminant_Choice_List;
--% no-document: True
subtype Ada_Discriminant_Choice_List_Range is Ada_Node_Kind_Type
range Ada_Discriminant_Choice_List .. Ada_Discriminant_Choice_List;
--% no-document: True
subtype Ada_Name_List_Range is Ada_Node_Kind_Type
range Ada_Name_List .. Ada_Parent_List;
--% no-document: True
subtype Ada_Parent_List_Range is Ada_Node_Kind_Type
range Ada_Parent_List .. Ada_Parent_List;
--% no-document: True
subtype Ada_Param_Spec_List_Range is Ada_Node_Kind_Type
range Ada_Param_Spec_List .. Ada_Param_Spec_List;
--% no-document: True
subtype Ada_Pragma_Node_List_Range is Ada_Node_Kind_Type
range Ada_Pragma_Node_List .. Ada_Pragma_Node_List;
--% no-document: True
subtype Ada_Select_When_Part_List_Range is Ada_Node_Kind_Type
range Ada_Select_When_Part_List .. Ada_Select_When_Part_List;
--% no-document: True
subtype Ada_Unconstrained_Array_Index_List_Range is Ada_Node_Kind_Type
range Ada_Unconstrained_Array_Index_List .. Ada_Unconstrained_Array_Index_List;
--% no-document: True
subtype Ada_Variant_List_Range is Ada_Node_Kind_Type
range Ada_Variant_List .. Ada_Variant_List;
--% no-document: True
subtype Ada_Aliased_Node is Ada_Node_Kind_Type
range Ada_Aliased_Absent .. Ada_Aliased_Present;
--% no-document: True
subtype Ada_Aliased_Absent_Range is Ada_Node_Kind_Type
range Ada_Aliased_Absent .. Ada_Aliased_Absent;
--% no-document: True
subtype Ada_Aliased_Present_Range is Ada_Node_Kind_Type
range Ada_Aliased_Present .. Ada_Aliased_Present;
--% no-document: True
subtype Ada_All_Node is Ada_Node_Kind_Type
range Ada_All_Absent .. Ada_All_Present;
--% no-document: True
subtype Ada_All_Absent_Range is Ada_Node_Kind_Type
range Ada_All_Absent .. Ada_All_Absent;
--% no-document: True
subtype Ada_All_Present_Range is Ada_Node_Kind_Type
range Ada_All_Present .. Ada_All_Present;
--% no-document: True
subtype Ada_Array_Indices is Ada_Node_Kind_Type
range Ada_Constrained_Array_Indices .. Ada_Unconstrained_Array_Indices;
--% no-document: True
subtype Ada_Constrained_Array_Indices_Range is Ada_Node_Kind_Type
range Ada_Constrained_Array_Indices .. Ada_Constrained_Array_Indices;
--% no-document: True
subtype Ada_Unconstrained_Array_Indices_Range is Ada_Node_Kind_Type
range Ada_Unconstrained_Array_Indices .. Ada_Unconstrained_Array_Indices;
--% no-document: True
subtype Ada_Aspect_Assoc_Range is Ada_Node_Kind_Type
range Ada_Aspect_Assoc .. Ada_Aspect_Assoc;
--% no-document: True
subtype Ada_Aspect_Clause is Ada_Node_Kind_Type
range Ada_At_Clause .. Ada_Record_Rep_Clause;
--% no-document: True
subtype Ada_At_Clause_Range is Ada_Node_Kind_Type
range Ada_At_Clause .. Ada_At_Clause;
--% no-document: True
subtype Ada_Attribute_Def_Clause_Range is Ada_Node_Kind_Type
range Ada_Attribute_Def_Clause .. Ada_Attribute_Def_Clause;
--% no-document: True
subtype Ada_Enum_Rep_Clause_Range is Ada_Node_Kind_Type
range Ada_Enum_Rep_Clause .. Ada_Enum_Rep_Clause;
--% no-document: True
subtype Ada_Record_Rep_Clause_Range is Ada_Node_Kind_Type
range Ada_Record_Rep_Clause .. Ada_Record_Rep_Clause;
--% no-document: True
subtype Ada_Aspect_Spec_Range is Ada_Node_Kind_Type
range Ada_Aspect_Spec .. Ada_Aspect_Spec;
--% no-document: True
subtype Ada_Base_Assoc is Ada_Node_Kind_Type
range Ada_Contract_Case_Assoc .. Ada_Pragma_Argument_Assoc;
--% no-document: True
subtype Ada_Contract_Case_Assoc_Range is Ada_Node_Kind_Type
range Ada_Contract_Case_Assoc .. Ada_Contract_Case_Assoc;
--% no-document: True
subtype Ada_Pragma_Argument_Assoc_Range is Ada_Node_Kind_Type
range Ada_Pragma_Argument_Assoc .. Ada_Pragma_Argument_Assoc;
--% no-document: True
subtype Ada_Base_Formal_Param_Holder is Ada_Node_Kind_Type
range Ada_Entry_Spec .. Ada_Generic_Formal_Part;
--% no-document: True
subtype Ada_Base_Subp_Spec is Ada_Node_Kind_Type
range Ada_Entry_Spec .. Ada_Synthetic_Unary_Spec;
--% no-document: True
subtype Ada_Entry_Spec_Range is Ada_Node_Kind_Type
range Ada_Entry_Spec .. Ada_Entry_Spec;
--% no-document: True
subtype Ada_Enum_Subp_Spec_Range is Ada_Node_Kind_Type
range Ada_Enum_Subp_Spec .. Ada_Enum_Subp_Spec;
--% no-document: True
subtype Ada_Subp_Spec_Range is Ada_Node_Kind_Type
range Ada_Subp_Spec .. Ada_Subp_Spec;
--% no-document: True
subtype Ada_Synthetic_Binary_Spec_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Binary_Spec .. Ada_Synthetic_Binary_Spec;
--% no-document: True
subtype Ada_Synthetic_Unary_Spec_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Unary_Spec .. Ada_Synthetic_Unary_Spec;
--% no-document: True
subtype Ada_Component_List_Range is Ada_Node_Kind_Type
range Ada_Component_List .. Ada_Component_List;
--% no-document: True
subtype Ada_Discriminant_Part is Ada_Node_Kind_Type
range Ada_Known_Discriminant_Part .. Ada_Unknown_Discriminant_Part;
--% no-document: True
subtype Ada_Known_Discriminant_Part_Range is Ada_Node_Kind_Type
range Ada_Known_Discriminant_Part .. Ada_Known_Discriminant_Part;
--% no-document: True
subtype Ada_Unknown_Discriminant_Part_Range is Ada_Node_Kind_Type
range Ada_Unknown_Discriminant_Part .. Ada_Unknown_Discriminant_Part;
--% no-document: True
subtype Ada_Entry_Completion_Formal_Params_Range is Ada_Node_Kind_Type
range Ada_Entry_Completion_Formal_Params .. Ada_Entry_Completion_Formal_Params;
--% no-document: True
subtype Ada_Generic_Formal_Part_Range is Ada_Node_Kind_Type
range Ada_Generic_Formal_Part .. Ada_Generic_Formal_Part;
--% no-document: True
subtype Ada_Base_Record_Def is Ada_Node_Kind_Type
range Ada_Null_Record_Def .. Ada_Record_Def;
--% no-document: True
subtype Ada_Null_Record_Def_Range is Ada_Node_Kind_Type
range Ada_Null_Record_Def .. Ada_Null_Record_Def;
--% no-document: True
subtype Ada_Record_Def_Range is Ada_Node_Kind_Type
range Ada_Record_Def .. Ada_Record_Def;
--% no-document: True
subtype Ada_Basic_Assoc is Ada_Node_Kind_Type
range Ada_Aggregate_Assoc .. Ada_Param_Assoc;
--% no-document: True
subtype Ada_Aggregate_Assoc_Range is Ada_Node_Kind_Type
range Ada_Aggregate_Assoc .. Ada_Multi_Dim_Array_Assoc;
--% no-document: True
subtype Ada_Multi_Dim_Array_Assoc_Range is Ada_Node_Kind_Type
range Ada_Multi_Dim_Array_Assoc .. Ada_Multi_Dim_Array_Assoc;
--% no-document: True
subtype Ada_Composite_Constraint_Assoc_Range is Ada_Node_Kind_Type
range Ada_Composite_Constraint_Assoc .. Ada_Composite_Constraint_Assoc;
--% no-document: True
subtype Ada_Iterated_Assoc_Range is Ada_Node_Kind_Type
range Ada_Iterated_Assoc .. Ada_Iterated_Assoc;
--% no-document: True
subtype Ada_Param_Assoc_Range is Ada_Node_Kind_Type
range Ada_Param_Assoc .. Ada_Param_Assoc;
--% no-document: True
subtype Ada_Basic_Decl is Ada_Node_Kind_Type
range Ada_Abstract_State_Decl .. Ada_Single_Task_Decl;
--% no-document: True
subtype Ada_Abstract_State_Decl_Range is Ada_Node_Kind_Type
range Ada_Abstract_State_Decl .. Ada_Abstract_State_Decl;
--% no-document: True
subtype Ada_Anonymous_Expr_Decl_Range is Ada_Node_Kind_Type
range Ada_Anonymous_Expr_Decl .. Ada_Anonymous_Expr_Decl;
--% no-document: True
subtype Ada_Base_Formal_Param_Decl is Ada_Node_Kind_Type
range Ada_Component_Decl .. Ada_Synthetic_Formal_Param_Decl;
--% no-document: True
subtype Ada_Component_Decl_Range is Ada_Node_Kind_Type
range Ada_Component_Decl .. Ada_Component_Decl;
--% no-document: True
subtype Ada_Discriminant_Spec_Range is Ada_Node_Kind_Type
range Ada_Discriminant_Spec .. Ada_Discriminant_Spec;
--% no-document: True
subtype Ada_Generic_Formal is Ada_Node_Kind_Type
range Ada_Generic_Formal_Obj_Decl .. Ada_Generic_Formal_Type_Decl;
--% no-document: True
subtype Ada_Generic_Formal_Obj_Decl_Range is Ada_Node_Kind_Type
range Ada_Generic_Formal_Obj_Decl .. Ada_Generic_Formal_Obj_Decl;
--% no-document: True
subtype Ada_Generic_Formal_Package_Range is Ada_Node_Kind_Type
range Ada_Generic_Formal_Package .. Ada_Generic_Formal_Package;
--% no-document: True
subtype Ada_Generic_Formal_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Generic_Formal_Subp_Decl .. Ada_Generic_Formal_Subp_Decl;
--% no-document: True
subtype Ada_Generic_Formal_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Generic_Formal_Type_Decl .. Ada_Generic_Formal_Type_Decl;
--% no-document: True
subtype Ada_Param_Spec_Range is Ada_Node_Kind_Type
range Ada_Param_Spec .. Ada_Param_Spec;
--% no-document: True
subtype Ada_Synthetic_Formal_Param_Decl_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Formal_Param_Decl .. Ada_Synthetic_Formal_Param_Decl;
--% no-document: True
subtype Ada_Base_Package_Decl is Ada_Node_Kind_Type
range Ada_Generic_Package_Internal .. Ada_Package_Decl;
--% no-document: True
subtype Ada_Generic_Package_Internal_Range is Ada_Node_Kind_Type
range Ada_Generic_Package_Internal .. Ada_Generic_Package_Internal;
--% no-document: True
subtype Ada_Package_Decl_Range is Ada_Node_Kind_Type
range Ada_Package_Decl .. Ada_Package_Decl;
--% no-document: True
subtype Ada_Base_Type_Decl is Ada_Node_Kind_Type
range Ada_Discrete_Base_Subtype_Decl .. Ada_Formal_Type_Decl;
--% no-document: True
subtype Ada_Base_Subtype_Decl is Ada_Node_Kind_Type
range Ada_Discrete_Base_Subtype_Decl .. Ada_Subtype_Decl;
--% no-document: True
subtype Ada_Discrete_Base_Subtype_Decl_Range is Ada_Node_Kind_Type
range Ada_Discrete_Base_Subtype_Decl .. Ada_Discrete_Base_Subtype_Decl;
--% no-document: True
subtype Ada_Subtype_Decl_Range is Ada_Node_Kind_Type
range Ada_Subtype_Decl .. Ada_Subtype_Decl;
--% no-document: True
subtype Ada_Classwide_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Classwide_Type_Decl .. Ada_Classwide_Type_Decl;
--% no-document: True
subtype Ada_Incomplete_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Incomplete_Type_Decl .. Ada_Incomplete_Tagged_Type_Decl;
--% no-document: True
subtype Ada_Incomplete_Formal_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Incomplete_Formal_Type_Decl .. Ada_Incomplete_Formal_Type_Decl;
--% no-document: True
subtype Ada_Incomplete_Tagged_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Incomplete_Tagged_Type_Decl .. Ada_Incomplete_Tagged_Type_Decl;
--% no-document: True
subtype Ada_Protected_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Protected_Type_Decl .. Ada_Protected_Type_Decl;
--% no-document: True
subtype Ada_Task_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Task_Type_Decl .. Ada_Single_Task_Type_Decl;
--% no-document: True
subtype Ada_Single_Task_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Single_Task_Type_Decl .. Ada_Single_Task_Type_Decl;
--% no-document: True
subtype Ada_Type_Decl is Ada_Node_Kind_Type
range Ada_Anonymous_Type_Decl .. Ada_Formal_Type_Decl;
--% no-document: True
subtype Ada_Anonymous_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Anonymous_Type_Decl .. Ada_Synth_Anonymous_Type_Decl;
--% no-document: True
subtype Ada_Synth_Anonymous_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Synth_Anonymous_Type_Decl .. Ada_Synth_Anonymous_Type_Decl;
--% no-document: True
subtype Ada_Concrete_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Concrete_Type_Decl .. Ada_Concrete_Type_Decl;
--% no-document: True
subtype Ada_Formal_Type_Decl_Range is Ada_Node_Kind_Type
range Ada_Formal_Type_Decl .. Ada_Formal_Type_Decl;
--% no-document: True
subtype Ada_Basic_Subp_Decl is Ada_Node_Kind_Type
range Ada_Abstract_Subp_Decl .. Ada_Synthetic_Subp_Decl;
--% no-document: True
subtype Ada_Classic_Subp_Decl is Ada_Node_Kind_Type
range Ada_Abstract_Subp_Decl .. Ada_Subp_Decl;
--% no-document: True
subtype Ada_Abstract_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Abstract_Subp_Decl .. Ada_Abstract_Subp_Decl;
--% no-document: True
subtype Ada_Formal_Subp_Decl is Ada_Node_Kind_Type
range Ada_Abstract_Formal_Subp_Decl .. Ada_Concrete_Formal_Subp_Decl;
--% no-document: True
subtype Ada_Abstract_Formal_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Abstract_Formal_Subp_Decl .. Ada_Abstract_Formal_Subp_Decl;
--% no-document: True
subtype Ada_Concrete_Formal_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Concrete_Formal_Subp_Decl .. Ada_Concrete_Formal_Subp_Decl;
--% no-document: True
subtype Ada_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Subp_Decl .. Ada_Subp_Decl;
--% no-document: True
subtype Ada_Entry_Decl_Range is Ada_Node_Kind_Type
range Ada_Entry_Decl .. Ada_Entry_Decl;
--% no-document: True
subtype Ada_Enum_Literal_Decl_Range is Ada_Node_Kind_Type
range Ada_Enum_Literal_Decl .. Ada_Synthetic_Char_Enum_Lit;
--% no-document: True
subtype Ada_Synthetic_Char_Enum_Lit_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Char_Enum_Lit .. Ada_Synthetic_Char_Enum_Lit;
--% no-document: True
subtype Ada_Generic_Subp_Internal_Range is Ada_Node_Kind_Type
range Ada_Generic_Subp_Internal .. Ada_Generic_Subp_Internal;
--% no-document: True
subtype Ada_Synthetic_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Subp_Decl .. Ada_Synthetic_Subp_Decl;
--% no-document: True
subtype Ada_Body_Node is Ada_Node_Kind_Type
range Ada_Accept_Stmt_Body .. Ada_Task_Body;
--% no-document: True
subtype Ada_Accept_Stmt_Body_Range is Ada_Node_Kind_Type
range Ada_Accept_Stmt_Body .. Ada_Accept_Stmt_Body;
--% no-document: True
subtype Ada_Base_Subp_Body is Ada_Node_Kind_Type
range Ada_Expr_Function .. Ada_Subp_Renaming_Decl;
--% no-document: True
subtype Ada_Expr_Function_Range is Ada_Node_Kind_Type
range Ada_Expr_Function .. Ada_Expr_Function;
--% no-document: True
subtype Ada_Null_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Null_Subp_Decl .. Ada_Null_Subp_Decl;
--% no-document: True
subtype Ada_Subp_Body_Range is Ada_Node_Kind_Type
range Ada_Subp_Body .. Ada_Subp_Body;
--% no-document: True
subtype Ada_Subp_Renaming_Decl_Range is Ada_Node_Kind_Type
range Ada_Subp_Renaming_Decl .. Ada_Subp_Renaming_Decl;
--% no-document: True
subtype Ada_Body_Stub is Ada_Node_Kind_Type
range Ada_Package_Body_Stub .. Ada_Task_Body_Stub;
--% no-document: True
subtype Ada_Package_Body_Stub_Range is Ada_Node_Kind_Type
range Ada_Package_Body_Stub .. Ada_Package_Body_Stub;
--% no-document: True
subtype Ada_Protected_Body_Stub_Range is Ada_Node_Kind_Type
range Ada_Protected_Body_Stub .. Ada_Protected_Body_Stub;
--% no-document: True
subtype Ada_Subp_Body_Stub_Range is Ada_Node_Kind_Type
range Ada_Subp_Body_Stub .. Ada_Subp_Body_Stub;
--% no-document: True
subtype Ada_Task_Body_Stub_Range is Ada_Node_Kind_Type
range Ada_Task_Body_Stub .. Ada_Task_Body_Stub;
--% no-document: True
subtype Ada_Entry_Body_Range is Ada_Node_Kind_Type
range Ada_Entry_Body .. Ada_Entry_Body;
--% no-document: True
subtype Ada_Package_Body_Range is Ada_Node_Kind_Type
range Ada_Package_Body .. Ada_Package_Body;
--% no-document: True
subtype Ada_Protected_Body_Range is Ada_Node_Kind_Type
range Ada_Protected_Body .. Ada_Protected_Body;
--% no-document: True
subtype Ada_Task_Body_Range is Ada_Node_Kind_Type
range Ada_Task_Body .. Ada_Task_Body;
--% no-document: True
subtype Ada_Entry_Index_Spec_Range is Ada_Node_Kind_Type
range Ada_Entry_Index_Spec .. Ada_Entry_Index_Spec;
--% no-document: True
subtype Ada_Error_Decl_Range is Ada_Node_Kind_Type
range Ada_Error_Decl .. Ada_Error_Decl;
--% no-document: True
subtype Ada_Exception_Decl_Range is Ada_Node_Kind_Type
range Ada_Exception_Decl .. Ada_Exception_Decl;
--% no-document: True
subtype Ada_Exception_Handler_Range is Ada_Node_Kind_Type
range Ada_Exception_Handler .. Ada_Exception_Handler;
--% no-document: True
subtype Ada_For_Loop_Var_Decl_Range is Ada_Node_Kind_Type
range Ada_For_Loop_Var_Decl .. Ada_For_Loop_Var_Decl;
--% no-document: True
subtype Ada_Generic_Decl is Ada_Node_Kind_Type
range Ada_Generic_Package_Decl .. Ada_Generic_Subp_Decl;
--% no-document: True
subtype Ada_Generic_Package_Decl_Range is Ada_Node_Kind_Type
range Ada_Generic_Package_Decl .. Ada_Generic_Package_Decl;
--% no-document: True
subtype Ada_Generic_Subp_Decl_Range is Ada_Node_Kind_Type
range Ada_Generic_Subp_Decl .. Ada_Generic_Subp_Decl;
--% no-document: True
subtype Ada_Generic_Instantiation is Ada_Node_Kind_Type
range Ada_Generic_Package_Instantiation .. Ada_Generic_Subp_Instantiation;
--% no-document: True
subtype Ada_Generic_Package_Instantiation_Range is Ada_Node_Kind_Type
range Ada_Generic_Package_Instantiation .. Ada_Generic_Package_Instantiation;
--% no-document: True
subtype Ada_Generic_Subp_Instantiation_Range is Ada_Node_Kind_Type
range Ada_Generic_Subp_Instantiation .. Ada_Generic_Subp_Instantiation;
--% no-document: True
subtype Ada_Generic_Renaming_Decl is Ada_Node_Kind_Type
range Ada_Generic_Package_Renaming_Decl .. Ada_Generic_Subp_Renaming_Decl;
--% no-document: True
subtype Ada_Generic_Package_Renaming_Decl_Range is Ada_Node_Kind_Type
range Ada_Generic_Package_Renaming_Decl .. Ada_Generic_Package_Renaming_Decl;
--% no-document: True
subtype Ada_Generic_Subp_Renaming_Decl_Range is Ada_Node_Kind_Type
range Ada_Generic_Subp_Renaming_Decl .. Ada_Generic_Subp_Renaming_Decl;
--% no-document: True
subtype Ada_Label_Decl_Range is Ada_Node_Kind_Type
range Ada_Label_Decl .. Ada_Label_Decl;
--% no-document: True
subtype Ada_Named_Stmt_Decl_Range is Ada_Node_Kind_Type
range Ada_Named_Stmt_Decl .. Ada_Named_Stmt_Decl;
--% no-document: True
subtype Ada_Number_Decl_Range is Ada_Node_Kind_Type
range Ada_Number_Decl .. Ada_Number_Decl;
--% no-document: True
subtype Ada_Object_Decl_Range is Ada_Node_Kind_Type
range Ada_Object_Decl .. Ada_No_Type_Object_Renaming_Decl;
--% no-document: True
subtype Ada_Extended_Return_Stmt_Object_Decl_Range is Ada_Node_Kind_Type
range Ada_Extended_Return_Stmt_Object_Decl .. Ada_Extended_Return_Stmt_Object_Decl;
--% no-document: True
subtype Ada_No_Type_Object_Renaming_Decl_Range is Ada_Node_Kind_Type
range Ada_No_Type_Object_Renaming_Decl .. Ada_No_Type_Object_Renaming_Decl;
--% no-document: True
subtype Ada_Package_Renaming_Decl_Range is Ada_Node_Kind_Type
range Ada_Package_Renaming_Decl .. Ada_Package_Renaming_Decl;
--% no-document: True
subtype Ada_Single_Protected_Decl_Range is Ada_Node_Kind_Type
range Ada_Single_Protected_Decl .. Ada_Single_Protected_Decl;
--% no-document: True
subtype Ada_Single_Task_Decl_Range is Ada_Node_Kind_Type
range Ada_Single_Task_Decl .. Ada_Single_Task_Decl;
--% no-document: True
subtype Ada_Case_Stmt_Alternative_Range is Ada_Node_Kind_Type
range Ada_Case_Stmt_Alternative .. Ada_Case_Stmt_Alternative;
--% no-document: True
subtype Ada_Compilation_Unit_Range is Ada_Node_Kind_Type
range Ada_Compilation_Unit .. Ada_Compilation_Unit;
--% no-document: True
subtype Ada_Component_Clause_Range is Ada_Node_Kind_Type
range Ada_Component_Clause .. Ada_Component_Clause;
--% no-document: True
subtype Ada_Component_Def_Range is Ada_Node_Kind_Type
range Ada_Component_Def .. Ada_Component_Def;
--% no-document: True
subtype Ada_Constant_Node is Ada_Node_Kind_Type
range Ada_Constant_Absent .. Ada_Constant_Present;
--% no-document: True
subtype Ada_Constant_Absent_Range is Ada_Node_Kind_Type
range Ada_Constant_Absent .. Ada_Constant_Absent;
--% no-document: True
subtype Ada_Constant_Present_Range is Ada_Node_Kind_Type
range Ada_Constant_Present .. Ada_Constant_Present;
--% no-document: True
subtype Ada_Constraint is Ada_Node_Kind_Type
range Ada_Composite_Constraint .. Ada_Range_Constraint;
--% no-document: True
subtype Ada_Composite_Constraint_Range is Ada_Node_Kind_Type
range Ada_Composite_Constraint .. Ada_Composite_Constraint;
--% no-document: True
subtype Ada_Delta_Constraint_Range is Ada_Node_Kind_Type
range Ada_Delta_Constraint .. Ada_Delta_Constraint;
--% no-document: True
subtype Ada_Digits_Constraint_Range is Ada_Node_Kind_Type
range Ada_Digits_Constraint .. Ada_Digits_Constraint;
--% no-document: True
subtype Ada_Range_Constraint_Range is Ada_Node_Kind_Type
range Ada_Range_Constraint .. Ada_Range_Constraint;
--% no-document: True
subtype Ada_Declarative_Part_Range is Ada_Node_Kind_Type
range Ada_Declarative_Part .. Ada_Public_Part;
--% no-document: True
subtype Ada_Private_Part_Range is Ada_Node_Kind_Type
range Ada_Private_Part .. Ada_Private_Part;
--% no-document: True
subtype Ada_Public_Part_Range is Ada_Node_Kind_Type
range Ada_Public_Part .. Ada_Public_Part;
--% no-document: True
subtype Ada_Elsif_Expr_Part_Range is Ada_Node_Kind_Type
range Ada_Elsif_Expr_Part .. Ada_Elsif_Expr_Part;
--% no-document: True
subtype Ada_Elsif_Stmt_Part_Range is Ada_Node_Kind_Type
range Ada_Elsif_Stmt_Part .. Ada_Elsif_Stmt_Part;
--% no-document: True
subtype Ada_Expr is Ada_Node_Kind_Type
range Ada_Abstract_State_Decl_Expr .. Ada_Un_Op;
--% no-document: True
subtype Ada_Abstract_State_Decl_Expr_Range is Ada_Node_Kind_Type
range Ada_Abstract_State_Decl_Expr .. Ada_Abstract_State_Decl_Expr;
--% no-document: True
subtype Ada_Allocator_Range is Ada_Node_Kind_Type
range Ada_Allocator .. Ada_Allocator;
--% no-document: True
subtype Ada_Base_Aggregate is Ada_Node_Kind_Type
range Ada_Aggregate .. Ada_Null_Record_Aggregate;
--% no-document: True
subtype Ada_Aggregate_Range is Ada_Node_Kind_Type
range Ada_Aggregate .. Ada_Bracket_Aggregate;
--% no-document: True
subtype Ada_Bracket_Aggregate_Range is Ada_Node_Kind_Type
range Ada_Bracket_Aggregate .. Ada_Bracket_Aggregate;
--% no-document: True
subtype Ada_Delta_Aggregate_Range is Ada_Node_Kind_Type
range Ada_Delta_Aggregate .. Ada_Bracket_Delta_Aggregate;
--% no-document: True
subtype Ada_Bracket_Delta_Aggregate_Range is Ada_Node_Kind_Type
range Ada_Bracket_Delta_Aggregate .. Ada_Bracket_Delta_Aggregate;
--% no-document: True
subtype Ada_Null_Record_Aggregate_Range is Ada_Node_Kind_Type
range Ada_Null_Record_Aggregate .. Ada_Null_Record_Aggregate;
--% no-document: True
subtype Ada_Bin_Op_Range is Ada_Node_Kind_Type
range Ada_Bin_Op .. Ada_Relation_Op;
--% no-document: True
subtype Ada_Relation_Op_Range is Ada_Node_Kind_Type
range Ada_Relation_Op .. Ada_Relation_Op;
--% no-document: True
subtype Ada_Box_Expr_Range is Ada_Node_Kind_Type
range Ada_Box_Expr .. Ada_Box_Expr;
--% no-document: True
subtype Ada_Case_Expr_Alternative_Range is Ada_Node_Kind_Type
range Ada_Case_Expr_Alternative .. Ada_Case_Expr_Alternative;
--% no-document: True
subtype Ada_Concat_Op_Range is Ada_Node_Kind_Type
range Ada_Concat_Op .. Ada_Concat_Op;
--% no-document: True
subtype Ada_Concat_Operand_Range is Ada_Node_Kind_Type
range Ada_Concat_Operand .. Ada_Concat_Operand;
--% no-document: True
subtype Ada_Cond_Expr is Ada_Node_Kind_Type
range Ada_Case_Expr .. Ada_If_Expr;
--% no-document: True
subtype Ada_Case_Expr_Range is Ada_Node_Kind_Type
range Ada_Case_Expr .. Ada_Case_Expr;
--% no-document: True
subtype Ada_If_Expr_Range is Ada_Node_Kind_Type
range Ada_If_Expr .. Ada_If_Expr;
--% no-document: True
subtype Ada_Contract_Cases_Range is Ada_Node_Kind_Type
range Ada_Contract_Cases .. Ada_Contract_Cases;
--% no-document: True
subtype Ada_Decl_Expr_Range is Ada_Node_Kind_Type
range Ada_Decl_Expr .. Ada_Decl_Expr;
--% no-document: True
subtype Ada_Membership_Expr_Range is Ada_Node_Kind_Type
range Ada_Membership_Expr .. Ada_Membership_Expr;
--% no-document: True
subtype Ada_Name is Ada_Node_Kind_Type
range Ada_Attribute_Ref .. Ada_Update_Attribute_Ref;
--% no-document: True
subtype Ada_Attribute_Ref_Range is Ada_Node_Kind_Type
range Ada_Attribute_Ref .. Ada_Attribute_Ref;
--% no-document: True
subtype Ada_Call_Expr_Range is Ada_Node_Kind_Type
range Ada_Call_Expr .. Ada_Call_Expr;
--% no-document: True
subtype Ada_Defining_Name_Range is Ada_Node_Kind_Type
range Ada_Defining_Name .. Ada_Synthetic_Defining_Name;
--% no-document: True
subtype Ada_Synthetic_Defining_Name_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Defining_Name .. Ada_Synthetic_Defining_Name;
--% no-document: True
subtype Ada_Discrete_Subtype_Name_Range is Ada_Node_Kind_Type
range Ada_Discrete_Subtype_Name .. Ada_Discrete_Subtype_Name;
--% no-document: True
subtype Ada_Dotted_Name_Range is Ada_Node_Kind_Type
range Ada_Dotted_Name .. Ada_Dotted_Name;
--% no-document: True
subtype Ada_End_Name_Range is Ada_Node_Kind_Type
range Ada_End_Name .. Ada_End_Name;
--% no-document: True
subtype Ada_Explicit_Deref_Range is Ada_Node_Kind_Type
range Ada_Explicit_Deref .. Ada_Explicit_Deref;
--% no-document: True
subtype Ada_Qual_Expr_Range is Ada_Node_Kind_Type
range Ada_Qual_Expr .. Ada_Qual_Expr;
--% no-document: True
subtype Ada_Reduce_Attribute_Ref_Range is Ada_Node_Kind_Type
range Ada_Reduce_Attribute_Ref .. Ada_Reduce_Attribute_Ref;
--% no-document: True
subtype Ada_Single_Tok_Node is Ada_Node_Kind_Type
range Ada_Char_Literal .. Ada_Real_Literal;
--% no-document: True
subtype Ada_Base_Id is Ada_Node_Kind_Type
range Ada_Char_Literal .. Ada_String_Literal;
--% no-document: True
subtype Ada_Char_Literal_Range is Ada_Node_Kind_Type
range Ada_Char_Literal .. Ada_Char_Literal;
--% no-document: True
subtype Ada_Identifier_Range is Ada_Node_Kind_Type
range Ada_Identifier .. Ada_Identifier;
--% no-document: True
subtype Ada_Op is Ada_Node_Kind_Type
range Ada_Op_Abs .. Ada_Op_Xor;
--% no-document: True
subtype Ada_Op_Abs_Range is Ada_Node_Kind_Type
range Ada_Op_Abs .. Ada_Op_Abs;
--% no-document: True
subtype Ada_Op_And_Range is Ada_Node_Kind_Type
range Ada_Op_And .. Ada_Op_And;
--% no-document: True
subtype Ada_Op_And_Then_Range is Ada_Node_Kind_Type
range Ada_Op_And_Then .. Ada_Op_And_Then;
--% no-document: True
subtype Ada_Op_Concat_Range is Ada_Node_Kind_Type
range Ada_Op_Concat .. Ada_Op_Concat;
--% no-document: True
subtype Ada_Op_Div_Range is Ada_Node_Kind_Type
range Ada_Op_Div .. Ada_Op_Div;
--% no-document: True
subtype Ada_Op_Double_Dot_Range is Ada_Node_Kind_Type
range Ada_Op_Double_Dot .. Ada_Op_Double_Dot;
--% no-document: True
subtype Ada_Op_Eq_Range is Ada_Node_Kind_Type
range Ada_Op_Eq .. Ada_Op_Eq;
--% no-document: True
subtype Ada_Op_Gt_Range is Ada_Node_Kind_Type
range Ada_Op_Gt .. Ada_Op_Gt;
--% no-document: True
subtype Ada_Op_Gte_Range is Ada_Node_Kind_Type
range Ada_Op_Gte .. Ada_Op_Gte;
--% no-document: True
subtype Ada_Op_In_Range is Ada_Node_Kind_Type
range Ada_Op_In .. Ada_Op_In;
--% no-document: True
subtype Ada_Op_Lt_Range is Ada_Node_Kind_Type
range Ada_Op_Lt .. Ada_Op_Lt;
--% no-document: True
subtype Ada_Op_Lte_Range is Ada_Node_Kind_Type
range Ada_Op_Lte .. Ada_Op_Lte;
--% no-document: True
subtype Ada_Op_Minus_Range is Ada_Node_Kind_Type
range Ada_Op_Minus .. Ada_Op_Minus;
--% no-document: True
subtype Ada_Op_Mod_Range is Ada_Node_Kind_Type
range Ada_Op_Mod .. Ada_Op_Mod;
--% no-document: True
subtype Ada_Op_Mult_Range is Ada_Node_Kind_Type
range Ada_Op_Mult .. Ada_Op_Mult;
--% no-document: True
subtype Ada_Op_Neq_Range is Ada_Node_Kind_Type
range Ada_Op_Neq .. Ada_Op_Neq;
--% no-document: True
subtype Ada_Op_Not_Range is Ada_Node_Kind_Type
range Ada_Op_Not .. Ada_Op_Not;
--% no-document: True
subtype Ada_Op_Not_In_Range is Ada_Node_Kind_Type
range Ada_Op_Not_In .. Ada_Op_Not_In;
--% no-document: True
subtype Ada_Op_Or_Range is Ada_Node_Kind_Type
range Ada_Op_Or .. Ada_Op_Or;
--% no-document: True
subtype Ada_Op_Or_Else_Range is Ada_Node_Kind_Type
range Ada_Op_Or_Else .. Ada_Op_Or_Else;
--% no-document: True
subtype Ada_Op_Plus_Range is Ada_Node_Kind_Type
range Ada_Op_Plus .. Ada_Op_Plus;
--% no-document: True
subtype Ada_Op_Pow_Range is Ada_Node_Kind_Type
range Ada_Op_Pow .. Ada_Op_Pow;
--% no-document: True
subtype Ada_Op_Rem_Range is Ada_Node_Kind_Type
range Ada_Op_Rem .. Ada_Op_Rem;
--% no-document: True
subtype Ada_Op_Xor_Range is Ada_Node_Kind_Type
range Ada_Op_Xor .. Ada_Op_Xor;
--% no-document: True
subtype Ada_String_Literal_Range is Ada_Node_Kind_Type
range Ada_String_Literal .. Ada_String_Literal;
--% no-document: True
subtype Ada_Null_Literal_Range is Ada_Node_Kind_Type
range Ada_Null_Literal .. Ada_Null_Literal;
--% no-document: True
subtype Ada_Num_Literal is Ada_Node_Kind_Type
range Ada_Int_Literal .. Ada_Real_Literal;
--% no-document: True
subtype Ada_Int_Literal_Range is Ada_Node_Kind_Type
range Ada_Int_Literal .. Ada_Int_Literal;
--% no-document: True
subtype Ada_Real_Literal_Range is Ada_Node_Kind_Type
range Ada_Real_Literal .. Ada_Real_Literal;
--% no-document: True
subtype Ada_Synthetic_Identifier_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Identifier .. Ada_Synthetic_Identifier;
--% no-document: True
subtype Ada_Target_Name_Range is Ada_Node_Kind_Type
range Ada_Target_Name .. Ada_Target_Name;
--% no-document: True
subtype Ada_Update_Attribute_Ref_Range is Ada_Node_Kind_Type
range Ada_Update_Attribute_Ref .. Ada_Update_Attribute_Ref;
--% no-document: True
subtype Ada_Paren_Expr_Range is Ada_Node_Kind_Type
range Ada_Paren_Expr .. Ada_Paren_Expr;
--% no-document: True
subtype Ada_Quantified_Expr_Range is Ada_Node_Kind_Type
range Ada_Quantified_Expr .. Ada_Quantified_Expr;
--% no-document: True
subtype Ada_Raise_Expr_Range is Ada_Node_Kind_Type
range Ada_Raise_Expr .. Ada_Raise_Expr;
--% no-document: True
subtype Ada_Un_Op_Range is Ada_Node_Kind_Type
range Ada_Un_Op .. Ada_Un_Op;
--% no-document: True
subtype Ada_Handled_Stmts_Range is Ada_Node_Kind_Type
range Ada_Handled_Stmts .. Ada_Handled_Stmts;
--% no-document: True
subtype Ada_Interface_Kind is Ada_Node_Kind_Type
range Ada_Interface_Kind_Limited .. Ada_Interface_Kind_Task;
--% no-document: True
subtype Ada_Interface_Kind_Limited_Range is Ada_Node_Kind_Type
range Ada_Interface_Kind_Limited .. Ada_Interface_Kind_Limited;
--% no-document: True
subtype Ada_Interface_Kind_Protected_Range is Ada_Node_Kind_Type
range Ada_Interface_Kind_Protected .. Ada_Interface_Kind_Protected;
--% no-document: True
subtype Ada_Interface_Kind_Synchronized_Range is Ada_Node_Kind_Type
range Ada_Interface_Kind_Synchronized .. Ada_Interface_Kind_Synchronized;
--% no-document: True
subtype Ada_Interface_Kind_Task_Range is Ada_Node_Kind_Type
range Ada_Interface_Kind_Task .. Ada_Interface_Kind_Task;
--% no-document: True
subtype Ada_Iter_Type is Ada_Node_Kind_Type
range Ada_Iter_Type_In .. Ada_Iter_Type_Of;
--% no-document: True
subtype Ada_Iter_Type_In_Range is Ada_Node_Kind_Type
range Ada_Iter_Type_In .. Ada_Iter_Type_In;
--% no-document: True
subtype Ada_Iter_Type_Of_Range is Ada_Node_Kind_Type
range Ada_Iter_Type_Of .. Ada_Iter_Type_Of;
--% no-document: True
subtype Ada_Library_Item_Range is Ada_Node_Kind_Type
range Ada_Library_Item .. Ada_Library_Item;
--% no-document: True
subtype Ada_Limited_Node is Ada_Node_Kind_Type
range Ada_Limited_Absent .. Ada_Limited_Present;
--% no-document: True
subtype Ada_Limited_Absent_Range is Ada_Node_Kind_Type
range Ada_Limited_Absent .. Ada_Limited_Absent;
--% no-document: True
subtype Ada_Limited_Present_Range is Ada_Node_Kind_Type
range Ada_Limited_Present .. Ada_Limited_Present;
--% no-document: True
subtype Ada_Loop_Spec is Ada_Node_Kind_Type
range Ada_For_Loop_Spec .. Ada_While_Loop_Spec;
--% no-document: True
subtype Ada_For_Loop_Spec_Range is Ada_Node_Kind_Type
range Ada_For_Loop_Spec .. Ada_For_Loop_Spec;
--% no-document: True
subtype Ada_While_Loop_Spec_Range is Ada_Node_Kind_Type
range Ada_While_Loop_Spec .. Ada_While_Loop_Spec;
--% no-document: True
subtype Ada_Mode is Ada_Node_Kind_Type
range Ada_Mode_Default .. Ada_Mode_Out;
--% no-document: True
subtype Ada_Mode_Default_Range is Ada_Node_Kind_Type
range Ada_Mode_Default .. Ada_Mode_Default;
--% no-document: True
subtype Ada_Mode_In_Range is Ada_Node_Kind_Type
range Ada_Mode_In .. Ada_Mode_In;
--% no-document: True
subtype Ada_Mode_In_Out_Range is Ada_Node_Kind_Type
range Ada_Mode_In_Out .. Ada_Mode_In_Out;
--% no-document: True
subtype Ada_Mode_Out_Range is Ada_Node_Kind_Type
range Ada_Mode_Out .. Ada_Mode_Out;
--% no-document: True
subtype Ada_Multi_Abstract_State_Decl_Range is Ada_Node_Kind_Type
range Ada_Multi_Abstract_State_Decl .. Ada_Multi_Abstract_State_Decl;
--% no-document: True
subtype Ada_Not_Null is Ada_Node_Kind_Type
range Ada_Not_Null_Absent .. Ada_Not_Null_Present;
--% no-document: True
subtype Ada_Not_Null_Absent_Range is Ada_Node_Kind_Type
range Ada_Not_Null_Absent .. Ada_Not_Null_Absent;
--% no-document: True
subtype Ada_Not_Null_Present_Range is Ada_Node_Kind_Type
range Ada_Not_Null_Present .. Ada_Not_Null_Present;
--% no-document: True
subtype Ada_Null_Component_Decl_Range is Ada_Node_Kind_Type
range Ada_Null_Component_Decl .. Ada_Null_Component_Decl;
--% no-document: True
subtype Ada_Others_Designator_Range is Ada_Node_Kind_Type
range Ada_Others_Designator .. Ada_Others_Designator;
--% no-document: True
subtype Ada_Overriding_Node is Ada_Node_Kind_Type
range Ada_Overriding_Not_Overriding .. Ada_Overriding_Unspecified;
--% no-document: True
subtype Ada_Overriding_Not_Overriding_Range is Ada_Node_Kind_Type
range Ada_Overriding_Not_Overriding .. Ada_Overriding_Not_Overriding;
--% no-document: True
subtype Ada_Overriding_Overriding_Range is Ada_Node_Kind_Type
range Ada_Overriding_Overriding .. Ada_Overriding_Overriding;
--% no-document: True
subtype Ada_Overriding_Unspecified_Range is Ada_Node_Kind_Type
range Ada_Overriding_Unspecified .. Ada_Overriding_Unspecified;
--% no-document: True
subtype Ada_Params_Range is Ada_Node_Kind_Type
range Ada_Params .. Ada_Params;
--% no-document: True
subtype Ada_Paren_Abstract_State_Decl_Range is Ada_Node_Kind_Type
range Ada_Paren_Abstract_State_Decl .. Ada_Paren_Abstract_State_Decl;
--% no-document: True
subtype Ada_Pp_Directive is Ada_Node_Kind_Type
range Ada_Pp_Else_Directive .. Ada_Pp_If_Directive;
--% no-document: True
subtype Ada_Pp_Else_Directive_Range is Ada_Node_Kind_Type
range Ada_Pp_Else_Directive .. Ada_Pp_Else_Directive;
--% no-document: True
subtype Ada_Pp_Elsif_Directive_Range is Ada_Node_Kind_Type
range Ada_Pp_Elsif_Directive .. Ada_Pp_Elsif_Directive;
--% no-document: True
subtype Ada_Pp_End_If_Directive_Range is Ada_Node_Kind_Type
range Ada_Pp_End_If_Directive .. Ada_Pp_End_If_Directive;
--% no-document: True
subtype Ada_Pp_If_Directive_Range is Ada_Node_Kind_Type
range Ada_Pp_If_Directive .. Ada_Pp_If_Directive;
--% no-document: True
subtype Ada_Pp_Then_Kw_Range is Ada_Node_Kind_Type
range Ada_Pp_Then_Kw .. Ada_Pp_Then_Kw;
--% no-document: True
subtype Ada_Pragma_Node_Range is Ada_Node_Kind_Type
range Ada_Pragma_Node .. Ada_Pragma_Node;
--% no-document: True
subtype Ada_Private_Node is Ada_Node_Kind_Type
range Ada_Private_Absent .. Ada_Private_Present;
--% no-document: True
subtype Ada_Private_Absent_Range is Ada_Node_Kind_Type
range Ada_Private_Absent .. Ada_Private_Absent;
--% no-document: True
subtype Ada_Private_Present_Range is Ada_Node_Kind_Type
range Ada_Private_Present .. Ada_Private_Present;
--% no-document: True
subtype Ada_Protected_Def_Range is Ada_Node_Kind_Type
range Ada_Protected_Def .. Ada_Protected_Def;
--% no-document: True
subtype Ada_Protected_Node is Ada_Node_Kind_Type
range Ada_Protected_Absent .. Ada_Protected_Present;
--% no-document: True
subtype Ada_Protected_Absent_Range is Ada_Node_Kind_Type
range Ada_Protected_Absent .. Ada_Protected_Absent;
--% no-document: True
subtype Ada_Protected_Present_Range is Ada_Node_Kind_Type
range Ada_Protected_Present .. Ada_Protected_Present;
--% no-document: True
subtype Ada_Quantifier is Ada_Node_Kind_Type
range Ada_Quantifier_All .. Ada_Quantifier_Some;
--% no-document: True
subtype Ada_Quantifier_All_Range is Ada_Node_Kind_Type
range Ada_Quantifier_All .. Ada_Quantifier_All;
--% no-document: True
subtype Ada_Quantifier_Some_Range is Ada_Node_Kind_Type
range Ada_Quantifier_Some .. Ada_Quantifier_Some;
--% no-document: True
subtype Ada_Range_Spec_Range is Ada_Node_Kind_Type
range Ada_Range_Spec .. Ada_Range_Spec;
--% no-document: True
subtype Ada_Renaming_Clause_Range is Ada_Node_Kind_Type
range Ada_Renaming_Clause .. Ada_Synthetic_Renaming_Clause;
--% no-document: True
subtype Ada_Synthetic_Renaming_Clause_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Renaming_Clause .. Ada_Synthetic_Renaming_Clause;
--% no-document: True
subtype Ada_Reverse_Node is Ada_Node_Kind_Type
range Ada_Reverse_Absent .. Ada_Reverse_Present;
--% no-document: True
subtype Ada_Reverse_Absent_Range is Ada_Node_Kind_Type
range Ada_Reverse_Absent .. Ada_Reverse_Absent;
--% no-document: True
subtype Ada_Reverse_Present_Range is Ada_Node_Kind_Type
range Ada_Reverse_Present .. Ada_Reverse_Present;
--% no-document: True
subtype Ada_Select_When_Part_Range is Ada_Node_Kind_Type
range Ada_Select_When_Part .. Ada_Select_When_Part;
--% no-document: True
subtype Ada_Stmt is Ada_Node_Kind_Type
range Ada_Accept_Stmt .. Ada_Terminate_Alternative;
--% no-document: True
subtype Ada_Composite_Stmt is Ada_Node_Kind_Type
range Ada_Accept_Stmt .. Ada_Select_Stmt;
--% no-document: True
subtype Ada_Accept_Stmt_Range is Ada_Node_Kind_Type
range Ada_Accept_Stmt .. Ada_Accept_Stmt_With_Stmts;
--% no-document: True
subtype Ada_Accept_Stmt_With_Stmts_Range is Ada_Node_Kind_Type
range Ada_Accept_Stmt_With_Stmts .. Ada_Accept_Stmt_With_Stmts;
--% no-document: True
subtype Ada_Base_Loop_Stmt is Ada_Node_Kind_Type
range Ada_For_Loop_Stmt .. Ada_While_Loop_Stmt;
--% no-document: True
subtype Ada_For_Loop_Stmt_Range is Ada_Node_Kind_Type
range Ada_For_Loop_Stmt .. Ada_For_Loop_Stmt;
--% no-document: True
subtype Ada_Loop_Stmt_Range is Ada_Node_Kind_Type
range Ada_Loop_Stmt .. Ada_Loop_Stmt;
--% no-document: True
subtype Ada_While_Loop_Stmt_Range is Ada_Node_Kind_Type
range Ada_While_Loop_Stmt .. Ada_While_Loop_Stmt;
--% no-document: True
subtype Ada_Block_Stmt is Ada_Node_Kind_Type
range Ada_Begin_Block .. Ada_Decl_Block;
--% no-document: True
subtype Ada_Begin_Block_Range is Ada_Node_Kind_Type
range Ada_Begin_Block .. Ada_Begin_Block;
--% no-document: True
subtype Ada_Decl_Block_Range is Ada_Node_Kind_Type
range Ada_Decl_Block .. Ada_Decl_Block;
--% no-document: True
subtype Ada_Case_Stmt_Range is Ada_Node_Kind_Type
range Ada_Case_Stmt .. Ada_Case_Stmt;
--% no-document: True
subtype Ada_Extended_Return_Stmt_Range is Ada_Node_Kind_Type
range Ada_Extended_Return_Stmt .. Ada_Extended_Return_Stmt;
--% no-document: True
subtype Ada_If_Stmt_Range is Ada_Node_Kind_Type
range Ada_If_Stmt .. Ada_If_Stmt;
--% no-document: True
subtype Ada_Named_Stmt_Range is Ada_Node_Kind_Type
range Ada_Named_Stmt .. Ada_Named_Stmt;
--% no-document: True
subtype Ada_Select_Stmt_Range is Ada_Node_Kind_Type
range Ada_Select_Stmt .. Ada_Select_Stmt;
--% no-document: True
subtype Ada_Error_Stmt_Range is Ada_Node_Kind_Type
range Ada_Error_Stmt .. Ada_Error_Stmt;
--% no-document: True
subtype Ada_Simple_Stmt is Ada_Node_Kind_Type
range Ada_Abort_Stmt .. Ada_Terminate_Alternative;
--% no-document: True
subtype Ada_Abort_Stmt_Range is Ada_Node_Kind_Type
range Ada_Abort_Stmt .. Ada_Abort_Stmt;
--% no-document: True
subtype Ada_Assign_Stmt_Range is Ada_Node_Kind_Type
range Ada_Assign_Stmt .. Ada_Assign_Stmt;
--% no-document: True
subtype Ada_Call_Stmt_Range is Ada_Node_Kind_Type
range Ada_Call_Stmt .. Ada_Call_Stmt;
--% no-document: True
subtype Ada_Delay_Stmt_Range is Ada_Node_Kind_Type
range Ada_Delay_Stmt .. Ada_Delay_Stmt;
--% no-document: True
subtype Ada_Exit_Stmt_Range is Ada_Node_Kind_Type
range Ada_Exit_Stmt .. Ada_Exit_Stmt;
--% no-document: True
subtype Ada_Goto_Stmt_Range is Ada_Node_Kind_Type
range Ada_Goto_Stmt .. Ada_Goto_Stmt;
--% no-document: True
subtype Ada_Label_Range is Ada_Node_Kind_Type
range Ada_Label .. Ada_Label;
--% no-document: True
subtype Ada_Null_Stmt_Range is Ada_Node_Kind_Type
range Ada_Null_Stmt .. Ada_Null_Stmt;
--% no-document: True
subtype Ada_Raise_Stmt_Range is Ada_Node_Kind_Type
range Ada_Raise_Stmt .. Ada_Raise_Stmt;
--% no-document: True
subtype Ada_Requeue_Stmt_Range is Ada_Node_Kind_Type
range Ada_Requeue_Stmt .. Ada_Requeue_Stmt;
--% no-document: True
subtype Ada_Return_Stmt_Range is Ada_Node_Kind_Type
range Ada_Return_Stmt .. Ada_Return_Stmt;
--% no-document: True
subtype Ada_Terminate_Alternative_Range is Ada_Node_Kind_Type
range Ada_Terminate_Alternative .. Ada_Terminate_Alternative;
--% no-document: True
subtype Ada_Subp_Kind is Ada_Node_Kind_Type
range Ada_Subp_Kind_Function .. Ada_Subp_Kind_Procedure;
--% no-document: True
subtype Ada_Subp_Kind_Function_Range is Ada_Node_Kind_Type
range Ada_Subp_Kind_Function .. Ada_Subp_Kind_Function;
--% no-document: True
subtype Ada_Subp_Kind_Procedure_Range is Ada_Node_Kind_Type
range Ada_Subp_Kind_Procedure .. Ada_Subp_Kind_Procedure;
--% no-document: True
subtype Ada_Subunit_Range is Ada_Node_Kind_Type
range Ada_Subunit .. Ada_Subunit;
--% no-document: True
subtype Ada_Synchronized_Node is Ada_Node_Kind_Type
range Ada_Synchronized_Absent .. Ada_Synchronized_Present;
--% no-document: True
subtype Ada_Synchronized_Absent_Range is Ada_Node_Kind_Type
range Ada_Synchronized_Absent .. Ada_Synchronized_Absent;
--% no-document: True
subtype Ada_Synchronized_Present_Range is Ada_Node_Kind_Type
range Ada_Synchronized_Present .. Ada_Synchronized_Present;
--% no-document: True
subtype Ada_Tagged_Node is Ada_Node_Kind_Type
range Ada_Tagged_Absent .. Ada_Tagged_Present;
--% no-document: True
subtype Ada_Tagged_Absent_Range is Ada_Node_Kind_Type
range Ada_Tagged_Absent .. Ada_Tagged_Absent;
--% no-document: True
subtype Ada_Tagged_Present_Range is Ada_Node_Kind_Type
range Ada_Tagged_Present .. Ada_Tagged_Present;
--% no-document: True
subtype Ada_Task_Def_Range is Ada_Node_Kind_Type
range Ada_Task_Def .. Ada_Task_Def;
--% no-document: True
subtype Ada_Type_Attributes_Repository_Range is Ada_Node_Kind_Type
range Ada_Type_Attributes_Repository .. Ada_Type_Attributes_Repository;
--% no-document: True
subtype Ada_Type_Def is Ada_Node_Kind_Type
range Ada_Access_To_Subp_Def .. Ada_Signed_Int_Type_Def;
--% no-document: True
subtype Ada_Access_Def is Ada_Node_Kind_Type
range Ada_Access_To_Subp_Def .. Ada_Type_Access_Def;
--% no-document: True
subtype Ada_Access_To_Subp_Def_Range is Ada_Node_Kind_Type
range Ada_Access_To_Subp_Def .. Ada_Access_To_Subp_Def;
--% no-document: True
subtype Ada_Base_Type_Access_Def is Ada_Node_Kind_Type
range Ada_Anonymous_Type_Access_Def .. Ada_Type_Access_Def;
--% no-document: True
subtype Ada_Anonymous_Type_Access_Def_Range is Ada_Node_Kind_Type
range Ada_Anonymous_Type_Access_Def .. Ada_Anonymous_Type_Access_Def;
--% no-document: True
subtype Ada_Type_Access_Def_Range is Ada_Node_Kind_Type
range Ada_Type_Access_Def .. Ada_Type_Access_Def;
--% no-document: True
subtype Ada_Array_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Array_Type_Def .. Ada_Array_Type_Def;
--% no-document: True
subtype Ada_Derived_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Derived_Type_Def .. Ada_Derived_Type_Def;
--% no-document: True
subtype Ada_Enum_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Enum_Type_Def .. Ada_Enum_Type_Def;
--% no-document: True
subtype Ada_Formal_Discrete_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Formal_Discrete_Type_Def .. Ada_Formal_Discrete_Type_Def;
--% no-document: True
subtype Ada_Interface_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Interface_Type_Def .. Ada_Interface_Type_Def;
--% no-document: True
subtype Ada_Mod_Int_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Mod_Int_Type_Def .. Ada_Mod_Int_Type_Def;
--% no-document: True
subtype Ada_Private_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Private_Type_Def .. Ada_Private_Type_Def;
--% no-document: True
subtype Ada_Real_Type_Def is Ada_Node_Kind_Type
range Ada_Decimal_Fixed_Point_Def .. Ada_Ordinary_Fixed_Point_Def;
--% no-document: True
subtype Ada_Decimal_Fixed_Point_Def_Range is Ada_Node_Kind_Type
range Ada_Decimal_Fixed_Point_Def .. Ada_Decimal_Fixed_Point_Def;
--% no-document: True
subtype Ada_Floating_Point_Def_Range is Ada_Node_Kind_Type
range Ada_Floating_Point_Def .. Ada_Floating_Point_Def;
--% no-document: True
subtype Ada_Ordinary_Fixed_Point_Def_Range is Ada_Node_Kind_Type
range Ada_Ordinary_Fixed_Point_Def .. Ada_Ordinary_Fixed_Point_Def;
--% no-document: True
subtype Ada_Record_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Record_Type_Def .. Ada_Record_Type_Def;
--% no-document: True
subtype Ada_Signed_Int_Type_Def_Range is Ada_Node_Kind_Type
range Ada_Signed_Int_Type_Def .. Ada_Signed_Int_Type_Def;
--% no-document: True
subtype Ada_Type_Expr is Ada_Node_Kind_Type
range Ada_Anonymous_Type .. Ada_Synthetic_Type_Expr;
--% no-document: True
subtype Ada_Anonymous_Type_Range is Ada_Node_Kind_Type
range Ada_Anonymous_Type .. Ada_Anonymous_Type;
--% no-document: True
subtype Ada_Enum_Lit_Synth_Type_Expr_Range is Ada_Node_Kind_Type
range Ada_Enum_Lit_Synth_Type_Expr .. Ada_Enum_Lit_Synth_Type_Expr;
--% no-document: True
subtype Ada_Subtype_Indication_Range is Ada_Node_Kind_Type
range Ada_Subtype_Indication .. Ada_Discrete_Subtype_Indication;
--% no-document: True
subtype Ada_Constrained_Subtype_Indication_Range is Ada_Node_Kind_Type
range Ada_Constrained_Subtype_Indication .. Ada_Constrained_Subtype_Indication;
--% no-document: True
subtype Ada_Discrete_Subtype_Indication_Range is Ada_Node_Kind_Type
range Ada_Discrete_Subtype_Indication .. Ada_Discrete_Subtype_Indication;
--% no-document: True
subtype Ada_Synthetic_Type_Expr_Range is Ada_Node_Kind_Type
range Ada_Synthetic_Type_Expr .. Ada_Synthetic_Type_Expr;
--% no-document: True
subtype Ada_Unconstrained_Array_Index_Range is Ada_Node_Kind_Type
range Ada_Unconstrained_Array_Index .. Ada_Unconstrained_Array_Index;
--% no-document: True
subtype Ada_Until_Node is Ada_Node_Kind_Type
range Ada_Until_Absent .. Ada_Until_Present;
--% no-document: True
subtype Ada_Until_Absent_Range is Ada_Node_Kind_Type
range Ada_Until_Absent .. Ada_Until_Absent;
--% no-document: True
subtype Ada_Until_Present_Range is Ada_Node_Kind_Type
range Ada_Until_Present .. Ada_Until_Present;
--% no-document: True
subtype Ada_Use_Clause is Ada_Node_Kind_Type
range Ada_Use_Package_Clause .. Ada_Use_Type_Clause;
--% no-document: True
subtype Ada_Use_Package_Clause_Range is Ada_Node_Kind_Type
range Ada_Use_Package_Clause .. Ada_Use_Package_Clause;
--% no-document: True
subtype Ada_Use_Type_Clause_Range is Ada_Node_Kind_Type
range Ada_Use_Type_Clause .. Ada_Use_Type_Clause;
--% no-document: True
subtype Ada_Value_Sequence_Range is Ada_Node_Kind_Type
range Ada_Value_Sequence .. Ada_Value_Sequence;
--% no-document: True
subtype Ada_Variant_Range is Ada_Node_Kind_Type
range Ada_Variant .. Ada_Variant;
--% no-document: True
subtype Ada_Variant_Part_Range is Ada_Node_Kind_Type
range Ada_Variant_Part .. Ada_Variant_Part;
--% no-document: True
subtype Ada_With_Clause_Range is Ada_Node_Kind_Type
range Ada_With_Clause .. Ada_With_Clause;
--% no-document: True
subtype Ada_With_Private is Ada_Node_Kind_Type
range Ada_With_Private_Absent .. Ada_With_Private_Present;
--% no-document: True
subtype Ada_With_Private_Absent_Range is Ada_Node_Kind_Type
range Ada_With_Private_Absent .. Ada_With_Private_Absent;
--% no-document: True
subtype Ada_With_Private_Present_Range is Ada_Node_Kind_Type
range Ada_With_Private_Present .. Ada_With_Private_Present;
--% no-document: True
subtype Synthetic_Nodes is Ada_Node_Kind_Type
with Static_Predicate =>
Synthetic_Nodes in
Ada_Enum_Subp_Spec | Ada_Synthetic_Binary_Spec | Ada_Synthetic_Unary_Spec | Ada_Anonymous_Expr_Decl | Ada_Synthetic_Formal_Param_Decl | Ada_Discrete_Base_Subtype_Decl | Ada_Classwide_Type_Decl | Ada_Synth_Anonymous_Type_Decl | Ada_Synthetic_Char_Enum_Lit | Ada_Synthetic_Subp_Decl | Ada_Synthetic_Defining_Name | Ada_Synthetic_Identifier | Ada_Synthetic_Renaming_Clause | Ada_Type_Attributes_Repository | Ada_Anonymous_Type_Access_Def | Ada_Enum_Lit_Synth_Type_Expr | Ada_Synthetic_Type_Expr
;
-- Set of nodes that are synthetic.
--
-- Parsers cannot create synthetic nodes, so these correspond to no
-- source text. These nodes are created dynamically for convenience
-- during semantic analysis.
Default_Grammar_Rule : constant Grammar_Rule := Compilation_Rule;
-- Default grammar rule to use when parsing analysis units
------------------
-- Lexer inputs --
------------------
type Lexer_Input_Kind is
(File,
-- Readable source file
Bytes_Buffer,
-- Buffer of undecoded bytes
Text_Buffer
-- Buffer of decoded bytes
);
-- Kind of lexer input
subtype Undecoded_Lexer_Input is
Lexer_Input_Kind range File .. Bytes_Buffer;
------------
-- Tokens --
------------
type Token_Kind is (
Ada_Termination,
Ada_Lexing_Failure,
Ada_Identifier,
Ada_All,
Ada_Abort,
Ada_Else,
Ada_New,
Ada_Return,
Ada_Abs,
Ada_Elsif,
Ada_Not,
Ada_Reverse,
Ada_End,
Ada_Null,
Ada_Accept,
Ada_Entry,
Ada_Select,
Ada_Access,
Ada_Exception,
Ada_Of,
Ada_Separate,
Ada_Exit,
Ada_Or,
Ada_Others,
Ada_Subtype,
Ada_And,
Ada_For,
Ada_Out,
Ada_Array,
Ada_Function,
Ada_At,
Ada_Generic,
Ada_Package,
Ada_Task,
Ada_Begin,
Ada_Goto,
Ada_Pragma,
Ada_Terminate,
Ada_Body,
Ada_Private,
Ada_Then,
Ada_If,
Ada_Procedure,
Ada_Type,
Ada_Case,
Ada_In,
Ada_Constant,
Ada_Is,
Ada_Raise,
Ada_Use,
Ada_Declare,
Ada_Range,
Ada_Delay,
Ada_Limited,
Ada_Record,
Ada_When,
Ada_Delta,
Ada_Loop,
Ada_Rem,
Ada_While,
Ada_Digits,
Ada_Renames,
Ada_Do,
Ada_Mod,
Ada_Xor,
Ada_Par_Close,
Ada_Par_Open,
Ada_Brack_Close,
Ada_Brack_Open,
Ada_Semicolon,
Ada_Colon,
Ada_Comma,
Ada_Doubledot,
Ada_Dot,
Ada_Diamond,
Ada_Lte,
Ada_Gte,
Ada_Arrow,
Ada_Equal,
Ada_Lt,
Ada_Gt,
Ada_Plus,
Ada_Minus,
Ada_Power,
Ada_Mult,
Ada_Amp,
Ada_Notequal,
Ada_Divide,
Ada_Tick,
Ada_Pipe,
Ada_Assign,
Ada_Label_Start,
Ada_Label_End,
Ada_Target,
Ada_String,
Ada_Char,
Ada_With,
Ada_Decimal,
Ada_Integer,
Ada_Comment,
Ada_Prep_Line,
Ada_Whitespace
);
-- Kind of token: indentifier, string literal, ...
type Token_Family is
(Alphanumericals, Default_Family);
-- Groups of token kinds, to make the processing of some groups of token
-- uniform.
Token_Kind_To_Family : array (Token_Kind) of Token_Family :=
(Ada_Termination => Default_Family, Ada_Lexing_Failure => Default_Family, Ada_Identifier => Alphanumericals, Ada_All => Alphanumericals, Ada_Abort => Alphanumericals, Ada_Else => Alphanumericals, Ada_New => Alphanumericals, Ada_Return => Alphanumericals, Ada_Abs => Alphanumericals, Ada_Elsif => Alphanumericals, Ada_Not => Alphanumericals, Ada_Reverse => Alphanumericals, Ada_End => Alphanumericals, Ada_Null => Alphanumericals, Ada_Accept => Alphanumericals, Ada_Entry => Alphanumericals, Ada_Select => Alphanumericals, Ada_Access => Alphanumericals, Ada_Exception => Alphanumericals, Ada_Of => Alphanumericals, Ada_Separate => Alphanumericals, Ada_Exit => Alphanumericals, Ada_Or => Alphanumericals, Ada_Others => Alphanumericals, Ada_Subtype => Alphanumericals, Ada_And => Alphanumericals, Ada_For => Alphanumericals, Ada_Out => Alphanumericals, Ada_Array => Alphanumericals, Ada_Function => Alphanumericals, Ada_At => Alphanumericals, Ada_Generic => Alphanumericals, Ada_Package => Alphanumericals, Ada_Task => Alphanumericals, Ada_Begin => Alphanumericals, Ada_Goto => Alphanumericals, Ada_Pragma => Alphanumericals, Ada_Terminate => Alphanumericals, Ada_Body => Alphanumericals, Ada_Private => Alphanumericals, Ada_Then => Alphanumericals, Ada_If => Alphanumericals, Ada_Procedure => Alphanumericals, Ada_Type => Alphanumericals, Ada_Case => Alphanumericals, Ada_In => Alphanumericals, Ada_Constant => Alphanumericals, Ada_Is => Alphanumericals, Ada_Raise => Alphanumericals, Ada_Use => Alphanumericals, Ada_Declare => Alphanumericals, Ada_Range => Alphanumericals, Ada_Delay => Alphanumericals, Ada_Limited => Alphanumericals, Ada_Record => Alphanumericals, Ada_When => Alphanumericals, Ada_Delta => Alphanumericals, Ada_Loop => Alphanumericals, Ada_Rem => Alphanumericals, Ada_While => Alphanumericals, Ada_Digits => Alphanumericals, Ada_Renames => Alphanumericals, Ada_Do => Alphanumericals, Ada_Mod => Alphanumericals, Ada_Xor => Alphanumericals, Ada_Par_Close => Default_Family, Ada_Par_Open => Default_Family, Ada_Brack_Close => Default_Family, Ada_Brack_Open => Default_Family, Ada_Semicolon => Default_Family, Ada_Colon => Default_Family, Ada_Comma => Default_Family, Ada_Doubledot => Default_Family, Ada_Dot => Default_Family, Ada_Diamond => Default_Family, Ada_Lte => Default_Family, Ada_Gte => Default_Family, Ada_Arrow => Default_Family, Ada_Equal => Default_Family, Ada_Lt => Default_Family, Ada_Gt => Default_Family, Ada_Plus => Default_Family, Ada_Minus => Default_Family, Ada_Power => Default_Family, Ada_Mult => Default_Family, Ada_Amp => Default_Family, Ada_Notequal => Default_Family, Ada_Divide => Default_Family, Ada_Tick => Default_Family, Ada_Pipe => Default_Family, Ada_Assign => Default_Family, Ada_Label_Start => Default_Family, Ada_Label_End => Default_Family, Ada_Target => Default_Family, Ada_String => Default_Family, Ada_Char => Default_Family, Ada_With => Alphanumericals, Ada_Decimal => Alphanumericals, Ada_Integer => Alphanumericals, Ada_Comment => Default_Family, Ada_Prep_Line => Default_Family, Ada_Whitespace => Default_Family);
-- Associate a token family to all token kinds
--
--% document-value: False
function Token_Kind_Name (Token_Id : Token_Kind) return String;
-- Return a human-readable name for a token kind.
function Token_Kind_Literal (Token_Id : Token_Kind) return Text_Type;
-- Return the canonical literal corresponding to this token kind, or an
-- empty string if this token has no literal.
function Token_Error_Image (Token_Id : Token_Kind) return String;
-- Return a string representation of ``Token_Id`` that is suitable in error
-- messages.
function To_Token_Kind (Raw : Raw_Token_Kind) return Token_Kind
with Inline;
function From_Token_Kind (Kind : Token_Kind) return Raw_Token_Kind
with Inline;
function Is_Token_Node (Kind : Ada_Node_Kind_Type) return Boolean;
-- Return whether Kind corresponds to a token node
function Is_List_Node (Kind : Ada_Node_Kind_Type) return Boolean;
-- Return whether Kind corresponds to a list node
function Is_Error_Node (Kind : Ada_Node_Kind_Type) return Boolean;
-- Return whether Kind corresponds to an error node
type Visit_Status is (Into, Over, Stop);
-- Helper type to control the node traversal process. See the
-- ``Libadalang.Analysis.Traverse`` function.
-----------------------
-- Lexical utilities --
-----------------------
type Token_Reference is private;
-- Reference to a token in an analysis unit.
No_Token : constant Token_Reference;
type Token_Data_Type is private;
function "<" (Left, Right : Token_Reference) return Boolean;
-- Assuming ``Left`` and ``Right`` belong to the same analysis unit, return
-- whether ``Left`` came before ``Right`` in the source file.
function Next
(Token : Token_Reference;
Exclude_Trivia : Boolean := False) return Token_Reference;
-- Return a reference to the next token in the corresponding analysis unit.
function Previous
(Token : Token_Reference;
Exclude_Trivia : Boolean := False) return Token_Reference;
-- Return a reference to the previous token in the corresponding analysis
-- unit.
function Data (Token : Token_Reference) return Token_Data_Type;
-- Return the data associated to ``Token``
function Is_Equivalent (L, R : Token_Reference) return Boolean;
-- Return whether ``L`` and ``R`` are structurally equivalent tokens. This
-- means that their position in the stream won't be taken into account,
-- only the kind and text of the token.
function Image (Token : Token_Reference) return String;
-- Debug helper: return a human-readable text to represent a token
function Text (Token : Token_Reference) return Text_Type;
-- Return the text of the token as ``Text_Type``
function Text (First, Last : Token_Reference) return Text_Type;
-- Compute the source buffer slice corresponding to the text that spans
-- between the ``First`` and ``Last`` tokens (both included). This yields
-- an empty slice if ``Last`` actually appears before ``First``.
--
-- This raises a ``Constraint_Error`` if ``First`` and ``Last`` don't
-- belong to the same analysis unit.
function Get_Symbol (Token : Token_Reference) return Symbol_Type;
-- Assuming that ``Token`` refers to a token that contains a symbol, return
-- the corresponding symbol.
function Kind (Token_Data : Token_Data_Type) return Token_Kind;
-- Kind for this token.
function Is_Trivia (Token : Token_Reference) return Boolean;
-- Return whether this token is a trivia. If it's not, it's a regular
-- token.
function Is_Trivia (Token_Data : Token_Data_Type) return Boolean;
-- Return whether this token is a trivia. If it's not, it's a regular
-- token.
function Index (Token : Token_Reference) return Token_Index;
-- One-based index for this token/trivia. Tokens and trivias get their own
-- index space.
function Index (Token_Data : Token_Data_Type) return Token_Index;
-- One-based index for this token/trivia. Tokens and trivias get their own
-- index space.
function Sloc_Range
(Token_Data : Token_Data_Type) return Source_Location_Range;
-- Source location range for this token. Note that the end bound is
-- exclusive.
function Origin_Filename (Token : Token_Reference) return String;
-- Return the name of the file whose content was scanned to create Token.
-- Return an empty string if the source comes from a memory buffer instead
-- of a file.
function Origin_Charset (Token : Token_Reference) return String;
-- Return the charset used to decode the source that was scanned to create
-- Token. Return an empty string if the source was already decoded during
-- the scan.
function Convert
(TDH : Token_Data_Handler;
Token : Token_Reference;
Raw_Data : Stored_Token_Data) return Token_Data_Type;
-- Turn data from ``TDH`` and ``Raw_Data`` into a user-ready token data
-- record.
type Child_Or_Trivia is (Child, Trivia);
-- Discriminator for the ``Child_Record`` type
function Raw_Data (T : Token_Reference) return Stored_Token_Data;
-- Return the raw token data for ``T``
function Token_Node_Kind (Kind : Ada_Node_Kind_Type) return Token_Kind
with Pre => Is_Token_Node (Kind);
-- Return the token kind corresponding to the given token node kind
type Language_Version is (Ada_83, Ada_95, Ada_2005, Ada_2012, Ada_2022);
-- Enum representing a version of the Ada language
private
type Token_Safety_Net is record
Context : Langkit_Support.Internal.Analysis.Internal_Context;
Context_Version : Version_Number;
-- Analysis context and version number at the time this safety net was
-- produced.
--
-- TODO: it is not possible to refer to
-- $.Implementation.Internal_Context from this spec (otherwise we get a
-- circular dependency). For now, use the generic pointer from
-- Langkit_Support (hack), but in the future the Token_Reference type
-- (and this this safety net type) will go to the generic API, so we
-- will get rid of this hack.
TDH_Version : Version_Number;
-- Version of the token data handler at the time this safety net was
-- produced.
end record;
-- Information to embed in public APIs with token references, used to check
-- before using the references that they are not stale.
No_Token_Safety_Net : constant Token_Safety_Net :=
(Langkit_Support.Internal.Analysis.No_Internal_Context, 0, 0);
type Token_Reference is record
TDH : Token_Data_Handler_Access;
-- Token data handler that owns this token
Index : Token_Or_Trivia_Index;
-- Identifier for the trivia or the token this refers to
Safety_Net : Token_Safety_Net;
end record;
procedure Check_Safety_Net (Self : Token_Reference);
-- If ``Self`` is a stale token reference, raise a
-- ``Stale_Reference_Error`` error.
No_Token : constant Token_Reference :=
(null, No_Token_Or_Trivia_Index, No_Token_Safety_Net);
type Token_Data_Type is record
Kind : Token_Kind;
-- See documentation for the Kind accessor
Is_Trivia : Boolean;
-- See documentation for the Is_Trivia accessor
Index : Token_Index;
-- See documentation for the Index accessor
Source_Buffer : Text_Cst_Access;
-- Text for the original source file
Source_First : Positive;
Source_Last : Natural;
-- Bounds in Source_Buffer for the text corresponding to this token
Sloc_Range : Source_Location_Range;
-- See documenation for the Sloc_Range accessor
end record;
end Libadalang.Common;
|