1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
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. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks
(All_Checks
);
33 -- No subprogram ordering check, due to logical grouping
35 with Atree
; use Atree
;
39 use Atree
.Unchecked_Access
;
40 -- This package is one of the few packages which is allowed to make direct
41 -- references to tree nodes (since it is in the business of providing a
42 -- higher level of tree access which other clients are expected to use and
43 -- which implements checks).
45 use Atree_Private_Part
;
46 -- The only reason that we ask for direct access to the private part of
47 -- the tree package is so that we can directly reference the Nkind field
48 -- of nodes table entries. We do this since it helps the efficiency of
49 -- the Sinfo debugging checks considerably (note that when we are checking
50 -- Nkind values, we don't need to check for a valid node reference, because
51 -- we will check that anyway when we reference the field).
53 NT
: Nodes
.Table_Ptr
renames Nodes
.Table
;
54 -- A short hand abbreviation, useful for the debugging checks
56 ----------------------------
57 -- Field Access Functions --
58 ----------------------------
60 -- Note: The use of Assert (False or else ...) is just a device to allow
61 -- uniform format of the conditions following this. Note that csinfo
62 -- expects this uniform format.
64 function ABE_Is_Certain
65 (N
: Node_Id
) return Boolean is
68 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
69 or else NT
(N
).Nkind
= N_Function_Call
70 or else NT
(N
).Nkind
= N_Function_Instantiation
71 or else NT
(N
).Nkind
= N_Package_Instantiation
72 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
73 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
77 function Abort_Present
78 (N
: Node_Id
) return Boolean is
81 or else NT
(N
).Nkind
= N_Requeue_Statement
);
85 function Abortable_Part
86 (N
: Node_Id
) return Node_Id
is
89 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
93 function Abstract_Present
94 (N
: Node_Id
) return Boolean is
97 or else NT
(N
).Nkind
= N_Derived_Type_Definition
98 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
99 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
100 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
101 or else NT
(N
).Nkind
= N_Private_Type_Declaration
102 or else NT
(N
).Nkind
= N_Record_Definition
);
104 end Abstract_Present
;
106 function Accept_Handler_Records
107 (N
: Node_Id
) return List_Id
is
110 or else NT
(N
).Nkind
= N_Accept_Alternative
);
112 end Accept_Handler_Records
;
114 function Accept_Statement
115 (N
: Node_Id
) return Node_Id
is
118 or else NT
(N
).Nkind
= N_Accept_Alternative
);
120 end Accept_Statement
;
122 function Access_Definition
123 (N
: Node_Id
) return Node_Id
is
126 or else NT
(N
).Nkind
= N_Component_Definition
127 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
128 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
130 end Access_Definition
;
132 function Access_To_Subprogram_Definition
133 (N
: Node_Id
) return Node_Id
is
136 or else NT
(N
).Nkind
= N_Access_Definition
);
138 end Access_To_Subprogram_Definition
;
140 function Access_Types_To_Process
141 (N
: Node_Id
) return Elist_Id
is
144 or else NT
(N
).Nkind
= N_Freeze_Entity
);
146 end Access_Types_To_Process
;
149 (N
: Node_Id
) return List_Id
is
152 or else NT
(N
).Nkind
= N_And_Then
153 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
154 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
155 or else NT
(N
).Nkind
= N_Compound_Statement
156 or else NT
(N
).Nkind
= N_Expression_With_Actions
157 or else NT
(N
).Nkind
= N_Freeze_Entity
158 or else NT
(N
).Nkind
= N_Or_Else
);
162 function Activation_Chain_Entity
163 (N
: Node_Id
) return Node_Id
is
166 or else NT
(N
).Nkind
= N_Block_Statement
167 or else NT
(N
).Nkind
= N_Entry_Body
168 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
169 or else NT
(N
).Nkind
= N_Package_Declaration
170 or else NT
(N
).Nkind
= N_Subprogram_Body
171 or else NT
(N
).Nkind
= N_Task_Body
);
173 end Activation_Chain_Entity
;
175 function Acts_As_Spec
176 (N
: Node_Id
) return Boolean is
179 or else NT
(N
).Nkind
= N_Compilation_Unit
180 or else NT
(N
).Nkind
= N_Subprogram_Body
);
184 function Actual_Designated_Subtype
185 (N
: Node_Id
) return Node_Id
is
188 or else NT
(N
).Nkind
= N_Explicit_Dereference
189 or else NT
(N
).Nkind
= N_Free_Statement
);
191 end Actual_Designated_Subtype
;
193 function Address_Warning_Posted
194 (N
: Node_Id
) return Boolean is
197 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
199 end Address_Warning_Posted
;
201 function Aggregate_Bounds
202 (N
: Node_Id
) return Node_Id
is
205 or else NT
(N
).Nkind
= N_Aggregate
);
207 end Aggregate_Bounds
;
209 function Aliased_Present
210 (N
: Node_Id
) return Boolean is
213 or else NT
(N
).Nkind
= N_Component_Definition
214 or else NT
(N
).Nkind
= N_Object_Declaration
215 or else NT
(N
).Nkind
= N_Parameter_Specification
);
220 (N
: Node_Id
) return Boolean is
223 or else NT
(N
).Nkind
= N_Others_Choice
);
228 (N
: Node_Id
) return Boolean is
231 or else NT
(N
).Nkind
= N_Access_Definition
232 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
233 or else NT
(N
).Nkind
= N_Quantified_Expression
234 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
238 function Alternatives
239 (N
: Node_Id
) return List_Id
is
242 or else NT
(N
).Nkind
= N_Case_Expression
243 or else NT
(N
).Nkind
= N_Case_Statement
244 or else NT
(N
).Nkind
= N_In
245 or else NT
(N
).Nkind
= N_Not_In
);
249 function Ancestor_Part
250 (N
: Node_Id
) return Node_Id
is
253 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
257 function Atomic_Sync_Required
258 (N
: Node_Id
) return Boolean is
261 or else NT
(N
).Nkind
= N_Expanded_Name
262 or else NT
(N
).Nkind
= N_Explicit_Dereference
263 or else NT
(N
).Nkind
= N_Identifier
264 or else NT
(N
).Nkind
= N_Indexed_Component
265 or else NT
(N
).Nkind
= N_Selected_Component
);
267 end Atomic_Sync_Required
;
269 function Array_Aggregate
270 (N
: Node_Id
) return Node_Id
is
273 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
);
277 function Aspect_Rep_Item
278 (N
: Node_Id
) return Node_Id
is
281 or else NT
(N
).Nkind
= N_Aspect_Specification
);
285 function Assignment_OK
286 (N
: Node_Id
) return Boolean is
289 or else NT
(N
).Nkind
= N_Object_Declaration
290 or else NT
(N
).Nkind
in N_Subexpr
);
294 function Associated_Node
295 (N
: Node_Id
) return Node_Id
is
298 or else NT
(N
).Nkind
in N_Has_Entity
299 or else NT
(N
).Nkind
= N_Aggregate
300 or else NT
(N
).Nkind
= N_Extension_Aggregate
301 or else NT
(N
).Nkind
= N_Selected_Component
);
306 (N
: Node_Id
) return Node_Id
is
309 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
313 function Attribute_Name
314 (N
: Node_Id
) return Name_Id
is
317 or else NT
(N
).Nkind
= N_Attribute_Reference
);
321 function Aux_Decls_Node
322 (N
: Node_Id
) return Node_Id
is
325 or else NT
(N
).Nkind
= N_Compilation_Unit
);
329 function Backwards_OK
330 (N
: Node_Id
) return Boolean is
333 or else NT
(N
).Nkind
= N_Assignment_Statement
);
337 function Bad_Is_Detected
338 (N
: Node_Id
) return Boolean is
341 or else NT
(N
).Nkind
= N_Subprogram_Body
);
345 function Body_Required
346 (N
: Node_Id
) return Boolean is
349 or else NT
(N
).Nkind
= N_Compilation_Unit
);
353 function Body_To_Inline
354 (N
: Node_Id
) return Node_Id
is
357 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
362 (N
: Node_Id
) return Boolean is
365 or else NT
(N
).Nkind
= N_Component_Association
366 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
367 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
368 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
369 or else NT
(N
).Nkind
= N_Generic_Association
370 or else NT
(N
).Nkind
= N_Iterated_Component_Association
);
375 (N
: Node_Id
) return Boolean is
378 or else NT
(N
).Nkind
= N_Extended_Return_Statement
379 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
383 function Char_Literal_Value
384 (N
: Node_Id
) return Uint
is
387 or else NT
(N
).Nkind
= N_Character_Literal
);
389 end Char_Literal_Value
;
392 (N
: Node_Id
) return Name_Id
is
395 or else NT
(N
).Nkind
in N_Has_Chars
);
399 function Check_Address_Alignment
400 (N
: Node_Id
) return Boolean is
403 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
405 end Check_Address_Alignment
;
407 function Choice_Parameter
408 (N
: Node_Id
) return Node_Id
is
411 or else NT
(N
).Nkind
= N_Exception_Handler
);
413 end Choice_Parameter
;
416 (N
: Node_Id
) return List_Id
is
419 or else NT
(N
).Nkind
= N_Component_Association
);
423 function Class_Present
424 (N
: Node_Id
) return Boolean is
427 or else NT
(N
).Nkind
= N_Aspect_Specification
428 or else NT
(N
).Nkind
= N_Pragma
);
432 function Classifications
433 (N
: Node_Id
) return Node_Id
is
436 or else NT
(N
).Nkind
= N_Contract
);
440 function Cleanup_Actions
441 (N
: Node_Id
) return List_Id
is
444 or else NT
(N
).Nkind
= N_Block_Statement
);
448 function Comes_From_Extended_Return_Statement
449 (N
: Node_Id
) return Boolean is
452 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
454 end Comes_From_Extended_Return_Statement
;
456 function Compile_Time_Known_Aggregate
457 (N
: Node_Id
) return Boolean is
460 or else NT
(N
).Nkind
= N_Aggregate
);
462 end Compile_Time_Known_Aggregate
;
464 function Component_Associations
465 (N
: Node_Id
) return List_Id
is
468 or else NT
(N
).Nkind
= N_Aggregate
469 or else NT
(N
).Nkind
= N_Delta_Aggregate
470 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
472 end Component_Associations
;
474 function Component_Clauses
475 (N
: Node_Id
) return List_Id
is
478 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
480 end Component_Clauses
;
482 function Component_Definition
483 (N
: Node_Id
) return Node_Id
is
486 or else NT
(N
).Nkind
= N_Component_Declaration
487 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
488 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
);
490 end Component_Definition
;
492 function Component_Items
493 (N
: Node_Id
) return List_Id
is
496 or else NT
(N
).Nkind
= N_Component_List
);
500 function Component_List
501 (N
: Node_Id
) return Node_Id
is
504 or else NT
(N
).Nkind
= N_Record_Definition
505 or else NT
(N
).Nkind
= N_Variant
);
509 function Component_Name
510 (N
: Node_Id
) return Node_Id
is
513 or else NT
(N
).Nkind
= N_Component_Clause
);
517 function Componentwise_Assignment
518 (N
: Node_Id
) return Boolean is
521 or else NT
(N
).Nkind
= N_Assignment_Statement
);
523 end Componentwise_Assignment
;
526 (N
: Node_Id
) return Node_Id
is
529 or else NT
(N
).Nkind
= N_Accept_Alternative
530 or else NT
(N
).Nkind
= N_Delay_Alternative
531 or else NT
(N
).Nkind
= N_Elsif_Part
532 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
533 or else NT
(N
).Nkind
= N_Exit_Statement
534 or else NT
(N
).Nkind
= N_If_Statement
535 or else NT
(N
).Nkind
= N_Iteration_Scheme
536 or else NT
(N
).Nkind
= N_Quantified_Expression
537 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
538 or else NT
(N
).Nkind
= N_Raise_Program_Error
539 or else NT
(N
).Nkind
= N_Raise_Storage_Error
540 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
544 function Condition_Actions
545 (N
: Node_Id
) return List_Id
is
548 or else NT
(N
).Nkind
= N_Elsif_Part
549 or else NT
(N
).Nkind
= N_Iteration_Scheme
);
551 end Condition_Actions
;
553 function Config_Pragmas
554 (N
: Node_Id
) return List_Id
is
557 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
561 function Constant_Present
562 (N
: Node_Id
) return Boolean is
565 or else NT
(N
).Nkind
= N_Access_Definition
566 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
567 or else NT
(N
).Nkind
= N_Object_Declaration
);
569 end Constant_Present
;
572 (N
: Node_Id
) return Node_Id
is
575 or else NT
(N
).Nkind
= N_Subtype_Indication
);
580 (N
: Node_Id
) return List_Id
is
583 or else NT
(N
).Nkind
= N_Index_Or_Discriminant_Constraint
);
587 function Context_Installed
588 (N
: Node_Id
) return Boolean is
591 or else NT
(N
).Nkind
= N_With_Clause
);
593 end Context_Installed
;
595 function Context_Items
596 (N
: Node_Id
) return List_Id
is
599 or else NT
(N
).Nkind
= N_Compilation_Unit
);
603 function Context_Pending
604 (N
: Node_Id
) return Boolean is
607 or else NT
(N
).Nkind
= N_Compilation_Unit
);
611 function Contract_Test_Cases
612 (N
: Node_Id
) return Node_Id
is
615 or else NT
(N
).Nkind
= N_Contract
);
617 end Contract_Test_Cases
;
619 function Controlling_Argument
620 (N
: Node_Id
) return Node_Id
is
623 or else NT
(N
).Nkind
= N_Function_Call
624 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
626 end Controlling_Argument
;
628 function Conversion_OK
629 (N
: Node_Id
) return Boolean is
632 or else NT
(N
).Nkind
= N_Type_Conversion
);
636 function Convert_To_Return_False
637 (N
: Node_Id
) return Boolean is
640 or else NT
(N
).Nkind
= N_Raise_Expression
);
642 end Convert_To_Return_False
;
644 function Corresponding_Aspect
645 (N
: Node_Id
) return Node_Id
is
648 or else NT
(N
).Nkind
= N_Pragma
);
650 end Corresponding_Aspect
;
652 function Corresponding_Body
653 (N
: Node_Id
) return Node_Id
is
656 or else NT
(N
).Nkind
= N_Entry_Declaration
657 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
658 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
659 or else NT
(N
).Nkind
= N_Package_Body_Stub
660 or else NT
(N
).Nkind
= N_Package_Declaration
661 or else NT
(N
).Nkind
= N_Protected_Body_Stub
662 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
663 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
664 or else NT
(N
).Nkind
= N_Subprogram_Declaration
665 or else NT
(N
).Nkind
= N_Task_Body_Stub
666 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
668 end Corresponding_Body
;
670 function Corresponding_Formal_Spec
671 (N
: Node_Id
) return Node_Id
is
674 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
676 end Corresponding_Formal_Spec
;
678 function Corresponding_Generic_Association
679 (N
: Node_Id
) return Node_Id
is
682 or else NT
(N
).Nkind
= N_Object_Declaration
683 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
685 end Corresponding_Generic_Association
;
687 function Corresponding_Integer_Value
688 (N
: Node_Id
) return Uint
is
691 or else NT
(N
).Nkind
= N_Real_Literal
);
693 end Corresponding_Integer_Value
;
695 function Corresponding_Spec
696 (N
: Node_Id
) return Entity_Id
is
699 or else NT
(N
).Nkind
= N_Expression_Function
700 or else NT
(N
).Nkind
= N_Package_Body
701 or else NT
(N
).Nkind
= N_Protected_Body
702 or else NT
(N
).Nkind
= N_Subprogram_Body
703 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
704 or else NT
(N
).Nkind
= N_Task_Body
705 or else NT
(N
).Nkind
= N_With_Clause
);
707 end Corresponding_Spec
;
709 function Corresponding_Spec_Of_Stub
710 (N
: Node_Id
) return Entity_Id
is
713 or else NT
(N
).Nkind
= N_Package_Body_Stub
714 or else NT
(N
).Nkind
= N_Protected_Body_Stub
715 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
716 or else NT
(N
).Nkind
= N_Task_Body_Stub
);
718 end Corresponding_Spec_Of_Stub
;
720 function Corresponding_Stub
721 (N
: Node_Id
) return Node_Id
is
724 or else NT
(N
).Nkind
= N_Subunit
);
726 end Corresponding_Stub
;
728 function Dcheck_Function
729 (N
: Node_Id
) return Entity_Id
is
732 or else NT
(N
).Nkind
= N_Variant
);
736 function Declarations
737 (N
: Node_Id
) return List_Id
is
740 or else NT
(N
).Nkind
= N_Accept_Statement
741 or else NT
(N
).Nkind
= N_Block_Statement
742 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
743 or else NT
(N
).Nkind
= N_Entry_Body
744 or else NT
(N
).Nkind
= N_Package_Body
745 or else NT
(N
).Nkind
= N_Protected_Body
746 or else NT
(N
).Nkind
= N_Subprogram_Body
747 or else NT
(N
).Nkind
= N_Task_Body
);
751 function Default_Expression
752 (N
: Node_Id
) return Node_Id
is
755 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
756 or else NT
(N
).Nkind
= N_Parameter_Specification
);
758 end Default_Expression
;
760 function Default_Storage_Pool
761 (N
: Node_Id
) return Node_Id
is
764 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
766 end Default_Storage_Pool
;
768 function Default_Name
769 (N
: Node_Id
) return Node_Id
is
772 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
773 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
);
777 function Defining_Identifier
778 (N
: Node_Id
) return Entity_Id
is
781 or else NT
(N
).Nkind
= N_Component_Declaration
782 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
783 or else NT
(N
).Nkind
= N_Discriminant_Specification
784 or else NT
(N
).Nkind
= N_Entry_Body
785 or else NT
(N
).Nkind
= N_Entry_Declaration
786 or else NT
(N
).Nkind
= N_Entry_Index_Specification
787 or else NT
(N
).Nkind
= N_Exception_Declaration
788 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
789 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
790 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
791 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
792 or else NT
(N
).Nkind
= N_Full_Type_Declaration
793 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
794 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
795 or else NT
(N
).Nkind
= N_Iterated_Component_Association
796 or else NT
(N
).Nkind
= N_Iterator_Specification
797 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
798 or else NT
(N
).Nkind
= N_Number_Declaration
799 or else NT
(N
).Nkind
= N_Object_Declaration
800 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
801 or else NT
(N
).Nkind
= N_Package_Body_Stub
802 or else NT
(N
).Nkind
= N_Parameter_Specification
803 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
804 or else NT
(N
).Nkind
= N_Private_Type_Declaration
805 or else NT
(N
).Nkind
= N_Protected_Body
806 or else NT
(N
).Nkind
= N_Protected_Body_Stub
807 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
808 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
809 or else NT
(N
).Nkind
= N_Single_Task_Declaration
810 or else NT
(N
).Nkind
= N_Subtype_Declaration
811 or else NT
(N
).Nkind
= N_Task_Body
812 or else NT
(N
).Nkind
= N_Task_Body_Stub
813 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
815 end Defining_Identifier
;
817 function Defining_Unit_Name
818 (N
: Node_Id
) return Node_Id
is
821 or else NT
(N
).Nkind
= N_Function_Instantiation
822 or else NT
(N
).Nkind
= N_Function_Specification
823 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
824 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
825 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
826 or else NT
(N
).Nkind
= N_Package_Body
827 or else NT
(N
).Nkind
= N_Package_Instantiation
828 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
829 or else NT
(N
).Nkind
= N_Package_Specification
830 or else NT
(N
).Nkind
= N_Procedure_Instantiation
831 or else NT
(N
).Nkind
= N_Procedure_Specification
);
833 end Defining_Unit_Name
;
835 function Delay_Alternative
836 (N
: Node_Id
) return Node_Id
is
839 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
841 end Delay_Alternative
;
843 function Delay_Statement
844 (N
: Node_Id
) return Node_Id
is
847 or else NT
(N
).Nkind
= N_Delay_Alternative
);
851 function Delta_Expression
852 (N
: Node_Id
) return Node_Id
is
855 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
856 or else NT
(N
).Nkind
= N_Delta_Constraint
857 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
859 end Delta_Expression
;
861 function Digits_Expression
862 (N
: Node_Id
) return Node_Id
is
865 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
866 or else NT
(N
).Nkind
= N_Digits_Constraint
867 or else NT
(N
).Nkind
= N_Floating_Point_Definition
);
869 end Digits_Expression
;
871 function Discr_Check_Funcs_Built
872 (N
: Node_Id
) return Boolean is
875 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
877 end Discr_Check_Funcs_Built
;
879 function Discrete_Choices
880 (N
: Node_Id
) return List_Id
is
883 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
884 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
885 or else NT
(N
).Nkind
= N_Iterated_Component_Association
886 or else NT
(N
).Nkind
= N_Variant
);
888 end Discrete_Choices
;
890 function Discrete_Range
891 (N
: Node_Id
) return Node_Id
is
894 or else NT
(N
).Nkind
= N_Slice
);
898 function Discrete_Subtype_Definition
899 (N
: Node_Id
) return Node_Id
is
902 or else NT
(N
).Nkind
= N_Entry_Declaration
903 or else NT
(N
).Nkind
= N_Entry_Index_Specification
904 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
906 end Discrete_Subtype_Definition
;
908 function Discrete_Subtype_Definitions
909 (N
: Node_Id
) return List_Id
is
912 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
);
914 end Discrete_Subtype_Definitions
;
916 function Discriminant_Specifications
917 (N
: Node_Id
) return List_Id
is
920 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
921 or else NT
(N
).Nkind
= N_Full_Type_Declaration
922 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
923 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
924 or else NT
(N
).Nkind
= N_Private_Type_Declaration
925 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
926 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
928 end Discriminant_Specifications
;
930 function Discriminant_Type
931 (N
: Node_Id
) return Node_Id
is
934 or else NT
(N
).Nkind
= N_Discriminant_Specification
);
936 end Discriminant_Type
;
938 function Do_Accessibility_Check
939 (N
: Node_Id
) return Boolean is
942 or else NT
(N
).Nkind
= N_Parameter_Specification
);
944 end Do_Accessibility_Check
;
946 function Do_Discriminant_Check
947 (N
: Node_Id
) return Boolean is
950 or else NT
(N
).Nkind
= N_Assignment_Statement
951 or else NT
(N
).Nkind
= N_Selected_Component
952 or else NT
(N
).Nkind
= N_Type_Conversion
);
954 end Do_Discriminant_Check
;
956 function Do_Division_Check
957 (N
: Node_Id
) return Boolean is
960 or else NT
(N
).Nkind
= N_Op_Divide
961 or else NT
(N
).Nkind
= N_Op_Mod
962 or else NT
(N
).Nkind
= N_Op_Rem
);
964 end Do_Division_Check
;
966 function Do_Length_Check
967 (N
: Node_Id
) return Boolean is
970 or else NT
(N
).Nkind
= N_Assignment_Statement
971 or else NT
(N
).Nkind
= N_Op_And
972 or else NT
(N
).Nkind
= N_Op_Or
973 or else NT
(N
).Nkind
= N_Op_Xor
974 or else NT
(N
).Nkind
= N_Type_Conversion
);
978 function Do_Overflow_Check
979 (N
: Node_Id
) return Boolean is
982 or else NT
(N
).Nkind
in N_Op
983 or else NT
(N
).Nkind
= N_Attribute_Reference
984 or else NT
(N
).Nkind
= N_Case_Expression
985 or else NT
(N
).Nkind
= N_If_Expression
986 or else NT
(N
).Nkind
= N_Type_Conversion
);
988 end Do_Overflow_Check
;
990 function Do_Range_Check
991 (N
: Node_Id
) return Boolean is
994 or else NT
(N
).Nkind
in N_Subexpr
);
998 function Do_Storage_Check
999 (N
: Node_Id
) return Boolean is
1001 pragma Assert
(False
1002 or else NT
(N
).Nkind
= N_Allocator
1003 or else NT
(N
).Nkind
= N_Subprogram_Body
);
1005 end Do_Storage_Check
;
1007 function Do_Tag_Check
1008 (N
: Node_Id
) return Boolean is
1010 pragma Assert
(False
1011 or else NT
(N
).Nkind
= N_Assignment_Statement
1012 or else NT
(N
).Nkind
= N_Extended_Return_Statement
1013 or else NT
(N
).Nkind
= N_Function_Call
1014 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
1015 or else NT
(N
).Nkind
= N_Simple_Return_Statement
1016 or else NT
(N
).Nkind
= N_Type_Conversion
);
1020 function Elaborate_All_Desirable
1021 (N
: Node_Id
) return Boolean is
1023 pragma Assert
(False
1024 or else NT
(N
).Nkind
= N_With_Clause
);
1026 end Elaborate_All_Desirable
;
1028 function Elaborate_All_Present
1029 (N
: Node_Id
) return Boolean is
1031 pragma Assert
(False
1032 or else NT
(N
).Nkind
= N_With_Clause
);
1034 end Elaborate_All_Present
;
1036 function Elaborate_Desirable
1037 (N
: Node_Id
) return Boolean is
1039 pragma Assert
(False
1040 or else NT
(N
).Nkind
= N_With_Clause
);
1042 end Elaborate_Desirable
;
1044 function Elaborate_Present
1045 (N
: Node_Id
) return Boolean is
1047 pragma Assert
(False
1048 or else NT
(N
).Nkind
= N_With_Clause
);
1050 end Elaborate_Present
;
1052 function Else_Actions
1053 (N
: Node_Id
) return List_Id
is
1055 pragma Assert
(False
1056 or else NT
(N
).Nkind
= N_If_Expression
);
1060 function Else_Statements
1061 (N
: Node_Id
) return List_Id
is
1063 pragma Assert
(False
1064 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
1065 or else NT
(N
).Nkind
= N_If_Statement
1066 or else NT
(N
).Nkind
= N_Selective_Accept
);
1068 end Else_Statements
;
1070 function Elsif_Parts
1071 (N
: Node_Id
) return List_Id
is
1073 pragma Assert
(False
1074 or else NT
(N
).Nkind
= N_If_Statement
);
1078 function Enclosing_Variant
1079 (N
: Node_Id
) return Node_Id
is
1081 pragma Assert
(False
1082 or else NT
(N
).Nkind
= N_Variant
);
1084 end Enclosing_Variant
;
1087 (N
: Node_Id
) return Node_Id
is
1089 pragma Assert
(False
1090 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
1091 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
1092 or else NT
(N
).Nkind
= N_Loop_Statement
1093 or else NT
(N
).Nkind
= N_Package_Specification
1094 or else NT
(N
).Nkind
= N_Protected_Body
1095 or else NT
(N
).Nkind
= N_Protected_Definition
1096 or else NT
(N
).Nkind
= N_Record_Definition
1097 or else NT
(N
).Nkind
= N_Task_Definition
);
1102 (N
: Node_Id
) return Uint
is
1104 pragma Assert
(False
1105 or else NT
(N
).Nkind
= N_Case_Statement
1106 or else NT
(N
).Nkind
= N_If_Statement
);
1111 (N
: Node_Id
) return Node_Id
is
1113 pragma Assert
(False
1114 or else NT
(N
).Nkind
in N_Has_Entity
1115 or else NT
(N
).Nkind
= N_Aspect_Specification
1116 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1117 or else NT
(N
).Nkind
= N_Freeze_Entity
1118 or else NT
(N
).Nkind
= N_Freeze_Generic_Entity
);
1122 function Entity_Or_Associated_Node
1123 (N
: Node_Id
) return Node_Id
is
1125 pragma Assert
(False
1126 or else NT
(N
).Nkind
in N_Has_Entity
1127 or else NT
(N
).Nkind
= N_Freeze_Entity
);
1129 end Entity_Or_Associated_Node
;
1131 function Entry_Body_Formal_Part
1132 (N
: Node_Id
) return Node_Id
is
1134 pragma Assert
(False
1135 or else NT
(N
).Nkind
= N_Entry_Body
);
1137 end Entry_Body_Formal_Part
;
1139 function Entry_Call_Alternative
1140 (N
: Node_Id
) return Node_Id
is
1142 pragma Assert
(False
1143 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
1144 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
1146 end Entry_Call_Alternative
;
1148 function Entry_Call_Statement
1149 (N
: Node_Id
) return Node_Id
is
1151 pragma Assert
(False
1152 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
);
1154 end Entry_Call_Statement
;
1156 function Entry_Direct_Name
1157 (N
: Node_Id
) return Node_Id
is
1159 pragma Assert
(False
1160 or else NT
(N
).Nkind
= N_Accept_Statement
);
1162 end Entry_Direct_Name
;
1164 function Entry_Index
1165 (N
: Node_Id
) return Node_Id
is
1167 pragma Assert
(False
1168 or else NT
(N
).Nkind
= N_Accept_Statement
);
1172 function Entry_Index_Specification
1173 (N
: Node_Id
) return Node_Id
is
1175 pragma Assert
(False
1176 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
);
1178 end Entry_Index_Specification
;
1181 (N
: Node_Id
) return Node_Id
is
1183 pragma Assert
(False
1184 or else NT
(N
).Nkind
in N_Has_Etype
);
1188 function Exception_Choices
1189 (N
: Node_Id
) return List_Id
is
1191 pragma Assert
(False
1192 or else NT
(N
).Nkind
= N_Exception_Handler
);
1194 end Exception_Choices
;
1196 function Exception_Handlers
1197 (N
: Node_Id
) return List_Id
is
1199 pragma Assert
(False
1200 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
1202 end Exception_Handlers
;
1204 function Exception_Junk
1205 (N
: Node_Id
) return Boolean is
1207 pragma Assert
(False
1208 or else NT
(N
).Nkind
= N_Block_Statement
1209 or else NT
(N
).Nkind
= N_Goto_Statement
1210 or else NT
(N
).Nkind
= N_Label
1211 or else NT
(N
).Nkind
= N_Object_Declaration
1212 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
1216 function Exception_Label
1217 (N
: Node_Id
) return Node_Id
is
1219 pragma Assert
(False
1220 or else NT
(N
).Nkind
= N_Exception_Handler
1221 or else NT
(N
).Nkind
= N_Push_Constraint_Error_Label
1222 or else NT
(N
).Nkind
= N_Push_Program_Error_Label
1223 or else NT
(N
).Nkind
= N_Push_Storage_Error_Label
);
1225 end Exception_Label
;
1227 function Expansion_Delayed
1228 (N
: Node_Id
) return Boolean is
1230 pragma Assert
(False
1231 or else NT
(N
).Nkind
= N_Aggregate
1232 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
1234 end Expansion_Delayed
;
1236 function Explicit_Actual_Parameter
1237 (N
: Node_Id
) return Node_Id
is
1239 pragma Assert
(False
1240 or else NT
(N
).Nkind
= N_Parameter_Association
);
1242 end Explicit_Actual_Parameter
;
1244 function Explicit_Generic_Actual_Parameter
1245 (N
: Node_Id
) return Node_Id
is
1247 pragma Assert
(False
1248 or else NT
(N
).Nkind
= N_Generic_Association
);
1250 end Explicit_Generic_Actual_Parameter
;
1253 (N
: Node_Id
) return Node_Id
is
1255 pragma Assert
(False
1256 or else NT
(N
).Nkind
= N_Allocator
1257 or else NT
(N
).Nkind
= N_Aspect_Specification
1258 or else NT
(N
).Nkind
= N_Assignment_Statement
1259 or else NT
(N
).Nkind
= N_At_Clause
1260 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1261 or else NT
(N
).Nkind
= N_Case_Expression
1262 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
1263 or else NT
(N
).Nkind
= N_Case_Statement
1264 or else NT
(N
).Nkind
= N_Code_Statement
1265 or else NT
(N
).Nkind
= N_Component_Association
1266 or else NT
(N
).Nkind
= N_Component_Declaration
1267 or else NT
(N
).Nkind
= N_Delay_Relative_Statement
1268 or else NT
(N
).Nkind
= N_Delay_Until_Statement
1269 or else NT
(N
).Nkind
= N_Delta_Aggregate
1270 or else NT
(N
).Nkind
= N_Discriminant_Association
1271 or else NT
(N
).Nkind
= N_Discriminant_Specification
1272 or else NT
(N
).Nkind
= N_Exception_Declaration
1273 or else NT
(N
).Nkind
= N_Expression_Function
1274 or else NT
(N
).Nkind
= N_Expression_With_Actions
1275 or else NT
(N
).Nkind
= N_Free_Statement
1276 or else NT
(N
).Nkind
= N_Iterated_Component_Association
1277 or else NT
(N
).Nkind
= N_Mod_Clause
1278 or else NT
(N
).Nkind
= N_Modular_Type_Definition
1279 or else NT
(N
).Nkind
= N_Number_Declaration
1280 or else NT
(N
).Nkind
= N_Object_Declaration
1281 or else NT
(N
).Nkind
= N_Parameter_Specification
1282 or else NT
(N
).Nkind
= N_Pragma_Argument_Association
1283 or else NT
(N
).Nkind
= N_Qualified_Expression
1284 or else NT
(N
).Nkind
= N_Raise_Expression
1285 or else NT
(N
).Nkind
= N_Raise_Statement
1286 or else NT
(N
).Nkind
= N_Simple_Return_Statement
1287 or else NT
(N
).Nkind
= N_Type_Conversion
1288 or else NT
(N
).Nkind
= N_Unchecked_Expression
1289 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
1293 function Expression_Copy
1294 (N
: Node_Id
) return Node_Id
is
1296 pragma Assert
(False
1297 or else NT
(N
).Nkind
= N_Pragma_Argument_Association
);
1299 end Expression_Copy
;
1301 function Expressions
1302 (N
: Node_Id
) return List_Id
is
1304 pragma Assert
(False
1305 or else NT
(N
).Nkind
= N_Aggregate
1306 or else NT
(N
).Nkind
= N_Attribute_Reference
1307 or else NT
(N
).Nkind
= N_Extension_Aggregate
1308 or else NT
(N
).Nkind
= N_If_Expression
1309 or else NT
(N
).Nkind
= N_Indexed_Component
);
1314 (N
: Node_Id
) return Node_Id
is
1316 pragma Assert
(False
1317 or else NT
(N
).Nkind
= N_Component_Clause
);
1321 function First_Inlined_Subprogram
1322 (N
: Node_Id
) return Entity_Id
is
1324 pragma Assert
(False
1325 or else NT
(N
).Nkind
= N_Compilation_Unit
);
1327 end First_Inlined_Subprogram
;
1330 (N
: Node_Id
) return Boolean is
1332 pragma Assert
(False
1333 or else NT
(N
).Nkind
= N_With_Clause
);
1337 function First_Named_Actual
1338 (N
: Node_Id
) return Node_Id
is
1340 pragma Assert
(False
1341 or else NT
(N
).Nkind
= N_Entry_Call_Statement
1342 or else NT
(N
).Nkind
= N_Function_Call
1343 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
1345 end First_Named_Actual
;
1347 function First_Real_Statement
1348 (N
: Node_Id
) return Node_Id
is
1350 pragma Assert
(False
1351 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
1353 end First_Real_Statement
;
1355 function First_Subtype_Link
1356 (N
: Node_Id
) return Entity_Id
is
1358 pragma Assert
(False
1359 or else NT
(N
).Nkind
= N_Freeze_Entity
);
1361 end First_Subtype_Link
;
1363 function Float_Truncate
1364 (N
: Node_Id
) return Boolean is
1366 pragma Assert
(False
1367 or else NT
(N
).Nkind
= N_Type_Conversion
);
1371 function Formal_Type_Definition
1372 (N
: Node_Id
) return Node_Id
is
1374 pragma Assert
(False
1375 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
);
1377 end Formal_Type_Definition
;
1379 function Forwards_OK
1380 (N
: Node_Id
) return Boolean is
1382 pragma Assert
(False
1383 or else NT
(N
).Nkind
= N_Assignment_Statement
);
1387 function From_Aspect_Specification
1388 (N
: Node_Id
) return Boolean is
1390 pragma Assert
(False
1391 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1392 or else NT
(N
).Nkind
= N_Pragma
);
1394 end From_Aspect_Specification
;
1396 function From_At_End
1397 (N
: Node_Id
) return Boolean is
1399 pragma Assert
(False
1400 or else NT
(N
).Nkind
= N_Raise_Statement
);
1404 function From_At_Mod
1405 (N
: Node_Id
) return Boolean is
1407 pragma Assert
(False
1408 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
1412 function From_Conditional_Expression
1413 (N
: Node_Id
) return Boolean is
1415 pragma Assert
(False
1416 or else NT
(N
).Nkind
= N_Case_Statement
1417 or else NT
(N
).Nkind
= N_If_Statement
);
1419 end From_Conditional_Expression
;
1421 function From_Default
1422 (N
: Node_Id
) return Boolean is
1424 pragma Assert
(False
1425 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
1429 function Generalized_Indexing
1430 (N
: Node_Id
) return Node_Id
is
1432 pragma Assert
(False
1433 or else NT
(N
).Nkind
= N_Indexed_Component
);
1435 end Generalized_Indexing
;
1437 function Generic_Associations
1438 (N
: Node_Id
) return List_Id
is
1440 pragma Assert
(False
1441 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
1442 or else NT
(N
).Nkind
= N_Function_Instantiation
1443 or else NT
(N
).Nkind
= N_Package_Instantiation
1444 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
1446 end Generic_Associations
;
1448 function Generic_Formal_Declarations
1449 (N
: Node_Id
) return List_Id
is
1451 pragma Assert
(False
1452 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
1453 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
);
1455 end Generic_Formal_Declarations
;
1457 function Generic_Parent
1458 (N
: Node_Id
) return Node_Id
is
1460 pragma Assert
(False
1461 or else NT
(N
).Nkind
= N_Function_Specification
1462 or else NT
(N
).Nkind
= N_Package_Specification
1463 or else NT
(N
).Nkind
= N_Procedure_Specification
);
1467 function Generic_Parent_Type
1468 (N
: Node_Id
) return Node_Id
is
1470 pragma Assert
(False
1471 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
1473 end Generic_Parent_Type
;
1475 function Handled_Statement_Sequence
1476 (N
: Node_Id
) return Node_Id
is
1478 pragma Assert
(False
1479 or else NT
(N
).Nkind
= N_Accept_Statement
1480 or else NT
(N
).Nkind
= N_Block_Statement
1481 or else NT
(N
).Nkind
= N_Entry_Body
1482 or else NT
(N
).Nkind
= N_Extended_Return_Statement
1483 or else NT
(N
).Nkind
= N_Package_Body
1484 or else NT
(N
).Nkind
= N_Subprogram_Body
1485 or else NT
(N
).Nkind
= N_Task_Body
);
1487 end Handled_Statement_Sequence
;
1489 function Handler_List_Entry
1490 (N
: Node_Id
) return Node_Id
is
1492 pragma Assert
(False
1493 or else NT
(N
).Nkind
= N_Object_Declaration
);
1495 end Handler_List_Entry
;
1497 function Has_Created_Identifier
1498 (N
: Node_Id
) return Boolean is
1500 pragma Assert
(False
1501 or else NT
(N
).Nkind
= N_Block_Statement
1502 or else NT
(N
).Nkind
= N_Loop_Statement
);
1504 end Has_Created_Identifier
;
1506 function Has_Dereference_Action
1507 (N
: Node_Id
) return Boolean is
1509 pragma Assert
(False
1510 or else NT
(N
).Nkind
= N_Explicit_Dereference
);
1512 end Has_Dereference_Action
;
1514 function Has_Dynamic_Length_Check
1515 (N
: Node_Id
) return Boolean is
1517 pragma Assert
(False
1518 or else NT
(N
).Nkind
in N_Subexpr
);
1520 end Has_Dynamic_Length_Check
;
1522 function Has_Dynamic_Range_Check
1523 (N
: Node_Id
) return Boolean is
1525 pragma Assert
(False
1526 or else NT
(N
).Nkind
= N_Subtype_Declaration
1527 or else NT
(N
).Nkind
in N_Subexpr
);
1529 end Has_Dynamic_Range_Check
;
1531 function Has_Init_Expression
1532 (N
: Node_Id
) return Boolean is
1534 pragma Assert
(False
1535 or else NT
(N
).Nkind
= N_Object_Declaration
);
1537 end Has_Init_Expression
;
1539 function Has_Local_Raise
1540 (N
: Node_Id
) return Boolean is
1542 pragma Assert
(False
1543 or else NT
(N
).Nkind
= N_Exception_Handler
);
1545 end Has_Local_Raise
;
1547 function Has_No_Elaboration_Code
1548 (N
: Node_Id
) return Boolean is
1550 pragma Assert
(False
1551 or else NT
(N
).Nkind
= N_Compilation_Unit
);
1553 end Has_No_Elaboration_Code
;
1555 function Has_Pragma_Suppress_All
1556 (N
: Node_Id
) return Boolean is
1558 pragma Assert
(False
1559 or else NT
(N
).Nkind
= N_Compilation_Unit
);
1561 end Has_Pragma_Suppress_All
;
1563 function Has_Private_View
1564 (N
: Node_Id
) return Boolean is
1566 pragma Assert
(False
1567 or else NT
(N
).Nkind
in N_Op
1568 or else NT
(N
).Nkind
= N_Character_Literal
1569 or else NT
(N
).Nkind
= N_Expanded_Name
1570 or else NT
(N
).Nkind
= N_Identifier
1571 or else NT
(N
).Nkind
= N_Operator_Symbol
);
1573 end Has_Private_View
;
1575 function Has_Relative_Deadline_Pragma
1576 (N
: Node_Id
) return Boolean is
1578 pragma Assert
(False
1579 or else NT
(N
).Nkind
= N_Subprogram_Body
1580 or else NT
(N
).Nkind
= N_Task_Definition
);
1582 end Has_Relative_Deadline_Pragma
;
1584 function Has_Self_Reference
1585 (N
: Node_Id
) return Boolean is
1587 pragma Assert
(False
1588 or else NT
(N
).Nkind
= N_Aggregate
1589 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
1591 end Has_Self_Reference
;
1593 function Has_SP_Choice
1594 (N
: Node_Id
) return Boolean is
1596 pragma Assert
(False
1597 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
1598 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
1599 or else NT
(N
).Nkind
= N_Variant
);
1603 function Has_Storage_Size_Pragma
1604 (N
: Node_Id
) return Boolean is
1606 pragma Assert
(False
1607 or else NT
(N
).Nkind
= N_Task_Definition
);
1609 end Has_Storage_Size_Pragma
;
1611 function Has_Target_Names
1612 (N
: Node_Id
) return Boolean is
1614 pragma Assert
(False
1615 or else NT
(N
).Nkind
= N_Assignment_Statement
);
1617 end Has_Target_Names
;
1619 function Has_Wide_Character
1620 (N
: Node_Id
) return Boolean is
1622 pragma Assert
(False
1623 or else NT
(N
).Nkind
= N_String_Literal
);
1625 end Has_Wide_Character
;
1627 function Has_Wide_Wide_Character
1628 (N
: Node_Id
) return Boolean is
1630 pragma Assert
(False
1631 or else NT
(N
).Nkind
= N_String_Literal
);
1633 end Has_Wide_Wide_Character
;
1635 function Header_Size_Added
1636 (N
: Node_Id
) return Boolean is
1638 pragma Assert
(False
1639 or else NT
(N
).Nkind
= N_Attribute_Reference
);
1641 end Header_Size_Added
;
1643 function Hidden_By_Use_Clause
1644 (N
: Node_Id
) return Elist_Id
is
1646 pragma Assert
(False
1647 or else NT
(N
).Nkind
= N_Use_Package_Clause
1648 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
1650 end Hidden_By_Use_Clause
;
1653 (N
: Node_Id
) return Node_Id
is
1655 pragma Assert
(False
1656 or else NT
(N
).Nkind
= N_Range
1657 or else NT
(N
).Nkind
= N_Real_Range_Specification
1658 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
1663 (N
: Node_Id
) return Node_Id
is
1665 pragma Assert
(False
1666 or else NT
(N
).Nkind
= N_Aspect_Specification
1667 or else NT
(N
).Nkind
= N_At_Clause
1668 or else NT
(N
).Nkind
= N_Block_Statement
1669 or else NT
(N
).Nkind
= N_Designator
1670 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
1671 or else NT
(N
).Nkind
= N_Label
1672 or else NT
(N
).Nkind
= N_Loop_Statement
1673 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
1677 function Implicit_With
1678 (N
: Node_Id
) return Boolean is
1680 pragma Assert
(False
1681 or else NT
(N
).Nkind
= N_With_Clause
);
1685 function Implicit_With_From_Instantiation
1686 (N
: Node_Id
) return Boolean is
1688 pragma Assert
(False
1689 or else NT
(N
).Nkind
= N_With_Clause
);
1691 end Implicit_With_From_Instantiation
;
1693 function Interface_List
1694 (N
: Node_Id
) return List_Id
is
1696 pragma Assert
(False
1697 or else NT
(N
).Nkind
= N_Derived_Type_Definition
1698 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
1699 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
1700 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
1701 or else NT
(N
).Nkind
= N_Record_Definition
1702 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
1703 or else NT
(N
).Nkind
= N_Single_Task_Declaration
1704 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
1708 function Interface_Present
1709 (N
: Node_Id
) return Boolean is
1711 pragma Assert
(False
1712 or else NT
(N
).Nkind
= N_Derived_Type_Definition
1713 or else NT
(N
).Nkind
= N_Record_Definition
);
1715 end Interface_Present
;
1717 function Import_Interface_Present
1718 (N
: Node_Id
) return Boolean is
1720 pragma Assert
(False
1721 or else NT
(N
).Nkind
= N_Pragma
);
1723 end Import_Interface_Present
;
1726 (N
: Node_Id
) return Boolean is
1728 pragma Assert
(False
1729 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
1730 or else NT
(N
).Nkind
= N_Parameter_Specification
);
1734 function Includes_Infinities
1735 (N
: Node_Id
) return Boolean is
1737 pragma Assert
(False
1738 or else NT
(N
).Nkind
= N_Range
);
1740 end Includes_Infinities
;
1742 function Incomplete_View
1743 (N
: Node_Id
) return Node_Id
is
1745 pragma Assert
(False
1746 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
1748 end Incomplete_View
;
1750 function Inherited_Discriminant
1751 (N
: Node_Id
) return Boolean is
1753 pragma Assert
(False
1754 or else NT
(N
).Nkind
= N_Component_Association
);
1756 end Inherited_Discriminant
;
1758 function Instance_Spec
1759 (N
: Node_Id
) return Node_Id
is
1761 pragma Assert
(False
1762 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
1763 or else NT
(N
).Nkind
= N_Function_Instantiation
1764 or else NT
(N
).Nkind
= N_Package_Instantiation
1765 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
1770 (N
: Node_Id
) return Uint
is
1772 pragma Assert
(False
1773 or else NT
(N
).Nkind
= N_Integer_Literal
);
1777 function Is_Abort_Block
1778 (N
: Node_Id
) return Boolean is
1780 pragma Assert
(False
1781 or else NT
(N
).Nkind
= N_Block_Statement
);
1785 function Is_Accessibility_Actual
1786 (N
: Node_Id
) return Boolean is
1788 pragma Assert
(False
1789 or else NT
(N
).Nkind
= N_Parameter_Association
);
1791 end Is_Accessibility_Actual
;
1793 function Is_Analyzed_Pragma
1794 (N
: Node_Id
) return Boolean is
1796 pragma Assert
(False
1797 or else NT
(N
).Nkind
= N_Pragma
);
1799 end Is_Analyzed_Pragma
;
1801 function Is_Asynchronous_Call_Block
1802 (N
: Node_Id
) return Boolean is
1804 pragma Assert
(False
1805 or else NT
(N
).Nkind
= N_Block_Statement
);
1807 end Is_Asynchronous_Call_Block
;
1809 function Is_Boolean_Aspect
1810 (N
: Node_Id
) return Boolean is
1812 pragma Assert
(False
1813 or else NT
(N
).Nkind
= N_Aspect_Specification
);
1815 end Is_Boolean_Aspect
;
1818 (N
: Node_Id
) return Boolean is
1820 pragma Assert
(False
1821 or else NT
(N
).Nkind
= N_Aspect_Specification
1822 or else NT
(N
).Nkind
= N_Pragma
);
1826 function Is_Checked_Ghost_Pragma
1827 (N
: Node_Id
) return Boolean is
1829 pragma Assert
(False
1830 or else NT
(N
).Nkind
= N_Pragma
);
1832 end Is_Checked_Ghost_Pragma
;
1834 function Is_Component_Left_Opnd
1835 (N
: Node_Id
) return Boolean is
1837 pragma Assert
(False
1838 or else NT
(N
).Nkind
= N_Op_Concat
);
1840 end Is_Component_Left_Opnd
;
1842 function Is_Component_Right_Opnd
1843 (N
: Node_Id
) return Boolean is
1845 pragma Assert
(False
1846 or else NT
(N
).Nkind
= N_Op_Concat
);
1848 end Is_Component_Right_Opnd
;
1850 function Is_Controlling_Actual
1851 (N
: Node_Id
) return Boolean is
1853 pragma Assert
(False
1854 or else NT
(N
).Nkind
in N_Subexpr
);
1856 end Is_Controlling_Actual
;
1858 function Is_Disabled
1859 (N
: Node_Id
) return Boolean is
1861 pragma Assert
(False
1862 or else NT
(N
).Nkind
= N_Aspect_Specification
1863 or else NT
(N
).Nkind
= N_Pragma
);
1867 function Is_Delayed_Aspect
1868 (N
: Node_Id
) return Boolean is
1870 pragma Assert
(False
1871 or else NT
(N
).Nkind
= N_Aspect_Specification
1872 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1873 or else NT
(N
).Nkind
= N_Pragma
);
1875 end Is_Delayed_Aspect
;
1877 function Is_Dynamic_Coextension
1878 (N
: Node_Id
) return Boolean is
1880 pragma Assert
(False
1881 or else NT
(N
).Nkind
= N_Allocator
);
1883 end Is_Dynamic_Coextension
;
1886 (N
: Node_Id
) return Boolean is
1888 pragma Assert
(False
1889 or else NT
(N
).Nkind
= N_If_Expression
);
1893 function Is_Entry_Barrier_Function
1894 (N
: Node_Id
) return Boolean is
1896 pragma Assert
(False
1897 or else NT
(N
).Nkind
= N_Subprogram_Body
1898 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
1900 end Is_Entry_Barrier_Function
;
1902 function Is_Expanded_Build_In_Place_Call
1903 (N
: Node_Id
) return Boolean is
1905 pragma Assert
(False
1906 or else NT
(N
).Nkind
= N_Function_Call
);
1908 end Is_Expanded_Build_In_Place_Call
;
1910 function Is_Expanded_Contract
1911 (N
: Node_Id
) return Boolean is
1913 pragma Assert
(False
1914 or else NT
(N
).Nkind
= N_Contract
);
1916 end Is_Expanded_Contract
;
1918 function Is_Finalization_Wrapper
1919 (N
: Node_Id
) return Boolean is
1921 pragma Assert
(False
1922 or else NT
(N
).Nkind
= N_Block_Statement
);
1924 end Is_Finalization_Wrapper
;
1926 function Is_Folded_In_Parser
1927 (N
: Node_Id
) return Boolean is
1929 pragma Assert
(False
1930 or else NT
(N
).Nkind
= N_String_Literal
);
1932 end Is_Folded_In_Parser
;
1934 function Is_Generic_Contract_Pragma
1935 (N
: Node_Id
) return Boolean is
1937 pragma Assert
(False
1938 or else NT
(N
).Nkind
= N_Pragma
);
1940 end Is_Generic_Contract_Pragma
;
1943 (N
: Node_Id
) return Boolean is
1945 pragma Assert
(False
1946 or else NT
(N
).Nkind
= N_Aspect_Specification
1947 or else NT
(N
).Nkind
= N_Pragma
);
1951 function Is_Ignored_Ghost_Pragma
1952 (N
: Node_Id
) return Boolean is
1954 pragma Assert
(False
1955 or else NT
(N
).Nkind
= N_Pragma
);
1957 end Is_Ignored_Ghost_Pragma
;
1959 function Is_In_Discriminant_Check
1960 (N
: Node_Id
) return Boolean is
1962 pragma Assert
(False
1963 or else NT
(N
).Nkind
= N_Selected_Component
);
1965 end Is_In_Discriminant_Check
;
1967 function Is_Inherited_Pragma
1968 (N
: Node_Id
) return Boolean is
1970 pragma Assert
(False
1971 or else NT
(N
).Nkind
= N_Pragma
);
1973 end Is_Inherited_Pragma
;
1975 function Is_Machine_Number
1976 (N
: Node_Id
) return Boolean is
1978 pragma Assert
(False
1979 or else NT
(N
).Nkind
= N_Real_Literal
);
1981 end Is_Machine_Number
;
1983 function Is_Null_Loop
1984 (N
: Node_Id
) return Boolean is
1986 pragma Assert
(False
1987 or else NT
(N
).Nkind
= N_Loop_Statement
);
1991 function Is_Overloaded
1992 (N
: Node_Id
) return Boolean is
1994 pragma Assert
(False
1995 or else NT
(N
).Nkind
in N_Subexpr
);
1999 function Is_Power_Of_2_For_Shift
2000 (N
: Node_Id
) return Boolean is
2002 pragma Assert
(False
2003 or else NT
(N
).Nkind
= N_Op_Expon
);
2005 end Is_Power_Of_2_For_Shift
;
2007 function Is_Prefixed_Call
2008 (N
: Node_Id
) return Boolean is
2010 pragma Assert
(False
2011 or else NT
(N
).Nkind
= N_Selected_Component
);
2013 end Is_Prefixed_Call
;
2015 function Is_Protected_Subprogram_Body
2016 (N
: Node_Id
) return Boolean is
2018 pragma Assert
(False
2019 or else NT
(N
).Nkind
= N_Subprogram_Body
);
2021 end Is_Protected_Subprogram_Body
;
2023 function Is_Qualified_Universal_Literal
2024 (N
: Node_Id
) return Boolean is
2026 pragma Assert
(False
2027 or else NT
(N
).Nkind
= N_Qualified_Expression
);
2029 end Is_Qualified_Universal_Literal
;
2031 function Is_Static_Coextension
2032 (N
: Node_Id
) return Boolean is
2034 pragma Assert
(False
2035 or else NT
(N
).Nkind
= N_Allocator
);
2037 end Is_Static_Coextension
;
2039 function Is_Static_Expression
2040 (N
: Node_Id
) return Boolean is
2042 pragma Assert
(False
2043 or else NT
(N
).Nkind
in N_Subexpr
);
2045 end Is_Static_Expression
;
2047 function Is_Subprogram_Descriptor
2048 (N
: Node_Id
) return Boolean is
2050 pragma Assert
(False
2051 or else NT
(N
).Nkind
= N_Object_Declaration
);
2053 end Is_Subprogram_Descriptor
;
2055 function Is_Task_Allocation_Block
2056 (N
: Node_Id
) return Boolean is
2058 pragma Assert
(False
2059 or else NT
(N
).Nkind
= N_Block_Statement
);
2061 end Is_Task_Allocation_Block
;
2063 function Is_Task_Body_Procedure
2064 (N
: Node_Id
) return Boolean is
2066 pragma Assert
(False
2067 or else NT
(N
).Nkind
= N_Subprogram_Body
2068 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
2070 end Is_Task_Body_Procedure
;
2072 function Is_Task_Master
2073 (N
: Node_Id
) return Boolean is
2075 pragma Assert
(False
2076 or else NT
(N
).Nkind
= N_Block_Statement
2077 or else NT
(N
).Nkind
= N_Subprogram_Body
2078 or else NT
(N
).Nkind
= N_Task_Body
);
2082 function Iteration_Scheme
2083 (N
: Node_Id
) return Node_Id
is
2085 pragma Assert
(False
2086 or else NT
(N
).Nkind
= N_Loop_Statement
);
2088 end Iteration_Scheme
;
2090 function Iterator_Specification
2091 (N
: Node_Id
) return Node_Id
is
2093 pragma Assert
(False
2094 or else NT
(N
).Nkind
= N_Iteration_Scheme
2095 or else NT
(N
).Nkind
= N_Quantified_Expression
);
2097 end Iterator_Specification
;
2100 (N
: Node_Id
) return Node_Id
is
2102 pragma Assert
(False
2103 or else NT
(N
).Nkind
= N_Itype_Reference
);
2107 function Kill_Range_Check
2108 (N
: Node_Id
) return Boolean is
2110 pragma Assert
(False
2111 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
2113 end Kill_Range_Check
;
2115 function Label_Construct
2116 (N
: Node_Id
) return Node_Id
is
2118 pragma Assert
(False
2119 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
);
2121 end Label_Construct
;
2124 (N
: Node_Id
) return Node_Id
is
2126 pragma Assert
(False
2127 or else NT
(N
).Nkind
= N_Component_Clause
);
2132 (N
: Node_Id
) return Boolean is
2134 pragma Assert
(False
2135 or else NT
(N
).Nkind
= N_With_Clause
);
2140 (N
: Node_Id
) return Node_Id
is
2142 pragma Assert
(False
2143 or else NT
(N
).Nkind
= N_And_Then
2144 or else NT
(N
).Nkind
= N_In
2145 or else NT
(N
).Nkind
= N_Not_In
2146 or else NT
(N
).Nkind
= N_Or_Else
2147 or else NT
(N
).Nkind
in N_Binary_Op
);
2151 function Library_Unit
2152 (N
: Node_Id
) return Node_Id
is
2154 pragma Assert
(False
2155 or else NT
(N
).Nkind
= N_Compilation_Unit
2156 or else NT
(N
).Nkind
= N_Package_Body_Stub
2157 or else NT
(N
).Nkind
= N_Protected_Body_Stub
2158 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
2159 or else NT
(N
).Nkind
= N_Task_Body_Stub
2160 or else NT
(N
).Nkind
= N_With_Clause
);
2164 function Limited_View_Installed
2165 (N
: Node_Id
) return Boolean is
2167 pragma Assert
(False
2168 or else NT
(N
).Nkind
= N_Package_Specification
2169 or else NT
(N
).Nkind
= N_With_Clause
);
2171 end Limited_View_Installed
;
2173 function Limited_Present
2174 (N
: Node_Id
) return Boolean is
2176 pragma Assert
(False
2177 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2178 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
2179 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
2180 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
2181 or else NT
(N
).Nkind
= N_Private_Type_Declaration
2182 or else NT
(N
).Nkind
= N_Record_Definition
2183 or else NT
(N
).Nkind
= N_With_Clause
);
2185 end Limited_Present
;
2188 (N
: Node_Id
) return List_Id
is
2190 pragma Assert
(False
2191 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
);
2195 function Local_Raise_Not_OK
2196 (N
: Node_Id
) return Boolean is
2198 pragma Assert
(False
2199 or else NT
(N
).Nkind
= N_Exception_Handler
);
2201 end Local_Raise_Not_OK
;
2203 function Local_Raise_Statements
2204 (N
: Node_Id
) return Elist_Id
is
2206 pragma Assert
(False
2207 or else NT
(N
).Nkind
= N_Exception_Handler
);
2209 end Local_Raise_Statements
;
2211 function Loop_Actions
2212 (N
: Node_Id
) return List_Id
is
2214 pragma Assert
(False
2215 or else NT
(N
).Nkind
= N_Component_Association
2216 or else NT
(N
).Nkind
= N_Iterated_Component_Association
);
2220 function Loop_Parameter_Specification
2221 (N
: Node_Id
) return Node_Id
is
2223 pragma Assert
(False
2224 or else NT
(N
).Nkind
= N_Iteration_Scheme
2225 or else NT
(N
).Nkind
= N_Quantified_Expression
);
2227 end Loop_Parameter_Specification
;
2230 (N
: Node_Id
) return Node_Id
is
2232 pragma Assert
(False
2233 or else NT
(N
).Nkind
= N_Range
2234 or else NT
(N
).Nkind
= N_Real_Range_Specification
2235 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
2240 (N
: Node_Id
) return Node_Id
is
2242 pragma Assert
(False
2243 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
2248 (N
: Node_Id
) return Boolean is
2250 pragma Assert
(False
2251 or else NT
(N
).Nkind
= N_Component_Declaration
2252 or else NT
(N
).Nkind
= N_Discriminant_Specification
2253 or else NT
(N
).Nkind
= N_Exception_Declaration
2254 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2255 or else NT
(N
).Nkind
= N_Number_Declaration
2256 or else NT
(N
).Nkind
= N_Object_Declaration
2257 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2261 function Must_Be_Byte_Aligned
2262 (N
: Node_Id
) return Boolean is
2264 pragma Assert
(False
2265 or else NT
(N
).Nkind
= N_Attribute_Reference
);
2267 end Must_Be_Byte_Aligned
;
2269 function Must_Not_Freeze
2270 (N
: Node_Id
) return Boolean is
2272 pragma Assert
(False
2273 or else NT
(N
).Nkind
= N_Subtype_Indication
2274 or else NT
(N
).Nkind
in N_Subexpr
);
2276 end Must_Not_Freeze
;
2278 function Must_Not_Override
2279 (N
: Node_Id
) return Boolean is
2281 pragma Assert
(False
2282 or else NT
(N
).Nkind
= N_Entry_Declaration
2283 or else NT
(N
).Nkind
= N_Function_Instantiation
2284 or else NT
(N
).Nkind
= N_Function_Specification
2285 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2286 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2288 end Must_Not_Override
;
2290 function Must_Override
2291 (N
: Node_Id
) return Boolean is
2293 pragma Assert
(False
2294 or else NT
(N
).Nkind
= N_Entry_Declaration
2295 or else NT
(N
).Nkind
= N_Function_Instantiation
2296 or else NT
(N
).Nkind
= N_Function_Specification
2297 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2298 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2303 (N
: Node_Id
) return Node_Id
is
2305 pragma Assert
(False
2306 or else NT
(N
).Nkind
= N_Assignment_Statement
2307 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
2308 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
2309 or else NT
(N
).Nkind
= N_Designator
2310 or else NT
(N
).Nkind
= N_Entry_Call_Statement
2311 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
2312 or else NT
(N
).Nkind
= N_Exit_Statement
2313 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
2314 or else NT
(N
).Nkind
= N_Function_Call
2315 or else NT
(N
).Nkind
= N_Function_Instantiation
2316 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
2317 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
2318 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
2319 or else NT
(N
).Nkind
= N_Goto_Statement
2320 or else NT
(N
).Nkind
= N_Iterator_Specification
2321 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
2322 or else NT
(N
).Nkind
= N_Package_Instantiation
2323 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
2324 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
2325 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2326 or else NT
(N
).Nkind
= N_Raise_Expression
2327 or else NT
(N
).Nkind
= N_Raise_Statement
2328 or else NT
(N
).Nkind
= N_Requeue_Statement
2329 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
2330 or else NT
(N
).Nkind
= N_Subunit
2331 or else NT
(N
).Nkind
= N_Variant_Part
2332 or else NT
(N
).Nkind
= N_With_Clause
);
2337 (N
: Node_Id
) return List_Id
is
2339 pragma Assert
(False
2340 or else NT
(N
).Nkind
= N_Abort_Statement
2341 or else NT
(N
).Nkind
= N_Use_Package_Clause
);
2345 function Next_Entity
2346 (N
: Node_Id
) return Node_Id
is
2348 pragma Assert
(False
2349 or else NT
(N
).Nkind
= N_Defining_Character_Literal
2350 or else NT
(N
).Nkind
= N_Defining_Identifier
2351 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
2355 function Next_Exit_Statement
2356 (N
: Node_Id
) return Node_Id
is
2358 pragma Assert
(False
2359 or else NT
(N
).Nkind
= N_Exit_Statement
);
2361 end Next_Exit_Statement
;
2363 function Next_Implicit_With
2364 (N
: Node_Id
) return Node_Id
is
2366 pragma Assert
(False
2367 or else NT
(N
).Nkind
= N_With_Clause
);
2369 end Next_Implicit_With
;
2371 function Next_Named_Actual
2372 (N
: Node_Id
) return Node_Id
is
2374 pragma Assert
(False
2375 or else NT
(N
).Nkind
= N_Parameter_Association
);
2377 end Next_Named_Actual
;
2379 function Next_Pragma
2380 (N
: Node_Id
) return Node_Id
is
2382 pragma Assert
(False
2383 or else NT
(N
).Nkind
= N_Pragma
);
2387 function Next_Rep_Item
2388 (N
: Node_Id
) return Node_Id
is
2390 pragma Assert
(False
2391 or else NT
(N
).Nkind
= N_Aspect_Specification
2392 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
2393 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
2394 or else NT
(N
).Nkind
= N_Pragma
2395 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
2399 function Next_Use_Clause
2400 (N
: Node_Id
) return Node_Id
is
2402 pragma Assert
(False
2403 or else NT
(N
).Nkind
= N_Use_Package_Clause
2404 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
2406 end Next_Use_Clause
;
2408 function No_Ctrl_Actions
2409 (N
: Node_Id
) return Boolean is
2411 pragma Assert
(False
2412 or else NT
(N
).Nkind
= N_Assignment_Statement
);
2414 end No_Ctrl_Actions
;
2416 function No_Elaboration_Check
2417 (N
: Node_Id
) return Boolean is
2419 pragma Assert
(False
2420 or else NT
(N
).Nkind
= N_Function_Call
2421 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
2423 end No_Elaboration_Check
;
2425 function No_Entities_Ref_In_Spec
2426 (N
: Node_Id
) return Boolean is
2428 pragma Assert
(False
2429 or else NT
(N
).Nkind
= N_With_Clause
);
2431 end No_Entities_Ref_In_Spec
;
2433 function No_Initialization
2434 (N
: Node_Id
) return Boolean is
2436 pragma Assert
(False
2437 or else NT
(N
).Nkind
= N_Allocator
2438 or else NT
(N
).Nkind
= N_Object_Declaration
);
2440 end No_Initialization
;
2442 function No_Minimize_Eliminate
2443 (N
: Node_Id
) return Boolean is
2445 pragma Assert
(False
2446 or else NT
(N
).Nkind
= N_In
2447 or else NT
(N
).Nkind
= N_Not_In
);
2449 end No_Minimize_Eliminate
;
2451 function No_Side_Effect_Removal
2452 (N
: Node_Id
) return Boolean is
2454 pragma Assert
(False
2455 or else NT
(N
).Nkind
= N_Function_Call
);
2457 end No_Side_Effect_Removal
;
2459 function No_Truncation
2460 (N
: Node_Id
) return Boolean is
2462 pragma Assert
(False
2463 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
2467 function Non_Aliased_Prefix
2468 (N
: Node_Id
) return Boolean is
2470 pragma Assert
(False
2471 or else NT
(N
).Nkind
= N_Attribute_Reference
);
2473 end Non_Aliased_Prefix
;
2475 function Null_Present
2476 (N
: Node_Id
) return Boolean is
2478 pragma Assert
(False
2479 or else NT
(N
).Nkind
= N_Component_List
2480 or else NT
(N
).Nkind
= N_Procedure_Specification
2481 or else NT
(N
).Nkind
= N_Record_Definition
);
2485 function Null_Excluding_Subtype
2486 (N
: Node_Id
) return Boolean is
2488 pragma Assert
(False
2489 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
);
2491 end Null_Excluding_Subtype
;
2493 function Null_Exclusion_Present
2494 (N
: Node_Id
) return Boolean is
2496 pragma Assert
(False
2497 or else NT
(N
).Nkind
= N_Access_Definition
2498 or else NT
(N
).Nkind
= N_Access_Function_Definition
2499 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2500 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
2501 or else NT
(N
).Nkind
= N_Allocator
2502 or else NT
(N
).Nkind
= N_Component_Definition
2503 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2504 or else NT
(N
).Nkind
= N_Discriminant_Specification
2505 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2506 or else NT
(N
).Nkind
= N_Function_Specification
2507 or else NT
(N
).Nkind
= N_Object_Declaration
2508 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
2509 or else NT
(N
).Nkind
= N_Parameter_Specification
2510 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
2512 end Null_Exclusion_Present
;
2514 function Null_Exclusion_In_Return_Present
2515 (N
: Node_Id
) return Boolean is
2517 pragma Assert
(False
2518 or else NT
(N
).Nkind
= N_Access_Function_Definition
);
2520 end Null_Exclusion_In_Return_Present
;
2522 function Null_Record_Present
2523 (N
: Node_Id
) return Boolean is
2525 pragma Assert
(False
2526 or else NT
(N
).Nkind
= N_Aggregate
2527 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
2529 end Null_Record_Present
;
2531 function Object_Definition
2532 (N
: Node_Id
) return Node_Id
is
2534 pragma Assert
(False
2535 or else NT
(N
).Nkind
= N_Object_Declaration
);
2537 end Object_Definition
;
2540 (N
: Node_Id
) return Boolean is
2542 pragma Assert
(False
2543 or else NT
(N
).Nkind
= N_Iterator_Specification
);
2547 function Original_Discriminant
2548 (N
: Node_Id
) return Node_Id
is
2550 pragma Assert
(False
2551 or else NT
(N
).Nkind
= N_Identifier
);
2553 end Original_Discriminant
;
2555 function Original_Entity
2556 (N
: Node_Id
) return Entity_Id
is
2558 pragma Assert
(False
2559 or else NT
(N
).Nkind
= N_Integer_Literal
2560 or else NT
(N
).Nkind
= N_Real_Literal
);
2562 end Original_Entity
;
2564 function Others_Discrete_Choices
2565 (N
: Node_Id
) return List_Id
is
2567 pragma Assert
(False
2568 or else NT
(N
).Nkind
= N_Others_Choice
);
2570 end Others_Discrete_Choices
;
2572 function Out_Present
2573 (N
: Node_Id
) return Boolean is
2575 pragma Assert
(False
2576 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2577 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2581 function Parameter_Associations
2582 (N
: Node_Id
) return List_Id
is
2584 pragma Assert
(False
2585 or else NT
(N
).Nkind
= N_Entry_Call_Statement
2586 or else NT
(N
).Nkind
= N_Function_Call
2587 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
2589 end Parameter_Associations
;
2591 function Parameter_Specifications
2592 (N
: Node_Id
) return List_Id
is
2594 pragma Assert
(False
2595 or else NT
(N
).Nkind
= N_Accept_Statement
2596 or else NT
(N
).Nkind
= N_Access_Function_Definition
2597 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2598 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
2599 or else NT
(N
).Nkind
= N_Entry_Declaration
2600 or else NT
(N
).Nkind
= N_Function_Specification
2601 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2603 end Parameter_Specifications
;
2605 function Parameter_Type
2606 (N
: Node_Id
) return Node_Id
is
2608 pragma Assert
(False
2609 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2613 function Parent_Spec
2614 (N
: Node_Id
) return Node_Id
is
2616 pragma Assert
(False
2617 or else NT
(N
).Nkind
= N_Function_Instantiation
2618 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
2619 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
2620 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
2621 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
2622 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
2623 or else NT
(N
).Nkind
= N_Package_Declaration
2624 or else NT
(N
).Nkind
= N_Package_Instantiation
2625 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
2626 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2627 or else NT
(N
).Nkind
= N_Subprogram_Declaration
2628 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
2633 (N
: Node_Id
) return Node_Id
is
2635 pragma Assert
(False
2636 or else NT
(N
).Nkind
= N_Component_Clause
);
2640 function Pragma_Argument_Associations
2641 (N
: Node_Id
) return List_Id
is
2643 pragma Assert
(False
2644 or else NT
(N
).Nkind
= N_Pragma
);
2646 end Pragma_Argument_Associations
;
2648 function Pragma_Identifier
2649 (N
: Node_Id
) return Node_Id
is
2651 pragma Assert
(False
2652 or else NT
(N
).Nkind
= N_Pragma
);
2654 end Pragma_Identifier
;
2656 function Pragmas_After
2657 (N
: Node_Id
) return List_Id
is
2659 pragma Assert
(False
2660 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
2661 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
2665 function Pragmas_Before
2666 (N
: Node_Id
) return List_Id
is
2668 pragma Assert
(False
2669 or else NT
(N
).Nkind
= N_Accept_Alternative
2670 or else NT
(N
).Nkind
= N_Delay_Alternative
2671 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
2672 or else NT
(N
).Nkind
= N_Mod_Clause
2673 or else NT
(N
).Nkind
= N_Terminate_Alternative
2674 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
2678 function Pre_Post_Conditions
2679 (N
: Node_Id
) return Node_Id
is
2681 pragma Assert
(False
2682 or else NT
(N
).Nkind
= N_Contract
);
2684 end Pre_Post_Conditions
;
2687 (N
: Node_Id
) return Node_Id
is
2689 pragma Assert
(False
2690 or else NT
(N
).Nkind
= N_Attribute_Reference
2691 or else NT
(N
).Nkind
= N_Expanded_Name
2692 or else NT
(N
).Nkind
= N_Explicit_Dereference
2693 or else NT
(N
).Nkind
= N_Indexed_Component
2694 or else NT
(N
).Nkind
= N_Reference
2695 or else NT
(N
).Nkind
= N_Selected_Component
2696 or else NT
(N
).Nkind
= N_Slice
);
2700 function Premature_Use
2701 (N
: Node_Id
) return Node_Id
is
2703 pragma Assert
(False
2704 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
);
2708 function Present_Expr
2709 (N
: Node_Id
) return Uint
is
2711 pragma Assert
(False
2712 or else NT
(N
).Nkind
= N_Variant
);
2717 (N
: Node_Id
) return Boolean is
2719 pragma Assert
(False
2720 or else NT
(N
).Nkind
= N_Component_Declaration
2721 or else NT
(N
).Nkind
= N_Discriminant_Specification
2722 or else NT
(N
).Nkind
= N_Exception_Declaration
2723 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2724 or else NT
(N
).Nkind
= N_Number_Declaration
2725 or else NT
(N
).Nkind
= N_Object_Declaration
2726 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2730 function Print_In_Hex
2731 (N
: Node_Id
) return Boolean is
2733 pragma Assert
(False
2734 or else NT
(N
).Nkind
= N_Integer_Literal
);
2738 function Private_Declarations
2739 (N
: Node_Id
) return List_Id
is
2741 pragma Assert
(False
2742 or else NT
(N
).Nkind
= N_Package_Specification
2743 or else NT
(N
).Nkind
= N_Protected_Definition
2744 or else NT
(N
).Nkind
= N_Task_Definition
);
2746 end Private_Declarations
;
2748 function Private_Present
2749 (N
: Node_Id
) return Boolean is
2751 pragma Assert
(False
2752 or else NT
(N
).Nkind
= N_Compilation_Unit
2753 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
2754 or else NT
(N
).Nkind
= N_With_Clause
);
2756 end Private_Present
;
2758 function Procedure_To_Call
2759 (N
: Node_Id
) return Node_Id
is
2761 pragma Assert
(False
2762 or else NT
(N
).Nkind
= N_Allocator
2763 or else NT
(N
).Nkind
= N_Extended_Return_Statement
2764 or else NT
(N
).Nkind
= N_Free_Statement
2765 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
2767 end Procedure_To_Call
;
2769 function Proper_Body
2770 (N
: Node_Id
) return Node_Id
is
2772 pragma Assert
(False
2773 or else NT
(N
).Nkind
= N_Subunit
);
2777 function Protected_Definition
2778 (N
: Node_Id
) return Node_Id
is
2780 pragma Assert
(False
2781 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
2782 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
);
2784 end Protected_Definition
;
2786 function Protected_Present
2787 (N
: Node_Id
) return Boolean is
2789 pragma Assert
(False
2790 or else NT
(N
).Nkind
= N_Access_Function_Definition
2791 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2792 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2793 or else NT
(N
).Nkind
= N_Record_Definition
);
2795 end Protected_Present
;
2797 function Raises_Constraint_Error
2798 (N
: Node_Id
) return Boolean is
2800 pragma Assert
(False
2801 or else NT
(N
).Nkind
in N_Subexpr
);
2803 end Raises_Constraint_Error
;
2805 function Range_Constraint
2806 (N
: Node_Id
) return Node_Id
is
2808 pragma Assert
(False
2809 or else NT
(N
).Nkind
= N_Delta_Constraint
2810 or else NT
(N
).Nkind
= N_Digits_Constraint
);
2812 end Range_Constraint
;
2814 function Range_Expression
2815 (N
: Node_Id
) return Node_Id
is
2817 pragma Assert
(False
2818 or else NT
(N
).Nkind
= N_Range_Constraint
);
2820 end Range_Expression
;
2822 function Real_Range_Specification
2823 (N
: Node_Id
) return Node_Id
is
2825 pragma Assert
(False
2826 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
2827 or else NT
(N
).Nkind
= N_Floating_Point_Definition
2828 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
2830 end Real_Range_Specification
;
2833 (N
: Node_Id
) return Ureal
is
2835 pragma Assert
(False
2836 or else NT
(N
).Nkind
= N_Real_Literal
);
2841 (N
: Node_Id
) return Uint
is
2843 pragma Assert
(False
2844 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
2845 or else NT
(N
).Nkind
= N_Raise_Program_Error
2846 or else NT
(N
).Nkind
= N_Raise_Storage_Error
);
2850 function Record_Extension_Part
2851 (N
: Node_Id
) return Node_Id
is
2853 pragma Assert
(False
2854 or else NT
(N
).Nkind
= N_Derived_Type_Definition
);
2856 end Record_Extension_Part
;
2858 function Redundant_Use
2859 (N
: Node_Id
) return Boolean is
2861 pragma Assert
(False
2862 or else NT
(N
).Nkind
= N_Attribute_Reference
2863 or else NT
(N
).Nkind
= N_Expanded_Name
2864 or else NT
(N
).Nkind
= N_Identifier
);
2868 function Renaming_Exception
2869 (N
: Node_Id
) return Node_Id
is
2871 pragma Assert
(False
2872 or else NT
(N
).Nkind
= N_Exception_Declaration
);
2874 end Renaming_Exception
;
2876 function Result_Definition
2877 (N
: Node_Id
) return Node_Id
is
2879 pragma Assert
(False
2880 or else NT
(N
).Nkind
= N_Access_Function_Definition
2881 or else NT
(N
).Nkind
= N_Function_Specification
);
2883 end Result_Definition
;
2885 function Return_Object_Declarations
2886 (N
: Node_Id
) return List_Id
is
2888 pragma Assert
(False
2889 or else NT
(N
).Nkind
= N_Extended_Return_Statement
);
2891 end Return_Object_Declarations
;
2893 function Return_Statement_Entity
2894 (N
: Node_Id
) return Node_Id
is
2896 pragma Assert
(False
2897 or else NT
(N
).Nkind
= N_Extended_Return_Statement
2898 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
2900 end Return_Statement_Entity
;
2902 function Reverse_Present
2903 (N
: Node_Id
) return Boolean is
2905 pragma Assert
(False
2906 or else NT
(N
).Nkind
= N_Iterator_Specification
2907 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
2909 end Reverse_Present
;
2912 (N
: Node_Id
) return Node_Id
is
2914 pragma Assert
(False
2915 or else NT
(N
).Nkind
in N_Op
2916 or else NT
(N
).Nkind
= N_And_Then
2917 or else NT
(N
).Nkind
= N_In
2918 or else NT
(N
).Nkind
= N_Not_In
2919 or else NT
(N
).Nkind
= N_Or_Else
);
2923 function Rounded_Result
2924 (N
: Node_Id
) return Boolean is
2926 pragma Assert
(False
2927 or else NT
(N
).Nkind
= N_Op_Divide
2928 or else NT
(N
).Nkind
= N_Op_Multiply
2929 or else NT
(N
).Nkind
= N_Type_Conversion
);
2933 function SCIL_Controlling_Tag
2934 (N
: Node_Id
) return Node_Id
is
2936 pragma Assert
(False
2937 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
2939 end SCIL_Controlling_Tag
;
2941 function SCIL_Entity
2942 (N
: Node_Id
) return Node_Id
is
2944 pragma Assert
(False
2945 or else NT
(N
).Nkind
= N_SCIL_Dispatch_Table_Tag_Init
2946 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
2947 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
2951 function SCIL_Tag_Value
2952 (N
: Node_Id
) return Node_Id
is
2954 pragma Assert
(False
2955 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
2959 function SCIL_Target_Prim
2960 (N
: Node_Id
) return Node_Id
is
2962 pragma Assert
(False
2963 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
2965 end SCIL_Target_Prim
;
2968 (N
: Node_Id
) return Node_Id
is
2970 pragma Assert
(False
2971 or else NT
(N
).Nkind
= N_Defining_Character_Literal
2972 or else NT
(N
).Nkind
= N_Defining_Identifier
2973 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
2977 function Select_Alternatives
2978 (N
: Node_Id
) return List_Id
is
2980 pragma Assert
(False
2981 or else NT
(N
).Nkind
= N_Selective_Accept
);
2983 end Select_Alternatives
;
2985 function Selector_Name
2986 (N
: Node_Id
) return Node_Id
is
2988 pragma Assert
(False
2989 or else NT
(N
).Nkind
= N_Expanded_Name
2990 or else NT
(N
).Nkind
= N_Generic_Association
2991 or else NT
(N
).Nkind
= N_Parameter_Association
2992 or else NT
(N
).Nkind
= N_Selected_Component
);
2996 function Selector_Names
2997 (N
: Node_Id
) return List_Id
is
2999 pragma Assert
(False
3000 or else NT
(N
).Nkind
= N_Discriminant_Association
);
3004 function Shift_Count_OK
3005 (N
: Node_Id
) return Boolean is
3007 pragma Assert
(False
3008 or else NT
(N
).Nkind
= N_Op_Rotate_Left
3009 or else NT
(N
).Nkind
= N_Op_Rotate_Right
3010 or else NT
(N
).Nkind
= N_Op_Shift_Left
3011 or else NT
(N
).Nkind
= N_Op_Shift_Right
3012 or else NT
(N
).Nkind
= N_Op_Shift_Right_Arithmetic
);
3016 function Source_Type
3017 (N
: Node_Id
) return Entity_Id
is
3019 pragma Assert
(False
3020 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
3024 function Specification
3025 (N
: Node_Id
) return Node_Id
is
3027 pragma Assert
(False
3028 or else NT
(N
).Nkind
= N_Abstract_Subprogram_Declaration
3029 or else NT
(N
).Nkind
= N_Expression_Function
3030 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
3031 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
3032 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3033 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
3034 or else NT
(N
).Nkind
= N_Package_Declaration
3035 or else NT
(N
).Nkind
= N_Subprogram_Body
3036 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
3037 or else NT
(N
).Nkind
= N_Subprogram_Declaration
3038 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
3043 (N
: Node_Id
) return Boolean is
3045 pragma Assert
(False
3046 or else NT
(N
).Nkind
= N_Aspect_Specification
3047 or else NT
(N
).Nkind
= N_Pragma
);
3052 (N
: Node_Id
) return List_Id
is
3054 pragma Assert
(False
3055 or else NT
(N
).Nkind
= N_Abortable_Part
3056 or else NT
(N
).Nkind
= N_Accept_Alternative
3057 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
3058 or else NT
(N
).Nkind
= N_Delay_Alternative
3059 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
3060 or else NT
(N
).Nkind
= N_Exception_Handler
3061 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
3062 or else NT
(N
).Nkind
= N_Loop_Statement
3063 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
3067 function Storage_Pool
3068 (N
: Node_Id
) return Node_Id
is
3070 pragma Assert
(False
3071 or else NT
(N
).Nkind
= N_Allocator
3072 or else NT
(N
).Nkind
= N_Extended_Return_Statement
3073 or else NT
(N
).Nkind
= N_Free_Statement
3074 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3078 function Subpool_Handle_Name
3079 (N
: Node_Id
) return Node_Id
is
3081 pragma Assert
(False
3082 or else NT
(N
).Nkind
= N_Allocator
);
3084 end Subpool_Handle_Name
;
3087 (N
: Node_Id
) return String_Id
is
3089 pragma Assert
(False
3090 or else NT
(N
).Nkind
= N_Operator_Symbol
3091 or else NT
(N
).Nkind
= N_String_Literal
);
3095 function Subtype_Indication
3096 (N
: Node_Id
) return Node_Id
is
3098 pragma Assert
(False
3099 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3100 or else NT
(N
).Nkind
= N_Component_Definition
3101 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3102 or else NT
(N
).Nkind
= N_Iterator_Specification
3103 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3104 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
3106 end Subtype_Indication
;
3108 function Suppress_Assignment_Checks
3109 (N
: Node_Id
) return Boolean is
3111 pragma Assert
(False
3112 or else NT
(N
).Nkind
= N_Assignment_Statement
3113 or else NT
(N
).Nkind
= N_Object_Declaration
);
3115 end Suppress_Assignment_Checks
;
3117 function Suppress_Loop_Warnings
3118 (N
: Node_Id
) return Boolean is
3120 pragma Assert
(False
3121 or else NT
(N
).Nkind
= N_Loop_Statement
);
3123 end Suppress_Loop_Warnings
;
3125 function Subtype_Mark
3126 (N
: Node_Id
) return Node_Id
is
3128 pragma Assert
(False
3129 or else NT
(N
).Nkind
= N_Access_Definition
3130 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3131 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
3132 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
3133 or else NT
(N
).Nkind
= N_Qualified_Expression
3134 or else NT
(N
).Nkind
= N_Subtype_Indication
3135 or else NT
(N
).Nkind
= N_Type_Conversion
3136 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
3140 function Subtype_Marks
3141 (N
: Node_Id
) return List_Id
is
3143 pragma Assert
(False
3144 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
3145 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3149 function Synchronized_Present
3150 (N
: Node_Id
) return Boolean is
3152 pragma Assert
(False
3153 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3154 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3155 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3156 or else NT
(N
).Nkind
= N_Record_Definition
);
3158 end Synchronized_Present
;
3160 function Tagged_Present
3161 (N
: Node_Id
) return Boolean is
3163 pragma Assert
(False
3164 or else NT
(N
).Nkind
= N_Formal_Incomplete_Type_Definition
3165 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3166 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
3167 or else NT
(N
).Nkind
= N_Private_Type_Declaration
3168 or else NT
(N
).Nkind
= N_Record_Definition
);
3172 function Target_Type
3173 (N
: Node_Id
) return Entity_Id
is
3175 pragma Assert
(False
3176 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
3180 function Task_Definition
3181 (N
: Node_Id
) return Node_Id
is
3183 pragma Assert
(False
3184 or else NT
(N
).Nkind
= N_Single_Task_Declaration
3185 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
3187 end Task_Definition
;
3189 function Task_Present
3190 (N
: Node_Id
) return Boolean is
3192 pragma Assert
(False
3193 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3194 or else NT
(N
).Nkind
= N_Record_Definition
);
3198 function Then_Actions
3199 (N
: Node_Id
) return List_Id
is
3201 pragma Assert
(False
3202 or else NT
(N
).Nkind
= N_If_Expression
);
3206 function Then_Statements
3207 (N
: Node_Id
) return List_Id
is
3209 pragma Assert
(False
3210 or else NT
(N
).Nkind
= N_Elsif_Part
3211 or else NT
(N
).Nkind
= N_If_Statement
);
3213 end Then_Statements
;
3215 function Treat_Fixed_As_Integer
3216 (N
: Node_Id
) return Boolean is
3218 pragma Assert
(False
3219 or else NT
(N
).Nkind
= N_Op_Divide
3220 or else NT
(N
).Nkind
= N_Op_Mod
3221 or else NT
(N
).Nkind
= N_Op_Multiply
3222 or else NT
(N
).Nkind
= N_Op_Rem
);
3224 end Treat_Fixed_As_Integer
;
3226 function Triggering_Alternative
3227 (N
: Node_Id
) return Node_Id
is
3229 pragma Assert
(False
3230 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
3232 end Triggering_Alternative
;
3234 function Triggering_Statement
3235 (N
: Node_Id
) return Node_Id
is
3237 pragma Assert
(False
3238 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
3240 end Triggering_Statement
;
3243 (N
: Node_Id
) return Elist_Id
is
3245 pragma Assert
(False
3246 or else NT
(N
).Nkind
= N_Freeze_Entity
);
3250 function Type_Definition
3251 (N
: Node_Id
) return Node_Id
is
3253 pragma Assert
(False
3254 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
3256 end Type_Definition
;
3258 function Uneval_Old_Accept
3259 (N
: Node_Id
) return Boolean is
3261 pragma Assert
(False
3262 or else NT
(N
).Nkind
= N_Pragma
);
3264 end Uneval_Old_Accept
;
3266 function Uneval_Old_Warn
3267 (N
: Node_Id
) return Boolean is
3269 pragma Assert
(False
3270 or else NT
(N
).Nkind
= N_Pragma
);
3272 end Uneval_Old_Warn
;
3275 (N
: Node_Id
) return Node_Id
is
3277 pragma Assert
(False
3278 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3282 function Unknown_Discriminants_Present
3283 (N
: Node_Id
) return Boolean is
3285 pragma Assert
(False
3286 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
3287 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
3288 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3289 or else NT
(N
).Nkind
= N_Private_Type_Declaration
);
3291 end Unknown_Discriminants_Present
;
3293 function Unreferenced_In_Spec
3294 (N
: Node_Id
) return Boolean is
3296 pragma Assert
(False
3297 or else NT
(N
).Nkind
= N_With_Clause
);
3299 end Unreferenced_In_Spec
;
3301 function Variant_Part
3302 (N
: Node_Id
) return Node_Id
is
3304 pragma Assert
(False
3305 or else NT
(N
).Nkind
= N_Component_List
);
3310 (N
: Node_Id
) return List_Id
is
3312 pragma Assert
(False
3313 or else NT
(N
).Nkind
= N_Variant_Part
);
3317 function Visible_Declarations
3318 (N
: Node_Id
) return List_Id
is
3320 pragma Assert
(False
3321 or else NT
(N
).Nkind
= N_Package_Specification
3322 or else NT
(N
).Nkind
= N_Protected_Definition
3323 or else NT
(N
).Nkind
= N_Task_Definition
);
3325 end Visible_Declarations
;
3327 function Uninitialized_Variable
3328 (N
: Node_Id
) return Node_Id
is
3330 pragma Assert
(False
3331 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3332 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
);
3334 end Uninitialized_Variable
;
3336 function Used_Operations
3337 (N
: Node_Id
) return Elist_Id
is
3339 pragma Assert
(False
3340 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3342 end Used_Operations
;
3344 function Was_Expression_Function
3345 (N
: Node_Id
) return Boolean is
3347 pragma Assert
(False
3348 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3350 end Was_Expression_Function
;
3352 function Was_Originally_Stub
3353 (N
: Node_Id
) return Boolean is
3355 pragma Assert
(False
3356 or else NT
(N
).Nkind
= N_Package_Body
3357 or else NT
(N
).Nkind
= N_Protected_Body
3358 or else NT
(N
).Nkind
= N_Subprogram_Body
3359 or else NT
(N
).Nkind
= N_Task_Body
);
3361 end Was_Originally_Stub
;
3363 function Withed_Body
3364 (N
: Node_Id
) return Node_Id
is
3366 pragma Assert
(False
3367 or else NT
(N
).Nkind
= N_With_Clause
);
3371 --------------------------
3372 -- Field Set Procedures --
3373 --------------------------
3375 procedure Set_ABE_Is_Certain
3376 (N
: Node_Id
; Val
: Boolean := True) is
3378 pragma Assert
(False
3379 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
3380 or else NT
(N
).Nkind
= N_Function_Call
3381 or else NT
(N
).Nkind
= N_Function_Instantiation
3382 or else NT
(N
).Nkind
= N_Package_Instantiation
3383 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
3384 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
3385 Set_Flag18
(N
, Val
);
3386 end Set_ABE_Is_Certain
;
3388 procedure Set_Abort_Present
3389 (N
: Node_Id
; Val
: Boolean := True) is
3391 pragma Assert
(False
3392 or else NT
(N
).Nkind
= N_Requeue_Statement
);
3393 Set_Flag15
(N
, Val
);
3394 end Set_Abort_Present
;
3396 procedure Set_Abortable_Part
3397 (N
: Node_Id
; Val
: Node_Id
) is
3399 pragma Assert
(False
3400 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
3401 Set_Node2_With_Parent
(N
, Val
);
3402 end Set_Abortable_Part
;
3404 procedure Set_Abstract_Present
3405 (N
: Node_Id
; Val
: Boolean := True) is
3407 pragma Assert
(False
3408 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3409 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3410 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3411 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3412 or else NT
(N
).Nkind
= N_Private_Type_Declaration
3413 or else NT
(N
).Nkind
= N_Record_Definition
);
3415 end Set_Abstract_Present
;
3417 procedure Set_Accept_Handler_Records
3418 (N
: Node_Id
; Val
: List_Id
) is
3420 pragma Assert
(False
3421 or else NT
(N
).Nkind
= N_Accept_Alternative
);
3422 Set_List5
(N
, Val
); -- semantic field, no parent set
3423 end Set_Accept_Handler_Records
;
3425 procedure Set_Accept_Statement
3426 (N
: Node_Id
; Val
: Node_Id
) is
3428 pragma Assert
(False
3429 or else NT
(N
).Nkind
= N_Accept_Alternative
);
3430 Set_Node2_With_Parent
(N
, Val
);
3431 end Set_Accept_Statement
;
3433 procedure Set_Access_Definition
3434 (N
: Node_Id
; Val
: Node_Id
) is
3436 pragma Assert
(False
3437 or else NT
(N
).Nkind
= N_Component_Definition
3438 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
3439 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
3440 Set_Node3_With_Parent
(N
, Val
);
3441 end Set_Access_Definition
;
3443 procedure Set_Access_To_Subprogram_Definition
3444 (N
: Node_Id
; Val
: Node_Id
) is
3446 pragma Assert
(False
3447 or else NT
(N
).Nkind
= N_Access_Definition
);
3448 Set_Node3_With_Parent
(N
, Val
);
3449 end Set_Access_To_Subprogram_Definition
;
3451 procedure Set_Access_Types_To_Process
3452 (N
: Node_Id
; Val
: Elist_Id
) is
3454 pragma Assert
(False
3455 or else NT
(N
).Nkind
= N_Freeze_Entity
);
3456 Set_Elist2
(N
, Val
); -- semantic field, no parent set
3457 end Set_Access_Types_To_Process
;
3459 procedure Set_Actions
3460 (N
: Node_Id
; Val
: List_Id
) is
3462 pragma Assert
(False
3463 or else NT
(N
).Nkind
= N_And_Then
3464 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
3465 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
3466 or else NT
(N
).Nkind
= N_Compound_Statement
3467 or else NT
(N
).Nkind
= N_Expression_With_Actions
3468 or else NT
(N
).Nkind
= N_Freeze_Entity
3469 or else NT
(N
).Nkind
= N_Or_Else
);
3470 Set_List1_With_Parent
(N
, Val
);
3473 procedure Set_Activation_Chain_Entity
3474 (N
: Node_Id
; Val
: Node_Id
) is
3476 pragma Assert
(False
3477 or else NT
(N
).Nkind
= N_Block_Statement
3478 or else NT
(N
).Nkind
= N_Entry_Body
3479 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3480 or else NT
(N
).Nkind
= N_Package_Declaration
3481 or else NT
(N
).Nkind
= N_Subprogram_Body
3482 or else NT
(N
).Nkind
= N_Task_Body
);
3483 Set_Node3
(N
, Val
); -- semantic field, no parent set
3484 end Set_Activation_Chain_Entity
;
3486 procedure Set_Acts_As_Spec
3487 (N
: Node_Id
; Val
: Boolean := True) is
3489 pragma Assert
(False
3490 or else NT
(N
).Nkind
= N_Compilation_Unit
3491 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3493 end Set_Acts_As_Spec
;
3495 procedure Set_Actual_Designated_Subtype
3496 (N
: Node_Id
; Val
: Node_Id
) is
3498 pragma Assert
(False
3499 or else NT
(N
).Nkind
= N_Explicit_Dereference
3500 or else NT
(N
).Nkind
= N_Free_Statement
);
3502 end Set_Actual_Designated_Subtype
;
3504 procedure Set_Address_Warning_Posted
3505 (N
: Node_Id
; Val
: Boolean := True) is
3507 pragma Assert
(False
3508 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
3509 Set_Flag18
(N
, Val
);
3510 end Set_Address_Warning_Posted
;
3512 procedure Set_Aggregate_Bounds
3513 (N
: Node_Id
; Val
: Node_Id
) is
3515 pragma Assert
(False
3516 or else NT
(N
).Nkind
= N_Aggregate
);
3517 Set_Node3
(N
, Val
); -- semantic field, no parent set
3518 end Set_Aggregate_Bounds
;
3520 procedure Set_Aliased_Present
3521 (N
: Node_Id
; Val
: Boolean := True) is
3523 pragma Assert
(False
3524 or else NT
(N
).Nkind
= N_Component_Definition
3525 or else NT
(N
).Nkind
= N_Object_Declaration
3526 or else NT
(N
).Nkind
= N_Parameter_Specification
);
3528 end Set_Aliased_Present
;
3530 procedure Set_All_Others
3531 (N
: Node_Id
; Val
: Boolean := True) is
3533 pragma Assert
(False
3534 or else NT
(N
).Nkind
= N_Others_Choice
);
3535 Set_Flag11
(N
, Val
);
3538 procedure Set_All_Present
3539 (N
: Node_Id
; Val
: Boolean := True) is
3541 pragma Assert
(False
3542 or else NT
(N
).Nkind
= N_Access_Definition
3543 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3544 or else NT
(N
).Nkind
= N_Quantified_Expression
3545 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3546 Set_Flag15
(N
, Val
);
3547 end Set_All_Present
;
3549 procedure Set_Alternatives
3550 (N
: Node_Id
; Val
: List_Id
) is
3552 pragma Assert
(False
3553 or else NT
(N
).Nkind
= N_Case_Expression
3554 or else NT
(N
).Nkind
= N_Case_Statement
3555 or else NT
(N
).Nkind
= N_In
3556 or else NT
(N
).Nkind
= N_Not_In
);
3557 Set_List4_With_Parent
(N
, Val
);
3558 end Set_Alternatives
;
3560 procedure Set_Ancestor_Part
3561 (N
: Node_Id
; Val
: Node_Id
) is
3563 pragma Assert
(False
3564 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
3565 Set_Node3_With_Parent
(N
, Val
);
3566 end Set_Ancestor_Part
;
3568 procedure Set_Atomic_Sync_Required
3569 (N
: Node_Id
; Val
: Boolean := True) is
3571 pragma Assert
(False
3572 or else NT
(N
).Nkind
= N_Expanded_Name
3573 or else NT
(N
).Nkind
= N_Explicit_Dereference
3574 or else NT
(N
).Nkind
= N_Identifier
3575 or else NT
(N
).Nkind
= N_Indexed_Component
3576 or else NT
(N
).Nkind
= N_Selected_Component
);
3577 Set_Flag14
(N
, Val
);
3578 end Set_Atomic_Sync_Required
;
3580 procedure Set_Array_Aggregate
3581 (N
: Node_Id
; Val
: Node_Id
) is
3583 pragma Assert
(False
3584 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
);
3585 Set_Node3_With_Parent
(N
, Val
);
3586 end Set_Array_Aggregate
;
3588 procedure Set_Aspect_Rep_Item
3589 (N
: Node_Id
; Val
: Node_Id
) is
3591 pragma Assert
(False
3592 or else NT
(N
).Nkind
= N_Aspect_Specification
);
3594 end Set_Aspect_Rep_Item
;
3596 procedure Set_Assignment_OK
3597 (N
: Node_Id
; Val
: Boolean := True) is
3599 pragma Assert
(False
3600 or else NT
(N
).Nkind
= N_Object_Declaration
3601 or else NT
(N
).Nkind
in N_Subexpr
);
3602 Set_Flag15
(N
, Val
);
3603 end Set_Assignment_OK
;
3605 procedure Set_Associated_Node
3606 (N
: Node_Id
; Val
: Node_Id
) is
3608 pragma Assert
(False
3609 or else NT
(N
).Nkind
in N_Has_Entity
3610 or else NT
(N
).Nkind
= N_Aggregate
3611 or else NT
(N
).Nkind
= N_Extension_Aggregate
3612 or else NT
(N
).Nkind
= N_Selected_Component
);
3613 Set_Node4
(N
, Val
); -- semantic field, no parent set
3614 end Set_Associated_Node
;
3616 procedure Set_At_End_Proc
3617 (N
: Node_Id
; Val
: Node_Id
) is
3619 pragma Assert
(False
3620 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
3622 end Set_At_End_Proc
;
3624 procedure Set_Attribute_Name
3625 (N
: Node_Id
; Val
: Name_Id
) is
3627 pragma Assert
(False
3628 or else NT
(N
).Nkind
= N_Attribute_Reference
);
3630 end Set_Attribute_Name
;
3632 procedure Set_Aux_Decls_Node
3633 (N
: Node_Id
; Val
: Node_Id
) is
3635 pragma Assert
(False
3636 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3637 Set_Node5_With_Parent
(N
, Val
);
3638 end Set_Aux_Decls_Node
;
3640 procedure Set_Backwards_OK
3641 (N
: Node_Id
; Val
: Boolean := True) is
3643 pragma Assert
(False
3644 or else NT
(N
).Nkind
= N_Assignment_Statement
);
3646 end Set_Backwards_OK
;
3648 procedure Set_Bad_Is_Detected
3649 (N
: Node_Id
; Val
: Boolean := True) is
3651 pragma Assert
(False
3652 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3653 Set_Flag15
(N
, Val
);
3654 end Set_Bad_Is_Detected
;
3656 procedure Set_Body_Required
3657 (N
: Node_Id
; Val
: Boolean := True) is
3659 pragma Assert
(False
3660 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3661 Set_Flag13
(N
, Val
);
3662 end Set_Body_Required
;
3664 procedure Set_Body_To_Inline
3665 (N
: Node_Id
; Val
: Node_Id
) is
3667 pragma Assert
(False
3668 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
3670 end Set_Body_To_Inline
;
3672 procedure Set_Box_Present
3673 (N
: Node_Id
; Val
: Boolean := True) is
3675 pragma Assert
(False
3676 or else NT
(N
).Nkind
= N_Component_Association
3677 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
3678 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
3679 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
3680 or else NT
(N
).Nkind
= N_Generic_Association
3681 or else NT
(N
).Nkind
= N_Iterated_Component_Association
);
3682 Set_Flag15
(N
, Val
);
3683 end Set_Box_Present
;
3685 procedure Set_By_Ref
3686 (N
: Node_Id
; Val
: Boolean := True) is
3688 pragma Assert
(False
3689 or else NT
(N
).Nkind
= N_Extended_Return_Statement
3690 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3694 procedure Set_Char_Literal_Value
3695 (N
: Node_Id
; Val
: Uint
) is
3697 pragma Assert
(False
3698 or else NT
(N
).Nkind
= N_Character_Literal
);
3700 end Set_Char_Literal_Value
;
3703 (N
: Node_Id
; Val
: Name_Id
) is
3705 pragma Assert
(False
3706 or else NT
(N
).Nkind
in N_Has_Chars
);
3710 procedure Set_Check_Address_Alignment
3711 (N
: Node_Id
; Val
: Boolean := True) is
3713 pragma Assert
(False
3714 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
3715 Set_Flag11
(N
, Val
);
3716 end Set_Check_Address_Alignment
;
3718 procedure Set_Choice_Parameter
3719 (N
: Node_Id
; Val
: Node_Id
) is
3721 pragma Assert
(False
3722 or else NT
(N
).Nkind
= N_Exception_Handler
);
3723 Set_Node2_With_Parent
(N
, Val
);
3724 end Set_Choice_Parameter
;
3726 procedure Set_Choices
3727 (N
: Node_Id
; Val
: List_Id
) is
3729 pragma Assert
(False
3730 or else NT
(N
).Nkind
= N_Component_Association
);
3731 Set_List1_With_Parent
(N
, Val
);
3734 procedure Set_Class_Present
3735 (N
: Node_Id
; Val
: Boolean := True) is
3737 pragma Assert
(False
3738 or else NT
(N
).Nkind
= N_Aspect_Specification
3739 or else NT
(N
).Nkind
= N_Pragma
);
3741 end Set_Class_Present
;
3743 procedure Set_Classifications
3744 (N
: Node_Id
; Val
: Node_Id
) is
3746 pragma Assert
(False
3747 or else NT
(N
).Nkind
= N_Contract
);
3748 Set_Node3
(N
, Val
); -- semantic field, no parent set
3749 end Set_Classifications
;
3751 procedure Set_Cleanup_Actions
3752 (N
: Node_Id
; Val
: List_Id
) is
3754 pragma Assert
(False
3755 or else NT
(N
).Nkind
= N_Block_Statement
);
3756 Set_List5
(N
, Val
); -- semantic field, no parent set
3757 end Set_Cleanup_Actions
;
3759 procedure Set_Comes_From_Extended_Return_Statement
3760 (N
: Node_Id
; Val
: Boolean := True) is
3762 pragma Assert
(False
3763 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3764 Set_Flag18
(N
, Val
);
3765 end Set_Comes_From_Extended_Return_Statement
;
3767 procedure Set_Compile_Time_Known_Aggregate
3768 (N
: Node_Id
; Val
: Boolean := True) is
3770 pragma Assert
(False
3771 or else NT
(N
).Nkind
= N_Aggregate
);
3772 Set_Flag18
(N
, Val
);
3773 end Set_Compile_Time_Known_Aggregate
;
3775 procedure Set_Component_Associations
3776 (N
: Node_Id
; Val
: List_Id
) is
3778 pragma Assert
(False
3779 or else NT
(N
).Nkind
= N_Aggregate
3780 or else NT
(N
).Nkind
= N_Delta_Aggregate
3781 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
3782 Set_List2_With_Parent
(N
, Val
);
3783 end Set_Component_Associations
;
3785 procedure Set_Component_Clauses
3786 (N
: Node_Id
; Val
: List_Id
) is
3788 pragma Assert
(False
3789 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
3790 Set_List3_With_Parent
(N
, Val
);
3791 end Set_Component_Clauses
;
3793 procedure Set_Component_Definition
3794 (N
: Node_Id
; Val
: Node_Id
) is
3796 pragma Assert
(False
3797 or else NT
(N
).Nkind
= N_Component_Declaration
3798 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
3799 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
);
3800 Set_Node4_With_Parent
(N
, Val
);
3801 end Set_Component_Definition
;
3803 procedure Set_Component_Items
3804 (N
: Node_Id
; Val
: List_Id
) is
3806 pragma Assert
(False
3807 or else NT
(N
).Nkind
= N_Component_List
);
3808 Set_List3_With_Parent
(N
, Val
);
3809 end Set_Component_Items
;
3811 procedure Set_Component_List
3812 (N
: Node_Id
; Val
: Node_Id
) is
3814 pragma Assert
(False
3815 or else NT
(N
).Nkind
= N_Record_Definition
3816 or else NT
(N
).Nkind
= N_Variant
);
3817 Set_Node1_With_Parent
(N
, Val
);
3818 end Set_Component_List
;
3820 procedure Set_Component_Name
3821 (N
: Node_Id
; Val
: Node_Id
) is
3823 pragma Assert
(False
3824 or else NT
(N
).Nkind
= N_Component_Clause
);
3825 Set_Node1_With_Parent
(N
, Val
);
3826 end Set_Component_Name
;
3828 procedure Set_Componentwise_Assignment
3829 (N
: Node_Id
; Val
: Boolean := True) is
3831 pragma Assert
(False
3832 or else NT
(N
).Nkind
= N_Assignment_Statement
);
3833 Set_Flag14
(N
, Val
);
3834 end Set_Componentwise_Assignment
;
3836 procedure Set_Condition
3837 (N
: Node_Id
; Val
: Node_Id
) is
3839 pragma Assert
(False
3840 or else NT
(N
).Nkind
= N_Accept_Alternative
3841 or else NT
(N
).Nkind
= N_Delay_Alternative
3842 or else NT
(N
).Nkind
= N_Elsif_Part
3843 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
3844 or else NT
(N
).Nkind
= N_Exit_Statement
3845 or else NT
(N
).Nkind
= N_If_Statement
3846 or else NT
(N
).Nkind
= N_Iteration_Scheme
3847 or else NT
(N
).Nkind
= N_Quantified_Expression
3848 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
3849 or else NT
(N
).Nkind
= N_Raise_Program_Error
3850 or else NT
(N
).Nkind
= N_Raise_Storage_Error
3851 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
3852 Set_Node1_With_Parent
(N
, Val
);
3855 procedure Set_Condition_Actions
3856 (N
: Node_Id
; Val
: List_Id
) is
3858 pragma Assert
(False
3859 or else NT
(N
).Nkind
= N_Elsif_Part
3860 or else NT
(N
).Nkind
= N_Iteration_Scheme
);
3861 Set_List3
(N
, Val
); -- semantic field, no parent set
3862 end Set_Condition_Actions
;
3864 procedure Set_Config_Pragmas
3865 (N
: Node_Id
; Val
: List_Id
) is
3867 pragma Assert
(False
3868 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
3869 Set_List4_With_Parent
(N
, Val
);
3870 end Set_Config_Pragmas
;
3872 procedure Set_Constant_Present
3873 (N
: Node_Id
; Val
: Boolean := True) is
3875 pragma Assert
(False
3876 or else NT
(N
).Nkind
= N_Access_Definition
3877 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3878 or else NT
(N
).Nkind
= N_Object_Declaration
);
3879 Set_Flag17
(N
, Val
);
3880 end Set_Constant_Present
;
3882 procedure Set_Constraint
3883 (N
: Node_Id
; Val
: Node_Id
) is
3885 pragma Assert
(False
3886 or else NT
(N
).Nkind
= N_Subtype_Indication
);
3887 Set_Node3_With_Parent
(N
, Val
);
3890 procedure Set_Constraints
3891 (N
: Node_Id
; Val
: List_Id
) is
3893 pragma Assert
(False
3894 or else NT
(N
).Nkind
= N_Index_Or_Discriminant_Constraint
);
3895 Set_List1_With_Parent
(N
, Val
);
3896 end Set_Constraints
;
3898 procedure Set_Context_Installed
3899 (N
: Node_Id
; Val
: Boolean := True) is
3901 pragma Assert
(False
3902 or else NT
(N
).Nkind
= N_With_Clause
);
3903 Set_Flag13
(N
, Val
);
3904 end Set_Context_Installed
;
3906 procedure Set_Context_Items
3907 (N
: Node_Id
; Val
: List_Id
) is
3909 pragma Assert
(False
3910 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3911 Set_List1_With_Parent
(N
, Val
);
3912 end Set_Context_Items
;
3914 procedure Set_Context_Pending
3915 (N
: Node_Id
; Val
: Boolean := True) is
3917 pragma Assert
(False
3918 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3919 Set_Flag16
(N
, Val
);
3920 end Set_Context_Pending
;
3922 procedure Set_Contract_Test_Cases
3923 (N
: Node_Id
; Val
: Node_Id
) is
3925 pragma Assert
(False
3926 or else NT
(N
).Nkind
= N_Contract
);
3927 Set_Node2
(N
, Val
); -- semantic field, no parent set
3928 end Set_Contract_Test_Cases
;
3930 procedure Set_Controlling_Argument
3931 (N
: Node_Id
; Val
: Node_Id
) is
3933 pragma Assert
(False
3934 or else NT
(N
).Nkind
= N_Function_Call
3935 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
3936 Set_Node1
(N
, Val
); -- semantic field, no parent set
3937 end Set_Controlling_Argument
;
3939 procedure Set_Conversion_OK
3940 (N
: Node_Id
; Val
: Boolean := True) is
3942 pragma Assert
(False
3943 or else NT
(N
).Nkind
= N_Type_Conversion
);
3944 Set_Flag14
(N
, Val
);
3945 end Set_Conversion_OK
;
3947 procedure Set_Convert_To_Return_False
3948 (N
: Node_Id
; Val
: Boolean := True) is
3950 pragma Assert
(False
3951 or else NT
(N
).Nkind
= N_Raise_Expression
);
3952 Set_Flag13
(N
, Val
);
3953 end Set_Convert_To_Return_False
;
3955 procedure Set_Corresponding_Aspect
3956 (N
: Node_Id
; Val
: Node_Id
) is
3958 pragma Assert
(False
3959 or else NT
(N
).Nkind
= N_Pragma
);
3961 end Set_Corresponding_Aspect
;
3963 procedure Set_Corresponding_Body
3964 (N
: Node_Id
; Val
: Node_Id
) is
3966 pragma Assert
(False
3967 or else NT
(N
).Nkind
= N_Entry_Declaration
3968 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3969 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
3970 or else NT
(N
).Nkind
= N_Package_Body_Stub
3971 or else NT
(N
).Nkind
= N_Package_Declaration
3972 or else NT
(N
).Nkind
= N_Protected_Body_Stub
3973 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
3974 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
3975 or else NT
(N
).Nkind
= N_Subprogram_Declaration
3976 or else NT
(N
).Nkind
= N_Task_Body_Stub
3977 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
3978 Set_Node5
(N
, Val
); -- semantic field, no parent set
3979 end Set_Corresponding_Body
;
3981 procedure Set_Corresponding_Formal_Spec
3982 (N
: Node_Id
; Val
: Node_Id
) is
3984 pragma Assert
(False
3985 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
3986 Set_Node3
(N
, Val
); -- semantic field, no parent set
3987 end Set_Corresponding_Formal_Spec
;
3989 procedure Set_Corresponding_Generic_Association
3990 (N
: Node_Id
; Val
: Node_Id
) is
3992 pragma Assert
(False
3993 or else NT
(N
).Nkind
= N_Object_Declaration
3994 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
3995 Set_Node5
(N
, Val
); -- semantic field, no parent set
3996 end Set_Corresponding_Generic_Association
;
3998 procedure Set_Corresponding_Integer_Value
3999 (N
: Node_Id
; Val
: Uint
) is
4001 pragma Assert
(False
4002 or else NT
(N
).Nkind
= N_Real_Literal
);
4003 Set_Uint4
(N
, Val
); -- semantic field, no parent set
4004 end Set_Corresponding_Integer_Value
;
4006 procedure Set_Corresponding_Spec
4007 (N
: Node_Id
; Val
: Entity_Id
) is
4009 pragma Assert
(False
4010 or else NT
(N
).Nkind
= N_Expression_Function
4011 or else NT
(N
).Nkind
= N_Package_Body
4012 or else NT
(N
).Nkind
= N_Protected_Body
4013 or else NT
(N
).Nkind
= N_Subprogram_Body
4014 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
4015 or else NT
(N
).Nkind
= N_Task_Body
4016 or else NT
(N
).Nkind
= N_With_Clause
);
4017 Set_Node5
(N
, Val
); -- semantic field, no parent set
4018 end Set_Corresponding_Spec
;
4020 procedure Set_Corresponding_Spec_Of_Stub
4021 (N
: Node_Id
; Val
: Entity_Id
) is
4023 pragma Assert
(False
4024 or else NT
(N
).Nkind
= N_Package_Body_Stub
4025 or else NT
(N
).Nkind
= N_Protected_Body_Stub
4026 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
4027 or else NT
(N
).Nkind
= N_Task_Body_Stub
);
4028 Set_Node2
(N
, Val
); -- semantic field, no parent set
4029 end Set_Corresponding_Spec_Of_Stub
;
4031 procedure Set_Corresponding_Stub
4032 (N
: Node_Id
; Val
: Node_Id
) is
4034 pragma Assert
(False
4035 or else NT
(N
).Nkind
= N_Subunit
);
4037 end Set_Corresponding_Stub
;
4039 procedure Set_Dcheck_Function
4040 (N
: Node_Id
; Val
: Entity_Id
) is
4042 pragma Assert
(False
4043 or else NT
(N
).Nkind
= N_Variant
);
4044 Set_Node5
(N
, Val
); -- semantic field, no parent set
4045 end Set_Dcheck_Function
;
4047 procedure Set_Declarations
4048 (N
: Node_Id
; Val
: List_Id
) is
4050 pragma Assert
(False
4051 or else NT
(N
).Nkind
= N_Accept_Statement
4052 or else NT
(N
).Nkind
= N_Block_Statement
4053 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
4054 or else NT
(N
).Nkind
= N_Entry_Body
4055 or else NT
(N
).Nkind
= N_Package_Body
4056 or else NT
(N
).Nkind
= N_Protected_Body
4057 or else NT
(N
).Nkind
= N_Subprogram_Body
4058 or else NT
(N
).Nkind
= N_Task_Body
);
4059 Set_List2_With_Parent
(N
, Val
);
4060 end Set_Declarations
;
4062 procedure Set_Default_Expression
4063 (N
: Node_Id
; Val
: Node_Id
) is
4065 pragma Assert
(False
4066 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4067 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4068 Set_Node5
(N
, Val
); -- semantic field, no parent set
4069 end Set_Default_Expression
;
4071 procedure Set_Default_Storage_Pool
4072 (N
: Node_Id
; Val
: Node_Id
) is
4074 pragma Assert
(False
4075 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
4076 Set_Node3
(N
, Val
); -- semantic field, no parent set
4077 end Set_Default_Storage_Pool
;
4079 procedure Set_Default_Name
4080 (N
: Node_Id
; Val
: Node_Id
) is
4082 pragma Assert
(False
4083 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
4084 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
);
4085 Set_Node2_With_Parent
(N
, Val
);
4086 end Set_Default_Name
;
4088 procedure Set_Defining_Identifier
4089 (N
: Node_Id
; Val
: Entity_Id
) is
4091 pragma Assert
(False
4092 or else NT
(N
).Nkind
= N_Component_Declaration
4093 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
4094 or else NT
(N
).Nkind
= N_Discriminant_Specification
4095 or else NT
(N
).Nkind
= N_Entry_Body
4096 or else NT
(N
).Nkind
= N_Entry_Declaration
4097 or else NT
(N
).Nkind
= N_Entry_Index_Specification
4098 or else NT
(N
).Nkind
= N_Exception_Declaration
4099 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
4100 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4101 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
4102 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
4103 or else NT
(N
).Nkind
= N_Full_Type_Declaration
4104 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
4105 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
4106 or else NT
(N
).Nkind
= N_Iterated_Component_Association
4107 or else NT
(N
).Nkind
= N_Iterator_Specification
4108 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
4109 or else NT
(N
).Nkind
= N_Number_Declaration
4110 or else NT
(N
).Nkind
= N_Object_Declaration
4111 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
4112 or else NT
(N
).Nkind
= N_Package_Body_Stub
4113 or else NT
(N
).Nkind
= N_Parameter_Specification
4114 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4115 or else NT
(N
).Nkind
= N_Private_Type_Declaration
4116 or else NT
(N
).Nkind
= N_Protected_Body
4117 or else NT
(N
).Nkind
= N_Protected_Body_Stub
4118 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4119 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
4120 or else NT
(N
).Nkind
= N_Single_Task_Declaration
4121 or else NT
(N
).Nkind
= N_Subtype_Declaration
4122 or else NT
(N
).Nkind
= N_Task_Body
4123 or else NT
(N
).Nkind
= N_Task_Body_Stub
4124 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4125 Set_Node1_With_Parent
(N
, Val
);
4126 end Set_Defining_Identifier
;
4128 procedure Set_Defining_Unit_Name
4129 (N
: Node_Id
; Val
: Node_Id
) is
4131 pragma Assert
(False
4132 or else NT
(N
).Nkind
= N_Function_Instantiation
4133 or else NT
(N
).Nkind
= N_Function_Specification
4134 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
4135 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
4136 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
4137 or else NT
(N
).Nkind
= N_Package_Body
4138 or else NT
(N
).Nkind
= N_Package_Instantiation
4139 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
4140 or else NT
(N
).Nkind
= N_Package_Specification
4141 or else NT
(N
).Nkind
= N_Procedure_Instantiation
4142 or else NT
(N
).Nkind
= N_Procedure_Specification
);
4143 Set_Node1_With_Parent
(N
, Val
);
4144 end Set_Defining_Unit_Name
;
4146 procedure Set_Delay_Alternative
4147 (N
: Node_Id
; Val
: Node_Id
) is
4149 pragma Assert
(False
4150 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
4151 Set_Node4_With_Parent
(N
, Val
);
4152 end Set_Delay_Alternative
;
4154 procedure Set_Delay_Statement
4155 (N
: Node_Id
; Val
: Node_Id
) is
4157 pragma Assert
(False
4158 or else NT
(N
).Nkind
= N_Delay_Alternative
);
4159 Set_Node2_With_Parent
(N
, Val
);
4160 end Set_Delay_Statement
;
4162 procedure Set_Delta_Expression
4163 (N
: Node_Id
; Val
: Node_Id
) is
4165 pragma Assert
(False
4166 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
4167 or else NT
(N
).Nkind
= N_Delta_Constraint
4168 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
4169 Set_Node3_With_Parent
(N
, Val
);
4170 end Set_Delta_Expression
;
4172 procedure Set_Digits_Expression
4173 (N
: Node_Id
; Val
: Node_Id
) is
4175 pragma Assert
(False
4176 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
4177 or else NT
(N
).Nkind
= N_Digits_Constraint
4178 or else NT
(N
).Nkind
= N_Floating_Point_Definition
);
4179 Set_Node2_With_Parent
(N
, Val
);
4180 end Set_Digits_Expression
;
4182 procedure Set_Discr_Check_Funcs_Built
4183 (N
: Node_Id
; Val
: Boolean := True) is
4185 pragma Assert
(False
4186 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
4187 Set_Flag11
(N
, Val
);
4188 end Set_Discr_Check_Funcs_Built
;
4190 procedure Set_Discrete_Choices
4191 (N
: Node_Id
; Val
: List_Id
) is
4193 pragma Assert
(False
4194 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4195 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
4196 or else NT
(N
).Nkind
= N_Iterated_Component_Association
4197 or else NT
(N
).Nkind
= N_Variant
);
4198 Set_List4_With_Parent
(N
, Val
);
4199 end Set_Discrete_Choices
;
4201 procedure Set_Discrete_Range
4202 (N
: Node_Id
; Val
: Node_Id
) is
4204 pragma Assert
(False
4205 or else NT
(N
).Nkind
= N_Slice
);
4206 Set_Node4_With_Parent
(N
, Val
);
4207 end Set_Discrete_Range
;
4209 procedure Set_Discrete_Subtype_Definition
4210 (N
: Node_Id
; Val
: Node_Id
) is
4212 pragma Assert
(False
4213 or else NT
(N
).Nkind
= N_Entry_Declaration
4214 or else NT
(N
).Nkind
= N_Entry_Index_Specification
4215 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
4216 Set_Node4_With_Parent
(N
, Val
);
4217 end Set_Discrete_Subtype_Definition
;
4219 procedure Set_Discrete_Subtype_Definitions
4220 (N
: Node_Id
; Val
: List_Id
) is
4222 pragma Assert
(False
4223 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
);
4224 Set_List2_With_Parent
(N
, Val
);
4225 end Set_Discrete_Subtype_Definitions
;
4227 procedure Set_Discriminant_Specifications
4228 (N
: Node_Id
; Val
: List_Id
) is
4230 pragma Assert
(False
4231 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
4232 or else NT
(N
).Nkind
= N_Full_Type_Declaration
4233 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
4234 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4235 or else NT
(N
).Nkind
= N_Private_Type_Declaration
4236 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4237 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4238 Set_List4_With_Parent
(N
, Val
);
4239 end Set_Discriminant_Specifications
;
4241 procedure Set_Discriminant_Type
4242 (N
: Node_Id
; Val
: Node_Id
) is
4244 pragma Assert
(False
4245 or else NT
(N
).Nkind
= N_Discriminant_Specification
);
4246 Set_Node5_With_Parent
(N
, Val
);
4247 end Set_Discriminant_Type
;
4249 procedure Set_Do_Accessibility_Check
4250 (N
: Node_Id
; Val
: Boolean := True) is
4252 pragma Assert
(False
4253 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4254 Set_Flag13
(N
, Val
);
4255 end Set_Do_Accessibility_Check
;
4257 procedure Set_Do_Discriminant_Check
4258 (N
: Node_Id
; Val
: Boolean := True) is
4260 pragma Assert
(False
4261 or else NT
(N
).Nkind
= N_Assignment_Statement
4262 or else NT
(N
).Nkind
= N_Selected_Component
4263 or else NT
(N
).Nkind
= N_Type_Conversion
);
4265 end Set_Do_Discriminant_Check
;
4267 procedure Set_Do_Division_Check
4268 (N
: Node_Id
; Val
: Boolean := True) is
4270 pragma Assert
(False
4271 or else NT
(N
).Nkind
= N_Op_Divide
4272 or else NT
(N
).Nkind
= N_Op_Mod
4273 or else NT
(N
).Nkind
= N_Op_Rem
);
4274 Set_Flag13
(N
, Val
);
4275 end Set_Do_Division_Check
;
4277 procedure Set_Do_Length_Check
4278 (N
: Node_Id
; Val
: Boolean := True) is
4280 pragma Assert
(False
4281 or else NT
(N
).Nkind
= N_Assignment_Statement
4282 or else NT
(N
).Nkind
= N_Op_And
4283 or else NT
(N
).Nkind
= N_Op_Or
4284 or else NT
(N
).Nkind
= N_Op_Xor
4285 or else NT
(N
).Nkind
= N_Type_Conversion
);
4287 end Set_Do_Length_Check
;
4289 procedure Set_Do_Overflow_Check
4290 (N
: Node_Id
; Val
: Boolean := True) is
4292 pragma Assert
(False
4293 or else NT
(N
).Nkind
in N_Op
4294 or else NT
(N
).Nkind
= N_Attribute_Reference
4295 or else NT
(N
).Nkind
= N_Case_Expression
4296 or else NT
(N
).Nkind
= N_If_Expression
4297 or else NT
(N
).Nkind
= N_Type_Conversion
);
4298 Set_Flag17
(N
, Val
);
4299 end Set_Do_Overflow_Check
;
4301 procedure Set_Do_Range_Check
4302 (N
: Node_Id
; Val
: Boolean := True) is
4304 pragma Assert
(False
4305 or else NT
(N
).Nkind
in N_Subexpr
);
4307 end Set_Do_Range_Check
;
4309 procedure Set_Do_Storage_Check
4310 (N
: Node_Id
; Val
: Boolean := True) is
4312 pragma Assert
(False
4313 or else NT
(N
).Nkind
= N_Allocator
4314 or else NT
(N
).Nkind
= N_Subprogram_Body
);
4315 Set_Flag17
(N
, Val
);
4316 end Set_Do_Storage_Check
;
4318 procedure Set_Do_Tag_Check
4319 (N
: Node_Id
; Val
: Boolean := True) is
4321 pragma Assert
(False
4322 or else NT
(N
).Nkind
= N_Assignment_Statement
4323 or else NT
(N
).Nkind
= N_Extended_Return_Statement
4324 or else NT
(N
).Nkind
= N_Function_Call
4325 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
4326 or else NT
(N
).Nkind
= N_Simple_Return_Statement
4327 or else NT
(N
).Nkind
= N_Type_Conversion
);
4328 Set_Flag13
(N
, Val
);
4329 end Set_Do_Tag_Check
;
4331 procedure Set_Elaborate_All_Desirable
4332 (N
: Node_Id
; Val
: Boolean := True) is
4334 pragma Assert
(False
4335 or else NT
(N
).Nkind
= N_With_Clause
);
4337 end Set_Elaborate_All_Desirable
;
4339 procedure Set_Elaborate_All_Present
4340 (N
: Node_Id
; Val
: Boolean := True) is
4342 pragma Assert
(False
4343 or else NT
(N
).Nkind
= N_With_Clause
);
4344 Set_Flag14
(N
, Val
);
4345 end Set_Elaborate_All_Present
;
4347 procedure Set_Elaborate_Desirable
4348 (N
: Node_Id
; Val
: Boolean := True) is
4350 pragma Assert
(False
4351 or else NT
(N
).Nkind
= N_With_Clause
);
4352 Set_Flag11
(N
, Val
);
4353 end Set_Elaborate_Desirable
;
4355 procedure Set_Elaborate_Present
4356 (N
: Node_Id
; Val
: Boolean := True) is
4358 pragma Assert
(False
4359 or else NT
(N
).Nkind
= N_With_Clause
);
4361 end Set_Elaborate_Present
;
4363 procedure Set_Else_Actions
4364 (N
: Node_Id
; Val
: List_Id
) is
4366 pragma Assert
(False
4367 or else NT
(N
).Nkind
= N_If_Expression
);
4368 Set_List3_With_Parent
(N
, Val
); -- semantic field, but needs parents
4369 end Set_Else_Actions
;
4371 procedure Set_Else_Statements
4372 (N
: Node_Id
; Val
: List_Id
) is
4374 pragma Assert
(False
4375 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
4376 or else NT
(N
).Nkind
= N_If_Statement
4377 or else NT
(N
).Nkind
= N_Selective_Accept
);
4378 Set_List4_With_Parent
(N
, Val
);
4379 end Set_Else_Statements
;
4381 procedure Set_Elsif_Parts
4382 (N
: Node_Id
; Val
: List_Id
) is
4384 pragma Assert
(False
4385 or else NT
(N
).Nkind
= N_If_Statement
);
4386 Set_List3_With_Parent
(N
, Val
);
4387 end Set_Elsif_Parts
;
4389 procedure Set_Enclosing_Variant
4390 (N
: Node_Id
; Val
: Node_Id
) is
4392 pragma Assert
(False
4393 or else NT
(N
).Nkind
= N_Variant
);
4394 Set_Node2
(N
, Val
); -- semantic field, no parent set
4395 end Set_Enclosing_Variant
;
4397 procedure Set_End_Label
4398 (N
: Node_Id
; Val
: Node_Id
) is
4400 pragma Assert
(False
4401 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
4402 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
4403 or else NT
(N
).Nkind
= N_Loop_Statement
4404 or else NT
(N
).Nkind
= N_Package_Specification
4405 or else NT
(N
).Nkind
= N_Protected_Body
4406 or else NT
(N
).Nkind
= N_Protected_Definition
4407 or else NT
(N
).Nkind
= N_Record_Definition
4408 or else NT
(N
).Nkind
= N_Task_Definition
);
4409 Set_Node4_With_Parent
(N
, Val
);
4412 procedure Set_End_Span
4413 (N
: Node_Id
; Val
: Uint
) is
4415 pragma Assert
(False
4416 or else NT
(N
).Nkind
= N_Case_Statement
4417 or else NT
(N
).Nkind
= N_If_Statement
);
4421 procedure Set_Entity
4422 (N
: Node_Id
; Val
: Node_Id
) is
4424 pragma Assert
(False
4425 or else NT
(N
).Nkind
in N_Has_Entity
4426 or else NT
(N
).Nkind
= N_Aspect_Specification
4427 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4428 or else NT
(N
).Nkind
= N_Freeze_Entity
4429 or else NT
(N
).Nkind
= N_Freeze_Generic_Entity
);
4430 Set_Node4
(N
, Val
); -- semantic field, no parent set
4433 procedure Set_Entry_Body_Formal_Part
4434 (N
: Node_Id
; Val
: Node_Id
) is
4436 pragma Assert
(False
4437 or else NT
(N
).Nkind
= N_Entry_Body
);
4438 Set_Node5_With_Parent
(N
, Val
);
4439 end Set_Entry_Body_Formal_Part
;
4441 procedure Set_Entry_Call_Alternative
4442 (N
: Node_Id
; Val
: Node_Id
) is
4444 pragma Assert
(False
4445 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
4446 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
4447 Set_Node1_With_Parent
(N
, Val
);
4448 end Set_Entry_Call_Alternative
;
4450 procedure Set_Entry_Call_Statement
4451 (N
: Node_Id
; Val
: Node_Id
) is
4453 pragma Assert
(False
4454 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
);
4455 Set_Node1_With_Parent
(N
, Val
);
4456 end Set_Entry_Call_Statement
;
4458 procedure Set_Entry_Direct_Name
4459 (N
: Node_Id
; Val
: Node_Id
) is
4461 pragma Assert
(False
4462 or else NT
(N
).Nkind
= N_Accept_Statement
);
4463 Set_Node1_With_Parent
(N
, Val
);
4464 end Set_Entry_Direct_Name
;
4466 procedure Set_Entry_Index
4467 (N
: Node_Id
; Val
: Node_Id
) is
4469 pragma Assert
(False
4470 or else NT
(N
).Nkind
= N_Accept_Statement
);
4471 Set_Node5_With_Parent
(N
, Val
);
4472 end Set_Entry_Index
;
4474 procedure Set_Entry_Index_Specification
4475 (N
: Node_Id
; Val
: Node_Id
) is
4477 pragma Assert
(False
4478 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
);
4479 Set_Node4_With_Parent
(N
, Val
);
4480 end Set_Entry_Index_Specification
;
4483 (N
: Node_Id
; Val
: Node_Id
) is
4485 pragma Assert
(False
4486 or else NT
(N
).Nkind
in N_Has_Etype
);
4487 Set_Node5
(N
, Val
); -- semantic field, no parent set
4490 procedure Set_Exception_Choices
4491 (N
: Node_Id
; Val
: List_Id
) is
4493 pragma Assert
(False
4494 or else NT
(N
).Nkind
= N_Exception_Handler
);
4495 Set_List4_With_Parent
(N
, Val
);
4496 end Set_Exception_Choices
;
4498 procedure Set_Exception_Handlers
4499 (N
: Node_Id
; Val
: List_Id
) is
4501 pragma Assert
(False
4502 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
4503 Set_List5_With_Parent
(N
, Val
);
4504 end Set_Exception_Handlers
;
4506 procedure Set_Exception_Junk
4507 (N
: Node_Id
; Val
: Boolean := True) is
4509 pragma Assert
(False
4510 or else NT
(N
).Nkind
= N_Block_Statement
4511 or else NT
(N
).Nkind
= N_Goto_Statement
4512 or else NT
(N
).Nkind
= N_Label
4513 or else NT
(N
).Nkind
= N_Object_Declaration
4514 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
4516 end Set_Exception_Junk
;
4518 procedure Set_Exception_Label
4519 (N
: Node_Id
; Val
: Node_Id
) is
4521 pragma Assert
(False
4522 or else NT
(N
).Nkind
= N_Exception_Handler
4523 or else NT
(N
).Nkind
= N_Push_Constraint_Error_Label
4524 or else NT
(N
).Nkind
= N_Push_Program_Error_Label
4525 or else NT
(N
).Nkind
= N_Push_Storage_Error_Label
);
4526 Set_Node5
(N
, Val
); -- semantic field, no parent set
4527 end Set_Exception_Label
;
4529 procedure Set_Expansion_Delayed
4530 (N
: Node_Id
; Val
: Boolean := True) is
4532 pragma Assert
(False
4533 or else NT
(N
).Nkind
= N_Aggregate
4534 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
4535 Set_Flag11
(N
, Val
);
4536 end Set_Expansion_Delayed
;
4538 procedure Set_Explicit_Actual_Parameter
4539 (N
: Node_Id
; Val
: Node_Id
) is
4541 pragma Assert
(False
4542 or else NT
(N
).Nkind
= N_Parameter_Association
);
4543 Set_Node3_With_Parent
(N
, Val
);
4544 end Set_Explicit_Actual_Parameter
;
4546 procedure Set_Explicit_Generic_Actual_Parameter
4547 (N
: Node_Id
; Val
: Node_Id
) is
4549 pragma Assert
(False
4550 or else NT
(N
).Nkind
= N_Generic_Association
);
4551 Set_Node1_With_Parent
(N
, Val
);
4552 end Set_Explicit_Generic_Actual_Parameter
;
4554 procedure Set_Expression
4555 (N
: Node_Id
; Val
: Node_Id
) is
4557 pragma Assert
(False
4558 or else NT
(N
).Nkind
= N_Allocator
4559 or else NT
(N
).Nkind
= N_Aspect_Specification
4560 or else NT
(N
).Nkind
= N_Assignment_Statement
4561 or else NT
(N
).Nkind
= N_At_Clause
4562 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4563 or else NT
(N
).Nkind
= N_Case_Expression
4564 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4565 or else NT
(N
).Nkind
= N_Case_Statement
4566 or else NT
(N
).Nkind
= N_Code_Statement
4567 or else NT
(N
).Nkind
= N_Component_Association
4568 or else NT
(N
).Nkind
= N_Component_Declaration
4569 or else NT
(N
).Nkind
= N_Delay_Relative_Statement
4570 or else NT
(N
).Nkind
= N_Delay_Until_Statement
4571 or else NT
(N
).Nkind
= N_Delta_Aggregate
4572 or else NT
(N
).Nkind
= N_Discriminant_Association
4573 or else NT
(N
).Nkind
= N_Discriminant_Specification
4574 or else NT
(N
).Nkind
= N_Exception_Declaration
4575 or else NT
(N
).Nkind
= N_Expression_Function
4576 or else NT
(N
).Nkind
= N_Expression_With_Actions
4577 or else NT
(N
).Nkind
= N_Free_Statement
4578 or else NT
(N
).Nkind
= N_Iterated_Component_Association
4579 or else NT
(N
).Nkind
= N_Mod_Clause
4580 or else NT
(N
).Nkind
= N_Modular_Type_Definition
4581 or else NT
(N
).Nkind
= N_Number_Declaration
4582 or else NT
(N
).Nkind
= N_Object_Declaration
4583 or else NT
(N
).Nkind
= N_Parameter_Specification
4584 or else NT
(N
).Nkind
= N_Pragma_Argument_Association
4585 or else NT
(N
).Nkind
= N_Qualified_Expression
4586 or else NT
(N
).Nkind
= N_Raise_Expression
4587 or else NT
(N
).Nkind
= N_Raise_Statement
4588 or else NT
(N
).Nkind
= N_Simple_Return_Statement
4589 or else NT
(N
).Nkind
= N_Type_Conversion
4590 or else NT
(N
).Nkind
= N_Unchecked_Expression
4591 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
4592 Set_Node3_With_Parent
(N
, Val
);
4595 procedure Set_Expression_Copy
4596 (N
: Node_Id
; Val
: Node_Id
) is
4598 pragma Assert
(False
4599 or else NT
(N
).Nkind
= N_Pragma_Argument_Association
);
4600 Set_Node2
(N
, Val
); -- semantic field, no parent set
4601 end Set_Expression_Copy
;
4603 procedure Set_Expressions
4604 (N
: Node_Id
; Val
: List_Id
) is
4606 pragma Assert
(False
4607 or else NT
(N
).Nkind
= N_Aggregate
4608 or else NT
(N
).Nkind
= N_Attribute_Reference
4609 or else NT
(N
).Nkind
= N_Extension_Aggregate
4610 or else NT
(N
).Nkind
= N_If_Expression
4611 or else NT
(N
).Nkind
= N_Indexed_Component
);
4612 Set_List1_With_Parent
(N
, Val
);
4613 end Set_Expressions
;
4615 procedure Set_First_Bit
4616 (N
: Node_Id
; Val
: Node_Id
) is
4618 pragma Assert
(False
4619 or else NT
(N
).Nkind
= N_Component_Clause
);
4620 Set_Node3_With_Parent
(N
, Val
);
4623 procedure Set_First_Inlined_Subprogram
4624 (N
: Node_Id
; Val
: Entity_Id
) is
4626 pragma Assert
(False
4627 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4628 Set_Node3
(N
, Val
); -- semantic field, no parent set
4629 end Set_First_Inlined_Subprogram
;
4631 procedure Set_First_Name
4632 (N
: Node_Id
; Val
: Boolean := True) is
4634 pragma Assert
(False
4635 or else NT
(N
).Nkind
= N_With_Clause
);
4639 procedure Set_First_Named_Actual
4640 (N
: Node_Id
; Val
: Node_Id
) is
4642 pragma Assert
(False
4643 or else NT
(N
).Nkind
= N_Entry_Call_Statement
4644 or else NT
(N
).Nkind
= N_Function_Call
4645 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
4646 Set_Node4
(N
, Val
); -- semantic field, no parent set
4647 end Set_First_Named_Actual
;
4649 procedure Set_First_Real_Statement
4650 (N
: Node_Id
; Val
: Node_Id
) is
4652 pragma Assert
(False
4653 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
4654 Set_Node2
(N
, Val
); -- semantic field, no parent set
4655 end Set_First_Real_Statement
;
4657 procedure Set_First_Subtype_Link
4658 (N
: Node_Id
; Val
: Entity_Id
) is
4660 pragma Assert
(False
4661 or else NT
(N
).Nkind
= N_Freeze_Entity
);
4662 Set_Node5
(N
, Val
); -- semantic field, no parent set
4663 end Set_First_Subtype_Link
;
4665 procedure Set_Float_Truncate
4666 (N
: Node_Id
; Val
: Boolean := True) is
4668 pragma Assert
(False
4669 or else NT
(N
).Nkind
= N_Type_Conversion
);
4670 Set_Flag11
(N
, Val
);
4671 end Set_Float_Truncate
;
4673 procedure Set_Formal_Type_Definition
4674 (N
: Node_Id
; Val
: Node_Id
) is
4676 pragma Assert
(False
4677 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
);
4678 Set_Node3_With_Parent
(N
, Val
);
4679 end Set_Formal_Type_Definition
;
4681 procedure Set_Forwards_OK
4682 (N
: Node_Id
; Val
: Boolean := True) is
4684 pragma Assert
(False
4685 or else NT
(N
).Nkind
= N_Assignment_Statement
);
4687 end Set_Forwards_OK
;
4689 procedure Set_From_Aspect_Specification
4690 (N
: Node_Id
; Val
: Boolean := True) is
4692 pragma Assert
(False
4693 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4694 or else NT
(N
).Nkind
= N_Pragma
);
4695 Set_Flag13
(N
, Val
);
4696 end Set_From_Aspect_Specification
;
4698 procedure Set_From_At_End
4699 (N
: Node_Id
; Val
: Boolean := True) is
4701 pragma Assert
(False
4702 or else NT
(N
).Nkind
= N_Raise_Statement
);
4704 end Set_From_At_End
;
4706 procedure Set_From_At_Mod
4707 (N
: Node_Id
; Val
: Boolean := True) is
4709 pragma Assert
(False
4710 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
4712 end Set_From_At_Mod
;
4714 procedure Set_From_Conditional_Expression
4715 (N
: Node_Id
; Val
: Boolean := True) is
4717 pragma Assert
(False
4718 or else NT
(N
).Nkind
= N_Case_Statement
4719 or else NT
(N
).Nkind
= N_If_Statement
);
4721 end Set_From_Conditional_Expression
;
4723 procedure Set_From_Default
4724 (N
: Node_Id
; Val
: Boolean := True) is
4726 pragma Assert
(False
4727 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
4729 end Set_From_Default
;
4731 procedure Set_Generalized_Indexing
4732 (N
: Node_Id
; Val
: Node_Id
) is
4734 pragma Assert
(False
4735 or else NT
(N
).Nkind
= N_Indexed_Component
);
4737 end Set_Generalized_Indexing
;
4739 procedure Set_Generic_Associations
4740 (N
: Node_Id
; Val
: List_Id
) is
4742 pragma Assert
(False
4743 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
4744 or else NT
(N
).Nkind
= N_Function_Instantiation
4745 or else NT
(N
).Nkind
= N_Package_Instantiation
4746 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
4747 Set_List3_With_Parent
(N
, Val
);
4748 end Set_Generic_Associations
;
4750 procedure Set_Generic_Formal_Declarations
4751 (N
: Node_Id
; Val
: List_Id
) is
4753 pragma Assert
(False
4754 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
4755 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
);
4756 Set_List2_With_Parent
(N
, Val
);
4757 end Set_Generic_Formal_Declarations
;
4759 procedure Set_Generic_Parent
4760 (N
: Node_Id
; Val
: Node_Id
) is
4762 pragma Assert
(False
4763 or else NT
(N
).Nkind
= N_Function_Specification
4764 or else NT
(N
).Nkind
= N_Package_Specification
4765 or else NT
(N
).Nkind
= N_Procedure_Specification
);
4767 end Set_Generic_Parent
;
4769 procedure Set_Generic_Parent_Type
4770 (N
: Node_Id
; Val
: Node_Id
) is
4772 pragma Assert
(False
4773 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
4775 end Set_Generic_Parent_Type
;
4777 procedure Set_Handled_Statement_Sequence
4778 (N
: Node_Id
; Val
: Node_Id
) is
4780 pragma Assert
(False
4781 or else NT
(N
).Nkind
= N_Accept_Statement
4782 or else NT
(N
).Nkind
= N_Block_Statement
4783 or else NT
(N
).Nkind
= N_Entry_Body
4784 or else NT
(N
).Nkind
= N_Extended_Return_Statement
4785 or else NT
(N
).Nkind
= N_Package_Body
4786 or else NT
(N
).Nkind
= N_Subprogram_Body
4787 or else NT
(N
).Nkind
= N_Task_Body
);
4788 Set_Node4_With_Parent
(N
, Val
);
4789 end Set_Handled_Statement_Sequence
;
4791 procedure Set_Handler_List_Entry
4792 (N
: Node_Id
; Val
: Node_Id
) is
4794 pragma Assert
(False
4795 or else NT
(N
).Nkind
= N_Object_Declaration
);
4797 end Set_Handler_List_Entry
;
4799 procedure Set_Has_Created_Identifier
4800 (N
: Node_Id
; Val
: Boolean := True) is
4802 pragma Assert
(False
4803 or else NT
(N
).Nkind
= N_Block_Statement
4804 or else NT
(N
).Nkind
= N_Loop_Statement
);
4805 Set_Flag15
(N
, Val
);
4806 end Set_Has_Created_Identifier
;
4808 procedure Set_Has_Dereference_Action
4809 (N
: Node_Id
; Val
: Boolean := True) is
4811 pragma Assert
(False
4812 or else NT
(N
).Nkind
= N_Explicit_Dereference
);
4813 Set_Flag13
(N
, Val
);
4814 end Set_Has_Dereference_Action
;
4816 procedure Set_Has_Dynamic_Length_Check
4817 (N
: Node_Id
; Val
: Boolean := True) is
4819 pragma Assert
(False
4820 or else NT
(N
).Nkind
in N_Subexpr
);
4821 Set_Flag10
(N
, Val
);
4822 end Set_Has_Dynamic_Length_Check
;
4824 procedure Set_Has_Dynamic_Range_Check
4825 (N
: Node_Id
; Val
: Boolean := True) is
4827 pragma Assert
(False
4828 or else NT
(N
).Nkind
= N_Subtype_Declaration
4829 or else NT
(N
).Nkind
in N_Subexpr
);
4830 Set_Flag12
(N
, Val
);
4831 end Set_Has_Dynamic_Range_Check
;
4833 procedure Set_Has_Init_Expression
4834 (N
: Node_Id
; Val
: Boolean := True) is
4836 pragma Assert
(False
4837 or else NT
(N
).Nkind
= N_Object_Declaration
);
4838 Set_Flag14
(N
, Val
);
4839 end Set_Has_Init_Expression
;
4841 procedure Set_Has_Local_Raise
4842 (N
: Node_Id
; Val
: Boolean := True) is
4844 pragma Assert
(False
4845 or else NT
(N
).Nkind
= N_Exception_Handler
);
4847 end Set_Has_Local_Raise
;
4849 procedure Set_Has_No_Elaboration_Code
4850 (N
: Node_Id
; Val
: Boolean := True) is
4852 pragma Assert
(False
4853 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4854 Set_Flag17
(N
, Val
);
4855 end Set_Has_No_Elaboration_Code
;
4857 procedure Set_Has_Pragma_Suppress_All
4858 (N
: Node_Id
; Val
: Boolean := True) is
4860 pragma Assert
(False
4861 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4862 Set_Flag14
(N
, Val
);
4863 end Set_Has_Pragma_Suppress_All
;
4865 procedure Set_Has_Private_View
4866 (N
: Node_Id
; Val
: Boolean := True) is
4868 pragma Assert
(False
4869 or else NT
(N
).Nkind
in N_Op
4870 or else NT
(N
).Nkind
= N_Character_Literal
4871 or else NT
(N
).Nkind
= N_Expanded_Name
4872 or else NT
(N
).Nkind
= N_Identifier
4873 or else NT
(N
).Nkind
= N_Operator_Symbol
);
4874 Set_Flag11
(N
, Val
);
4875 end Set_Has_Private_View
;
4877 procedure Set_Has_Relative_Deadline_Pragma
4878 (N
: Node_Id
; Val
: Boolean := True) is
4880 pragma Assert
(False
4881 or else NT
(N
).Nkind
= N_Subprogram_Body
4882 or else NT
(N
).Nkind
= N_Task_Definition
);
4884 end Set_Has_Relative_Deadline_Pragma
;
4886 procedure Set_Has_Self_Reference
4887 (N
: Node_Id
; Val
: Boolean := True) is
4889 pragma Assert
(False
4890 or else NT
(N
).Nkind
= N_Aggregate
4891 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
4892 Set_Flag13
(N
, Val
);
4893 end Set_Has_Self_Reference
;
4895 procedure Set_Has_SP_Choice
4896 (N
: Node_Id
; Val
: Boolean := True) is
4898 pragma Assert
(False
4899 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4900 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
4901 or else NT
(N
).Nkind
= N_Variant
);
4902 Set_Flag15
(N
, Val
);
4903 end Set_Has_SP_Choice
;
4905 procedure Set_Has_Storage_Size_Pragma
4906 (N
: Node_Id
; Val
: Boolean := True) is
4908 pragma Assert
(False
4909 or else NT
(N
).Nkind
= N_Task_Definition
);
4911 end Set_Has_Storage_Size_Pragma
;
4913 procedure Set_Has_Target_Names
4914 (N
: Node_Id
; Val
: Boolean := True) is
4916 pragma Assert
(False
4917 or else NT
(N
).Nkind
= N_Assignment_Statement
);
4919 end Set_Has_Target_Names
;
4921 procedure Set_Has_Wide_Character
4922 (N
: Node_Id
; Val
: Boolean := True) is
4924 pragma Assert
(False
4925 or else NT
(N
).Nkind
= N_String_Literal
);
4926 Set_Flag11
(N
, Val
);
4927 end Set_Has_Wide_Character
;
4929 procedure Set_Has_Wide_Wide_Character
4930 (N
: Node_Id
; Val
: Boolean := True) is
4932 pragma Assert
(False
4933 or else NT
(N
).Nkind
= N_String_Literal
);
4934 Set_Flag13
(N
, Val
);
4935 end Set_Has_Wide_Wide_Character
;
4937 procedure Set_Header_Size_Added
4938 (N
: Node_Id
; Val
: Boolean := True) is
4940 pragma Assert
(False
4941 or else NT
(N
).Nkind
= N_Attribute_Reference
);
4942 Set_Flag11
(N
, Val
);
4943 end Set_Header_Size_Added
;
4945 procedure Set_Hidden_By_Use_Clause
4946 (N
: Node_Id
; Val
: Elist_Id
) is
4948 pragma Assert
(False
4949 or else NT
(N
).Nkind
= N_Use_Package_Clause
4950 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
4951 Set_Elist4
(N
, Val
);
4952 end Set_Hidden_By_Use_Clause
;
4954 procedure Set_High_Bound
4955 (N
: Node_Id
; Val
: Node_Id
) is
4957 pragma Assert
(False
4958 or else NT
(N
).Nkind
= N_Range
4959 or else NT
(N
).Nkind
= N_Real_Range_Specification
4960 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
4961 Set_Node2_With_Parent
(N
, Val
);
4964 procedure Set_Identifier
4965 (N
: Node_Id
; Val
: Node_Id
) is
4967 pragma Assert
(False
4968 or else NT
(N
).Nkind
= N_Aspect_Specification
4969 or else NT
(N
).Nkind
= N_At_Clause
4970 or else NT
(N
).Nkind
= N_Block_Statement
4971 or else NT
(N
).Nkind
= N_Designator
4972 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
4973 or else NT
(N
).Nkind
= N_Label
4974 or else NT
(N
).Nkind
= N_Loop_Statement
4975 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
4976 Set_Node1_With_Parent
(N
, Val
);
4979 procedure Set_Implicit_With
4980 (N
: Node_Id
; Val
: Boolean := True) is
4982 pragma Assert
(False
4983 or else NT
(N
).Nkind
= N_With_Clause
);
4984 Set_Flag16
(N
, Val
);
4985 end Set_Implicit_With
;
4987 procedure Set_Implicit_With_From_Instantiation
4988 (N
: Node_Id
; Val
: Boolean := True) is
4990 pragma Assert
(False
4991 or else NT
(N
).Nkind
= N_With_Clause
);
4992 Set_Flag12
(N
, Val
);
4993 end Set_Implicit_With_From_Instantiation
;
4995 procedure Set_Interface_List
4996 (N
: Node_Id
; Val
: List_Id
) is
4998 pragma Assert
(False
4999 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5000 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
5001 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
5002 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
5003 or else NT
(N
).Nkind
= N_Record_Definition
5004 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
5005 or else NT
(N
).Nkind
= N_Single_Task_Declaration
5006 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
5007 Set_List2_With_Parent
(N
, Val
);
5008 end Set_Interface_List
;
5010 procedure Set_Interface_Present
5011 (N
: Node_Id
; Val
: Boolean := True) is
5013 pragma Assert
(False
5014 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5015 or else NT
(N
).Nkind
= N_Record_Definition
);
5016 Set_Flag16
(N
, Val
);
5017 end Set_Interface_Present
;
5019 procedure Set_Import_Interface_Present
5020 (N
: Node_Id
; Val
: Boolean := True) is
5022 pragma Assert
(False
5023 or else NT
(N
).Nkind
= N_Pragma
);
5024 Set_Flag16
(N
, Val
);
5025 end Set_Import_Interface_Present
;
5027 procedure Set_In_Present
5028 (N
: Node_Id
; Val
: Boolean := True) is
5030 pragma Assert
(False
5031 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5032 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5033 Set_Flag15
(N
, Val
);
5036 procedure Set_Includes_Infinities
5037 (N
: Node_Id
; Val
: Boolean := True) is
5039 pragma Assert
(False
5040 or else NT
(N
).Nkind
= N_Range
);
5041 Set_Flag11
(N
, Val
);
5042 end Set_Includes_Infinities
;
5044 procedure Set_Incomplete_View
5045 (N
: Node_Id
; Val
: Node_Id
) is
5047 pragma Assert
(False
5048 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
5049 Set_Node2
(N
, Val
); -- semantic field, no Parent set
5050 end Set_Incomplete_View
;
5052 procedure Set_Inherited_Discriminant
5053 (N
: Node_Id
; Val
: Boolean := True) is
5055 pragma Assert
(False
5056 or else NT
(N
).Nkind
= N_Component_Association
);
5057 Set_Flag13
(N
, Val
);
5058 end Set_Inherited_Discriminant
;
5060 procedure Set_Instance_Spec
5061 (N
: Node_Id
; Val
: Node_Id
) is
5063 pragma Assert
(False
5064 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
5065 or else NT
(N
).Nkind
= N_Function_Instantiation
5066 or else NT
(N
).Nkind
= N_Package_Instantiation
5067 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
5068 Set_Node5
(N
, Val
); -- semantic field, no Parent set
5069 end Set_Instance_Spec
;
5071 procedure Set_Intval
5072 (N
: Node_Id
; Val
: Uint
) is
5074 pragma Assert
(False
5075 or else NT
(N
).Nkind
= N_Integer_Literal
);
5079 procedure Set_Is_Abort_Block
5080 (N
: Node_Id
; Val
: Boolean := True) is
5082 pragma Assert
(False
5083 or else NT
(N
).Nkind
= N_Block_Statement
);
5085 end Set_Is_Abort_Block
;
5087 procedure Set_Is_Accessibility_Actual
5088 (N
: Node_Id
; Val
: Boolean := True) is
5090 pragma Assert
(False
5091 or else NT
(N
).Nkind
= N_Parameter_Association
);
5092 Set_Flag13
(N
, Val
);
5093 end Set_Is_Accessibility_Actual
;
5095 procedure Set_Is_Analyzed_Pragma
5096 (N
: Node_Id
; Val
: Boolean := True) is
5098 pragma Assert
(False
5099 or else NT
(N
).Nkind
= N_Pragma
);
5101 end Set_Is_Analyzed_Pragma
;
5103 procedure Set_Is_Asynchronous_Call_Block
5104 (N
: Node_Id
; Val
: Boolean := True) is
5106 pragma Assert
(False
5107 or else NT
(N
).Nkind
= N_Block_Statement
);
5109 end Set_Is_Asynchronous_Call_Block
;
5111 procedure Set_Is_Boolean_Aspect
5112 (N
: Node_Id
; Val
: Boolean := True) is
5114 pragma Assert
(False
5115 or else NT
(N
).Nkind
= N_Aspect_Specification
);
5116 Set_Flag16
(N
, Val
);
5117 end Set_Is_Boolean_Aspect
;
5119 procedure Set_Is_Checked
5120 (N
: Node_Id
; Val
: Boolean := True) is
5122 pragma Assert
(False
5123 or else NT
(N
).Nkind
= N_Aspect_Specification
5124 or else NT
(N
).Nkind
= N_Pragma
);
5125 Set_Flag11
(N
, Val
);
5128 procedure Set_Is_Checked_Ghost_Pragma
5129 (N
: Node_Id
; Val
: Boolean := True) is
5131 pragma Assert
(False
5132 or else NT
(N
).Nkind
= N_Pragma
);
5134 end Set_Is_Checked_Ghost_Pragma
;
5136 procedure Set_Is_Component_Left_Opnd
5137 (N
: Node_Id
; Val
: Boolean := True) is
5139 pragma Assert
(False
5140 or else NT
(N
).Nkind
= N_Op_Concat
);
5141 Set_Flag13
(N
, Val
);
5142 end Set_Is_Component_Left_Opnd
;
5144 procedure Set_Is_Component_Right_Opnd
5145 (N
: Node_Id
; Val
: Boolean := True) is
5147 pragma Assert
(False
5148 or else NT
(N
).Nkind
= N_Op_Concat
);
5149 Set_Flag14
(N
, Val
);
5150 end Set_Is_Component_Right_Opnd
;
5152 procedure Set_Is_Controlling_Actual
5153 (N
: Node_Id
; Val
: Boolean := True) is
5155 pragma Assert
(False
5156 or else NT
(N
).Nkind
in N_Subexpr
);
5157 Set_Flag16
(N
, Val
);
5158 end Set_Is_Controlling_Actual
;
5160 procedure Set_Is_Delayed_Aspect
5161 (N
: Node_Id
; Val
: Boolean := True) is
5163 pragma Assert
(False
5164 or else NT
(N
).Nkind
= N_Aspect_Specification
5165 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5166 or else NT
(N
).Nkind
= N_Pragma
);
5167 Set_Flag14
(N
, Val
);
5168 end Set_Is_Delayed_Aspect
;
5170 procedure Set_Is_Disabled
5171 (N
: Node_Id
; Val
: Boolean := True) is
5173 pragma Assert
(False
5174 or else NT
(N
).Nkind
= N_Aspect_Specification
5175 or else NT
(N
).Nkind
= N_Pragma
);
5176 Set_Flag15
(N
, Val
);
5177 end Set_Is_Disabled
;
5179 procedure Set_Is_Dynamic_Coextension
5180 (N
: Node_Id
; Val
: Boolean := True) is
5182 pragma Assert
(False
5183 or else NT
(N
).Nkind
= N_Allocator
);
5184 Set_Flag18
(N
, Val
);
5185 end Set_Is_Dynamic_Coextension
;
5187 procedure Set_Is_Elsif
5188 (N
: Node_Id
; Val
: Boolean := True) is
5190 pragma Assert
(False
5191 or else NT
(N
).Nkind
= N_If_Expression
);
5192 Set_Flag13
(N
, Val
);
5195 procedure Set_Is_Entry_Barrier_Function
5196 (N
: Node_Id
; Val
: Boolean := True) is
5198 pragma Assert
(False
5199 or else NT
(N
).Nkind
= N_Subprogram_Body
5200 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
5202 end Set_Is_Entry_Barrier_Function
;
5204 procedure Set_Is_Expanded_Build_In_Place_Call
5205 (N
: Node_Id
; Val
: Boolean := True) is
5207 pragma Assert
(False
5208 or else NT
(N
).Nkind
= N_Function_Call
);
5209 Set_Flag11
(N
, Val
);
5210 end Set_Is_Expanded_Build_In_Place_Call
;
5212 procedure Set_Is_Expanded_Contract
5213 (N
: Node_Id
; Val
: Boolean := True) is
5215 pragma Assert
(False
5216 or else NT
(N
).Nkind
= N_Contract
);
5218 end Set_Is_Expanded_Contract
;
5220 procedure Set_Is_Finalization_Wrapper
5221 (N
: Node_Id
; Val
: Boolean := True) is
5223 pragma Assert
(False
5224 or else NT
(N
).Nkind
= N_Block_Statement
);
5226 end Set_Is_Finalization_Wrapper
;
5228 procedure Set_Is_Folded_In_Parser
5229 (N
: Node_Id
; Val
: Boolean := True) is
5231 pragma Assert
(False
5232 or else NT
(N
).Nkind
= N_String_Literal
);
5234 end Set_Is_Folded_In_Parser
;
5236 procedure Set_Is_Generic_Contract_Pragma
5237 (N
: Node_Id
; Val
: Boolean := True) is
5239 pragma Assert
(False
5240 or else NT
(N
).Nkind
= N_Pragma
);
5242 end Set_Is_Generic_Contract_Pragma
;
5244 procedure Set_Is_Ignored
5245 (N
: Node_Id
; Val
: Boolean := True) is
5247 pragma Assert
(False
5248 or else NT
(N
).Nkind
= N_Aspect_Specification
5249 or else NT
(N
).Nkind
= N_Pragma
);
5253 procedure Set_Is_Ignored_Ghost_Pragma
5254 (N
: Node_Id
; Val
: Boolean := True) is
5256 pragma Assert
(False
5257 or else NT
(N
).Nkind
= N_Pragma
);
5259 end Set_Is_Ignored_Ghost_Pragma
;
5261 procedure Set_Is_In_Discriminant_Check
5262 (N
: Node_Id
; Val
: Boolean := True) is
5264 pragma Assert
(False
5265 or else NT
(N
).Nkind
= N_Selected_Component
);
5266 Set_Flag11
(N
, Val
);
5267 end Set_Is_In_Discriminant_Check
;
5269 procedure Set_Is_Inherited_Pragma
5270 (N
: Node_Id
; Val
: Boolean := True) is
5272 pragma Assert
(False
5273 or else NT
(N
).Nkind
= N_Pragma
);
5275 end Set_Is_Inherited_Pragma
;
5277 procedure Set_Is_Machine_Number
5278 (N
: Node_Id
; Val
: Boolean := True) is
5280 pragma Assert
(False
5281 or else NT
(N
).Nkind
= N_Real_Literal
);
5282 Set_Flag11
(N
, Val
);
5283 end Set_Is_Machine_Number
;
5285 procedure Set_Is_Null_Loop
5286 (N
: Node_Id
; Val
: Boolean := True) is
5288 pragma Assert
(False
5289 or else NT
(N
).Nkind
= N_Loop_Statement
);
5290 Set_Flag16
(N
, Val
);
5291 end Set_Is_Null_Loop
;
5293 procedure Set_Is_Overloaded
5294 (N
: Node_Id
; Val
: Boolean := True) is
5296 pragma Assert
(False
5297 or else NT
(N
).Nkind
in N_Subexpr
);
5299 end Set_Is_Overloaded
;
5301 procedure Set_Is_Power_Of_2_For_Shift
5302 (N
: Node_Id
; Val
: Boolean := True) is
5304 pragma Assert
(False
5305 or else NT
(N
).Nkind
= N_Op_Expon
);
5306 Set_Flag13
(N
, Val
);
5307 end Set_Is_Power_Of_2_For_Shift
;
5309 procedure Set_Is_Prefixed_Call
5310 (N
: Node_Id
; Val
: Boolean := True) is
5312 pragma Assert
(False
5313 or else NT
(N
).Nkind
= N_Selected_Component
);
5314 Set_Flag17
(N
, Val
);
5315 end Set_Is_Prefixed_Call
;
5317 procedure Set_Is_Protected_Subprogram_Body
5318 (N
: Node_Id
; Val
: Boolean := True) is
5320 pragma Assert
(False
5321 or else NT
(N
).Nkind
= N_Subprogram_Body
);
5323 end Set_Is_Protected_Subprogram_Body
;
5325 procedure Set_Is_Qualified_Universal_Literal
5326 (N
: Node_Id
; Val
: Boolean := True) is
5328 pragma Assert
(False
5329 or else NT
(N
).Nkind
= N_Qualified_Expression
);
5331 end Set_Is_Qualified_Universal_Literal
;
5333 procedure Set_Is_Static_Coextension
5334 (N
: Node_Id
; Val
: Boolean := True) is
5336 pragma Assert
(False
5337 or else NT
(N
).Nkind
= N_Allocator
);
5338 Set_Flag14
(N
, Val
);
5339 end Set_Is_Static_Coextension
;
5341 procedure Set_Is_Static_Expression
5342 (N
: Node_Id
; Val
: Boolean := True) is
5344 pragma Assert
(False
5345 or else NT
(N
).Nkind
in N_Subexpr
);
5347 end Set_Is_Static_Expression
;
5349 procedure Set_Is_Subprogram_Descriptor
5350 (N
: Node_Id
; Val
: Boolean := True) is
5352 pragma Assert
(False
5353 or else NT
(N
).Nkind
= N_Object_Declaration
);
5354 Set_Flag16
(N
, Val
);
5355 end Set_Is_Subprogram_Descriptor
;
5357 procedure Set_Is_Task_Allocation_Block
5358 (N
: Node_Id
; Val
: Boolean := True) is
5360 pragma Assert
(False
5361 or else NT
(N
).Nkind
= N_Block_Statement
);
5363 end Set_Is_Task_Allocation_Block
;
5365 procedure Set_Is_Task_Body_Procedure
5366 (N
: Node_Id
; Val
: Boolean := True) is
5368 pragma Assert
(False
5369 or else NT
(N
).Nkind
= N_Subprogram_Body
5370 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
5372 end Set_Is_Task_Body_Procedure
;
5374 procedure Set_Is_Task_Master
5375 (N
: Node_Id
; Val
: Boolean := True) is
5377 pragma Assert
(False
5378 or else NT
(N
).Nkind
= N_Block_Statement
5379 or else NT
(N
).Nkind
= N_Subprogram_Body
5380 or else NT
(N
).Nkind
= N_Task_Body
);
5382 end Set_Is_Task_Master
;
5384 procedure Set_Iteration_Scheme
5385 (N
: Node_Id
; Val
: Node_Id
) is
5387 pragma Assert
(False
5388 or else NT
(N
).Nkind
= N_Loop_Statement
);
5389 Set_Node2_With_Parent
(N
, Val
);
5390 end Set_Iteration_Scheme
;
5392 procedure Set_Iterator_Specification
5393 (N
: Node_Id
; Val
: Node_Id
) is
5395 pragma Assert
(False
5396 or else NT
(N
).Nkind
= N_Iteration_Scheme
5397 or else NT
(N
).Nkind
= N_Quantified_Expression
);
5398 Set_Node2_With_Parent
(N
, Val
);
5399 end Set_Iterator_Specification
;
5402 (N
: Node_Id
; Val
: Entity_Id
) is
5404 pragma Assert
(False
5405 or else NT
(N
).Nkind
= N_Itype_Reference
);
5406 Set_Node1
(N
, Val
); -- no parent, semantic field
5409 procedure Set_Kill_Range_Check
5410 (N
: Node_Id
; Val
: Boolean := True) is
5412 pragma Assert
(False
5413 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
5414 Set_Flag11
(N
, Val
);
5415 end Set_Kill_Range_Check
;
5417 procedure Set_Label_Construct
5418 (N
: Node_Id
; Val
: Node_Id
) is
5420 pragma Assert
(False
5421 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
);
5422 Set_Node2
(N
, Val
); -- semantic field, no parent set
5423 end Set_Label_Construct
;
5425 procedure Set_Last_Bit
5426 (N
: Node_Id
; Val
: Node_Id
) is
5428 pragma Assert
(False
5429 or else NT
(N
).Nkind
= N_Component_Clause
);
5430 Set_Node4_With_Parent
(N
, Val
);
5433 procedure Set_Last_Name
5434 (N
: Node_Id
; Val
: Boolean := True) is
5436 pragma Assert
(False
5437 or else NT
(N
).Nkind
= N_With_Clause
);
5441 procedure Set_Left_Opnd
5442 (N
: Node_Id
; Val
: Node_Id
) is
5444 pragma Assert
(False
5445 or else NT
(N
).Nkind
= N_And_Then
5446 or else NT
(N
).Nkind
= N_In
5447 or else NT
(N
).Nkind
= N_Not_In
5448 or else NT
(N
).Nkind
= N_Or_Else
5449 or else NT
(N
).Nkind
in N_Binary_Op
);
5450 Set_Node2_With_Parent
(N
, Val
);
5453 procedure Set_Library_Unit
5454 (N
: Node_Id
; Val
: Node_Id
) is
5456 pragma Assert
(False
5457 or else NT
(N
).Nkind
= N_Compilation_Unit
5458 or else NT
(N
).Nkind
= N_Package_Body_Stub
5459 or else NT
(N
).Nkind
= N_Protected_Body_Stub
5460 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
5461 or else NT
(N
).Nkind
= N_Task_Body_Stub
5462 or else NT
(N
).Nkind
= N_With_Clause
);
5463 Set_Node4
(N
, Val
); -- semantic field, no parent set
5464 end Set_Library_Unit
;
5466 procedure Set_Limited_View_Installed
5467 (N
: Node_Id
; Val
: Boolean := True) is
5469 pragma Assert
(False
5470 or else NT
(N
).Nkind
= N_Package_Specification
5471 or else NT
(N
).Nkind
= N_With_Clause
);
5472 Set_Flag18
(N
, Val
);
5473 end Set_Limited_View_Installed
;
5475 procedure Set_Limited_Present
5476 (N
: Node_Id
; Val
: Boolean := True) is
5478 pragma Assert
(False
5479 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5480 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
5481 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
5482 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
5483 or else NT
(N
).Nkind
= N_Private_Type_Declaration
5484 or else NT
(N
).Nkind
= N_Record_Definition
5485 or else NT
(N
).Nkind
= N_With_Clause
);
5486 Set_Flag17
(N
, Val
);
5487 end Set_Limited_Present
;
5489 procedure Set_Literals
5490 (N
: Node_Id
; Val
: List_Id
) is
5492 pragma Assert
(False
5493 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
);
5494 Set_List1_With_Parent
(N
, Val
);
5497 procedure Set_Local_Raise_Not_OK
5498 (N
: Node_Id
; Val
: Boolean := True) is
5500 pragma Assert
(False
5501 or else NT
(N
).Nkind
= N_Exception_Handler
);
5503 end Set_Local_Raise_Not_OK
;
5505 procedure Set_Local_Raise_Statements
5506 (N
: Node_Id
; Val
: Elist_Id
) is
5508 pragma Assert
(False
5509 or else NT
(N
).Nkind
= N_Exception_Handler
);
5510 Set_Elist1
(N
, Val
);
5511 end Set_Local_Raise_Statements
;
5513 procedure Set_Loop_Actions
5514 (N
: Node_Id
; Val
: List_Id
) is
5516 pragma Assert
(False
5517 or else NT
(N
).Nkind
= N_Component_Association
5518 or else NT
(N
).Nkind
= N_Iterated_Component_Association
);
5519 Set_List2
(N
, Val
); -- semantic field, no parent set
5520 end Set_Loop_Actions
;
5522 procedure Set_Loop_Parameter_Specification
5523 (N
: Node_Id
; Val
: Node_Id
) is
5525 pragma Assert
(False
5526 or else NT
(N
).Nkind
= N_Iteration_Scheme
5527 or else NT
(N
).Nkind
= N_Quantified_Expression
);
5528 Set_Node4_With_Parent
(N
, Val
);
5529 end Set_Loop_Parameter_Specification
;
5531 procedure Set_Low_Bound
5532 (N
: Node_Id
; Val
: Node_Id
) is
5534 pragma Assert
(False
5535 or else NT
(N
).Nkind
= N_Range
5536 or else NT
(N
).Nkind
= N_Real_Range_Specification
5537 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
5538 Set_Node1_With_Parent
(N
, Val
);
5541 procedure Set_Mod_Clause
5542 (N
: Node_Id
; Val
: Node_Id
) is
5544 pragma Assert
(False
5545 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
5546 Set_Node2_With_Parent
(N
, Val
);
5549 procedure Set_More_Ids
5550 (N
: Node_Id
; Val
: Boolean := True) is
5552 pragma Assert
(False
5553 or else NT
(N
).Nkind
= N_Component_Declaration
5554 or else NT
(N
).Nkind
= N_Discriminant_Specification
5555 or else NT
(N
).Nkind
= N_Exception_Declaration
5556 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5557 or else NT
(N
).Nkind
= N_Number_Declaration
5558 or else NT
(N
).Nkind
= N_Object_Declaration
5559 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5563 procedure Set_Must_Be_Byte_Aligned
5564 (N
: Node_Id
; Val
: Boolean := True) is
5566 pragma Assert
(False
5567 or else NT
(N
).Nkind
= N_Attribute_Reference
);
5568 Set_Flag14
(N
, Val
);
5569 end Set_Must_Be_Byte_Aligned
;
5571 procedure Set_Must_Not_Freeze
5572 (N
: Node_Id
; Val
: Boolean := True) is
5574 pragma Assert
(False
5575 or else NT
(N
).Nkind
= N_Subtype_Indication
5576 or else NT
(N
).Nkind
in N_Subexpr
);
5578 end Set_Must_Not_Freeze
;
5580 procedure Set_Must_Not_Override
5581 (N
: Node_Id
; Val
: Boolean := True) is
5583 pragma Assert
(False
5584 or else NT
(N
).Nkind
= N_Entry_Declaration
5585 or else NT
(N
).Nkind
= N_Function_Instantiation
5586 or else NT
(N
).Nkind
= N_Function_Specification
5587 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5588 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5589 Set_Flag15
(N
, Val
);
5590 end Set_Must_Not_Override
;
5592 procedure Set_Must_Override
5593 (N
: Node_Id
; Val
: Boolean := True) is
5595 pragma Assert
(False
5596 or else NT
(N
).Nkind
= N_Entry_Declaration
5597 or else NT
(N
).Nkind
= N_Function_Instantiation
5598 or else NT
(N
).Nkind
= N_Function_Specification
5599 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5600 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5601 Set_Flag14
(N
, Val
);
5602 end Set_Must_Override
;
5605 (N
: Node_Id
; Val
: Node_Id
) is
5607 pragma Assert
(False
5608 or else NT
(N
).Nkind
= N_Assignment_Statement
5609 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5610 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
5611 or else NT
(N
).Nkind
= N_Designator
5612 or else NT
(N
).Nkind
= N_Entry_Call_Statement
5613 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
5614 or else NT
(N
).Nkind
= N_Exit_Statement
5615 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
5616 or else NT
(N
).Nkind
= N_Function_Call
5617 or else NT
(N
).Nkind
= N_Function_Instantiation
5618 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
5619 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
5620 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
5621 or else NT
(N
).Nkind
= N_Goto_Statement
5622 or else NT
(N
).Nkind
= N_Iterator_Specification
5623 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
5624 or else NT
(N
).Nkind
= N_Package_Instantiation
5625 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
5626 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
5627 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5628 or else NT
(N
).Nkind
= N_Raise_Expression
5629 or else NT
(N
).Nkind
= N_Raise_Statement
5630 or else NT
(N
).Nkind
= N_Requeue_Statement
5631 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
5632 or else NT
(N
).Nkind
= N_Subunit
5633 or else NT
(N
).Nkind
= N_Variant_Part
5634 or else NT
(N
).Nkind
= N_With_Clause
);
5635 Set_Node2_With_Parent
(N
, Val
);
5639 (N
: Node_Id
; Val
: List_Id
) is
5641 pragma Assert
(False
5642 or else NT
(N
).Nkind
= N_Abort_Statement
5643 or else NT
(N
).Nkind
= N_Use_Package_Clause
);
5644 Set_List2_With_Parent
(N
, Val
);
5647 procedure Set_Next_Entity
5648 (N
: Node_Id
; Val
: Node_Id
) is
5650 pragma Assert
(False
5651 or else NT
(N
).Nkind
= N_Defining_Character_Literal
5652 or else NT
(N
).Nkind
= N_Defining_Identifier
5653 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
5654 Set_Node2
(N
, Val
); -- semantic field, no parent set
5655 end Set_Next_Entity
;
5657 procedure Set_Next_Exit_Statement
5658 (N
: Node_Id
; Val
: Node_Id
) is
5660 pragma Assert
(False
5661 or else NT
(N
).Nkind
= N_Exit_Statement
);
5662 Set_Node3
(N
, Val
); -- semantic field, no parent set
5663 end Set_Next_Exit_Statement
;
5665 procedure Set_Next_Implicit_With
5666 (N
: Node_Id
; Val
: Node_Id
) is
5668 pragma Assert
(False
5669 or else NT
(N
).Nkind
= N_With_Clause
);
5670 Set_Node3
(N
, Val
); -- semantic field, no parent set
5671 end Set_Next_Implicit_With
;
5673 procedure Set_Next_Named_Actual
5674 (N
: Node_Id
; Val
: Node_Id
) is
5676 pragma Assert
(False
5677 or else NT
(N
).Nkind
= N_Parameter_Association
);
5678 Set_Node4
(N
, Val
); -- semantic field, no parent set
5679 end Set_Next_Named_Actual
;
5681 procedure Set_Next_Pragma
5682 (N
: Node_Id
; Val
: Node_Id
) is
5684 pragma Assert
(False
5685 or else NT
(N
).Nkind
= N_Pragma
);
5686 Set_Node1
(N
, Val
); -- semantic field, no parent set
5687 end Set_Next_Pragma
;
5689 procedure Set_Next_Rep_Item
5690 (N
: Node_Id
; Val
: Node_Id
) is
5692 pragma Assert
(False
5693 or else NT
(N
).Nkind
= N_Aspect_Specification
5694 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5695 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
5696 or else NT
(N
).Nkind
= N_Pragma
5697 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
5698 Set_Node5
(N
, Val
); -- semantic field, no parent set
5699 end Set_Next_Rep_Item
;
5701 procedure Set_Next_Use_Clause
5702 (N
: Node_Id
; Val
: Node_Id
) is
5704 pragma Assert
(False
5705 or else NT
(N
).Nkind
= N_Use_Package_Clause
5706 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
5707 Set_Node3
(N
, Val
); -- semantic field, no parent set
5708 end Set_Next_Use_Clause
;
5710 procedure Set_No_Ctrl_Actions
5711 (N
: Node_Id
; Val
: Boolean := True) is
5713 pragma Assert
(False
5714 or else NT
(N
).Nkind
= N_Assignment_Statement
);
5716 end Set_No_Ctrl_Actions
;
5718 procedure Set_No_Elaboration_Check
5719 (N
: Node_Id
; Val
: Boolean := True) is
5721 pragma Assert
(False
5722 or else NT
(N
).Nkind
= N_Function_Call
5723 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
5724 Set_Flag14
(N
, Val
);
5725 end Set_No_Elaboration_Check
;
5727 procedure Set_No_Entities_Ref_In_Spec
5728 (N
: Node_Id
; Val
: Boolean := True) is
5730 pragma Assert
(False
5731 or else NT
(N
).Nkind
= N_With_Clause
);
5733 end Set_No_Entities_Ref_In_Spec
;
5735 procedure Set_No_Initialization
5736 (N
: Node_Id
; Val
: Boolean := True) is
5738 pragma Assert
(False
5739 or else NT
(N
).Nkind
= N_Allocator
5740 or else NT
(N
).Nkind
= N_Object_Declaration
);
5741 Set_Flag13
(N
, Val
);
5742 end Set_No_Initialization
;
5744 procedure Set_No_Minimize_Eliminate
5745 (N
: Node_Id
; Val
: Boolean := True) is
5747 pragma Assert
(False
5748 or else NT
(N
).Nkind
= N_In
5749 or else NT
(N
).Nkind
= N_Not_In
);
5750 Set_Flag17
(N
, Val
);
5751 end Set_No_Minimize_Eliminate
;
5753 procedure Set_No_Side_Effect_Removal
5754 (N
: Node_Id
; Val
: Boolean := True) is
5756 pragma Assert
(False
5757 or else NT
(N
).Nkind
= N_Function_Call
);
5759 end Set_No_Side_Effect_Removal
;
5761 procedure Set_No_Truncation
5762 (N
: Node_Id
; Val
: Boolean := True) is
5764 pragma Assert
(False
5765 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
5766 Set_Flag17
(N
, Val
);
5767 end Set_No_Truncation
;
5769 procedure Set_Non_Aliased_Prefix
5770 (N
: Node_Id
; Val
: Boolean := True) is
5772 pragma Assert
(False
5773 or else NT
(N
).Nkind
= N_Attribute_Reference
);
5774 Set_Flag18
(N
, Val
);
5775 end Set_Non_Aliased_Prefix
;
5777 procedure Set_Null_Present
5778 (N
: Node_Id
; Val
: Boolean := True) is
5780 pragma Assert
(False
5781 or else NT
(N
).Nkind
= N_Component_List
5782 or else NT
(N
).Nkind
= N_Procedure_Specification
5783 or else NT
(N
).Nkind
= N_Record_Definition
);
5784 Set_Flag13
(N
, Val
);
5785 end Set_Null_Present
;
5787 procedure Set_Null_Excluding_Subtype
5788 (N
: Node_Id
; Val
: Boolean := True) is
5790 pragma Assert
(False
5791 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
);
5792 Set_Flag16
(N
, Val
);
5793 end Set_Null_Excluding_Subtype
;
5795 procedure Set_Null_Exclusion_Present
5796 (N
: Node_Id
; Val
: Boolean := True) is
5798 pragma Assert
(False
5799 or else NT
(N
).Nkind
= N_Access_Definition
5800 or else NT
(N
).Nkind
= N_Access_Function_Definition
5801 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
5802 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
5803 or else NT
(N
).Nkind
= N_Allocator
5804 or else NT
(N
).Nkind
= N_Component_Definition
5805 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5806 or else NT
(N
).Nkind
= N_Discriminant_Specification
5807 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5808 or else NT
(N
).Nkind
= N_Function_Specification
5809 or else NT
(N
).Nkind
= N_Object_Declaration
5810 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
5811 or else NT
(N
).Nkind
= N_Parameter_Specification
5812 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
5813 Set_Flag11
(N
, Val
);
5814 end Set_Null_Exclusion_Present
;
5816 procedure Set_Null_Exclusion_In_Return_Present
5817 (N
: Node_Id
; Val
: Boolean := True) is
5819 pragma Assert
(False
5820 or else NT
(N
).Nkind
= N_Access_Function_Definition
);
5821 Set_Flag14
(N
, Val
);
5822 end Set_Null_Exclusion_In_Return_Present
;
5824 procedure Set_Null_Record_Present
5825 (N
: Node_Id
; Val
: Boolean := True) is
5827 pragma Assert
(False
5828 or else NT
(N
).Nkind
= N_Aggregate
5829 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
5830 Set_Flag17
(N
, Val
);
5831 end Set_Null_Record_Present
;
5833 procedure Set_Object_Definition
5834 (N
: Node_Id
; Val
: Node_Id
) is
5836 pragma Assert
(False
5837 or else NT
(N
).Nkind
= N_Object_Declaration
);
5838 Set_Node4_With_Parent
(N
, Val
);
5839 end Set_Object_Definition
;
5841 procedure Set_Of_Present
5842 (N
: Node_Id
; Val
: Boolean := True) is
5844 pragma Assert
(False
5845 or else NT
(N
).Nkind
= N_Iterator_Specification
);
5846 Set_Flag16
(N
, Val
);
5849 procedure Set_Original_Discriminant
5850 (N
: Node_Id
; Val
: Node_Id
) is
5852 pragma Assert
(False
5853 or else NT
(N
).Nkind
= N_Identifier
);
5854 Set_Node2
(N
, Val
); -- semantic field, no parent set
5855 end Set_Original_Discriminant
;
5857 procedure Set_Original_Entity
5858 (N
: Node_Id
; Val
: Entity_Id
) is
5860 pragma Assert
(False
5861 or else NT
(N
).Nkind
= N_Integer_Literal
5862 or else NT
(N
).Nkind
= N_Real_Literal
);
5863 Set_Node2
(N
, Val
); -- semantic field, no parent set
5864 end Set_Original_Entity
;
5866 procedure Set_Others_Discrete_Choices
5867 (N
: Node_Id
; Val
: List_Id
) is
5869 pragma Assert
(False
5870 or else NT
(N
).Nkind
= N_Others_Choice
);
5871 Set_List1_With_Parent
(N
, Val
);
5872 end Set_Others_Discrete_Choices
;
5874 procedure Set_Out_Present
5875 (N
: Node_Id
; Val
: Boolean := True) is
5877 pragma Assert
(False
5878 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5879 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5880 Set_Flag17
(N
, Val
);
5881 end Set_Out_Present
;
5883 procedure Set_Parameter_Associations
5884 (N
: Node_Id
; Val
: List_Id
) is
5886 pragma Assert
(False
5887 or else NT
(N
).Nkind
= N_Entry_Call_Statement
5888 or else NT
(N
).Nkind
= N_Function_Call
5889 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
5890 Set_List3_With_Parent
(N
, Val
);
5891 end Set_Parameter_Associations
;
5893 procedure Set_Parameter_Specifications
5894 (N
: Node_Id
; Val
: List_Id
) is
5896 pragma Assert
(False
5897 or else NT
(N
).Nkind
= N_Accept_Statement
5898 or else NT
(N
).Nkind
= N_Access_Function_Definition
5899 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
5900 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
5901 or else NT
(N
).Nkind
= N_Entry_Declaration
5902 or else NT
(N
).Nkind
= N_Function_Specification
5903 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5904 Set_List3_With_Parent
(N
, Val
);
5905 end Set_Parameter_Specifications
;
5907 procedure Set_Parameter_Type
5908 (N
: Node_Id
; Val
: Node_Id
) is
5910 pragma Assert
(False
5911 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5912 Set_Node2_With_Parent
(N
, Val
);
5913 end Set_Parameter_Type
;
5915 procedure Set_Parent_Spec
5916 (N
: Node_Id
; Val
: Node_Id
) is
5918 pragma Assert
(False
5919 or else NT
(N
).Nkind
= N_Function_Instantiation
5920 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
5921 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
5922 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
5923 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
5924 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
5925 or else NT
(N
).Nkind
= N_Package_Declaration
5926 or else NT
(N
).Nkind
= N_Package_Instantiation
5927 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
5928 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5929 or else NT
(N
).Nkind
= N_Subprogram_Declaration
5930 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
5931 Set_Node4
(N
, Val
); -- semantic field, no parent set
5932 end Set_Parent_Spec
;
5934 procedure Set_Position
5935 (N
: Node_Id
; Val
: Node_Id
) is
5937 pragma Assert
(False
5938 or else NT
(N
).Nkind
= N_Component_Clause
);
5939 Set_Node2_With_Parent
(N
, Val
);
5942 procedure Set_Pragma_Argument_Associations
5943 (N
: Node_Id
; Val
: List_Id
) is
5945 pragma Assert
(False
5946 or else NT
(N
).Nkind
= N_Pragma
);
5947 Set_List2_With_Parent
(N
, Val
);
5948 end Set_Pragma_Argument_Associations
;
5950 procedure Set_Pragma_Identifier
5951 (N
: Node_Id
; Val
: Node_Id
) is
5953 pragma Assert
(False
5954 or else NT
(N
).Nkind
= N_Pragma
);
5955 Set_Node4_With_Parent
(N
, Val
);
5956 end Set_Pragma_Identifier
;
5958 procedure Set_Pragmas_After
5959 (N
: Node_Id
; Val
: List_Id
) is
5961 pragma Assert
(False
5962 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
5963 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
5964 Set_List5_With_Parent
(N
, Val
);
5965 end Set_Pragmas_After
;
5967 procedure Set_Pragmas_Before
5968 (N
: Node_Id
; Val
: List_Id
) is
5970 pragma Assert
(False
5971 or else NT
(N
).Nkind
= N_Accept_Alternative
5972 or else NT
(N
).Nkind
= N_Delay_Alternative
5973 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
5974 or else NT
(N
).Nkind
= N_Mod_Clause
5975 or else NT
(N
).Nkind
= N_Terminate_Alternative
5976 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
5977 Set_List4_With_Parent
(N
, Val
);
5978 end Set_Pragmas_Before
;
5980 procedure Set_Pre_Post_Conditions
5981 (N
: Node_Id
; Val
: Node_Id
) is
5983 pragma Assert
(False
5984 or else NT
(N
).Nkind
= N_Contract
);
5985 Set_Node1
(N
, Val
); -- semantic field, no parent set
5986 end Set_Pre_Post_Conditions
;
5988 procedure Set_Prefix
5989 (N
: Node_Id
; Val
: Node_Id
) is
5991 pragma Assert
(False
5992 or else NT
(N
).Nkind
= N_Attribute_Reference
5993 or else NT
(N
).Nkind
= N_Expanded_Name
5994 or else NT
(N
).Nkind
= N_Explicit_Dereference
5995 or else NT
(N
).Nkind
= N_Indexed_Component
5996 or else NT
(N
).Nkind
= N_Reference
5997 or else NT
(N
).Nkind
= N_Selected_Component
5998 or else NT
(N
).Nkind
= N_Slice
);
5999 Set_Node3_With_Parent
(N
, Val
);
6002 procedure Set_Premature_Use
6003 (N
: Node_Id
; Val
: Node_Id
) is
6005 pragma Assert
(False
6006 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
);
6008 end Set_Premature_Use
;
6010 procedure Set_Present_Expr
6011 (N
: Node_Id
; Val
: Uint
) is
6013 pragma Assert
(False
6014 or else NT
(N
).Nkind
= N_Variant
);
6016 end Set_Present_Expr
;
6018 procedure Set_Prev_Ids
6019 (N
: Node_Id
; Val
: Boolean := True) is
6021 pragma Assert
(False
6022 or else NT
(N
).Nkind
= N_Component_Declaration
6023 or else NT
(N
).Nkind
= N_Discriminant_Specification
6024 or else NT
(N
).Nkind
= N_Exception_Declaration
6025 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
6026 or else NT
(N
).Nkind
= N_Number_Declaration
6027 or else NT
(N
).Nkind
= N_Object_Declaration
6028 or else NT
(N
).Nkind
= N_Parameter_Specification
);
6032 procedure Set_Print_In_Hex
6033 (N
: Node_Id
; Val
: Boolean := True) is
6035 pragma Assert
(False
6036 or else NT
(N
).Nkind
= N_Integer_Literal
);
6037 Set_Flag13
(N
, Val
);
6038 end Set_Print_In_Hex
;
6040 procedure Set_Private_Declarations
6041 (N
: Node_Id
; Val
: List_Id
) is
6043 pragma Assert
(False
6044 or else NT
(N
).Nkind
= N_Package_Specification
6045 or else NT
(N
).Nkind
= N_Protected_Definition
6046 or else NT
(N
).Nkind
= N_Task_Definition
);
6047 Set_List3_With_Parent
(N
, Val
);
6048 end Set_Private_Declarations
;
6050 procedure Set_Private_Present
6051 (N
: Node_Id
; Val
: Boolean := True) is
6053 pragma Assert
(False
6054 or else NT
(N
).Nkind
= N_Compilation_Unit
6055 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
6056 or else NT
(N
).Nkind
= N_With_Clause
);
6057 Set_Flag15
(N
, Val
);
6058 end Set_Private_Present
;
6060 procedure Set_Procedure_To_Call
6061 (N
: Node_Id
; Val
: Node_Id
) is
6063 pragma Assert
(False
6064 or else NT
(N
).Nkind
= N_Allocator
6065 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6066 or else NT
(N
).Nkind
= N_Free_Statement
6067 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6068 Set_Node2
(N
, Val
); -- semantic field, no parent set
6069 end Set_Procedure_To_Call
;
6071 procedure Set_Proper_Body
6072 (N
: Node_Id
; Val
: Node_Id
) is
6074 pragma Assert
(False
6075 or else NT
(N
).Nkind
= N_Subunit
);
6076 Set_Node1_With_Parent
(N
, Val
);
6077 end Set_Proper_Body
;
6079 procedure Set_Protected_Definition
6080 (N
: Node_Id
; Val
: Node_Id
) is
6082 pragma Assert
(False
6083 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
6084 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
);
6085 Set_Node3_With_Parent
(N
, Val
);
6086 end Set_Protected_Definition
;
6088 procedure Set_Protected_Present
6089 (N
: Node_Id
; Val
: Boolean := True) is
6091 pragma Assert
(False
6092 or else NT
(N
).Nkind
= N_Access_Function_Definition
6093 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
6094 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6095 or else NT
(N
).Nkind
= N_Record_Definition
);
6097 end Set_Protected_Present
;
6099 procedure Set_Raises_Constraint_Error
6100 (N
: Node_Id
; Val
: Boolean := True) is
6102 pragma Assert
(False
6103 or else NT
(N
).Nkind
in N_Subexpr
);
6105 end Set_Raises_Constraint_Error
;
6107 procedure Set_Range_Constraint
6108 (N
: Node_Id
; Val
: Node_Id
) is
6110 pragma Assert
(False
6111 or else NT
(N
).Nkind
= N_Delta_Constraint
6112 or else NT
(N
).Nkind
= N_Digits_Constraint
);
6113 Set_Node4_With_Parent
(N
, Val
);
6114 end Set_Range_Constraint
;
6116 procedure Set_Range_Expression
6117 (N
: Node_Id
; Val
: Node_Id
) is
6119 pragma Assert
(False
6120 or else NT
(N
).Nkind
= N_Range_Constraint
);
6121 Set_Node4_With_Parent
(N
, Val
);
6122 end Set_Range_Expression
;
6124 procedure Set_Real_Range_Specification
6125 (N
: Node_Id
; Val
: Node_Id
) is
6127 pragma Assert
(False
6128 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
6129 or else NT
(N
).Nkind
= N_Floating_Point_Definition
6130 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
6131 Set_Node4_With_Parent
(N
, Val
);
6132 end Set_Real_Range_Specification
;
6134 procedure Set_Realval
6135 (N
: Node_Id
; Val
: Ureal
) is
6137 pragma Assert
(False
6138 or else NT
(N
).Nkind
= N_Real_Literal
);
6139 Set_Ureal3
(N
, Val
);
6142 procedure Set_Reason
6143 (N
: Node_Id
; Val
: Uint
) is
6145 pragma Assert
(False
6146 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
6147 or else NT
(N
).Nkind
= N_Raise_Program_Error
6148 or else NT
(N
).Nkind
= N_Raise_Storage_Error
);
6152 procedure Set_Record_Extension_Part
6153 (N
: Node_Id
; Val
: Node_Id
) is
6155 pragma Assert
(False
6156 or else NT
(N
).Nkind
= N_Derived_Type_Definition
);
6157 Set_Node3_With_Parent
(N
, Val
);
6158 end Set_Record_Extension_Part
;
6160 procedure Set_Redundant_Use
6161 (N
: Node_Id
; Val
: Boolean := True) is
6163 pragma Assert
(False
6164 or else NT
(N
).Nkind
= N_Attribute_Reference
6165 or else NT
(N
).Nkind
= N_Expanded_Name
6166 or else NT
(N
).Nkind
= N_Identifier
);
6167 Set_Flag13
(N
, Val
);
6168 end Set_Redundant_Use
;
6170 procedure Set_Renaming_Exception
6171 (N
: Node_Id
; Val
: Node_Id
) is
6173 pragma Assert
(False
6174 or else NT
(N
).Nkind
= N_Exception_Declaration
);
6176 end Set_Renaming_Exception
;
6178 procedure Set_Result_Definition
6179 (N
: Node_Id
; Val
: Node_Id
) is
6181 pragma Assert
(False
6182 or else NT
(N
).Nkind
= N_Access_Function_Definition
6183 or else NT
(N
).Nkind
= N_Function_Specification
);
6184 Set_Node4_With_Parent
(N
, Val
);
6185 end Set_Result_Definition
;
6187 procedure Set_Return_Object_Declarations
6188 (N
: Node_Id
; Val
: List_Id
) is
6190 pragma Assert
(False
6191 or else NT
(N
).Nkind
= N_Extended_Return_Statement
);
6192 Set_List3_With_Parent
(N
, Val
);
6193 end Set_Return_Object_Declarations
;
6195 procedure Set_Return_Statement_Entity
6196 (N
: Node_Id
; Val
: Node_Id
) is
6198 pragma Assert
(False
6199 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6200 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6201 Set_Node5
(N
, Val
); -- semantic field, no parent set
6202 end Set_Return_Statement_Entity
;
6204 procedure Set_Reverse_Present
6205 (N
: Node_Id
; Val
: Boolean := True) is
6207 pragma Assert
(False
6208 or else NT
(N
).Nkind
= N_Iterator_Specification
6209 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
6210 Set_Flag15
(N
, Val
);
6211 end Set_Reverse_Present
;
6213 procedure Set_Right_Opnd
6214 (N
: Node_Id
; Val
: Node_Id
) is
6216 pragma Assert
(False
6217 or else NT
(N
).Nkind
in N_Op
6218 or else NT
(N
).Nkind
= N_And_Then
6219 or else NT
(N
).Nkind
= N_In
6220 or else NT
(N
).Nkind
= N_Not_In
6221 or else NT
(N
).Nkind
= N_Or_Else
);
6222 Set_Node3_With_Parent
(N
, Val
);
6225 procedure Set_Rounded_Result
6226 (N
: Node_Id
; Val
: Boolean := True) is
6228 pragma Assert
(False
6229 or else NT
(N
).Nkind
= N_Op_Divide
6230 or else NT
(N
).Nkind
= N_Op_Multiply
6231 or else NT
(N
).Nkind
= N_Type_Conversion
);
6232 Set_Flag18
(N
, Val
);
6233 end Set_Rounded_Result
;
6235 procedure Set_SCIL_Controlling_Tag
6236 (N
: Node_Id
; Val
: Node_Id
) is
6238 pragma Assert
(False
6239 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
6240 Set_Node5
(N
, Val
); -- semantic field, no parent set
6241 end Set_SCIL_Controlling_Tag
;
6243 procedure Set_SCIL_Entity
6244 (N
: Node_Id
; Val
: Node_Id
) is
6246 pragma Assert
(False
6247 or else NT
(N
).Nkind
= N_SCIL_Dispatch_Table_Tag_Init
6248 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
6249 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
6250 Set_Node4
(N
, Val
); -- semantic field, no parent set
6251 end Set_SCIL_Entity
;
6253 procedure Set_SCIL_Tag_Value
6254 (N
: Node_Id
; Val
: Node_Id
) is
6256 pragma Assert
(False
6257 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
6258 Set_Node5
(N
, Val
); -- semantic field, no parent set
6259 end Set_SCIL_Tag_Value
;
6261 procedure Set_SCIL_Target_Prim
6262 (N
: Node_Id
; Val
: Node_Id
) is
6264 pragma Assert
(False
6265 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
6266 Set_Node2
(N
, Val
); -- semantic field, no parent set
6267 end Set_SCIL_Target_Prim
;
6270 (N
: Node_Id
; Val
: Node_Id
) is
6272 pragma Assert
(False
6273 or else NT
(N
).Nkind
= N_Defining_Character_Literal
6274 or else NT
(N
).Nkind
= N_Defining_Identifier
6275 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
6276 Set_Node3
(N
, Val
); -- semantic field, no parent set
6279 procedure Set_Select_Alternatives
6280 (N
: Node_Id
; Val
: List_Id
) is
6282 pragma Assert
(False
6283 or else NT
(N
).Nkind
= N_Selective_Accept
);
6284 Set_List1_With_Parent
(N
, Val
);
6285 end Set_Select_Alternatives
;
6287 procedure Set_Selector_Name
6288 (N
: Node_Id
; Val
: Node_Id
) is
6290 pragma Assert
(False
6291 or else NT
(N
).Nkind
= N_Expanded_Name
6292 or else NT
(N
).Nkind
= N_Generic_Association
6293 or else NT
(N
).Nkind
= N_Parameter_Association
6294 or else NT
(N
).Nkind
= N_Selected_Component
);
6295 Set_Node2_With_Parent
(N
, Val
);
6296 end Set_Selector_Name
;
6298 procedure Set_Selector_Names
6299 (N
: Node_Id
; Val
: List_Id
) is
6301 pragma Assert
(False
6302 or else NT
(N
).Nkind
= N_Discriminant_Association
);
6303 Set_List1_With_Parent
(N
, Val
);
6304 end Set_Selector_Names
;
6306 procedure Set_Shift_Count_OK
6307 (N
: Node_Id
; Val
: Boolean := True) is
6309 pragma Assert
(False
6310 or else NT
(N
).Nkind
= N_Op_Rotate_Left
6311 or else NT
(N
).Nkind
= N_Op_Rotate_Right
6312 or else NT
(N
).Nkind
= N_Op_Shift_Left
6313 or else NT
(N
).Nkind
= N_Op_Shift_Right
6314 or else NT
(N
).Nkind
= N_Op_Shift_Right_Arithmetic
);
6316 end Set_Shift_Count_OK
;
6318 procedure Set_Source_Type
6319 (N
: Node_Id
; Val
: Entity_Id
) is
6321 pragma Assert
(False
6322 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
6323 Set_Node1
(N
, Val
); -- semantic field, no parent set
6324 end Set_Source_Type
;
6326 procedure Set_Specification
6327 (N
: Node_Id
; Val
: Node_Id
) is
6329 pragma Assert
(False
6330 or else NT
(N
).Nkind
= N_Abstract_Subprogram_Declaration
6331 or else NT
(N
).Nkind
= N_Expression_Function
6332 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
6333 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
6334 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
6335 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
6336 or else NT
(N
).Nkind
= N_Package_Declaration
6337 or else NT
(N
).Nkind
= N_Subprogram_Body
6338 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
6339 or else NT
(N
).Nkind
= N_Subprogram_Declaration
6340 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
6341 Set_Node1_With_Parent
(N
, Val
);
6342 end Set_Specification
;
6344 procedure Set_Split_PPC
6345 (N
: Node_Id
; Val
: Boolean) is
6347 pragma Assert
(False
6348 or else NT
(N
).Nkind
= N_Aspect_Specification
6349 or else NT
(N
).Nkind
= N_Pragma
);
6350 Set_Flag17
(N
, Val
);
6353 procedure Set_Statements
6354 (N
: Node_Id
; Val
: List_Id
) is
6356 pragma Assert
(False
6357 or else NT
(N
).Nkind
= N_Abortable_Part
6358 or else NT
(N
).Nkind
= N_Accept_Alternative
6359 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
6360 or else NT
(N
).Nkind
= N_Delay_Alternative
6361 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
6362 or else NT
(N
).Nkind
= N_Exception_Handler
6363 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
6364 or else NT
(N
).Nkind
= N_Loop_Statement
6365 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
6366 Set_List3_With_Parent
(N
, Val
);
6369 procedure Set_Storage_Pool
6370 (N
: Node_Id
; Val
: Node_Id
) is
6372 pragma Assert
(False
6373 or else NT
(N
).Nkind
= N_Allocator
6374 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6375 or else NT
(N
).Nkind
= N_Free_Statement
6376 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6377 Set_Node1
(N
, Val
); -- semantic field, no parent set
6378 end Set_Storage_Pool
;
6380 procedure Set_Subpool_Handle_Name
6381 (N
: Node_Id
; Val
: Node_Id
) is
6383 pragma Assert
(False
6384 or else NT
(N
).Nkind
= N_Allocator
);
6385 Set_Node4_With_Parent
(N
, Val
);
6386 end Set_Subpool_Handle_Name
;
6388 procedure Set_Strval
6389 (N
: Node_Id
; Val
: String_Id
) is
6391 pragma Assert
(False
6392 or else NT
(N
).Nkind
= N_Operator_Symbol
6393 or else NT
(N
).Nkind
= N_String_Literal
);
6397 procedure Set_Subtype_Indication
6398 (N
: Node_Id
; Val
: Node_Id
) is
6400 pragma Assert
(False
6401 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
6402 or else NT
(N
).Nkind
= N_Component_Definition
6403 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6404 or else NT
(N
).Nkind
= N_Iterator_Specification
6405 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6406 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
6407 Set_Node5_With_Parent
(N
, Val
);
6408 end Set_Subtype_Indication
;
6410 procedure Set_Subtype_Mark
6411 (N
: Node_Id
; Val
: Node_Id
) is
6413 pragma Assert
(False
6414 or else NT
(N
).Nkind
= N_Access_Definition
6415 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
6416 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
6417 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
6418 or else NT
(N
).Nkind
= N_Qualified_Expression
6419 or else NT
(N
).Nkind
= N_Subtype_Indication
6420 or else NT
(N
).Nkind
= N_Type_Conversion
6421 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
6422 Set_Node4_With_Parent
(N
, Val
);
6423 end Set_Subtype_Mark
;
6425 procedure Set_Subtype_Marks
6426 (N
: Node_Id
; Val
: List_Id
) is
6428 pragma Assert
(False
6429 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
6430 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
6431 Set_List2_With_Parent
(N
, Val
);
6432 end Set_Subtype_Marks
;
6434 procedure Set_Suppress_Assignment_Checks
6435 (N
: Node_Id
; Val
: Boolean := True) is
6437 pragma Assert
(False
6438 or else NT
(N
).Nkind
= N_Assignment_Statement
6439 or else NT
(N
).Nkind
= N_Object_Declaration
);
6440 Set_Flag18
(N
, Val
);
6441 end Set_Suppress_Assignment_Checks
;
6443 procedure Set_Suppress_Loop_Warnings
6444 (N
: Node_Id
; Val
: Boolean := True) is
6446 pragma Assert
(False
6447 or else NT
(N
).Nkind
= N_Loop_Statement
);
6448 Set_Flag17
(N
, Val
);
6449 end Set_Suppress_Loop_Warnings
;
6451 procedure Set_Synchronized_Present
6452 (N
: Node_Id
; Val
: Boolean := True) is
6454 pragma Assert
(False
6455 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6456 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
6457 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6458 or else NT
(N
).Nkind
= N_Record_Definition
);
6460 end Set_Synchronized_Present
;
6462 procedure Set_Tagged_Present
6463 (N
: Node_Id
; Val
: Boolean := True) is
6465 pragma Assert
(False
6466 or else NT
(N
).Nkind
= N_Formal_Incomplete_Type_Definition
6467 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
6468 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
6469 or else NT
(N
).Nkind
= N_Private_Type_Declaration
6470 or else NT
(N
).Nkind
= N_Record_Definition
);
6471 Set_Flag15
(N
, Val
);
6472 end Set_Tagged_Present
;
6474 procedure Set_Target_Type
6475 (N
: Node_Id
; Val
: Entity_Id
) is
6477 pragma Assert
(False
6478 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
6479 Set_Node2
(N
, Val
); -- semantic field, no parent set
6480 end Set_Target_Type
;
6482 procedure Set_Task_Definition
6483 (N
: Node_Id
; Val
: Node_Id
) is
6485 pragma Assert
(False
6486 or else NT
(N
).Nkind
= N_Single_Task_Declaration
6487 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
6488 Set_Node3_With_Parent
(N
, Val
);
6489 end Set_Task_Definition
;
6491 procedure Set_Task_Present
6492 (N
: Node_Id
; Val
: Boolean := True) is
6494 pragma Assert
(False
6495 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6496 or else NT
(N
).Nkind
= N_Record_Definition
);
6498 end Set_Task_Present
;
6500 procedure Set_Then_Actions
6501 (N
: Node_Id
; Val
: List_Id
) is
6503 pragma Assert
(False
6504 or else NT
(N
).Nkind
= N_If_Expression
);
6505 Set_List2_With_Parent
(N
, Val
); -- semantic field, but needs parents
6506 end Set_Then_Actions
;
6508 procedure Set_Then_Statements
6509 (N
: Node_Id
; Val
: List_Id
) is
6511 pragma Assert
(False
6512 or else NT
(N
).Nkind
= N_Elsif_Part
6513 or else NT
(N
).Nkind
= N_If_Statement
);
6514 Set_List2_With_Parent
(N
, Val
);
6515 end Set_Then_Statements
;
6517 procedure Set_Treat_Fixed_As_Integer
6518 (N
: Node_Id
; Val
: Boolean := True) is
6520 pragma Assert
(False
6521 or else NT
(N
).Nkind
= N_Op_Divide
6522 or else NT
(N
).Nkind
= N_Op_Mod
6523 or else NT
(N
).Nkind
= N_Op_Multiply
6524 or else NT
(N
).Nkind
= N_Op_Rem
);
6525 Set_Flag14
(N
, Val
);
6526 end Set_Treat_Fixed_As_Integer
;
6528 procedure Set_Triggering_Alternative
6529 (N
: Node_Id
; Val
: Node_Id
) is
6531 pragma Assert
(False
6532 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
6533 Set_Node1_With_Parent
(N
, Val
);
6534 end Set_Triggering_Alternative
;
6536 procedure Set_Triggering_Statement
6537 (N
: Node_Id
; Val
: Node_Id
) is
6539 pragma Assert
(False
6540 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
6541 Set_Node1_With_Parent
(N
, Val
);
6542 end Set_Triggering_Statement
;
6544 procedure Set_TSS_Elist
6545 (N
: Node_Id
; Val
: Elist_Id
) is
6547 pragma Assert
(False
6548 or else NT
(N
).Nkind
= N_Freeze_Entity
);
6549 Set_Elist3
(N
, Val
); -- semantic field, no parent set
6552 procedure Set_Uneval_Old_Accept
6553 (N
: Node_Id
; Val
: Boolean := True) is
6555 pragma Assert
(False
6556 or else NT
(N
).Nkind
= N_Pragma
);
6558 end Set_Uneval_Old_Accept
;
6560 procedure Set_Uneval_Old_Warn
6561 (N
: Node_Id
; Val
: Boolean := True) is
6563 pragma Assert
(False
6564 or else NT
(N
).Nkind
= N_Pragma
);
6565 Set_Flag18
(N
, Val
);
6566 end Set_Uneval_Old_Warn
;
6568 procedure Set_Type_Definition
6569 (N
: Node_Id
; Val
: Node_Id
) is
6571 pragma Assert
(False
6572 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
6573 Set_Node3_With_Parent
(N
, Val
);
6574 end Set_Type_Definition
;
6577 (N
: Node_Id
; Val
: Node_Id
) is
6579 pragma Assert
(False
6580 or else NT
(N
).Nkind
= N_Compilation_Unit
);
6581 Set_Node2_With_Parent
(N
, Val
);
6584 procedure Set_Unknown_Discriminants_Present
6585 (N
: Node_Id
; Val
: Boolean := True) is
6587 pragma Assert
(False
6588 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
6589 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
6590 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6591 or else NT
(N
).Nkind
= N_Private_Type_Declaration
);
6592 Set_Flag13
(N
, Val
);
6593 end Set_Unknown_Discriminants_Present
;
6595 procedure Set_Unreferenced_In_Spec
6596 (N
: Node_Id
; Val
: Boolean := True) is
6598 pragma Assert
(False
6599 or else NT
(N
).Nkind
= N_With_Clause
);
6601 end Set_Unreferenced_In_Spec
;
6603 procedure Set_Variant_Part
6604 (N
: Node_Id
; Val
: Node_Id
) is
6606 pragma Assert
(False
6607 or else NT
(N
).Nkind
= N_Component_List
);
6608 Set_Node4_With_Parent
(N
, Val
);
6609 end Set_Variant_Part
;
6611 procedure Set_Variants
6612 (N
: Node_Id
; Val
: List_Id
) is
6614 pragma Assert
(False
6615 or else NT
(N
).Nkind
= N_Variant_Part
);
6616 Set_List1_With_Parent
(N
, Val
);
6619 procedure Set_Visible_Declarations
6620 (N
: Node_Id
; Val
: List_Id
) is
6622 pragma Assert
(False
6623 or else NT
(N
).Nkind
= N_Package_Specification
6624 or else NT
(N
).Nkind
= N_Protected_Definition
6625 or else NT
(N
).Nkind
= N_Task_Definition
);
6626 Set_List2_With_Parent
(N
, Val
);
6627 end Set_Visible_Declarations
;
6629 procedure Set_Uninitialized_Variable
6630 (N
: Node_Id
; Val
: Node_Id
) is
6632 pragma Assert
(False
6633 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
6634 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
);
6636 end Set_Uninitialized_Variable
;
6638 procedure Set_Used_Operations
6639 (N
: Node_Id
; Val
: Elist_Id
) is
6641 pragma Assert
(False
6642 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
6643 Set_Elist5
(N
, Val
);
6644 end Set_Used_Operations
;
6646 procedure Set_Was_Expression_Function
6647 (N
: Node_Id
; Val
: Boolean := True) is
6649 pragma Assert
(False
6650 or else NT
(N
).Nkind
= N_Subprogram_Body
);
6651 Set_Flag18
(N
, Val
);
6652 end Set_Was_Expression_Function
;
6654 procedure Set_Was_Originally_Stub
6655 (N
: Node_Id
; Val
: Boolean := True) is
6657 pragma Assert
(False
6658 or else NT
(N
).Nkind
= N_Package_Body
6659 or else NT
(N
).Nkind
= N_Protected_Body
6660 or else NT
(N
).Nkind
= N_Subprogram_Body
6661 or else NT
(N
).Nkind
= N_Task_Body
);
6662 Set_Flag13
(N
, Val
);
6663 end Set_Was_Originally_Stub
;
6665 procedure Set_Withed_Body
6666 (N
: Node_Id
; Val
: Node_Id
) is
6668 pragma Assert
(False
6669 or else NT
(N
).Nkind
= N_With_Clause
);
6671 end Set_Withed_Body
;
6673 -------------------------
6674 -- Iterator Procedures --
6675 -------------------------
6677 procedure Next_Entity
(N
: in out Node_Id
) is
6679 N
:= Next_Entity
(N
);
6682 procedure Next_Named_Actual
(N
: in out Node_Id
) is
6684 N
:= Next_Named_Actual
(N
);
6685 end Next_Named_Actual
;
6687 procedure Next_Rep_Item
(N
: in out Node_Id
) is
6689 N
:= Next_Rep_Item
(N
);
6692 procedure Next_Use_Clause
(N
: in out Node_Id
) is
6694 N
:= Next_Use_Clause
(N
);
6695 end Next_Use_Clause
;
6701 function End_Location
(N
: Node_Id
) return Source_Ptr
is
6702 L
: constant Uint
:= End_Span
(N
);
6707 return Source_Ptr
(Int
(Sloc
(N
)) + UI_To_Int
(L
));
6711 --------------------
6712 -- Get_Pragma_Arg --
6713 --------------------
6715 function Get_Pragma_Arg
(Arg
: Node_Id
) return Node_Id
is
6717 if Nkind
(Arg
) = N_Pragma_Argument_Association
then
6718 return Expression
(Arg
);
6724 ----------------------
6725 -- Set_End_Location --
6726 ----------------------
6728 procedure Set_End_Location
(N
: Node_Id
; S
: Source_Ptr
) is
6731 UI_From_Int
(Int
(S
) - Int
(Sloc
(N
))));
6732 end Set_End_Location
;
6741 V2
: Node_Kind
) return Boolean
6744 return T
= V1
or else
6752 V3
: Node_Kind
) return Boolean
6755 return T
= V1
or else
6765 V4
: Node_Kind
) return Boolean
6768 return T
= V1
or else
6780 V5
: Node_Kind
) return Boolean
6783 return T
= V1
or else
6797 V6
: Node_Kind
) return Boolean
6800 return T
= V1
or else
6816 V7
: Node_Kind
) return Boolean
6819 return T
= V1
or else
6837 V8
: Node_Kind
) return Boolean
6840 return T
= V1
or else
6860 V9
: Node_Kind
) return Boolean
6863 return T
= V1
or else
6878 function Pragma_Name_Unmapped
(N
: Node_Id
) return Name_Id
is
6880 return Chars
(Pragma_Identifier
(N
));
6881 end Pragma_Name_Unmapped
;
6883 ---------------------
6884 -- Map_Pragma_Name --
6885 ---------------------
6887 -- We don't want to introduce a dependence on some hash table package or
6888 -- similar, so we use a simple array of Key => Value pairs, and do a linear
6889 -- search. Linear search is plenty efficient, given that we don't expect
6890 -- more than a couple of entries in the mapping.
6892 type Name_Pair
is record
6897 type Pragma_Map_Index
is range 1 .. 100;
6898 Pragma_Map
: array (Pragma_Map_Index
) of Name_Pair
;
6899 Last_Pair
: Pragma_Map_Index
'Base range 0 .. Pragma_Map_Index
'Last := 0;
6901 procedure Map_Pragma_Name
(From
, To
: Name_Id
) is
6903 if Last_Pair
= Pragma_Map
'Last then
6904 raise Too_Many_Pragma_Mappings
;
6907 Last_Pair
:= Last_Pair
+ 1;
6908 Pragma_Map
(Last_Pair
) := (Key
=> From
, Value
=> To
);
6909 end Map_Pragma_Name
;
6915 function Pragma_Name
(N
: Node_Id
) return Name_Id
is
6916 Result
: constant Name_Id
:= Pragma_Name_Unmapped
(N
);
6918 for J
in Pragma_Map
'First .. Last_Pair
loop
6919 if Result
= Pragma_Map
(J
).Key
then
6920 return Pragma_Map
(J
).Value
;