| 1 |
------------------------------------------------------------------------------ |
| 2 |
-- -- |
| 3 |
-- GNAT COMPILER COMPONENTS -- |
| 4 |
-- -- |
| 5 |
-- G E N _ I L . G E N . G E N _ N O D E S -- |
| 6 |
-- -- |
| 7 |
-- B o d y -- |
| 8 |
-- -- |
| 9 |
-- Copyright (C) 2020-2025, Free Software Foundation, Inc. -- |
| 10 |
-- -- |
| 11 |
-- GNAT is free software; you can redistribute it and/or modify it under -- |
| 12 |
-- terms of the GNU General Public License as published by the Free Soft- -- |
| 13 |
-- ware Foundation; either version 3, or (at your option) any later ver- -- |
| 14 |
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
| 15 |
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- |
| 16 |
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- |
| 17 |
-- for more details. You should have received a copy of the GNU General -- |
| 18 |
-- Public License distributed with GNAT; see file COPYING3. If not, go to -- |
| 19 |
-- http://www.gnu.org/licenses for a complete copy of the license. -- |
| 20 |
-- -- |
| 21 |
-- GNAT was originally developed by the GNAT team at New York University. -- |
| 22 |
-- Extensive contributions were provided by Ada Core Technologies Inc. -- |
| 23 |
-- -- |
| 24 |
------------------------------------------------------------------------------ |
| 25 |
|
| 26 |
procedure Gen_IL.Gen.Gen_Nodes is |
| 27 |
|
| 28 |
procedure Ab -- Short for "Abstract" |
| 29 |
(T : Abstract_Node; Parent : Abstract_Type; |
| 30 |
Fields : Field_Sequence := No_Fields) |
| 31 |
renames Create_Abstract_Node_Type; |
| 32 |
procedure Cc -- Short for "ConCrete" |
| 33 |
(T : Concrete_Node; Parent : Abstract_Type; |
| 34 |
Fields : Field_Sequence := No_Fields; |
| 35 |
Nmake_Assert : String := "") |
| 36 |
renames Create_Concrete_Node_Type; |
| 37 |
|
| 38 |
function Sy -- Short for "Syntactic" |
| 39 |
(Field : Node_Field; Field_Type : Type_Enum; |
| 40 |
Default_Value : Field_Default_Value := No_Default; |
| 41 |
Pre, Pre_Get, Pre_Set : String := "") return Field_Desc |
| 42 |
renames Create_Syntactic_Field; |
| 43 |
function Sm -- Short for "Semantic" |
| 44 |
(Field : Field_Enum; Field_Type : Type_Enum; |
| 45 |
Type_Only : Type_Only_Enum := No_Type_Only; |
| 46 |
Pre, Pre_Get, Pre_Set : String := "") return Field_Desc |
| 47 |
renames Create_Semantic_Field; |
| 48 |
|
| 49 |
procedure Union (T : Abstract_Node; Children : Type_Array) |
| 50 |
renames Create_Node_Union_Type; |
| 51 |
|
| 52 |
begin -- Gen_IL.Gen.Gen_Nodes |
| 53 |
pragma Style_Checks ("M200"); |
| 54 |
|
| 55 |
Create_Root_Node_Type (Node_Kind, |
| 56 |
(Sm (Nkind, Node_Kind_Type), |
| 57 |
Sm (Sloc, Source_Ptr), |
| 58 |
Sm (In_List, Flag), |
| 59 |
Sm (Rewrite_Ins, Flag), |
| 60 |
Sm (Comes_From_Source, Flag), |
| 61 |
Sm (Analyzed, Flag), |
| 62 |
Sm (Error_Posted, Flag), |
| 63 |
Sm (Small_Paren_Count, Small_Paren_Count_Type), |
| 64 |
Sm (Check_Actuals, Flag), |
| 65 |
Sm (Is_Ignored_Ghost_Node, Flag), |
| 66 |
Sm (Link, Union_Id))); |
| 67 |
|
| 68 |
Cc (N_Unused_At_Start, Node_Kind); |
| 69 |
|
| 70 |
Ab (N_Representation_Clause, Node_Kind); |
| 71 |
|
| 72 |
Cc (N_At_Clause, N_Representation_Clause, |
| 73 |
(Sy (Identifier, Node_Id, Default_Empty), |
| 74 |
Sy (Expression, Node_Id, Default_Empty))); |
| 75 |
|
| 76 |
Cc (N_Component_Clause, N_Representation_Clause, |
| 77 |
(Sy (Component_Name, Node_Id), |
| 78 |
Sy (Position, Node_Id), |
| 79 |
Sy (First_Bit, Node_Id), |
| 80 |
Sy (Last_Bit, Node_Id))); |
| 81 |
|
| 82 |
Cc (N_Enumeration_Representation_Clause, N_Representation_Clause, |
| 83 |
(Sy (Identifier, Node_Id, Default_Empty), |
| 84 |
Sy (Array_Aggregate, Node_Id), |
| 85 |
Sm (Next_Rep_Item, Node_Id))); |
| 86 |
|
| 87 |
Cc (N_Mod_Clause, N_Representation_Clause, |
| 88 |
(Sy (Expression, Node_Id, Default_Empty), |
| 89 |
Sy (Pragmas_Before, List_Id, Default_No_List))); |
| 90 |
|
| 91 |
Cc (N_Record_Representation_Clause, N_Representation_Clause, |
| 92 |
(Sy (Identifier, Node_Id, Default_Empty), |
| 93 |
Sy (Mod_Clause, Node_Id, Default_Empty), |
| 94 |
Sy (Component_Clauses, List_Id), |
| 95 |
Sm (Next_Rep_Item, Node_Id))); |
| 96 |
|
| 97 |
Cc (N_Attribute_Definition_Clause, N_Representation_Clause, |
| 98 |
(Sy (Name, Node_Id, Default_Empty), |
| 99 |
Sy (Chars, Name_Id, Default_No_Name), |
| 100 |
Sy (Expression, Node_Id, Default_Empty), |
| 101 |
Sm (Check_Address_Alignment, Flag), |
| 102 |
Sm (Entity_Or_Associated_Node, Node_Id), -- just Entity |
| 103 |
Sm (From_Aspect_Specification, Flag), |
| 104 |
Sm (From_At_Mod, Flag), |
| 105 |
Sm (Is_Delayed_Aspect, Flag), |
| 106 |
Sm (Next_Rep_Item, Node_Id))); |
| 107 |
|
| 108 |
Cc (N_Empty, Node_Kind, |
| 109 |
(Sy (Chars, Name_Id, Default_No_Name))); |
| 110 |
-- The following getters and setters are called on Empty, |
| 111 |
-- and are currently inherited from Node_Kind: |
| 112 |
-- |
| 113 |
-- Set_Comes_From_Source |
| 114 |
-- Set_Sloc |
| 115 |
-- |
| 116 |
-- Comes_From_Source |
| 117 |
-- Error_Posted |
| 118 |
-- In_List |
| 119 |
-- Link |
| 120 |
-- Rewrite_Ins |
| 121 |
-- Sloc |
| 122 |
-- Small_Paren_Count |
| 123 |
|
| 124 |
Cc (N_Pragma_Argument_Association, Node_Kind, |
| 125 |
(Sy (Chars, Name_Id, Default_No_Name), |
| 126 |
Sy (Expression, Node_Id, Default_Empty), |
| 127 |
Sm (Expression_Copy, Node_Id))); |
| 128 |
|
| 129 |
Ab (N_Has_Etype, Node_Kind, |
| 130 |
(Sm (Etype, Node_Id))); |
| 131 |
|
| 132 |
Cc (N_Error, N_Has_Etype, |
| 133 |
(Sy (Chars, Name_Id, Default_No_Name))); |
| 134 |
|
| 135 |
Ab (N_Entity, N_Has_Etype, |
| 136 |
(Sy (Chars, Name_Id, Default_No_Name), |
| 137 |
Sm (Next_Entity, Node_Id), |
| 138 |
Sm (Scope, Node_Id))); |
| 139 |
|
| 140 |
Cc (N_Defining_Character_Literal, N_Entity); |
| 141 |
Cc (N_Defining_Identifier, N_Entity); |
| 142 |
Cc (N_Defining_Operator_Symbol, N_Entity); |
| 143 |
|
| 144 |
Ab (N_Subexpr, N_Has_Etype, |
| 145 |
-- Nodes with expression fields |
| 146 |
(Sm (Assignment_OK, Flag), |
| 147 |
Sm (Do_Range_Check, Flag), |
| 148 |
Sm (Has_Dynamic_Length_Check, Flag), |
| 149 |
Sm (Is_Controlling_Actual, Flag), |
| 150 |
Sm (Is_Overloaded, Flag), |
| 151 |
Sm (Is_Static_Expression, Flag), |
| 152 |
Sm (Must_Not_Freeze, Flag), |
| 153 |
Sm (Raises_Constraint_Error, Flag))); |
| 154 |
|
| 155 |
Ab (N_Has_Entity, N_Subexpr, |
| 156 |
-- Nodes that have Entity fields |
| 157 |
-- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity, |
| 158 |
-- N_Aspect_Specification, or N_Attribute_Definition_Clause. |
| 159 |
(Sm (Entity_Or_Associated_Node, Node_Id))); -- both |
| 160 |
|
| 161 |
Cc (N_Expanded_Name, N_Has_Entity, |
| 162 |
(Sy (Chars, Name_Id, Default_No_Name), |
| 163 |
Sy (Prefix, Node_Id), |
| 164 |
Sy (Selector_Name, Node_Id, Default_Empty), |
| 165 |
Sm (Atomic_Sync_Required, Flag), |
| 166 |
Sm (Has_Private_View, Flag), |
| 167 |
Sm (Has_Secondary_Private_View, Flag), |
| 168 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 169 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 170 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 171 |
Sm (Redundant_Use, Flag))); |
| 172 |
|
| 173 |
Ab (N_Direct_Name, N_Has_Entity, |
| 174 |
(Sy (Chars, Name_Id, Default_No_Name), |
| 175 |
Sm (Has_Private_View, Flag), |
| 176 |
Sm (Has_Secondary_Private_View, Flag))); |
| 177 |
|
| 178 |
Cc (N_Identifier, N_Direct_Name, |
| 179 |
(Sm (Atomic_Sync_Required, Flag), |
| 180 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 181 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 182 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 183 |
Sm (Original_Discriminant, Node_Id), |
| 184 |
Sm (Redundant_Use, Flag))); |
| 185 |
|
| 186 |
Cc (N_Operator_Symbol, N_Direct_Name, |
| 187 |
(Sy (Strval, String_Id))); |
| 188 |
|
| 189 |
Cc (N_Character_Literal, N_Direct_Name, |
| 190 |
(Sy (Char_Literal_Value, Unat))); |
| 191 |
|
| 192 |
Ab (N_Op, N_Has_Entity, |
| 193 |
(Sm (Chars, Name_Id), |
| 194 |
Sm (Do_Overflow_Check, Flag), |
| 195 |
Sm (Has_Private_View, Flag), |
| 196 |
Sm (Has_Secondary_Private_View, Flag))); |
| 197 |
|
| 198 |
Ab (N_Binary_Op, N_Op, |
| 199 |
(Sy (Left_Opnd, Node_Id), |
| 200 |
Sy (Right_Opnd, Node_Id))); |
| 201 |
|
| 202 |
Cc (N_Op_Add, N_Binary_Op); |
| 203 |
|
| 204 |
Cc (N_Op_Concat, N_Binary_Op, |
| 205 |
(Sm (Is_Component_Left_Opnd, Flag), |
| 206 |
Sm (Is_Component_Right_Opnd, Flag))); |
| 207 |
|
| 208 |
Cc (N_Op_Expon, N_Binary_Op, |
| 209 |
(Sm (Is_Power_Of_2_For_Shift, Flag))); |
| 210 |
|
| 211 |
Cc (N_Op_Subtract, N_Binary_Op); |
| 212 |
|
| 213 |
Ab (N_Multiplying_Operator, N_Binary_Op); |
| 214 |
|
| 215 |
Cc (N_Op_Divide, N_Multiplying_Operator, |
| 216 |
(Sm (Do_Division_Check, Flag), |
| 217 |
Sm (Rounded_Result, Flag))); |
| 218 |
|
| 219 |
Cc (N_Op_Mod, N_Multiplying_Operator, |
| 220 |
(Sm (Do_Division_Check, Flag))); |
| 221 |
|
| 222 |
Cc (N_Op_Multiply, N_Multiplying_Operator, |
| 223 |
(Sm (Rounded_Result, Flag))); |
| 224 |
|
| 225 |
Cc (N_Op_Rem, N_Multiplying_Operator, |
| 226 |
(Sm (Do_Division_Check, Flag))); |
| 227 |
|
| 228 |
Ab (N_Op_Boolean, N_Binary_Op); |
| 229 |
-- Binary operators that yield a result of a boolean type |
| 230 |
|
| 231 |
Cc (N_Op_And, N_Op_Boolean, |
| 232 |
(Sm (Do_Length_Check, Flag))); |
| 233 |
|
| 234 |
Ab (N_Op_Compare, N_Op_Boolean, |
| 235 |
(Sm (Compare_Type, Node_Id))); |
| 236 |
|
| 237 |
Cc (N_Op_Eq, N_Op_Compare); |
| 238 |
Cc (N_Op_Ge, N_Op_Compare); |
| 239 |
Cc (N_Op_Gt, N_Op_Compare); |
| 240 |
Cc (N_Op_Le, N_Op_Compare); |
| 241 |
Cc (N_Op_Lt, N_Op_Compare); |
| 242 |
Cc (N_Op_Ne, N_Op_Compare); |
| 243 |
|
| 244 |
Cc (N_Op_Or, N_Op_Boolean, |
| 245 |
(Sm (Do_Length_Check, Flag))); |
| 246 |
|
| 247 |
Cc (N_Op_Xor, N_Op_Boolean, |
| 248 |
(Sm (Do_Length_Check, Flag))); |
| 249 |
|
| 250 |
Ab (N_Op_Shift, N_Binary_Op, |
| 251 |
(Sm (Shift_Count_OK, Flag))); |
| 252 |
|
| 253 |
Cc (N_Op_Rotate_Left, N_Op_Shift); |
| 254 |
Cc (N_Op_Rotate_Right, N_Op_Shift); |
| 255 |
Cc (N_Op_Shift_Left, N_Op_Shift); |
| 256 |
Cc (N_Op_Shift_Right, N_Op_Shift); |
| 257 |
Cc (N_Op_Shift_Right_Arithmetic, N_Op_Shift); |
| 258 |
|
| 259 |
Ab (N_Unary_Op, N_Op, |
| 260 |
(Sy (Right_Opnd, Node_Id))); |
| 261 |
|
| 262 |
Cc (N_Op_Abs, N_Unary_Op); |
| 263 |
Cc (N_Op_Minus, N_Unary_Op); |
| 264 |
Cc (N_Op_Not, N_Unary_Op); |
| 265 |
Cc (N_Op_Plus, N_Unary_Op); |
| 266 |
|
| 267 |
Cc (N_Attribute_Reference, N_Has_Entity, |
| 268 |
(Sy (Prefix, Node_Id), |
| 269 |
Sy (Attribute_Name, Name_Id), |
| 270 |
Sy (Expressions, List_Id, Default_No_List), |
| 271 |
Sm (Do_Overflow_Check, Flag), |
| 272 |
Sm (Header_Size_Added, Flag), |
| 273 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 274 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 275 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 276 |
Sm (Must_Be_Byte_Aligned, Flag), |
| 277 |
Sm (Redundant_Use, Flag))); |
| 278 |
|
| 279 |
Ab (N_Membership_Test, N_Subexpr, |
| 280 |
(Sy (Left_Opnd, Node_Id), |
| 281 |
Sy (Right_Opnd, Node_Id), |
| 282 |
Sy (Alternatives, List_Id, Default_No_List), |
| 283 |
Sy (No_Minimize_Eliminate, Flag))); |
| 284 |
|
| 285 |
Cc (N_In, N_Membership_Test); |
| 286 |
Cc (N_Not_In, N_Membership_Test); |
| 287 |
|
| 288 |
Ab (N_Short_Circuit, N_Subexpr, |
| 289 |
(Sy (Left_Opnd, Node_Id), |
| 290 |
Sy (Right_Opnd, Node_Id), |
| 291 |
Sm (Actions, List_Id))); |
| 292 |
|
| 293 |
Cc (N_And_Then, N_Short_Circuit); |
| 294 |
Cc (N_Or_Else, N_Short_Circuit); |
| 295 |
|
| 296 |
Ab (N_Subprogram_Call, N_Subexpr, |
| 297 |
(Sy (Name, Node_Id, Default_Empty), |
| 298 |
Sy (Parameter_Associations, List_Id, Default_No_List), |
| 299 |
Sm (Controlling_Argument, Node_Id), |
| 300 |
Sm (First_Named_Actual, Node_Id), |
| 301 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 302 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 303 |
Sm (Is_Known_Guaranteed_ABE, Flag), |
| 304 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 305 |
Sm (No_Elaboration_Check, Flag), |
| 306 |
Sm (Is_Expanded_Prefixed_Call, Flag))); |
| 307 |
|
| 308 |
Cc (N_Function_Call, N_Subprogram_Call, |
| 309 |
(Sm (Is_Expanded_Build_In_Place_Call, Flag))); |
| 310 |
|
| 311 |
Cc (N_Procedure_Call_Statement, N_Subprogram_Call); |
| 312 |
|
| 313 |
Ab (N_Raise_xxx_Error, N_Subexpr, |
| 314 |
(Sy (Condition, Node_Id, Default_Empty), |
| 315 |
Sy (Reason, Unat))); |
| 316 |
|
| 317 |
Cc (N_Raise_Constraint_Error, N_Raise_xxx_Error); |
| 318 |
Cc (N_Raise_Program_Error, N_Raise_xxx_Error); |
| 319 |
Cc (N_Raise_Storage_Error, N_Raise_xxx_Error); |
| 320 |
|
| 321 |
Ab (N_Numeric_Or_String_Literal, N_Subexpr); |
| 322 |
|
| 323 |
Cc (N_Integer_Literal, N_Numeric_Or_String_Literal, |
| 324 |
(Sy (Intval, Valid_Uint), |
| 325 |
Sm (Original_Entity, Node_Id), |
| 326 |
Sm (Print_In_Hex, Flag))); |
| 327 |
|
| 328 |
Cc (N_Real_Literal, N_Numeric_Or_String_Literal, |
| 329 |
(Sy (Realval, Ureal), |
| 330 |
Sm (Corresponding_Integer_Value, Valid_Uint), |
| 331 |
Sm (Is_Machine_Number, Flag), |
| 332 |
Sm (Original_Entity, Node_Id))); |
| 333 |
|
| 334 |
Cc (N_String_Literal, N_Numeric_Or_String_Literal, |
| 335 |
(Sy (Strval, String_Id), |
| 336 |
Sy (Is_Folded_In_Parser, Flag), |
| 337 |
Sy (Is_Interpolated_String_Literal, Flag), |
| 338 |
Sm (Has_Wide_Character, Flag), |
| 339 |
Sm (Has_Wide_Wide_Character, Flag))); |
| 340 |
|
| 341 |
Cc (N_Interpolated_String_Literal, N_Numeric_Or_String_Literal, |
| 342 |
(Sy (Expressions, List_Id, Default_No_List))); |
| 343 |
|
| 344 |
Cc (N_Explicit_Dereference, N_Subexpr, |
| 345 |
(Sy (Prefix, Node_Id), |
| 346 |
Sm (Actual_Designated_Subtype, Node_Id), |
| 347 |
Sm (Atomic_Sync_Required, Flag), |
| 348 |
Sm (Has_Dereference_Action, Flag))); |
| 349 |
|
| 350 |
Cc (N_Expression_With_Actions, N_Subexpr, |
| 351 |
(Sy (Actions, List_Id, Default_No_List), |
| 352 |
Sy (Expression, Node_Id, Default_Empty))); |
| 353 |
|
| 354 |
Cc (N_External_Initializer, N_Subexpr, |
| 355 |
(Sy (File_Index, Source_File_Index))); |
| 356 |
|
| 357 |
Cc (N_If_Expression, N_Subexpr, |
| 358 |
(Sy (Expressions, List_Id, Default_No_List), |
| 359 |
Sy (Is_Elsif, Flag), |
| 360 |
Sm (Do_Overflow_Check, Flag), |
| 361 |
Sm (Expansion_Delayed, Flag), |
| 362 |
Sm (Else_Actions, List_Id), |
| 363 |
Sm (Then_Actions, List_Id))); |
| 364 |
|
| 365 |
Cc (N_Indexed_Component, N_Subexpr, |
| 366 |
(Sy (Prefix, Node_Id), |
| 367 |
Sy (Expressions, List_Id, Default_No_List), |
| 368 |
Sm (Atomic_Sync_Required, Flag), |
| 369 |
Sm (Generalized_Indexing, Node_Id), |
| 370 |
Sm (Kill_Range_Check, Flag))); |
| 371 |
|
| 372 |
Cc (N_Null, N_Subexpr); |
| 373 |
|
| 374 |
Cc (N_Qualified_Expression, N_Subexpr, |
| 375 |
(Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 376 |
Sy (Expression, Node_Id, Default_Empty), |
| 377 |
Sm (Is_Qualified_Universal_Literal, Flag))); |
| 378 |
|
| 379 |
Cc (N_Quantified_Expression, N_Subexpr, |
| 380 |
(Sy (All_Present, Flag), |
| 381 |
Sy (Iterator_Specification, Node_Id, Default_Empty), |
| 382 |
Sy (Loop_Parameter_Specification, Node_Id, Default_Empty), |
| 383 |
Sy (Condition, Node_Id, Default_Empty))); |
| 384 |
|
| 385 |
Cc (N_Aggregate, N_Subexpr, |
| 386 |
(Sy (Expressions, List_Id, Default_No_List), |
| 387 |
Sy (Component_Associations, List_Id, Default_No_List), |
| 388 |
Sy (Null_Record_Present, Flag), |
| 389 |
Sy (Is_Parenthesis_Aggregate, Flag), |
| 390 |
Sy (Is_Homogeneous_Aggregate, Flag), |
| 391 |
Sm (Aggregate_Bounds_Or_Ancestor_Type, Node_Id), |
| 392 |
Sm (Entity_Or_Associated_Node, Node_Id), -- just Associated_Node |
| 393 |
Sm (Compile_Time_Known_Aggregate, Flag), |
| 394 |
Sm (Expansion_Delayed, Flag), |
| 395 |
Sm (Has_Self_Reference, Flag))); |
| 396 |
|
| 397 |
Cc (N_Allocator, N_Subexpr, |
| 398 |
(Sy (Subpool_Handle_Name, Node_Id, Default_Empty), |
| 399 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 400 |
Sy (Expression, Node_Id, Default_Empty), |
| 401 |
Sm (For_Special_Return_Object, Flag), |
| 402 |
Sm (Do_Storage_Check, Flag), |
| 403 |
Sm (Is_Dynamic_Coextension, Flag), |
| 404 |
Sm (Is_Static_Coextension, Flag), |
| 405 |
Sm (No_Initialization, Flag), |
| 406 |
Sm (Procedure_To_Call, Node_Id), |
| 407 |
Sm (Storage_Pool, Node_Id))); |
| 408 |
|
| 409 |
Cc (N_Case_Expression, N_Subexpr, |
| 410 |
(Sy (Expression, Node_Id, Default_Empty), |
| 411 |
Sy (Alternatives, List_Id, Default_No_List), |
| 412 |
Sm (Do_Overflow_Check, Flag), |
| 413 |
Sm (Expansion_Delayed, Flag))); |
| 414 |
|
| 415 |
Cc (N_Delta_Aggregate, N_Subexpr, |
| 416 |
(Sy (Expression, Node_Id, Default_Empty), |
| 417 |
Sy (Is_Homogeneous_Aggregate, Flag), |
| 418 |
Sy (Component_Associations, List_Id, Default_No_List))); |
| 419 |
|
| 420 |
Cc (N_Extension_Aggregate, N_Subexpr, |
| 421 |
(Sy (Ancestor_Part, Node_Id), |
| 422 |
Sy (Expressions, List_Id, Default_No_List), |
| 423 |
Sy (Component_Associations, List_Id, Default_No_List), |
| 424 |
Sy (Null_Record_Present, Flag), |
| 425 |
Sm (Entity_Or_Associated_Node, Node_Id), -- just Associated_Node |
| 426 |
Sm (Expansion_Delayed, Flag), |
| 427 |
Sm (Has_Self_Reference, Flag))); |
| 428 |
|
| 429 |
Cc (N_Raise_Expression, N_Subexpr, |
| 430 |
(Sy (Name, Node_Id, Default_Empty), |
| 431 |
Sy (Expression, Node_Id, Default_Empty))); |
| 432 |
|
| 433 |
Cc (N_Range, N_Subexpr, |
| 434 |
(Sy (Low_Bound, Node_Id), |
| 435 |
Sy (High_Bound, Node_Id), |
| 436 |
Sm (Cannot_Be_Superflat, Flag), |
| 437 |
Sm (Includes_Infinities, Flag))); |
| 438 |
|
| 439 |
Cc (N_Reference, N_Subexpr, |
| 440 |
(Sy (Prefix, Node_Id))); |
| 441 |
|
| 442 |
Cc (N_Selected_Component, N_Subexpr, |
| 443 |
(Sy (Prefix, Node_Id), |
| 444 |
Sy (Selector_Name, Node_Id, Default_Empty), |
| 445 |
Sm (Atomic_Sync_Required, Flag), |
| 446 |
Sm (Entity_Or_Associated_Node, Node_Id), -- just Associated_Node |
| 447 |
Sm (Do_Discriminant_Check, Flag), |
| 448 |
Sm (Is_In_Discriminant_Check, Flag), |
| 449 |
Sm (Is_Prefixed_Call, Flag))); |
| 450 |
|
| 451 |
Cc (N_Slice, N_Subexpr, |
| 452 |
(Sy (Prefix, Node_Id), |
| 453 |
Sy (Discrete_Range, Node_Id))); |
| 454 |
|
| 455 |
Cc (N_Target_Name, N_Subexpr); |
| 456 |
|
| 457 |
Cc (N_Type_Conversion, N_Subexpr, |
| 458 |
(Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 459 |
Sy (Expression, Node_Id, Default_Empty), |
| 460 |
Sm (Conversion_OK, Flag), |
| 461 |
Sm (Do_Discriminant_Check, Flag), |
| 462 |
Sm (Do_Length_Check, Flag), |
| 463 |
Sm (Do_Overflow_Check, Flag), |
| 464 |
Sm (Float_Truncate, Flag), |
| 465 |
Sm (Rounded_Result, Flag))); |
| 466 |
|
| 467 |
Cc (N_Unchecked_Type_Conversion, N_Subexpr, |
| 468 |
(Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 469 |
Sy (Expression, Node_Id, Default_Empty), |
| 470 |
Sm (Kill_Range_Check, Flag), |
| 471 |
Sm (No_Truncation, Flag)), |
| 472 |
Nmake_Assert => "True or else Nkind (Expression) /= N_Unchecked_Type_Conversion"); |
| 473 |
-- Nmake_Assert => "Nkind (Expression) /= N_Unchecked_Type_Conversion"); |
| 474 |
-- Assert that we don't have unchecked conversions of unchecked |
| 475 |
-- conversions; if Expression might be an unchecked conversion, |
| 476 |
-- then Tbuild.Unchecked_Convert_To should be used. |
| 477 |
|
| 478 |
Cc (N_Subtype_Indication, N_Has_Etype, |
| 479 |
(Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 480 |
Sy (Constraint, Node_Id), |
| 481 |
Sm (Must_Not_Freeze, Flag))); |
| 482 |
|
| 483 |
Ab (N_Declaration, Node_Kind); |
| 484 |
-- Note: this includes all constructs normally thought of as declarations |
| 485 |
-- except those that are separately grouped in N_Later_Decl_Item. But |
| 486 |
-- Declaration_Node may return yet more node types; see N_Is_Decl below. |
| 487 |
|
| 488 |
Cc (N_Component_Declaration, N_Declaration, |
| 489 |
(Sy (Defining_Identifier, Node_Id), |
| 490 |
Sy (Component_Definition, Node_Id), |
| 491 |
Sy (Expression, Node_Id, Default_Empty), |
| 492 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 493 |
Sm (More_Ids, Flag), |
| 494 |
Sm (Prev_Ids, Flag))); |
| 495 |
|
| 496 |
Cc (N_Entry_Declaration, N_Declaration, |
| 497 |
(Sy (Must_Override, Flag), |
| 498 |
Sy (Must_Not_Override, Flag), |
| 499 |
Sy (Defining_Identifier, Node_Id), |
| 500 |
Sy (Discrete_Subtype_Definition, Node_Id, Default_Empty), |
| 501 |
Sy (Parameter_Specifications, List_Id, Default_No_List), |
| 502 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 503 |
Sm (Corresponding_Body, Node_Id))); |
| 504 |
|
| 505 |
Cc (N_Expression_Function, N_Declaration, |
| 506 |
(Sy (Specification, Node_Id), |
| 507 |
Sy (Expression, Node_Id, Default_Empty), |
| 508 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 509 |
Sm (Corresponding_Spec, Node_Id))); |
| 510 |
|
| 511 |
Cc (N_Formal_Object_Declaration, N_Declaration, |
| 512 |
(Sy (Defining_Identifier, Node_Id), |
| 513 |
Sy (In_Present, Flag), |
| 514 |
Sy (Out_Present, Flag), |
| 515 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 516 |
Sy (Access_Definition, Node_Id, Default_Empty), |
| 517 |
Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 518 |
Sy (Default_Expression, Node_Id, Default_Empty), |
| 519 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 520 |
Sm (More_Ids, Flag), |
| 521 |
Sm (Prev_Ids, Flag))); |
| 522 |
|
| 523 |
Cc (N_Formal_Type_Declaration, N_Declaration, |
| 524 |
(Sy (Defining_Identifier, Node_Id), |
| 525 |
Sy (Formal_Type_Definition, Node_Id), |
| 526 |
Sy (Discriminant_Specifications, List_Id, Default_No_List), |
| 527 |
Sy (Unknown_Discriminants_Present, Flag), |
| 528 |
Sy (Default_Subtype_Mark, Node_Id), |
| 529 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 530 |
|
| 531 |
Cc (N_Full_Type_Declaration, N_Declaration, |
| 532 |
(Sy (Defining_Identifier, Node_Id), |
| 533 |
Sy (Discriminant_Specifications, List_Id, Default_No_List), |
| 534 |
Sy (Type_Definition, Node_Id), |
| 535 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 536 |
Sm (Discr_Check_Funcs_Built, Flag), |
| 537 |
Sm (Incomplete_View, Node_Id))); |
| 538 |
|
| 539 |
Cc (N_Incomplete_Type_Declaration, N_Declaration, |
| 540 |
(Sy (Defining_Identifier, Node_Id), |
| 541 |
Sy (Discriminant_Specifications, List_Id, Default_No_List), |
| 542 |
Sy (Unknown_Discriminants_Present, Flag), |
| 543 |
Sy (Tagged_Present, Flag), |
| 544 |
Sm (Premature_Use, Node_Id))); |
| 545 |
|
| 546 |
Cc (N_Iterator_Specification, N_Declaration, |
| 547 |
(Sy (Defining_Identifier, Node_Id), |
| 548 |
Sy (Subtype_Indication, Node_Id, Default_Empty), |
| 549 |
Sy (Of_Present, Flag), |
| 550 |
Sy (Reverse_Present, Flag), |
| 551 |
Sy (Name, Node_Id, Default_Empty), |
| 552 |
Sy (Iterator_Filter, Node_Id, Default_Empty))); |
| 553 |
|
| 554 |
Cc (N_Loop_Parameter_Specification, N_Declaration, |
| 555 |
(Sy (Defining_Identifier, Node_Id), |
| 556 |
Sy (Reverse_Present, Flag), |
| 557 |
Sy (Discrete_Subtype_Definition, Node_Id, Default_Empty), |
| 558 |
Sy (Iterator_Filter, Node_Id, Default_Empty))); |
| 559 |
|
| 560 |
Cc (N_Object_Declaration, N_Declaration, |
| 561 |
(Sy (Defining_Identifier, Node_Id), |
| 562 |
Sy (Aliased_Present, Flag), |
| 563 |
Sy (Constant_Present, Flag), |
| 564 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 565 |
Sy (Object_Definition, Node_Id), |
| 566 |
Sy (Expression, Node_Id, Default_Empty), |
| 567 |
Sy (Has_Init_Expression, Flag), |
| 568 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 569 |
Sm (Assignment_OK, Flag), |
| 570 |
Sm (Corresponding_Generic_Association, Node_Id), |
| 571 |
Sm (Exception_Junk, Flag), |
| 572 |
Sm (Handler_List_Entry, Node_Id), |
| 573 |
Sm (Is_Subprogram_Descriptor, Flag), |
| 574 |
Sm (More_Ids, Flag), |
| 575 |
Sm (No_Initialization, Flag), |
| 576 |
Sm (Prev_Ids, Flag), |
| 577 |
Sm (Suppress_Assignment_Checks, Flag))); |
| 578 |
|
| 579 |
Cc (N_Protected_Type_Declaration, N_Declaration, |
| 580 |
(Sy (Defining_Identifier, Node_Id), |
| 581 |
Sy (Discriminant_Specifications, List_Id, Default_No_List), |
| 582 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 583 |
Sy (Interface_List, List_Id, Default_No_List), |
| 584 |
Sy (Protected_Definition, Node_Id), |
| 585 |
Sm (Corresponding_Body, Node_Id))); |
| 586 |
|
| 587 |
Cc (N_Private_Extension_Declaration, N_Declaration, |
| 588 |
(Sy (Defining_Identifier, Node_Id), |
| 589 |
Sy (Discriminant_Specifications, List_Id, Default_No_List), |
| 590 |
Sy (Unknown_Discriminants_Present, Flag), |
| 591 |
Sy (Abstract_Present, Flag), |
| 592 |
Sy (Limited_Present, Flag), |
| 593 |
Sy (Synchronized_Present, Flag), |
| 594 |
Sy (Subtype_Indication, Node_Id, Default_Empty), |
| 595 |
Sy (Interface_List, List_Id, Default_No_List), |
| 596 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 597 |
Sm (Uninitialized_Variable, Node_Id))); |
| 598 |
|
| 599 |
Cc (N_Private_Type_Declaration, N_Declaration, |
| 600 |
(Sy (Defining_Identifier, Node_Id), |
| 601 |
Sy (Discriminant_Specifications, List_Id, Default_No_List), |
| 602 |
Sy (Unknown_Discriminants_Present, Flag), |
| 603 |
Sy (Abstract_Present, Flag), |
| 604 |
Sy (Tagged_Present, Flag), |
| 605 |
Sy (Limited_Present, Flag), |
| 606 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 607 |
|
| 608 |
Cc (N_Subtype_Declaration, N_Declaration, |
| 609 |
(Sy (Defining_Identifier, Node_Id), |
| 610 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 611 |
Sy (Subtype_Indication, Node_Id, Default_Empty), |
| 612 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 613 |
Sm (Exception_Junk, Flag), |
| 614 |
Sm (Generic_Parent_Type, Node_Id))); |
| 615 |
|
| 616 |
Ab (N_Subprogram_Specification, N_Declaration, |
| 617 |
(Sm (Generic_Parent, Node_Id))); |
| 618 |
|
| 619 |
Cc (N_Function_Specification, N_Subprogram_Specification, |
| 620 |
(Sy (Must_Override, Flag), |
| 621 |
Sy (Must_Not_Override, Flag), |
| 622 |
Sy (Defining_Unit_Name, Node_Id), |
| 623 |
Sy (Parameter_Specifications, List_Id, Default_No_List), |
| 624 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 625 |
Sy (Result_Definition, Node_Id))); |
| 626 |
|
| 627 |
Cc (N_Procedure_Specification, N_Subprogram_Specification, |
| 628 |
(Sy (Must_Override, Flag), |
| 629 |
Sy (Must_Not_Override, Flag), |
| 630 |
Sy (Defining_Unit_Name, Node_Id), |
| 631 |
Sy (Parameter_Specifications, List_Id, Default_No_List), |
| 632 |
Sy (Null_Present, Flag), |
| 633 |
Sm (Null_Statement, Node_Id))); |
| 634 |
|
| 635 |
Ab (N_Access_To_Subprogram_Definition, Node_Kind); |
| 636 |
|
| 637 |
Cc (N_Access_Function_Definition, N_Access_To_Subprogram_Definition, |
| 638 |
(Sy (Null_Exclusion_Present, Flag, Default_False), |
| 639 |
Sy (Protected_Present, Flag), |
| 640 |
Sy (Parameter_Specifications, List_Id, Default_No_List), |
| 641 |
Sy (Null_Exclusion_In_Return_Present, Flag), |
| 642 |
Sy (Result_Definition, Node_Id))); |
| 643 |
|
| 644 |
Cc (N_Access_Procedure_Definition, N_Access_To_Subprogram_Definition, |
| 645 |
(Sy (Null_Exclusion_Present, Flag, Default_False), |
| 646 |
Sy (Protected_Present, Flag), |
| 647 |
Sy (Parameter_Specifications, List_Id, Default_No_List))); |
| 648 |
|
| 649 |
Ab (N_Later_Decl_Item, Node_Kind); |
| 650 |
-- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes |
| 651 |
-- only those items which can appear as later declarative items. This also |
| 652 |
-- includes N_Implicit_Label_Declaration which is not specifically in the |
| 653 |
-- grammar but may appear as a valid later declarative items. It does NOT |
| 654 |
-- include N_Pragma which can also appear among later declarative items. |
| 655 |
-- It does however include N_Protected_Body, which is a bit peculiar, but |
| 656 |
-- harmless since this cannot appear in Ada 83 mode anyway. |
| 657 |
|
| 658 |
Cc (N_Task_Type_Declaration, N_Later_Decl_Item, |
| 659 |
(Sy (Defining_Identifier, Node_Id), |
| 660 |
Sy (Discriminant_Specifications, List_Id, Default_No_List), |
| 661 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 662 |
Sy (Interface_List, List_Id, Default_No_List), |
| 663 |
Sy (Task_Definition, Node_Id, Default_Empty), |
| 664 |
Sm (Corresponding_Body, Node_Id))); |
| 665 |
|
| 666 |
Ab (N_Body_Stub, N_Later_Decl_Item, |
| 667 |
(Sm (Corresponding_Body, Node_Id), |
| 668 |
Sm (Corresponding_Spec_Of_Stub, Node_Id), |
| 669 |
Sm (Library_Unit, Node_Id))); |
| 670 |
|
| 671 |
Cc (N_Package_Body_Stub, N_Body_Stub, |
| 672 |
(Sy (Defining_Identifier, Node_Id), |
| 673 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 674 |
|
| 675 |
Cc (N_Protected_Body_Stub, N_Body_Stub, |
| 676 |
(Sy (Defining_Identifier, Node_Id), |
| 677 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 678 |
|
| 679 |
Cc (N_Subprogram_Body_Stub, N_Body_Stub, |
| 680 |
(Sy (Specification, Node_Id), |
| 681 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 682 |
|
| 683 |
Cc (N_Task_Body_Stub, N_Body_Stub, |
| 684 |
(Sy (Defining_Identifier, Node_Id), |
| 685 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 686 |
|
| 687 |
Ab (N_Generic_Instantiation, N_Later_Decl_Item, |
| 688 |
(Sy (Defining_Unit_Name, Node_Id), |
| 689 |
Sy (Name, Node_Id, Default_Empty), |
| 690 |
Sy (Generic_Associations, List_Id, Default_No_List), |
| 691 |
Sm (Instance_Spec, Node_Id), |
| 692 |
Sm (Is_Declaration_Level_Node, Flag), |
| 693 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 694 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 695 |
Sm (Is_Known_Guaranteed_ABE, Flag), |
| 696 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 697 |
Sm (Parent_Spec, Node_Id))); |
| 698 |
|
| 699 |
Ab (N_Subprogram_Instantiation, N_Generic_Instantiation, |
| 700 |
(Sy (Must_Override, Flag), |
| 701 |
Sy (Must_Not_Override, Flag), |
| 702 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 703 |
|
| 704 |
Cc (N_Function_Instantiation, N_Subprogram_Instantiation); |
| 705 |
Cc (N_Procedure_Instantiation, N_Subprogram_Instantiation); |
| 706 |
|
| 707 |
Cc (N_Package_Instantiation, N_Generic_Instantiation, |
| 708 |
(Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 709 |
|
| 710 |
Ab (N_Proper_Body, N_Later_Decl_Item, |
| 711 |
(Sm (Corresponding_Spec, Node_Id), |
| 712 |
Sm (Was_Originally_Stub, Flag))); |
| 713 |
|
| 714 |
Ab (N_Lib_Unit_Body, N_Proper_Body); |
| 715 |
|
| 716 |
Cc (N_Package_Body, N_Lib_Unit_Body, |
| 717 |
(Sy (Defining_Unit_Name, Node_Id), |
| 718 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 719 |
Sy (Declarations, List_Id, Default_No_List), |
| 720 |
Sy (Handled_Statement_Sequence, Node_Id, Default_Empty), |
| 721 |
Sy (At_End_Proc, Node_Id, Default_Empty))); |
| 722 |
|
| 723 |
Cc (N_Subprogram_Body, N_Lib_Unit_Body, |
| 724 |
(Sy (Specification, Node_Id), |
| 725 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 726 |
Sy (Declarations, List_Id, Default_No_List), |
| 727 |
Sy (Handled_Statement_Sequence, Node_Id, Default_Empty), |
| 728 |
Sy (Bad_Is_Detected, Flag), |
| 729 |
Sy (At_End_Proc, Node_Id, Default_Empty), |
| 730 |
Sm (Activation_Chain_Entity, Node_Id), |
| 731 |
Sm (Acts_As_Spec, Flag), |
| 732 |
Sm (Corresponding_Entry_Body, Node_Id), |
| 733 |
Sm (Do_Storage_Check, Flag), |
| 734 |
Sm (Has_Relative_Deadline_Pragma, Flag), |
| 735 |
Sm (Is_Entry_Barrier_Function, Flag), |
| 736 |
Sm (Is_Protected_Subprogram_Body, Flag), |
| 737 |
Sm (Is_Task_Body_Procedure, Flag), |
| 738 |
Sm (Is_Task_Master, Flag), |
| 739 |
Sm (Was_Attribute_Reference, Flag), |
| 740 |
Sm (Was_Expression_Function, Flag))); |
| 741 |
|
| 742 |
Cc (N_Protected_Body, N_Proper_Body, |
| 743 |
(Sy (Defining_Identifier, Node_Id), |
| 744 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 745 |
Sy (Declarations, List_Id, Default_No_List), |
| 746 |
Sy (End_Label, Node_Id, Default_Empty))); |
| 747 |
|
| 748 |
Cc (N_Task_Body, N_Proper_Body, |
| 749 |
(Sy (Defining_Identifier, Node_Id), |
| 750 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 751 |
Sy (Declarations, List_Id, Default_No_List), |
| 752 |
Sy (Handled_Statement_Sequence, Node_Id, Default_Empty), |
| 753 |
Sy (At_End_Proc, Node_Id, Default_Empty), |
| 754 |
Sm (Activation_Chain_Entity, Node_Id), |
| 755 |
Sm (Is_Task_Master, Flag))); |
| 756 |
|
| 757 |
Cc (N_Implicit_Label_Declaration, N_Later_Decl_Item, |
| 758 |
(Sy (Defining_Identifier, Node_Id), |
| 759 |
Sm (Label_Construct, Node_Id))); |
| 760 |
|
| 761 |
Cc (N_Package_Declaration, N_Later_Decl_Item, |
| 762 |
(Sy (Specification, Node_Id), |
| 763 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 764 |
Sm (Activation_Chain_Entity, Node_Id), |
| 765 |
Sm (Corresponding_Body, Node_Id), |
| 766 |
Sm (Parent_Spec, Node_Id))); |
| 767 |
|
| 768 |
Cc (N_Single_Task_Declaration, N_Later_Decl_Item, |
| 769 |
(Sy (Defining_Identifier, Node_Id), |
| 770 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 771 |
Sy (Interface_List, List_Id, Default_No_List), |
| 772 |
Sy (Task_Definition, Node_Id, Default_Empty))); |
| 773 |
|
| 774 |
Cc (N_Subprogram_Declaration, N_Later_Decl_Item, |
| 775 |
(Sy (Specification, Node_Id), |
| 776 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 777 |
Sm (Body_To_Inline, Node_Id), |
| 778 |
Sm (Corresponding_Body, Node_Id), |
| 779 |
Sm (Is_Entry_Barrier_Function, Flag), |
| 780 |
Sm (Is_Task_Body_Procedure, Flag), |
| 781 |
Sm (Parent_Spec, Node_Id))); |
| 782 |
|
| 783 |
Cc (N_Use_Package_Clause, N_Later_Decl_Item, |
| 784 |
(Sy (Name, Node_Id, Default_Empty), |
| 785 |
Sm (Is_Effective_Use_Clause, Flag), |
| 786 |
Sm (Entity_Or_Associated_Node, Node_Id), -- just Associated_Node |
| 787 |
Sm (Hidden_By_Use_Clause, Elist_Id), |
| 788 |
Sm (More_Ids, Flag), |
| 789 |
Sm (Next_Use_Clause, Node_Id), |
| 790 |
Sm (Prev_Ids, Flag), |
| 791 |
Sm (Prev_Use_Clause, Node_Id))); |
| 792 |
|
| 793 |
Ab (N_Generic_Declaration, N_Later_Decl_Item, |
| 794 |
(Sm (Corresponding_Body, Node_Id), |
| 795 |
Sm (Parent_Spec, Node_Id))); |
| 796 |
|
| 797 |
Cc (N_Generic_Package_Declaration, N_Generic_Declaration, |
| 798 |
(Sy (Specification, Node_Id), |
| 799 |
Sy (Generic_Formal_Declarations, List_Id), |
| 800 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 801 |
|
| 802 |
Cc (N_Generic_Subprogram_Declaration, N_Generic_Declaration, |
| 803 |
(Sy (Specification, Node_Id), |
| 804 |
Sy (Generic_Formal_Declarations, List_Id), |
| 805 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 806 |
|
| 807 |
Ab (N_Array_Type_Definition, Node_Kind); |
| 808 |
|
| 809 |
Cc (N_Constrained_Array_Definition, N_Array_Type_Definition, |
| 810 |
(Sy (Discrete_Subtype_Definitions, List_Id), |
| 811 |
Sy (Component_Definition, Node_Id))); |
| 812 |
|
| 813 |
Cc (N_Unconstrained_Array_Definition, N_Array_Type_Definition, |
| 814 |
(Sy (Subtype_Marks, List_Id), |
| 815 |
Sy (Component_Definition, Node_Id))); |
| 816 |
|
| 817 |
Ab (N_Renaming_Declaration, Node_Kind); |
| 818 |
|
| 819 |
Cc (N_Exception_Renaming_Declaration, N_Renaming_Declaration, |
| 820 |
(Sy (Defining_Identifier, Node_Id), |
| 821 |
Sy (Name, Node_Id, Default_Empty), |
| 822 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 823 |
|
| 824 |
Cc (N_Object_Renaming_Declaration, N_Renaming_Declaration, |
| 825 |
(Sy (Defining_Identifier, Node_Id), |
| 826 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 827 |
Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 828 |
Sy (Access_Definition, Node_Id, Default_Empty), |
| 829 |
Sy (Name, Node_Id, Default_Empty), |
| 830 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 831 |
Sm (Comes_From_Iterator, Flag), |
| 832 |
Sm (Corresponding_Generic_Association, Node_Id))); |
| 833 |
|
| 834 |
Cc (N_Package_Renaming_Declaration, N_Renaming_Declaration, |
| 835 |
(Sy (Defining_Unit_Name, Node_Id), |
| 836 |
Sy (Name, Node_Id, Default_Empty), |
| 837 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 838 |
Sm (Parent_Spec, Node_Id))); |
| 839 |
|
| 840 |
Cc (N_Subprogram_Renaming_Declaration, N_Renaming_Declaration, |
| 841 |
(Sy (Specification, Node_Id), |
| 842 |
Sy (Name, Node_Id, Default_Empty), |
| 843 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 844 |
Sm (Corresponding_Formal_Spec, Node_Id), |
| 845 |
Sm (Corresponding_Spec, Node_Id), |
| 846 |
Sm (From_Default, Flag), |
| 847 |
Sm (Parent_Spec, Node_Id))); |
| 848 |
|
| 849 |
Ab (N_Generic_Renaming_Declaration, N_Renaming_Declaration, |
| 850 |
(Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 851 |
Sm (Parent_Spec, Node_Id))); |
| 852 |
|
| 853 |
Cc (N_Generic_Function_Renaming_Declaration, N_Generic_Renaming_Declaration, |
| 854 |
(Sy (Defining_Unit_Name, Node_Id), |
| 855 |
Sy (Name, Node_Id, Default_Empty))); |
| 856 |
|
| 857 |
Cc (N_Generic_Package_Renaming_Declaration, N_Generic_Renaming_Declaration, |
| 858 |
(Sy (Defining_Unit_Name, Node_Id), |
| 859 |
Sy (Name, Node_Id, Default_Empty))); |
| 860 |
|
| 861 |
Cc (N_Generic_Procedure_Renaming_Declaration, N_Generic_Renaming_Declaration, |
| 862 |
(Sy (Defining_Unit_Name, Node_Id), |
| 863 |
Sy (Name, Node_Id, Default_Empty))); |
| 864 |
|
| 865 |
Ab (N_Statement_Other_Than_Procedure_Call, Node_Kind); |
| 866 |
-- Note that this includes all statement types except for the cases of the |
| 867 |
-- N_Procedure_Call_Statement which is considered to be a subexpression |
| 868 |
-- (since overloading is possible, so it needs to go through the normal |
| 869 |
-- overloading resolution for expressions). |
| 870 |
|
| 871 |
Cc (N_Abort_Statement, N_Statement_Other_Than_Procedure_Call, |
| 872 |
(Sy (Names, List_Id))); |
| 873 |
|
| 874 |
Cc (N_Accept_Statement, N_Statement_Other_Than_Procedure_Call, |
| 875 |
(Sy (Entry_Direct_Name, Node_Id), |
| 876 |
Sy (Entry_Index, Node_Id, Default_Empty), |
| 877 |
Sy (Parameter_Specifications, List_Id, Default_No_List), |
| 878 |
Sy (Handled_Statement_Sequence, Node_Id, Default_Empty), |
| 879 |
Sy (Declarations, List_Id, Default_No_List))); |
| 880 |
|
| 881 |
Cc (N_Assignment_Statement, N_Statement_Other_Than_Procedure_Call, |
| 882 |
(Sy (Name, Node_Id, Default_Empty), |
| 883 |
Sy (Expression, Node_Id, Default_Empty), |
| 884 |
Sm (Backwards_OK, Flag), |
| 885 |
Sm (Componentwise_Assignment, Flag), |
| 886 |
Sm (Do_Discriminant_Check, Flag), |
| 887 |
Sm (Do_Length_Check, Flag), |
| 888 |
Sm (Forwards_OK, Flag), |
| 889 |
Sm (Has_Target_Names, Flag), |
| 890 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 891 |
Sm (Is_Elaboration_Code, Flag), |
| 892 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 893 |
Sm (No_Ctrl_Actions, Flag), |
| 894 |
Sm (No_Finalize_Actions, Flag), |
| 895 |
Sm (Suppress_Assignment_Checks, Flag))); |
| 896 |
|
| 897 |
Cc (N_Asynchronous_Select, N_Statement_Other_Than_Procedure_Call, |
| 898 |
(Sy (Triggering_Alternative, Node_Id), |
| 899 |
Sy (Abortable_Part, Node_Id))); |
| 900 |
|
| 901 |
Cc (N_Block_Statement, N_Statement_Other_Than_Procedure_Call, |
| 902 |
(Sy (Identifier, Node_Id, Default_Empty), |
| 903 |
Sy (Declarations, List_Id, Default_No_List), |
| 904 |
Sy (Handled_Statement_Sequence, Node_Id, Default_Empty), |
| 905 |
Sy (Has_Created_Identifier, Flag), |
| 906 |
Sy (Is_Asynchronous_Call_Block, Flag), |
| 907 |
Sy (Is_Task_Allocation_Block, Flag), |
| 908 |
Sy (At_End_Proc, Node_Id, Default_Empty), |
| 909 |
Sm (Activation_Chain_Entity, Node_Id), |
| 910 |
Sm (Cleanup_Actions, List_Id), |
| 911 |
Sm (Exception_Junk, Flag), |
| 912 |
Sm (Is_Abort_Block, Flag), |
| 913 |
Sm (Is_Initialization_Block, Flag), |
| 914 |
Sm (Is_Task_Master, Flag))); |
| 915 |
|
| 916 |
Cc (N_Case_Statement, N_Statement_Other_Than_Procedure_Call, |
| 917 |
(Sy (Expression, Node_Id, Default_Empty), |
| 918 |
Sy (Alternatives, List_Id, Default_No_List), |
| 919 |
Sy (End_Span, Unat, Default_Uint_0), |
| 920 |
Sm (From_Conditional_Expression, Flag))); |
| 921 |
|
| 922 |
Cc (N_Code_Statement, N_Statement_Other_Than_Procedure_Call, |
| 923 |
(Sy (Expression, Node_Id, Default_Empty))); |
| 924 |
|
| 925 |
Cc (N_Compound_Statement, N_Statement_Other_Than_Procedure_Call, |
| 926 |
(Sy (Actions, List_Id, Default_No_List))); |
| 927 |
|
| 928 |
Cc (N_Conditional_Entry_Call, N_Statement_Other_Than_Procedure_Call, |
| 929 |
(Sy (Entry_Call_Alternative, Node_Id), |
| 930 |
Sy (Else_Statements, List_Id, Default_No_List))); |
| 931 |
|
| 932 |
Ab (N_Delay_Statement, N_Statement_Other_Than_Procedure_Call, |
| 933 |
(Sy (Expression, Node_Id, Default_Empty))); |
| 934 |
|
| 935 |
Cc (N_Delay_Relative_Statement, N_Delay_Statement); |
| 936 |
Cc (N_Delay_Until_Statement, N_Delay_Statement); |
| 937 |
|
| 938 |
Cc (N_Entry_Call_Statement, N_Statement_Other_Than_Procedure_Call, |
| 939 |
(Sy (Name, Node_Id, Default_Empty), |
| 940 |
Sy (Parameter_Associations, List_Id, Default_No_List), |
| 941 |
Sm (First_Named_Actual, Node_Id), |
| 942 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 943 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 944 |
Sm (Is_SPARK_Mode_On_Node, Flag))); |
| 945 |
|
| 946 |
Cc (N_Free_Statement, N_Statement_Other_Than_Procedure_Call, |
| 947 |
(Sy (Expression, Node_Id, Default_Empty), |
| 948 |
Sm (Actual_Designated_Subtype, Node_Id), |
| 949 |
Sm (Procedure_To_Call, Node_Id), |
| 950 |
Sm (Storage_Pool, Node_Id), |
| 951 |
Sm (For_Allocator, Flag))); |
| 952 |
|
| 953 |
Cc (N_Goto_Statement, N_Statement_Other_Than_Procedure_Call, |
| 954 |
(Sy (Name, Node_Id, Default_Empty), |
| 955 |
Sm (Exception_Junk, Flag))); |
| 956 |
|
| 957 |
Cc (N_Goto_When_Statement, N_Statement_Other_Than_Procedure_Call, |
| 958 |
(Sy (Name, Node_Id, Default_Empty), |
| 959 |
Sy (Condition, Node_Id, Default_Empty))); |
| 960 |
|
| 961 |
Cc (N_Loop_Statement, N_Statement_Other_Than_Procedure_Call, |
| 962 |
(Sy (Identifier, Node_Id, Default_Empty), |
| 963 |
Sy (Iteration_Scheme, Node_Id, Default_Empty), |
| 964 |
Sy (Statements, List_Id, Default_Empty_List), |
| 965 |
Sy (End_Label, Node_Id, Default_Empty), |
| 966 |
Sy (Has_Created_Identifier, Flag), |
| 967 |
Sy (Is_Null_Loop, Flag), |
| 968 |
Sy (Suppress_Loop_Warnings, Flag))); |
| 969 |
|
| 970 |
Cc (N_Null_Statement, N_Statement_Other_Than_Procedure_Call, |
| 971 |
(Sm (Next_Rep_Item, Node_Id))); |
| 972 |
|
| 973 |
Cc (N_Raise_Statement, N_Statement_Other_Than_Procedure_Call, |
| 974 |
(Sy (Name, Node_Id, Default_Empty), |
| 975 |
Sy (Expression, Node_Id, Default_Empty))); |
| 976 |
|
| 977 |
Cc (N_Raise_When_Statement, N_Statement_Other_Than_Procedure_Call, |
| 978 |
(Sy (Name, Node_Id, Default_Empty), |
| 979 |
Sy (Expression, Node_Id, Default_Empty), |
| 980 |
Sy (Condition, Node_Id, Default_Empty))); |
| 981 |
|
| 982 |
Cc (N_Requeue_Statement, N_Statement_Other_Than_Procedure_Call, |
| 983 |
(Sy (Name, Node_Id, Default_Empty), |
| 984 |
Sy (Abort_Present, Flag), |
| 985 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 986 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 987 |
Sm (Is_SPARK_Mode_On_Node, Flag))); |
| 988 |
|
| 989 |
Cc (N_Simple_Return_Statement, N_Statement_Other_Than_Procedure_Call, |
| 990 |
(Sy (Expression, Node_Id, Default_Empty), |
| 991 |
Sm (Comes_From_Extended_Return_Statement, Flag), |
| 992 |
Sm (Procedure_To_Call, Node_Id), |
| 993 |
Sm (Return_Statement_Entity, Node_Id), |
| 994 |
Sm (Storage_Pool, Node_Id))); |
| 995 |
|
| 996 |
Cc (N_Extended_Return_Statement, N_Statement_Other_Than_Procedure_Call, |
| 997 |
(Sy (Return_Object_Declarations, List_Id), |
| 998 |
Sy (Handled_Statement_Sequence, Node_Id, Default_Empty), |
| 999 |
Sm (Procedure_To_Call, Node_Id), |
| 1000 |
Sm (Return_Statement_Entity, Node_Id), |
| 1001 |
Sm (Storage_Pool, Node_Id))); |
| 1002 |
|
| 1003 |
Cc (N_Return_When_Statement, N_Statement_Other_Than_Procedure_Call, |
| 1004 |
(Sy (Expression, Node_Id, Default_Empty), |
| 1005 |
Sy (Condition, Node_Id, Default_Empty))); |
| 1006 |
|
| 1007 |
Cc (N_Selective_Accept, N_Statement_Other_Than_Procedure_Call, |
| 1008 |
(Sy (Select_Alternatives, List_Id), |
| 1009 |
Sy (Else_Statements, List_Id, Default_No_List))); |
| 1010 |
|
| 1011 |
Cc (N_Timed_Entry_Call, N_Statement_Other_Than_Procedure_Call, |
| 1012 |
(Sy (Entry_Call_Alternative, Node_Id), |
| 1013 |
Sy (Delay_Alternative, Node_Id))); |
| 1014 |
|
| 1015 |
Cc (N_Exit_Statement, N_Statement_Other_Than_Procedure_Call, |
| 1016 |
(Sy (Name, Node_Id, Default_Empty), |
| 1017 |
Sy (Condition, Node_Id, Default_Empty), |
| 1018 |
Sm (Next_Exit_Statement, Node_Id))); |
| 1019 |
|
| 1020 |
Cc (N_If_Statement, N_Statement_Other_Than_Procedure_Call, |
| 1021 |
(Sy (Condition, Node_Id, Default_Empty), |
| 1022 |
Sy (Then_Statements, List_Id), |
| 1023 |
Sy (Elsif_Parts, List_Id, Default_No_List), |
| 1024 |
Sy (Else_Statements, List_Id, Default_No_List), |
| 1025 |
Sy (End_Span, Unat, Default_Uint_0), |
| 1026 |
Sm (From_Conditional_Expression, Flag), |
| 1027 |
Sm (Comes_From_Check_Or_Contract, Flag))); |
| 1028 |
|
| 1029 |
Cc (N_Accept_Alternative, Node_Kind, |
| 1030 |
(Sy (Accept_Statement, Node_Id), |
| 1031 |
Sy (Condition, Node_Id, Default_Empty), |
| 1032 |
Sy (Statements, List_Id, Default_Empty_List), |
| 1033 |
Sy (Pragmas_Before, List_Id, Default_No_List), |
| 1034 |
Sm (Accept_Handler_Records, List_Id))); |
| 1035 |
|
| 1036 |
Cc (N_Delay_Alternative, Node_Kind, |
| 1037 |
(Sy (Delay_Statement, Node_Id), |
| 1038 |
Sy (Condition, Node_Id, Default_Empty), |
| 1039 |
Sy (Statements, List_Id, Default_Empty_List), |
| 1040 |
Sy (Pragmas_Before, List_Id, Default_No_List))); |
| 1041 |
|
| 1042 |
Cc (N_Elsif_Part, Node_Kind, |
| 1043 |
(Sy (Condition, Node_Id, Default_Empty), |
| 1044 |
Sy (Then_Statements, List_Id), |
| 1045 |
Sm (Condition_Actions, List_Id))); |
| 1046 |
|
| 1047 |
Cc (N_Entry_Body_Formal_Part, Node_Kind, |
| 1048 |
(Sy (Entry_Index_Specification, Node_Id, Default_Empty), |
| 1049 |
Sy (Parameter_Specifications, List_Id, Default_No_List), |
| 1050 |
Sy (Condition, Node_Id, Default_Empty))); |
| 1051 |
|
| 1052 |
Cc (N_Iteration_Scheme, Node_Kind, |
| 1053 |
(Sy (Condition, Node_Id, Default_Empty), |
| 1054 |
Sy (Iterator_Specification, Node_Id, Default_Empty), |
| 1055 |
Sy (Loop_Parameter_Specification, Node_Id, Default_Empty), |
| 1056 |
Sm (Condition_Actions, List_Id))); |
| 1057 |
|
| 1058 |
Cc (N_Terminate_Alternative, Node_Kind, |
| 1059 |
(Sy (Condition, Node_Id, Default_Empty), |
| 1060 |
Sy (Pragmas_Before, List_Id, Default_No_List), |
| 1061 |
Sy (Pragmas_After, List_Id, Default_No_List))); |
| 1062 |
|
| 1063 |
Ab (N_Formal_Subprogram_Declaration, Node_Kind, |
| 1064 |
(Sy (Specification, Node_Id), |
| 1065 |
Sy (Default_Name, Node_Id, Default_Empty), |
| 1066 |
Sy (Expression, Node_Id, Default_Empty), |
| 1067 |
Sy (Box_Present, Flag), |
| 1068 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 1069 |
|
| 1070 |
Cc (N_Formal_Abstract_Subprogram_Declaration, N_Formal_Subprogram_Declaration); |
| 1071 |
|
| 1072 |
Cc (N_Formal_Concrete_Subprogram_Declaration, N_Formal_Subprogram_Declaration); |
| 1073 |
|
| 1074 |
Ab (N_Push_Pop_xxx_Label, Node_Kind); |
| 1075 |
|
| 1076 |
Ab (N_Push_xxx_Label, N_Push_Pop_xxx_Label, |
| 1077 |
(Sm (Exception_Label, Node_Id))); |
| 1078 |
|
| 1079 |
Cc (N_Push_Constraint_Error_Label, N_Push_xxx_Label); |
| 1080 |
Cc (N_Push_Program_Error_Label, N_Push_xxx_Label); |
| 1081 |
Cc (N_Push_Storage_Error_Label, N_Push_xxx_Label); |
| 1082 |
|
| 1083 |
Ab (N_Pop_xxx_Label, N_Push_Pop_xxx_Label); |
| 1084 |
|
| 1085 |
Cc (N_Pop_Constraint_Error_Label, N_Pop_xxx_Label); |
| 1086 |
Cc (N_Pop_Program_Error_Label, N_Pop_xxx_Label); |
| 1087 |
Cc (N_Pop_Storage_Error_Label, N_Pop_xxx_Label); |
| 1088 |
|
| 1089 |
Ab (N_SCIL_Node, Node_Kind, |
| 1090 |
(Sm (SCIL_Entity, Node_Id))); |
| 1091 |
|
| 1092 |
Cc (N_SCIL_Dispatch_Table_Tag_Init, N_SCIL_Node); |
| 1093 |
|
| 1094 |
Cc (N_SCIL_Dispatching_Call, N_SCIL_Node, |
| 1095 |
(Sm (SCIL_Controlling_Tag, Node_Id), |
| 1096 |
Sm (SCIL_Target_Prim, Node_Id))); |
| 1097 |
|
| 1098 |
Cc (N_SCIL_Membership_Test, N_SCIL_Node, |
| 1099 |
(Sm (SCIL_Tag_Value, Node_Id))); |
| 1100 |
|
| 1101 |
Cc (N_Abortable_Part, Node_Kind, |
| 1102 |
(Sy (Statements, List_Id, Default_Empty_List))); |
| 1103 |
|
| 1104 |
Cc (N_Abstract_Subprogram_Declaration, Node_Kind, |
| 1105 |
(Sy (Specification, Node_Id), |
| 1106 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 1107 |
|
| 1108 |
Cc (N_Access_Definition, Node_Kind, |
| 1109 |
(Sy (Null_Exclusion_Present, Flag, Default_False), |
| 1110 |
Sy (All_Present, Flag), |
| 1111 |
Sy (Constant_Present, Flag), |
| 1112 |
Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 1113 |
Sy (Access_To_Subprogram_Definition, Node_Id, Default_Empty))); |
| 1114 |
|
| 1115 |
Cc (N_Access_To_Object_Definition, Node_Kind, |
| 1116 |
(Sy (Null_Exclusion_Present, Flag, Default_False), |
| 1117 |
Sy (All_Present, Flag), |
| 1118 |
Sy (Constant_Present, Flag), |
| 1119 |
Sy (Null_Excluding_Subtype, Flag), |
| 1120 |
Sy (Subtype_Indication, Node_Id, Default_Empty))); |
| 1121 |
|
| 1122 |
Cc (N_Aspect_Specification, Node_Kind, |
| 1123 |
(Sy (Identifier, Node_Id, Default_Empty), |
| 1124 |
Sy (Expression, Node_Id, Default_Empty), |
| 1125 |
Sy (Class_Present, Flag), |
| 1126 |
Sm (Aspect_On_Partial_View, Flag), |
| 1127 |
Sm (Aspect_Rep_Item, Node_Id), |
| 1128 |
Sm (Aspect_Subprograms, Elist_Id), |
| 1129 |
Sm (Entity_Or_Associated_Node, Node_Id), -- just Entity |
| 1130 |
Sm (Expression_Copy, Node_Id), |
| 1131 |
Sm (Is_Boolean_Aspect, Flag), |
| 1132 |
Sm (Is_Checked, Flag), |
| 1133 |
Sm (Is_Delayed_Aspect, Flag), |
| 1134 |
Sm (Is_Disabled, Flag), |
| 1135 |
Sm (Is_Ignored, Flag), |
| 1136 |
Sm (Next_Rep_Item, Node_Id))); |
| 1137 |
|
| 1138 |
Cc (N_Call_Marker, Node_Kind, |
| 1139 |
(Sm (Is_Declaration_Level_Node, Flag), |
| 1140 |
Sm (Is_Dispatching_Call, Flag), |
| 1141 |
Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 1142 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 1143 |
Sm (Is_Known_Guaranteed_ABE, Flag), |
| 1144 |
Sm (Is_Preelaborable_Call, Flag), |
| 1145 |
Sm (Is_Source_Call, Flag), |
| 1146 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 1147 |
Sm (Target, Node_Id))); |
| 1148 |
|
| 1149 |
Cc (N_Case_Expression_Alternative, Node_Kind, |
| 1150 |
(Sm (Actions, List_Id), |
| 1151 |
Sy (Discrete_Choices, List_Id), |
| 1152 |
Sy (Expression, Node_Id, Default_Empty), |
| 1153 |
Sm (Has_SP_Choice, Flag))); |
| 1154 |
|
| 1155 |
Cc (N_Case_Statement_Alternative, Node_Kind, |
| 1156 |
(Sy (Discrete_Choices, List_Id), |
| 1157 |
Sy (Statements, List_Id, Default_Empty_List), |
| 1158 |
Sm (Has_SP_Choice, Flag), |
| 1159 |
Sm (Multidefined_Bindings, Flag))); |
| 1160 |
|
| 1161 |
Cc (N_Compilation_Unit, Node_Kind, |
| 1162 |
(Sy (Context_Items, List_Id), |
| 1163 |
Sy (Private_Present, Flag), |
| 1164 |
Sy (Unit, Node_Id), |
| 1165 |
Sy (Aux_Decls_Node, Node_Id), |
| 1166 |
Sm (Acts_As_Spec, Flag), |
| 1167 |
Sm (Body_Required, Flag), |
| 1168 |
Sm (Context_Pending, Flag), |
| 1169 |
Sm (First_Inlined_Subprogram, Node_Id), |
| 1170 |
Sm (Has_No_Elaboration_Code, Flag), |
| 1171 |
Sm (Has_Pragma_Suppress_All, Flag), |
| 1172 |
Sm (Library_Unit, Node_Id), |
| 1173 |
Sm (Save_Invocation_Graph_Of_Body, Flag))); |
| 1174 |
|
| 1175 |
Cc (N_Compilation_Unit_Aux, Node_Kind, |
| 1176 |
(Sy (Declarations, List_Id, Default_No_List), |
| 1177 |
Sy (Actions, List_Id, Default_No_List), |
| 1178 |
Sy (Pragmas_After, List_Id, Default_No_List), |
| 1179 |
Sy (Config_Pragmas, List_Id, Default_Empty_List), |
| 1180 |
Sm (Default_Storage_Pool, Node_Id))); |
| 1181 |
|
| 1182 |
Cc (N_Component_Association, Node_Kind, |
| 1183 |
(Sy (Choices, List_Id), |
| 1184 |
Sy (Expression, Node_Id, Default_Empty), |
| 1185 |
Sy (Box_Present, Flag), |
| 1186 |
Sy (Inherited_Discriminant, Flag), |
| 1187 |
Sy (Binding_Chars, Name_Id, Default_No_Name), |
| 1188 |
Sm (Loop_Actions, List_Id), |
| 1189 |
Sm (Was_Default_Init_Box_Association, Flag))); |
| 1190 |
|
| 1191 |
Cc (N_Component_Definition, Node_Kind, |
| 1192 |
(Sy (Aliased_Present, Flag), |
| 1193 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 1194 |
Sy (Subtype_Indication, Node_Id, Default_Empty), |
| 1195 |
Sy (Access_Definition, Node_Id, Default_Empty))); |
| 1196 |
|
| 1197 |
Cc (N_Component_List, Node_Kind, |
| 1198 |
(Sy (Component_Items, List_Id), |
| 1199 |
Sy (Variant_Part, Node_Id, Default_Empty), |
| 1200 |
Sy (Null_Present, Flag))); |
| 1201 |
|
| 1202 |
Cc (N_Contract, Node_Kind, |
| 1203 |
(Sm (Classifications, Node_Id), |
| 1204 |
Sm (Contract_Test_Cases, Node_Id), |
| 1205 |
Sm (Pre_Post_Conditions, Node_Id))); |
| 1206 |
|
| 1207 |
Cc (N_Derived_Type_Definition, Node_Kind, |
| 1208 |
(Sy (Abstract_Present, Flag), |
| 1209 |
Sy (Limited_Present, Flag), |
| 1210 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 1211 |
Sy (Subtype_Indication, Node_Id, Default_Empty), |
| 1212 |
Sy (Record_Extension_Part, Node_Id, Default_Empty), |
| 1213 |
Sy (Task_Present, Flag), |
| 1214 |
Sy (Protected_Present, Flag), |
| 1215 |
Sy (Synchronized_Present, Flag), |
| 1216 |
Sy (Interface_List, List_Id, Default_No_List), |
| 1217 |
Sy (Interface_Present, Flag))); |
| 1218 |
|
| 1219 |
Cc (N_Decimal_Fixed_Point_Definition, Node_Kind, |
| 1220 |
(Sy (Delta_Expression, Node_Id), |
| 1221 |
Sy (Digits_Expression, Node_Id), |
| 1222 |
Sy (Real_Range_Specification, Node_Id, Default_Empty))); |
| 1223 |
|
| 1224 |
Cc (N_Defining_Program_Unit_Name, Node_Kind, |
| 1225 |
(Sy (Name, Node_Id, Default_Empty), |
| 1226 |
Sy (Defining_Identifier, Node_Id))); |
| 1227 |
|
| 1228 |
Cc (N_Delta_Constraint, Node_Kind, |
| 1229 |
(Sy (Delta_Expression, Node_Id), |
| 1230 |
Sy (Range_Constraint, Node_Id, Default_Empty))); |
| 1231 |
|
| 1232 |
Cc (N_Designator, Node_Kind, |
| 1233 |
(Sy (Name, Node_Id, Default_Empty), |
| 1234 |
Sy (Identifier, Node_Id, Default_Empty))); |
| 1235 |
|
| 1236 |
Cc (N_Digits_Constraint, Node_Kind, |
| 1237 |
(Sy (Digits_Expression, Node_Id), |
| 1238 |
Sy (Range_Constraint, Node_Id, Default_Empty))); |
| 1239 |
|
| 1240 |
Cc (N_Discriminant_Association, Node_Kind, |
| 1241 |
(Sy (Selector_Names, List_Id), |
| 1242 |
Sy (Expression, Node_Id, Default_Empty))); |
| 1243 |
|
| 1244 |
Cc (N_Discriminant_Specification, Node_Kind, |
| 1245 |
(Sy (Defining_Identifier, Node_Id), |
| 1246 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 1247 |
Sy (Discriminant_Type, Node_Id), |
| 1248 |
Sy (Expression, Node_Id, Default_Empty), |
| 1249 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 1250 |
Sm (More_Ids, Flag), |
| 1251 |
Sm (Prev_Ids, Flag))); |
| 1252 |
|
| 1253 |
Cc (N_Enumeration_Type_Definition, Node_Kind, |
| 1254 |
(Sy (Literals, List_Id), |
| 1255 |
Sy (End_Label, Node_Id, Default_Empty))); |
| 1256 |
|
| 1257 |
Cc (N_Entry_Body, Node_Kind, |
| 1258 |
(Sy (Defining_Identifier, Node_Id), |
| 1259 |
Sy (Entry_Body_Formal_Part, Node_Id), |
| 1260 |
Sy (Declarations, List_Id, Default_No_List), |
| 1261 |
Sy (Handled_Statement_Sequence, Node_Id, Default_Empty), |
| 1262 |
Sy (At_End_Proc, Node_Id, Default_Empty), |
| 1263 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 1264 |
Sm (Activation_Chain_Entity, Node_Id), |
| 1265 |
Sm (Corresponding_Spec, Node_Id))); |
| 1266 |
|
| 1267 |
Cc (N_Entry_Call_Alternative, Node_Kind, |
| 1268 |
(Sy (Entry_Call_Statement, Node_Id), |
| 1269 |
Sy (Statements, List_Id, Default_Empty_List), |
| 1270 |
Sy (Pragmas_Before, List_Id, Default_No_List))); |
| 1271 |
|
| 1272 |
Cc (N_Entry_Index_Specification, Node_Kind, |
| 1273 |
(Sy (Defining_Identifier, Node_Id), |
| 1274 |
Sy (Discrete_Subtype_Definition, Node_Id, Default_Empty))); |
| 1275 |
|
| 1276 |
Cc (N_Exception_Declaration, N_Declaration, |
| 1277 |
(Sy (Defining_Identifier, Node_Id), |
| 1278 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 1279 |
Sm (Expression, Node_Id), |
| 1280 |
Sm (More_Ids, Flag), |
| 1281 |
Sm (Prev_Ids, Flag), |
| 1282 |
Sm (Renaming_Exception, Node_Id))); |
| 1283 |
|
| 1284 |
Cc (N_Exception_Handler, Node_Kind, |
| 1285 |
(Sy (Choice_Parameter, Node_Id, Default_Empty), |
| 1286 |
Sy (Exception_Choices, List_Id), |
| 1287 |
Sy (Statements, List_Id, Default_Empty_List), |
| 1288 |
Sm (Exception_Label, Node_Id), |
| 1289 |
Sm (Has_Local_Raise, Flag), |
| 1290 |
Sm (Local_Raise_Not_OK, Flag), |
| 1291 |
Sm (Local_Raise_Statements, Elist_Id))); |
| 1292 |
|
| 1293 |
Cc (N_Floating_Point_Definition, Node_Kind, |
| 1294 |
(Sy (Digits_Expression, Node_Id), |
| 1295 |
Sy (Real_Range_Specification, Node_Id, Default_Empty))); |
| 1296 |
|
| 1297 |
Cc (N_Formal_Decimal_Fixed_Point_Definition, Node_Kind); |
| 1298 |
|
| 1299 |
Cc (N_Formal_Derived_Type_Definition, Node_Kind, |
| 1300 |
(Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 1301 |
Sy (Private_Present, Flag), |
| 1302 |
Sy (Abstract_Present, Flag), |
| 1303 |
Sy (Limited_Present, Flag), |
| 1304 |
Sy (Synchronized_Present, Flag), |
| 1305 |
Sy (Interface_List, List_Id, Default_No_List))); |
| 1306 |
|
| 1307 |
Cc (N_Formal_Discrete_Type_Definition, Node_Kind); |
| 1308 |
Cc (N_Formal_Floating_Point_Definition, Node_Kind); |
| 1309 |
Cc (N_Formal_Modular_Type_Definition, Node_Kind); |
| 1310 |
Cc (N_Formal_Ordinary_Fixed_Point_Definition, Node_Kind); |
| 1311 |
|
| 1312 |
Cc (N_Formal_Package_Declaration, N_Declaration, |
| 1313 |
(Sy (Defining_Identifier, Node_Id), |
| 1314 |
Sy (Name, Node_Id, Default_Empty), |
| 1315 |
Sy (Generic_Associations, List_Id, Default_No_List), |
| 1316 |
Sy (Box_Present, Flag), |
| 1317 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 1318 |
Sm (Instance_Spec, Node_Id), |
| 1319 |
Sm (Is_Known_Guaranteed_ABE, Flag))); |
| 1320 |
|
| 1321 |
Cc (N_Formal_Private_Type_Definition, Node_Kind, |
| 1322 |
(Sy (Abstract_Present, Flag), |
| 1323 |
Sy (Tagged_Present, Flag), |
| 1324 |
Sy (Limited_Present, Flag), |
| 1325 |
Sm (Uninitialized_Variable, Node_Id))); |
| 1326 |
|
| 1327 |
Cc (N_Formal_Incomplete_Type_Definition, Node_Kind, |
| 1328 |
(Sy (Tagged_Present, Flag))); |
| 1329 |
|
| 1330 |
Cc (N_Formal_Signed_Integer_Type_Definition, Node_Kind); |
| 1331 |
|
| 1332 |
Cc (N_Freeze_Entity, Node_Kind, |
| 1333 |
(Sy (Actions, List_Id, Default_No_List), |
| 1334 |
Sm (Access_Types_To_Process, Elist_Id), |
| 1335 |
Sm (Entity_Or_Associated_Node, Node_Id), -- just Entity |
| 1336 |
Sm (First_Subtype_Link, Node_Id), |
| 1337 |
Sm (TSS_Elist, Elist_Id))); |
| 1338 |
|
| 1339 |
Cc (N_Freeze_Generic_Entity, Node_Kind, |
| 1340 |
Sm (Entity_Or_Associated_Node, Node_Id)); -- just Entity |
| 1341 |
|
| 1342 |
Cc (N_Generic_Association, Node_Kind, |
| 1343 |
(Sy (Selector_Name, Node_Id, Default_Empty), |
| 1344 |
Sy (Explicit_Generic_Actual_Parameter, Node_Id), |
| 1345 |
Sy (Box_Present, Flag))); |
| 1346 |
|
| 1347 |
Cc (N_Handled_Sequence_Of_Statements, Node_Kind, |
| 1348 |
(Sy (Statements, List_Id, Default_Empty_List), |
| 1349 |
Sy (End_Label, Node_Id, Default_Empty), |
| 1350 |
Sy (Exception_Handlers, List_Id, Default_No_List), |
| 1351 |
Sy (Finally_Statements, List_Id, Default_No_List), |
| 1352 |
Sy (At_End_Proc, Node_Id, Default_Empty))); |
| 1353 |
|
| 1354 |
Cc (N_Index_Or_Discriminant_Constraint, Node_Kind, |
| 1355 |
(Sy (Constraints, List_Id))); |
| 1356 |
|
| 1357 |
Cc (N_Iterated_Component_Association, Node_Kind, |
| 1358 |
(Sy (Defining_Identifier, Node_Id), |
| 1359 |
Sy (Iterator_Specification, Node_Id, Default_Empty), |
| 1360 |
Sy (Expression, Node_Id, Default_Empty), |
| 1361 |
Sy (Discrete_Choices, List_Id), |
| 1362 |
Sy (Reverse_Present, Flag), |
| 1363 |
Sy (Box_Present, Flag), |
| 1364 |
Sm (Loop_Actions, List_Id))); |
| 1365 |
|
| 1366 |
Cc (N_Iterated_Element_Association, Node_Kind, |
| 1367 |
(Sy (Key_Expression, Node_Id), |
| 1368 |
Sy (Iterator_Specification, Node_Id, Default_Empty), |
| 1369 |
Sy (Expression, Node_Id, Default_Empty), |
| 1370 |
Sy (Loop_Parameter_Specification, Node_Id, Default_Empty), |
| 1371 |
Sy (Box_Present, Flag), |
| 1372 |
Sm (Loop_Actions, List_Id))); |
| 1373 |
|
| 1374 |
Cc (N_Itype_Reference, Node_Kind, |
| 1375 |
(Sm (Itype, Node_Id))); |
| 1376 |
|
| 1377 |
Cc (N_Label, Node_Kind, |
| 1378 |
(Sy (Identifier, Node_Id, Default_Empty), |
| 1379 |
Sm (Exception_Junk, Flag))); |
| 1380 |
|
| 1381 |
Cc (N_Modular_Type_Definition, Node_Kind, |
| 1382 |
(Sy (Expression, Node_Id, Default_Empty))); |
| 1383 |
|
| 1384 |
Cc (N_Number_Declaration, Node_Kind, |
| 1385 |
(Sy (Defining_Identifier, Node_Id), |
| 1386 |
Sy (Expression, Node_Id, Default_Empty), |
| 1387 |
Sm (More_Ids, Flag), |
| 1388 |
Sm (Prev_Ids, Flag))); |
| 1389 |
|
| 1390 |
Cc (N_Ordinary_Fixed_Point_Definition, Node_Kind, |
| 1391 |
(Sy (Delta_Expression, Node_Id), |
| 1392 |
Sy (Real_Range_Specification, Node_Id, Default_Empty))); |
| 1393 |
|
| 1394 |
Cc (N_Others_Choice, Node_Kind, |
| 1395 |
(Sm (All_Others, Flag), |
| 1396 |
Sm (Others_Discrete_Choices, List_Id))); |
| 1397 |
|
| 1398 |
Cc (N_Package_Specification, Node_Kind, |
| 1399 |
(Sy (Defining_Unit_Name, Node_Id), |
| 1400 |
Sy (Visible_Declarations, List_Id), |
| 1401 |
Sy (Private_Declarations, List_Id, Default_No_List), |
| 1402 |
Sy (End_Label, Node_Id, Default_Empty), |
| 1403 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 1404 |
Sm (Generic_Parent, Node_Id), |
| 1405 |
Sm (Limited_View_Installed, Flag))); |
| 1406 |
|
| 1407 |
Cc (N_Parameter_Association, Node_Kind, |
| 1408 |
(Sy (Selector_Name, Node_Id, Default_Empty), |
| 1409 |
Sy (Explicit_Actual_Parameter, Node_Id), |
| 1410 |
Sm (Is_Accessibility_Actual, Flag), |
| 1411 |
Sm (Next_Named_Actual, Node_Id))); |
| 1412 |
|
| 1413 |
Cc (N_Parameter_Specification, Node_Kind, |
| 1414 |
(Sy (Defining_Identifier, Node_Id), |
| 1415 |
Sy (Aliased_Present, Flag), |
| 1416 |
Sy (In_Present, Flag), |
| 1417 |
Sy (Out_Present, Flag), |
| 1418 |
Sy (Null_Exclusion_Present, Flag, Default_False), |
| 1419 |
Sy (Parameter_Type, Node_Id), |
| 1420 |
Sy (Expression, Node_Id, Default_Empty), |
| 1421 |
Sy (Aspect_Specifications, List_Id, Default_No_List), |
| 1422 |
Sm (Default_Expression, Node_Id), |
| 1423 |
Sm (More_Ids, Flag), |
| 1424 |
Sm (Prev_Ids, Flag))); |
| 1425 |
|
| 1426 |
Cc (N_Pragma, Node_Kind, |
| 1427 |
(Sy (Pragma_Argument_Associations, List_Id, Default_No_List), |
| 1428 |
Sy (Pragma_Identifier, Node_Id), |
| 1429 |
Sy (Class_Present, Flag), |
| 1430 |
Sm (Corresponding_Aspect, Node_Id), |
| 1431 |
Sm (From_Aspect_Specification, Flag), |
| 1432 |
Sm (Import_Interface_Present, Flag), |
| 1433 |
Sm (Is_Analyzed_Pragma, Flag), |
| 1434 |
Sm (Is_Checked, Flag), |
| 1435 |
Sm (Is_Checked_Ghost_Pragma, Flag), |
| 1436 |
Sm (Is_Delayed_Aspect, Flag), |
| 1437 |
Sm (Is_Disabled, Flag), |
| 1438 |
Sm (Is_Generic_Contract_Pragma, Flag), |
| 1439 |
Sm (Is_Ignored, Flag), |
| 1440 |
Sm (Is_Ignored_Ghost_Pragma, Flag), |
| 1441 |
Sm (Next_Pragma, Node_Id), |
| 1442 |
Sm (Next_Rep_Item, Node_Id), |
| 1443 |
Sm (Uneval_Old_Accept, Flag), |
| 1444 |
Sm (Uneval_Old_Warn, Flag))); |
| 1445 |
|
| 1446 |
Cc (N_Protected_Definition, Node_Kind, |
| 1447 |
(Sy (Visible_Declarations, List_Id), |
| 1448 |
Sy (Private_Declarations, List_Id, Default_No_List), |
| 1449 |
Sy (End_Label, Node_Id, Default_Empty))); |
| 1450 |
|
| 1451 |
Cc (N_Range_Constraint, Node_Kind, |
| 1452 |
(Sy (Range_Expression, Node_Id))); |
| 1453 |
|
| 1454 |
Cc (N_Real_Range_Specification, Node_Kind, |
| 1455 |
(Sy (Low_Bound, Node_Id), |
| 1456 |
Sy (High_Bound, Node_Id))); |
| 1457 |
|
| 1458 |
Cc (N_Record_Definition, Node_Kind, |
| 1459 |
(Sy (End_Label, Node_Id, Default_Empty), |
| 1460 |
Sy (Abstract_Present, Flag), |
| 1461 |
Sy (Tagged_Present, Flag), |
| 1462 |
Sy (Limited_Present, Flag), |
| 1463 |
Sy (Component_List, Node_Id), |
| 1464 |
Sy (Null_Present, Flag), |
| 1465 |
Sy (Task_Present, Flag), |
| 1466 |
Sy (Protected_Present, Flag), |
| 1467 |
Sy (Synchronized_Present, Flag), |
| 1468 |
Sy (Interface_Present, Flag), |
| 1469 |
Sy (Interface_List, List_Id, Default_No_List))); |
| 1470 |
|
| 1471 |
Cc (N_Signed_Integer_Type_Definition, Node_Kind, |
| 1472 |
(Sy (Low_Bound, Node_Id), |
| 1473 |
Sy (High_Bound, Node_Id))); |
| 1474 |
|
| 1475 |
Cc (N_Single_Protected_Declaration, Node_Kind, |
| 1476 |
(Sy (Defining_Identifier, Node_Id), |
| 1477 |
Sy (Interface_List, List_Id, Default_No_List), |
| 1478 |
Sy (Protected_Definition, Node_Id), |
| 1479 |
Sy (Aspect_Specifications, List_Id, Default_No_List))); |
| 1480 |
|
| 1481 |
Cc (N_Subunit, Node_Kind, |
| 1482 |
(Sy (Name, Node_Id, Default_Empty), |
| 1483 |
Sy (Proper_Body, Node_Id), |
| 1484 |
Sm (Corresponding_Stub, Node_Id))); |
| 1485 |
|
| 1486 |
Cc (N_Task_Definition, Node_Kind, |
| 1487 |
(Sy (Visible_Declarations, List_Id), |
| 1488 |
Sy (Private_Declarations, List_Id, Default_No_List), |
| 1489 |
Sy (End_Label, Node_Id, Default_Empty), |
| 1490 |
Sm (Has_Relative_Deadline_Pragma, Flag), |
| 1491 |
Sm (Has_Storage_Size_Pragma, Flag))); |
| 1492 |
|
| 1493 |
Cc (N_Triggering_Alternative, Node_Kind, |
| 1494 |
(Sy (Triggering_Statement, Node_Id), |
| 1495 |
Sy (Statements, List_Id, Default_Empty_List), |
| 1496 |
Sy (Pragmas_Before, List_Id, Default_No_List))); |
| 1497 |
|
| 1498 |
Cc (N_Use_Type_Clause, Node_Kind, |
| 1499 |
(Sy (Subtype_Mark, Node_Id, Default_Empty), |
| 1500 |
Sy (All_Present, Flag), |
| 1501 |
Sm (Is_Effective_Use_Clause, Flag), |
| 1502 |
Sm (Hidden_By_Use_Clause, Elist_Id), |
| 1503 |
Sm (More_Ids, Flag), |
| 1504 |
Sm (Next_Use_Clause, Node_Id), |
| 1505 |
Sm (Prev_Ids, Flag), |
| 1506 |
Sm (Prev_Use_Clause, Node_Id), |
| 1507 |
Sm (Used_Operations, Elist_Id))); |
| 1508 |
|
| 1509 |
Cc (N_Validate_Unchecked_Conversion, Node_Kind, |
| 1510 |
(Sm (Source_Type, Node_Id), |
| 1511 |
Sm (Target_Type, Node_Id))); |
| 1512 |
|
| 1513 |
Cc (N_Variable_Reference_Marker, Node_Kind, |
| 1514 |
(Sm (Is_Elaboration_Checks_OK_Node, Flag), |
| 1515 |
Sm (Is_Elaboration_Warnings_OK_Node, Flag), |
| 1516 |
Sm (Is_Read, Flag), |
| 1517 |
Sm (Is_SPARK_Mode_On_Node, Flag), |
| 1518 |
Sm (Is_Write, Flag), |
| 1519 |
Sm (Target, Node_Id))); |
| 1520 |
|
| 1521 |
Cc (N_Variant, Node_Kind, |
| 1522 |
(Sy (Discrete_Choices, List_Id), |
| 1523 |
Sy (Component_List, Node_Id), |
| 1524 |
Sm (Dcheck_Function, Node_Id), |
| 1525 |
Sm (Enclosing_Variant, Node_Id), |
| 1526 |
Sm (Has_SP_Choice, Flag), |
| 1527 |
Sm (Present_Expr, Uint))); |
| 1528 |
|
| 1529 |
Cc (N_Variant_Part, Node_Kind, |
| 1530 |
(Sy (Name, Node_Id, Default_Empty), |
| 1531 |
Sy (Variants, List_Id))); |
| 1532 |
|
| 1533 |
Cc (N_With_Clause, Node_Kind, |
| 1534 |
(Sy (Name, Node_Id, Default_Empty), |
| 1535 |
Sy (Limited_Present, Flag), |
| 1536 |
Sy (Private_Present, Flag), |
| 1537 |
Sy (First_Name, Flag, Default_True), |
| 1538 |
Sy (Last_Name, Flag, Default_True), |
| 1539 |
Sm (Context_Installed, Flag), |
| 1540 |
Sm (Corresponding_Spec, Node_Id), |
| 1541 |
Sm (Elaborate_All_Desirable, Flag), |
| 1542 |
Sm (Elaborate_All_Present, Flag), |
| 1543 |
Sm (Elaborate_Desirable, Flag), |
| 1544 |
Sm (Elaborate_Present, Flag), |
| 1545 |
Sm (Is_Implicit_With, Flag), |
| 1546 |
Sm (Library_Unit, Node_Id), |
| 1547 |
Sm (Limited_View_Installed, Flag), |
| 1548 |
Sm (Next_Implicit_With, Node_Id), |
| 1549 |
Sm (No_Entities_Ref_In_Spec, Flag), |
| 1550 |
Sm (Parent_With, Flag), |
| 1551 |
Sm (Unreferenced_In_Spec, Flag))); |
| 1552 |
|
| 1553 |
Cc (N_Unused_At_End, Node_Kind); |
| 1554 |
|
| 1555 |
-- Union types. These don't fit into the normal parent/child hierarchy |
| 1556 |
-- above. |
| 1557 |
|
| 1558 |
Union (N_Has_Chars, |
| 1559 |
Children => |
| 1560 |
(N_Attribute_Definition_Clause, |
| 1561 |
N_Empty, |
| 1562 |
N_Pragma_Argument_Association, |
| 1563 |
N_Error, |
| 1564 |
N_Entity, |
| 1565 |
N_Expanded_Name, |
| 1566 |
N_Identifier, |
| 1567 |
N_Operator_Symbol, |
| 1568 |
N_Character_Literal, |
| 1569 |
N_Op)); |
| 1570 |
|
| 1571 |
Union (N_Has_Condition, |
| 1572 |
Children => |
| 1573 |
(N_Exit_Statement, |
| 1574 |
N_If_Statement, |
| 1575 |
N_Accept_Alternative, |
| 1576 |
N_Delay_Alternative, |
| 1577 |
N_Elsif_Part, |
| 1578 |
N_Entry_Body_Formal_Part, |
| 1579 |
N_Iteration_Scheme, |
| 1580 |
N_Terminate_Alternative)); |
| 1581 |
-- Nodes with condition fields (does not include N_Raise_xxx_Error) |
| 1582 |
|
| 1583 |
Union (N_Has_Bounds, |
| 1584 |
Children => |
| 1585 |
(N_Range, |
| 1586 |
N_Real_Range_Specification, |
| 1587 |
N_Signed_Integer_Type_Definition)); |
| 1588 |
-- Nodes that have Low_Bound and High_Bound defined |
| 1589 |
|
| 1590 |
Union (N_Is_Index, |
| 1591 |
Children => |
| 1592 |
(N_Has_Bounds, |
| 1593 |
N_Has_Entity, |
| 1594 |
N_Subtype_Indication)); |
| 1595 |
-- Nodes that can be an index of an array |
| 1596 |
|
| 1597 |
Union (N_Entity_Name, |
| 1598 |
Children => |
| 1599 |
(N_Expanded_Name, |
| 1600 |
N_Identifier, |
| 1601 |
N_Operator_Symbol)); |
| 1602 |
-- Nodes that are definitely representing an entity. |
| 1603 |
-- Some N_Attribute_Reference nodes may also represent an entity. See |
| 1604 |
-- Is_Entity_Name. |
| 1605 |
|
| 1606 |
Union (N_Is_Decl, |
| 1607 |
Children => |
| 1608 |
(N_Aggregate, |
| 1609 |
N_Block_Statement, |
| 1610 |
N_Declaration, |
| 1611 |
N_Discriminant_Specification, |
| 1612 |
N_Entry_Index_Specification, |
| 1613 |
N_Enumeration_Type_Definition, |
| 1614 |
N_Exception_Handler, |
| 1615 |
N_Explicit_Dereference, |
| 1616 |
N_Expression_With_Actions, |
| 1617 |
N_Extension_Aggregate, |
| 1618 |
N_Identifier, |
| 1619 |
N_Iterated_Component_Association, |
| 1620 |
N_Later_Decl_Item, |
| 1621 |
N_Loop_Statement, |
| 1622 |
N_Null_Statement, |
| 1623 |
N_Number_Declaration, |
| 1624 |
N_Package_Specification, |
| 1625 |
N_Parameter_Specification, |
| 1626 |
N_Renaming_Declaration, |
| 1627 |
N_Quantified_Expression)); |
| 1628 |
-- Nodes that can be returned by Declaration_Node; it can also return |
| 1629 |
-- Empty. Not all of these are true "declarations", but Declaration_Node |
| 1630 |
-- can return them in some cases. |
| 1631 |
|
| 1632 |
Union (N_Is_Range, |
| 1633 |
Children => |
| 1634 |
(N_Character_Literal, |
| 1635 |
N_Entity_Name, |
| 1636 |
N_Has_Bounds, |
| 1637 |
N_Integer_Literal, |
| 1638 |
N_Subtype_Indication)); |
| 1639 |
-- Nodes that can be used to specify a range |
| 1640 |
|
| 1641 |
Union (N_Is_Case_Choice, |
| 1642 |
Children => |
| 1643 |
(N_Is_Range, |
| 1644 |
N_Others_Choice)); |
| 1645 |
-- Nodes that can be in the choices of a case statement |
| 1646 |
|
| 1647 |
Union (N_Is_Exception_Choice, |
| 1648 |
Children => |
| 1649 |
(N_Entity_Name, |
| 1650 |
N_Others_Choice)); |
| 1651 |
-- Nodes that can be in the choices of an exception handler |
| 1652 |
|
| 1653 |
Union (N_Alternative, |
| 1654 |
Children => |
| 1655 |
(N_Case_Statement_Alternative, |
| 1656 |
N_Variant)); |
| 1657 |
-- Nodes that can be alternatives in case contructs |
| 1658 |
|
| 1659 |
Union (N_Lib_Unit_Declaration, |
| 1660 |
Children => |
| 1661 |
(N_Package_Declaration, |
| 1662 |
N_Subprogram_Declaration, |
| 1663 |
N_Generic_Declaration, |
| 1664 |
N_Generic_Instantiation)); |
| 1665 |
-- Nodes corresponding to the library_unit_declaration syntactic category |
| 1666 |
|
| 1667 |
Union (N_Lib_Unit_Renaming_Declaration, |
| 1668 |
Children => |
| 1669 |
(N_Package_Renaming_Declaration, |
| 1670 |
N_Subprogram_Renaming_Declaration, |
| 1671 |
N_Generic_Renaming_Declaration)); |
| 1672 |
-- Nodes corresponding to the library_unit_renaming_declaration syntactic |
| 1673 |
-- category. |
| 1674 |
|
| 1675 |
end Gen_IL.Gen.Gen_Nodes; |