1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2010, 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 function ABE_Is_Certain
61 (N : Node_Id) return Boolean is
64 or else NT (N).Nkind = N_Formal_Package_Declaration
65 or else NT (N).Nkind = N_Function_Call
66 or else NT (N).Nkind = N_Function_Instantiation
67 or else NT (N).Nkind = N_Package_Instantiation
68 or else NT (N).Nkind = N_Procedure_Call_Statement
69 or else NT (N).Nkind = N_Procedure_Instantiation);
73 function Abort_Present
74 (N : Node_Id) return Boolean is
77 or else NT (N).Nkind = N_Requeue_Statement);
81 function Abortable_Part
82 (N : Node_Id) return Node_Id is
85 or else NT (N).Nkind = N_Asynchronous_Select);
89 function Abstract_Present
90 (N : Node_Id) return Boolean is
93 or else NT (N).Nkind = N_Derived_Type_Definition
94 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
95 or else NT (N).Nkind = N_Formal_Private_Type_Definition
96 or else NT (N).Nkind = N_Private_Extension_Declaration
97 or else NT (N).Nkind = N_Private_Type_Declaration
98 or else NT (N).Nkind = N_Record_Definition);
100 end Abstract_Present;
102 function Accept_Handler_Records
103 (N : Node_Id) return List_Id is
106 or else NT (N).Nkind = N_Accept_Alternative);
108 end Accept_Handler_Records;
110 function Accept_Statement
111 (N : Node_Id) return Node_Id is
114 or else NT (N).Nkind = N_Accept_Alternative);
116 end Accept_Statement;
118 function Access_Definition
119 (N : Node_Id) return Node_Id is
122 or else NT (N).Nkind = N_Component_Definition
123 or else NT (N).Nkind = N_Formal_Object_Declaration
124 or else NT (N).Nkind = N_Object_Renaming_Declaration);
126 end Access_Definition;
128 function Access_To_Subprogram_Definition
129 (N : Node_Id) return Node_Id is
132 or else NT (N).Nkind = N_Access_Definition);
134 end Access_To_Subprogram_Definition;
136 function Access_Types_To_Process
137 (N : Node_Id) return Elist_Id is
140 or else NT (N).Nkind = N_Freeze_Entity);
142 end Access_Types_To_Process;
145 (N : Node_Id) return List_Id is
148 or else NT (N).Nkind = N_And_Then
149 or else NT (N).Nkind = N_Case_Expression_Alternative
150 or else NT (N).Nkind = N_Compilation_Unit_Aux
151 or else NT (N).Nkind = N_Expression_With_Actions
152 or else NT (N).Nkind = N_Freeze_Entity
153 or else NT (N).Nkind = N_Or_Else);
157 function Activation_Chain_Entity
158 (N : Node_Id) return Node_Id is
161 or else NT (N).Nkind = N_Block_Statement
162 or else NT (N).Nkind = N_Entry_Body
163 or else NT (N).Nkind = N_Generic_Package_Declaration
164 or else NT (N).Nkind = N_Package_Declaration
165 or else NT (N).Nkind = N_Subprogram_Body
166 or else NT (N).Nkind = N_Task_Body);
168 end Activation_Chain_Entity;
170 function Acts_As_Spec
171 (N : Node_Id) return Boolean is
174 or else NT (N).Nkind = N_Compilation_Unit
175 or else NT (N).Nkind = N_Subprogram_Body);
179 function Actual_Designated_Subtype
180 (N : Node_Id) return Node_Id is
183 or else NT (N).Nkind = N_Explicit_Dereference
184 or else NT (N).Nkind = N_Free_Statement);
186 end Actual_Designated_Subtype;
188 function Address_Warning_Posted
189 (N : Node_Id) return Boolean is
192 or else NT (N).Nkind = N_Attribute_Definition_Clause);
194 end Address_Warning_Posted;
196 function Aggregate_Bounds
197 (N : Node_Id) return Node_Id is
200 or else NT (N).Nkind = N_Aggregate);
202 end Aggregate_Bounds;
204 function Aliased_Present
205 (N : Node_Id) return Boolean is
208 or else NT (N).Nkind = N_Component_Definition
209 or else NT (N).Nkind = N_Object_Declaration);
214 (N : Node_Id) return Boolean is
217 or else NT (N).Nkind = N_Others_Choice);
222 (N : Node_Id) return Boolean is
225 or else NT (N).Nkind = N_Access_Definition
226 or else NT (N).Nkind = N_Access_To_Object_Definition
227 or else NT (N).Nkind = N_Use_Type_Clause);
231 function Alternatives
232 (N : Node_Id) return List_Id is
235 or else NT (N).Nkind = N_Case_Expression
236 or else NT (N).Nkind = N_Case_Statement
237 or else NT (N).Nkind = N_In
238 or else NT (N).Nkind = N_Not_In);
242 function Ancestor_Part
243 (N : Node_Id) return Node_Id is
246 or else NT (N).Nkind = N_Extension_Aggregate);
250 function Array_Aggregate
251 (N : Node_Id) return Node_Id is
254 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
258 function Assignment_OK
259 (N : Node_Id) return Boolean is
262 or else NT (N).Nkind = N_Object_Declaration
263 or else NT (N).Nkind in N_Subexpr);
267 function Associated_Node
268 (N : Node_Id) return Node_Id is
271 or else NT (N).Nkind in N_Has_Entity
272 or else NT (N).Nkind = N_Aggregate
273 or else NT (N).Nkind = N_Extension_Aggregate
274 or else NT (N).Nkind = N_Selected_Component);
279 (N : Node_Id) return Node_Id is
282 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
286 function Attribute_Name
287 (N : Node_Id) return Name_Id is
290 or else NT (N).Nkind = N_Attribute_Reference);
294 function Aux_Decls_Node
295 (N : Node_Id) return Node_Id is
298 or else NT (N).Nkind = N_Compilation_Unit);
302 function Backwards_OK
303 (N : Node_Id) return Boolean is
306 or else NT (N).Nkind = N_Assignment_Statement);
310 function Bad_Is_Detected
311 (N : Node_Id) return Boolean is
314 or else NT (N).Nkind = N_Subprogram_Body);
318 function Body_Required
319 (N : Node_Id) return Boolean is
322 or else NT (N).Nkind = N_Compilation_Unit);
326 function Body_To_Inline
327 (N : Node_Id) return Node_Id is
330 or else NT (N).Nkind = N_Subprogram_Declaration);
335 (N : Node_Id) return Boolean is
338 or else NT (N).Nkind = N_Component_Association
339 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
340 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
341 or else NT (N).Nkind = N_Formal_Package_Declaration
342 or else NT (N).Nkind = N_Generic_Association);
347 (N : Node_Id) return Boolean is
350 or else NT (N).Nkind = N_Extended_Return_Statement
351 or else NT (N).Nkind = N_Return_Statement);
355 function Char_Literal_Value
356 (N : Node_Id) return Uint is
359 or else NT (N).Nkind = N_Character_Literal);
361 end Char_Literal_Value;
364 (N : Node_Id) return Name_Id is
367 or else NT (N).Nkind in N_Has_Chars);
371 function Check_Address_Alignment
372 (N : Node_Id) return Boolean is
375 or else NT (N).Nkind = N_Attribute_Definition_Clause);
377 end Check_Address_Alignment;
379 function Choice_Parameter
380 (N : Node_Id) return Node_Id is
383 or else NT (N).Nkind = N_Exception_Handler);
385 end Choice_Parameter;
388 (N : Node_Id) return List_Id is
391 or else NT (N).Nkind = N_Component_Association);
395 function Coextensions
396 (N : Node_Id) return Elist_Id is
399 or else NT (N).Nkind = N_Allocator);
403 function Comes_From_Extended_Return_Statement
404 (N : Node_Id) return Boolean is
407 or else NT (N).Nkind = N_Return_Statement);
409 end Comes_From_Extended_Return_Statement;
411 function Compile_Time_Known_Aggregate
412 (N : Node_Id) return Boolean is
415 or else NT (N).Nkind = N_Aggregate);
417 end Compile_Time_Known_Aggregate;
419 function Component_Associations
420 (N : Node_Id) return List_Id is
423 or else NT (N).Nkind = N_Aggregate
424 or else NT (N).Nkind = N_Extension_Aggregate);
426 end Component_Associations;
428 function Component_Clauses
429 (N : Node_Id) return List_Id is
432 or else NT (N).Nkind = N_Record_Representation_Clause);
434 end Component_Clauses;
436 function Component_Definition
437 (N : Node_Id) return Node_Id is
440 or else NT (N).Nkind = N_Component_Declaration
441 or else NT (N).Nkind = N_Constrained_Array_Definition
442 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
444 end Component_Definition;
446 function Component_Items
447 (N : Node_Id) return List_Id is
450 or else NT (N).Nkind = N_Component_List);
454 function Component_List
455 (N : Node_Id) return Node_Id is
458 or else NT (N).Nkind = N_Record_Definition
459 or else NT (N).Nkind = N_Variant);
463 function Component_Name
464 (N : Node_Id) return Node_Id is
467 or else NT (N).Nkind = N_Component_Clause);
471 function Componentwise_Assignment
472 (N : Node_Id) return Boolean is
475 or else NT (N).Nkind = N_Assignment_Statement);
477 end Componentwise_Assignment;
480 (N : Node_Id) return Node_Id is
483 or else NT (N).Nkind = N_Accept_Alternative
484 or else NT (N).Nkind = N_Delay_Alternative
485 or else NT (N).Nkind = N_Elsif_Part
486 or else NT (N).Nkind = N_Entry_Body_Formal_Part
487 or else NT (N).Nkind = N_Exit_Statement
488 or else NT (N).Nkind = N_If_Statement
489 or else NT (N).Nkind = N_Iteration_Scheme
490 or else NT (N).Nkind = N_Raise_Constraint_Error
491 or else NT (N).Nkind = N_Raise_Program_Error
492 or else NT (N).Nkind = N_Raise_Storage_Error
493 or else NT (N).Nkind = N_Terminate_Alternative);
497 function Condition_Actions
498 (N : Node_Id) return List_Id is
501 or else NT (N).Nkind = N_Elsif_Part
502 or else NT (N).Nkind = N_Iteration_Scheme);
504 end Condition_Actions;
506 function Config_Pragmas
507 (N : Node_Id) return List_Id is
510 or else NT (N).Nkind = N_Compilation_Unit_Aux);
514 function Constant_Present
515 (N : Node_Id) return Boolean is
518 or else NT (N).Nkind = N_Access_Definition
519 or else NT (N).Nkind = N_Access_To_Object_Definition
520 or else NT (N).Nkind = N_Object_Declaration);
522 end Constant_Present;
525 (N : Node_Id) return Node_Id is
528 or else NT (N).Nkind = N_Subtype_Indication);
533 (N : Node_Id) return List_Id is
536 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
540 function Context_Installed
541 (N : Node_Id) return Boolean is
544 or else NT (N).Nkind = N_With_Clause);
546 end Context_Installed;
548 function Context_Items
549 (N : Node_Id) return List_Id is
552 or else NT (N).Nkind = N_Compilation_Unit);
556 function Context_Pending
557 (N : Node_Id) return Boolean is
560 or else NT (N).Nkind = N_Compilation_Unit);
564 function Controlling_Argument
565 (N : Node_Id) return Node_Id is
568 or else NT (N).Nkind = N_Function_Call
569 or else NT (N).Nkind = N_Procedure_Call_Statement);
571 end Controlling_Argument;
573 function Conversion_OK
574 (N : Node_Id) return Boolean is
577 or else NT (N).Nkind = N_Type_Conversion);
581 function Corresponding_Body
582 (N : Node_Id) return Node_Id is
585 or else NT (N).Nkind = N_Entry_Declaration
586 or else NT (N).Nkind = N_Generic_Package_Declaration
587 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
588 or else NT (N).Nkind = N_Package_Body_Stub
589 or else NT (N).Nkind = N_Package_Declaration
590 or else NT (N).Nkind = N_Protected_Body_Stub
591 or else NT (N).Nkind = N_Protected_Type_Declaration
592 or else NT (N).Nkind = N_Subprogram_Body_Stub
593 or else NT (N).Nkind = N_Subprogram_Declaration
594 or else NT (N).Nkind = N_Task_Body_Stub
595 or else NT (N).Nkind = N_Task_Type_Declaration);
597 end Corresponding_Body;
599 function Corresponding_Formal_Spec
600 (N : Node_Id) return Node_Id is
603 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
605 end Corresponding_Formal_Spec;
607 function Corresponding_Generic_Association
608 (N : Node_Id) return Node_Id is
611 or else NT (N).Nkind = N_Object_Declaration
612 or else NT (N).Nkind = N_Object_Renaming_Declaration);
614 end Corresponding_Generic_Association;
616 function Corresponding_Integer_Value
617 (N : Node_Id) return Uint is
620 or else NT (N).Nkind = N_Real_Literal);
622 end Corresponding_Integer_Value;
624 function Corresponding_Spec
625 (N : Node_Id) return Node_Id is
628 or else NT (N).Nkind = N_Package_Body
629 or else NT (N).Nkind = N_Protected_Body
630 or else NT (N).Nkind = N_Subprogram_Body
631 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
632 or else NT (N).Nkind = N_Task_Body
633 or else NT (N).Nkind = N_With_Clause);
635 end Corresponding_Spec;
637 function Corresponding_Stub
638 (N : Node_Id) return Node_Id is
641 or else NT (N).Nkind = N_Subunit);
643 end Corresponding_Stub;
645 function Dcheck_Function
646 (N : Node_Id) return Entity_Id is
649 or else NT (N).Nkind = N_Variant);
653 function Debug_Statement
654 (N : Node_Id) return Node_Id is
657 or else NT (N).Nkind = N_Pragma);
661 function Declarations
662 (N : Node_Id) return List_Id is
665 or else NT (N).Nkind = N_Accept_Statement
666 or else NT (N).Nkind = N_Block_Statement
667 or else NT (N).Nkind = N_Compilation_Unit_Aux
668 or else NT (N).Nkind = N_Entry_Body
669 or else NT (N).Nkind = N_Package_Body
670 or else NT (N).Nkind = N_Protected_Body
671 or else NT (N).Nkind = N_Subprogram_Body
672 or else NT (N).Nkind = N_Task_Body);
676 function Default_Expression
677 (N : Node_Id) return Node_Id is
680 or else NT (N).Nkind = N_Formal_Object_Declaration
681 or else NT (N).Nkind = N_Parameter_Specification);
683 end Default_Expression;
685 function Default_Name
686 (N : Node_Id) return Node_Id is
689 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
690 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
694 function Defining_Identifier
695 (N : Node_Id) return Entity_Id is
698 or else NT (N).Nkind = N_Component_Declaration
699 or else NT (N).Nkind = N_Defining_Program_Unit_Name
700 or else NT (N).Nkind = N_Discriminant_Specification
701 or else NT (N).Nkind = N_Entry_Body
702 or else NT (N).Nkind = N_Entry_Declaration
703 or else NT (N).Nkind = N_Entry_Index_Specification
704 or else NT (N).Nkind = N_Exception_Declaration
705 or else NT (N).Nkind = N_Exception_Renaming_Declaration
706 or else NT (N).Nkind = N_Formal_Object_Declaration
707 or else NT (N).Nkind = N_Formal_Package_Declaration
708 or else NT (N).Nkind = N_Formal_Type_Declaration
709 or else NT (N).Nkind = N_Full_Type_Declaration
710 or else NT (N).Nkind = N_Implicit_Label_Declaration
711 or else NT (N).Nkind = N_Incomplete_Type_Declaration
712 or else NT (N).Nkind = N_Loop_Parameter_Specification
713 or else NT (N).Nkind = N_Number_Declaration
714 or else NT (N).Nkind = N_Object_Declaration
715 or else NT (N).Nkind = N_Object_Renaming_Declaration
716 or else NT (N).Nkind = N_Package_Body_Stub
717 or else NT (N).Nkind = N_Parameter_Specification
718 or else NT (N).Nkind = N_Private_Extension_Declaration
719 or else NT (N).Nkind = N_Private_Type_Declaration
720 or else NT (N).Nkind = N_Protected_Body
721 or else NT (N).Nkind = N_Protected_Body_Stub
722 or else NT (N).Nkind = N_Protected_Type_Declaration
723 or else NT (N).Nkind = N_Single_Protected_Declaration
724 or else NT (N).Nkind = N_Single_Task_Declaration
725 or else NT (N).Nkind = N_Subtype_Declaration
726 or else NT (N).Nkind = N_Task_Body
727 or else NT (N).Nkind = N_Task_Body_Stub
728 or else NT (N).Nkind = N_Task_Type_Declaration);
730 end Defining_Identifier;
732 function Defining_Unit_Name
733 (N : Node_Id) return Node_Id is
736 or else NT (N).Nkind = N_Function_Instantiation
737 or else NT (N).Nkind = N_Function_Specification
738 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
739 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
740 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
741 or else NT (N).Nkind = N_Package_Body
742 or else NT (N).Nkind = N_Package_Instantiation
743 or else NT (N).Nkind = N_Package_Renaming_Declaration
744 or else NT (N).Nkind = N_Package_Specification
745 or else NT (N).Nkind = N_Procedure_Instantiation
746 or else NT (N).Nkind = N_Procedure_Specification);
748 end Defining_Unit_Name;
750 function Delay_Alternative
751 (N : Node_Id) return Node_Id is
754 or else NT (N).Nkind = N_Timed_Entry_Call);
756 end Delay_Alternative;
758 function Delay_Statement
759 (N : Node_Id) return Node_Id is
762 or else NT (N).Nkind = N_Delay_Alternative);
766 function Delta_Expression
767 (N : Node_Id) return Node_Id is
770 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
771 or else NT (N).Nkind = N_Delta_Constraint
772 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
774 end Delta_Expression;
776 function Digits_Expression
777 (N : Node_Id) return Node_Id is
780 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
781 or else NT (N).Nkind = N_Digits_Constraint
782 or else NT (N).Nkind = N_Floating_Point_Definition);
784 end Digits_Expression;
786 function Discr_Check_Funcs_Built
787 (N : Node_Id) return Boolean is
790 or else NT (N).Nkind = N_Full_Type_Declaration);
792 end Discr_Check_Funcs_Built;
794 function Discrete_Choices
795 (N : Node_Id) return List_Id is
798 or else NT (N).Nkind = N_Case_Expression_Alternative
799 or else NT (N).Nkind = N_Case_Statement_Alternative
800 or else NT (N).Nkind = N_Variant);
802 end Discrete_Choices;
804 function Discrete_Range
805 (N : Node_Id) return Node_Id is
808 or else NT (N).Nkind = N_Slice);
812 function Discrete_Subtype_Definition
813 (N : Node_Id) return Node_Id is
816 or else NT (N).Nkind = N_Entry_Declaration
817 or else NT (N).Nkind = N_Entry_Index_Specification
818 or else NT (N).Nkind = N_Loop_Parameter_Specification);
820 end Discrete_Subtype_Definition;
822 function Discrete_Subtype_Definitions
823 (N : Node_Id) return List_Id is
826 or else NT (N).Nkind = N_Constrained_Array_Definition);
828 end Discrete_Subtype_Definitions;
830 function Discriminant_Specifications
831 (N : Node_Id) return List_Id is
834 or else NT (N).Nkind = N_Formal_Type_Declaration
835 or else NT (N).Nkind = N_Full_Type_Declaration
836 or else NT (N).Nkind = N_Incomplete_Type_Declaration
837 or else NT (N).Nkind = N_Private_Extension_Declaration
838 or else NT (N).Nkind = N_Private_Type_Declaration
839 or else NT (N).Nkind = N_Protected_Type_Declaration
840 or else NT (N).Nkind = N_Task_Type_Declaration);
842 end Discriminant_Specifications;
844 function Discriminant_Type
845 (N : Node_Id) return Node_Id is
848 or else NT (N).Nkind = N_Discriminant_Specification);
850 end Discriminant_Type;
852 function Do_Accessibility_Check
853 (N : Node_Id) return Boolean is
856 or else NT (N).Nkind = N_Parameter_Specification);
858 end Do_Accessibility_Check;
860 function Do_Discriminant_Check
861 (N : Node_Id) return Boolean is
864 or else NT (N).Nkind = N_Selected_Component);
866 end Do_Discriminant_Check;
868 function Do_Division_Check
869 (N : Node_Id) return Boolean is
872 or else NT (N).Nkind = N_Op_Divide
873 or else NT (N).Nkind = N_Op_Mod
874 or else NT (N).Nkind = N_Op_Rem);
876 end Do_Division_Check;
878 function Do_Length_Check
879 (N : Node_Id) return Boolean is
882 or else NT (N).Nkind = N_Assignment_Statement
883 or else NT (N).Nkind = N_Op_And
884 or else NT (N).Nkind = N_Op_Or
885 or else NT (N).Nkind = N_Op_Xor
886 or else NT (N).Nkind = N_Type_Conversion);
890 function Do_Overflow_Check
891 (N : Node_Id) return Boolean is
894 or else NT (N).Nkind in N_Op
895 or else NT (N).Nkind = N_Attribute_Reference
896 or else NT (N).Nkind = N_Type_Conversion);
898 end Do_Overflow_Check;
900 function Do_Range_Check
901 (N : Node_Id) return Boolean is
904 or else NT (N).Nkind in N_Subexpr);
908 function Do_Storage_Check
909 (N : Node_Id) return Boolean is
912 or else NT (N).Nkind = N_Allocator
913 or else NT (N).Nkind = N_Subprogram_Body);
915 end Do_Storage_Check;
917 function Do_Tag_Check
918 (N : Node_Id) return Boolean is
921 or else NT (N).Nkind = N_Assignment_Statement
922 or else NT (N).Nkind = N_Extended_Return_Statement
923 or else NT (N).Nkind = N_Function_Call
924 or else NT (N).Nkind = N_Procedure_Call_Statement
925 or else NT (N).Nkind = N_Return_Statement
926 or else NT (N).Nkind = N_Type_Conversion);
930 function Elaborate_All_Desirable
931 (N : Node_Id) return Boolean is
934 or else NT (N).Nkind = N_With_Clause);
936 end Elaborate_All_Desirable;
938 function Elaborate_All_Present
939 (N : Node_Id) return Boolean is
942 or else NT (N).Nkind = N_With_Clause);
944 end Elaborate_All_Present;
946 function Elaborate_Desirable
947 (N : Node_Id) return Boolean is
950 or else NT (N).Nkind = N_With_Clause);
952 end Elaborate_Desirable;
954 function Elaborate_Present
955 (N : Node_Id) return Boolean is
958 or else NT (N).Nkind = N_With_Clause);
960 end Elaborate_Present;
962 function Elaboration_Boolean
963 (N : Node_Id) return Node_Id is
966 or else NT (N).Nkind = N_Function_Specification
967 or else NT (N).Nkind = N_Procedure_Specification);
969 end Elaboration_Boolean;
971 function Else_Actions
972 (N : Node_Id) return List_Id is
975 or else NT (N).Nkind = N_Conditional_Expression);
979 function Else_Statements
980 (N : Node_Id) return List_Id is
983 or else NT (N).Nkind = N_Conditional_Entry_Call
984 or else NT (N).Nkind = N_If_Statement
985 or else NT (N).Nkind = N_Selective_Accept);
990 (N : Node_Id) return List_Id is
993 or else NT (N).Nkind = N_If_Statement);
997 function Enclosing_Variant
998 (N : Node_Id) return Node_Id is
1000 pragma Assert (False
1001 or else NT (N).Nkind = N_Variant);
1003 end Enclosing_Variant;
1006 (N : Node_Id) return Node_Id is
1008 pragma Assert (False
1009 or else NT (N).Nkind = N_Enumeration_Type_Definition
1010 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1011 or else NT (N).Nkind = N_Loop_Statement
1012 or else NT (N).Nkind = N_Package_Specification
1013 or else NT (N).Nkind = N_Protected_Body
1014 or else NT (N).Nkind = N_Protected_Definition
1015 or else NT (N).Nkind = N_Record_Definition
1016 or else NT (N).Nkind = N_Task_Definition);
1021 (N : Node_Id) return Uint is
1023 pragma Assert (False
1024 or else NT (N).Nkind = N_Case_Statement
1025 or else NT (N).Nkind = N_If_Statement);
1030 (N : Node_Id) return Node_Id is
1032 pragma Assert (False
1033 or else NT (N).Nkind in N_Has_Entity
1034 or else NT (N).Nkind = N_Freeze_Entity
1035 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1039 function Entity_Or_Associated_Node
1040 (N : Node_Id) return Node_Id is
1042 pragma Assert (False
1043 or else NT (N).Nkind in N_Has_Entity
1044 or else NT (N).Nkind = N_Freeze_Entity);
1046 end Entity_Or_Associated_Node;
1048 function Entry_Body_Formal_Part
1049 (N : Node_Id) return Node_Id is
1051 pragma Assert (False
1052 or else NT (N).Nkind = N_Entry_Body);
1054 end Entry_Body_Formal_Part;
1056 function Entry_Call_Alternative
1057 (N : Node_Id) return Node_Id is
1059 pragma Assert (False
1060 or else NT (N).Nkind = N_Conditional_Entry_Call
1061 or else NT (N).Nkind = N_Timed_Entry_Call);
1063 end Entry_Call_Alternative;
1065 function Entry_Call_Statement
1066 (N : Node_Id) return Node_Id is
1068 pragma Assert (False
1069 or else NT (N).Nkind = N_Entry_Call_Alternative);
1071 end Entry_Call_Statement;
1073 function Entry_Direct_Name
1074 (N : Node_Id) return Node_Id is
1076 pragma Assert (False
1077 or else NT (N).Nkind = N_Accept_Statement);
1079 end Entry_Direct_Name;
1081 function Entry_Index
1082 (N : Node_Id) return Node_Id is
1084 pragma Assert (False
1085 or else NT (N).Nkind = N_Accept_Statement);
1089 function Entry_Index_Specification
1090 (N : Node_Id) return Node_Id is
1092 pragma Assert (False
1093 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1095 end Entry_Index_Specification;
1098 (N : Node_Id) return Node_Id is
1100 pragma Assert (False
1101 or else NT (N).Nkind in N_Has_Etype);
1105 function Exception_Choices
1106 (N : Node_Id) return List_Id is
1108 pragma Assert (False
1109 or else NT (N).Nkind = N_Exception_Handler);
1111 end Exception_Choices;
1113 function Exception_Handlers
1114 (N : Node_Id) return List_Id is
1116 pragma Assert (False
1117 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1119 end Exception_Handlers;
1121 function Exception_Junk
1122 (N : Node_Id) return Boolean is
1124 pragma Assert (False
1125 or else NT (N).Nkind = N_Block_Statement
1126 or else NT (N).Nkind = N_Goto_Statement
1127 or else NT (N).Nkind = N_Label
1128 or else NT (N).Nkind = N_Object_Declaration
1129 or else NT (N).Nkind = N_Subtype_Declaration);
1133 function Exception_Label
1134 (N : Node_Id) return Node_Id is
1136 pragma Assert (False
1137 or else NT (N).Nkind = N_Exception_Handler
1138 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1139 or else NT (N).Nkind = N_Push_Program_Error_Label
1140 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1142 end Exception_Label;
1144 function Expansion_Delayed
1145 (N : Node_Id) return Boolean is
1147 pragma Assert (False
1148 or else NT (N).Nkind = N_Aggregate
1149 or else NT (N).Nkind = N_Extension_Aggregate);
1151 end Expansion_Delayed;
1153 function Explicit_Actual_Parameter
1154 (N : Node_Id) return Node_Id is
1156 pragma Assert (False
1157 or else NT (N).Nkind = N_Parameter_Association);
1159 end Explicit_Actual_Parameter;
1161 function Explicit_Generic_Actual_Parameter
1162 (N : Node_Id) return Node_Id is
1164 pragma Assert (False
1165 or else NT (N).Nkind = N_Generic_Association);
1167 end Explicit_Generic_Actual_Parameter;
1170 (N : Node_Id) return Node_Id is
1172 pragma Assert (False
1173 or else NT (N).Nkind = N_Allocator
1174 or else NT (N).Nkind = N_Assignment_Statement
1175 or else NT (N).Nkind = N_At_Clause
1176 or else NT (N).Nkind = N_Attribute_Definition_Clause
1177 or else NT (N).Nkind = N_Case_Expression
1178 or else NT (N).Nkind = N_Case_Expression_Alternative
1179 or else NT (N).Nkind = N_Case_Statement
1180 or else NT (N).Nkind = N_Code_Statement
1181 or else NT (N).Nkind = N_Component_Association
1182 or else NT (N).Nkind = N_Component_Declaration
1183 or else NT (N).Nkind = N_Delay_Relative_Statement
1184 or else NT (N).Nkind = N_Delay_Until_Statement
1185 or else NT (N).Nkind = N_Discriminant_Association
1186 or else NT (N).Nkind = N_Discriminant_Specification
1187 or else NT (N).Nkind = N_Exception_Declaration
1188 or else NT (N).Nkind = N_Expression_With_Actions
1189 or else NT (N).Nkind = N_Free_Statement
1190 or else NT (N).Nkind = N_Mod_Clause
1191 or else NT (N).Nkind = N_Modular_Type_Definition
1192 or else NT (N).Nkind = N_Number_Declaration
1193 or else NT (N).Nkind = N_Object_Declaration
1194 or else NT (N).Nkind = N_Parameter_Specification
1195 or else NT (N).Nkind = N_Parameterized_Expression
1196 or else NT (N).Nkind = N_Pragma_Argument_Association
1197 or else NT (N).Nkind = N_Qualified_Expression
1198 or else NT (N).Nkind = N_Raise_Statement
1199 or else NT (N).Nkind = N_Return_Statement
1200 or else NT (N).Nkind = N_Type_Conversion
1201 or else NT (N).Nkind = N_Unchecked_Expression
1202 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1206 function Expressions
1207 (N : Node_Id) return List_Id is
1209 pragma Assert (False
1210 or else NT (N).Nkind = N_Aggregate
1211 or else NT (N).Nkind = N_Attribute_Reference
1212 or else NT (N).Nkind = N_Conditional_Expression
1213 or else NT (N).Nkind = N_Extension_Aggregate
1214 or else NT (N).Nkind = N_Indexed_Component);
1219 (N : Node_Id) return Node_Id is
1221 pragma Assert (False
1222 or else NT (N).Nkind = N_Component_Clause);
1226 function First_Inlined_Subprogram
1227 (N : Node_Id) return Entity_Id is
1229 pragma Assert (False
1230 or else NT (N).Nkind = N_Compilation_Unit);
1232 end First_Inlined_Subprogram;
1235 (N : Node_Id) return Boolean is
1237 pragma Assert (False
1238 or else NT (N).Nkind = N_With_Clause);
1242 function First_Named_Actual
1243 (N : Node_Id) return Node_Id is
1245 pragma Assert (False
1246 or else NT (N).Nkind = N_Entry_Call_Statement
1247 or else NT (N).Nkind = N_Function_Call
1248 or else NT (N).Nkind = N_Procedure_Call_Statement);
1250 end First_Named_Actual;
1252 function First_Real_Statement
1253 (N : Node_Id) return Node_Id is
1255 pragma Assert (False
1256 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1258 end First_Real_Statement;
1260 function First_Subtype_Link
1261 (N : Node_Id) return Entity_Id is
1263 pragma Assert (False
1264 or else NT (N).Nkind = N_Freeze_Entity);
1266 end First_Subtype_Link;
1268 function Float_Truncate
1269 (N : Node_Id) return Boolean is
1271 pragma Assert (False
1272 or else NT (N).Nkind = N_Type_Conversion);
1276 function Formal_Type_Definition
1277 (N : Node_Id) return Node_Id is
1279 pragma Assert (False
1280 or else NT (N).Nkind = N_Formal_Type_Declaration);
1282 end Formal_Type_Definition;
1284 function Forwards_OK
1285 (N : Node_Id) return Boolean is
1287 pragma Assert (False
1288 or else NT (N).Nkind = N_Assignment_Statement);
1292 function From_At_End
1293 (N : Node_Id) return Boolean is
1295 pragma Assert (False
1296 or else NT (N).Nkind = N_Raise_Statement);
1300 function From_At_Mod
1301 (N : Node_Id) return Boolean is
1303 pragma Assert (False
1304 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1308 function From_Default
1309 (N : Node_Id) return Boolean is
1311 pragma Assert (False
1312 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1316 function Generic_Associations
1317 (N : Node_Id) return List_Id is
1319 pragma Assert (False
1320 or else NT (N).Nkind = N_Formal_Package_Declaration
1321 or else NT (N).Nkind = N_Function_Instantiation
1322 or else NT (N).Nkind = N_Package_Instantiation
1323 or else NT (N).Nkind = N_Procedure_Instantiation);
1325 end Generic_Associations;
1327 function Generic_Formal_Declarations
1328 (N : Node_Id) return List_Id is
1330 pragma Assert (False
1331 or else NT (N).Nkind = N_Generic_Package_Declaration
1332 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1334 end Generic_Formal_Declarations;
1336 function Generic_Parent
1337 (N : Node_Id) return Node_Id is
1339 pragma Assert (False
1340 or else NT (N).Nkind = N_Function_Specification
1341 or else NT (N).Nkind = N_Package_Specification
1342 or else NT (N).Nkind = N_Procedure_Specification);
1346 function Generic_Parent_Type
1347 (N : Node_Id) return Node_Id is
1349 pragma Assert (False
1350 or else NT (N).Nkind = N_Subtype_Declaration);
1352 end Generic_Parent_Type;
1354 function Handled_Statement_Sequence
1355 (N : Node_Id) return Node_Id is
1357 pragma Assert (False
1358 or else NT (N).Nkind = N_Accept_Statement
1359 or else NT (N).Nkind = N_Block_Statement
1360 or else NT (N).Nkind = N_Entry_Body
1361 or else NT (N).Nkind = N_Extended_Return_Statement
1362 or else NT (N).Nkind = N_Package_Body
1363 or else NT (N).Nkind = N_Subprogram_Body
1364 or else NT (N).Nkind = N_Task_Body);
1366 end Handled_Statement_Sequence;
1368 function Handler_List_Entry
1369 (N : Node_Id) return Node_Id is
1371 pragma Assert (False
1372 or else NT (N).Nkind = N_Object_Declaration);
1374 end Handler_List_Entry;
1376 function Has_Created_Identifier
1377 (N : Node_Id) return Boolean is
1379 pragma Assert (False
1380 or else NT (N).Nkind = N_Block_Statement
1381 or else NT (N).Nkind = N_Loop_Statement);
1383 end Has_Created_Identifier;
1385 function Has_Dynamic_Length_Check
1386 (N : Node_Id) return Boolean is
1389 end Has_Dynamic_Length_Check;
1391 function Has_Dynamic_Range_Check
1392 (N : Node_Id) return Boolean is
1395 end Has_Dynamic_Range_Check;
1397 function Has_Init_Expression
1398 (N : Node_Id) return Boolean is
1400 pragma Assert (False
1401 or else NT (N).Nkind = N_Object_Declaration);
1403 end Has_Init_Expression;
1405 function Has_Local_Raise
1406 (N : Node_Id) return Boolean is
1408 pragma Assert (False
1409 or else NT (N).Nkind = N_Exception_Handler);
1411 end Has_Local_Raise;
1413 function Has_No_Elaboration_Code
1414 (N : Node_Id) return Boolean is
1416 pragma Assert (False
1417 or else NT (N).Nkind = N_Compilation_Unit);
1419 end Has_No_Elaboration_Code;
1421 function Has_Priority_Pragma
1422 (N : Node_Id) return Boolean is
1424 pragma Assert (False
1425 or else NT (N).Nkind = N_Protected_Definition
1426 or else NT (N).Nkind = N_Subprogram_Body
1427 or else NT (N).Nkind = N_Task_Definition);
1429 end Has_Priority_Pragma;
1431 function Has_Private_View
1432 (N : Node_Id) return Boolean is
1434 pragma Assert (False
1435 or else NT (N).Nkind in N_Op
1436 or else NT (N).Nkind = N_Character_Literal
1437 or else NT (N).Nkind = N_Expanded_Name
1438 or else NT (N).Nkind = N_Identifier
1439 or else NT (N).Nkind = N_Operator_Symbol);
1441 end Has_Private_View;
1443 function Has_Relative_Deadline_Pragma
1444 (N : Node_Id) return Boolean is
1446 pragma Assert (False
1447 or else NT (N).Nkind = N_Subprogram_Body
1448 or else NT (N).Nkind = N_Task_Definition);
1450 end Has_Relative_Deadline_Pragma;
1452 function Has_Self_Reference
1453 (N : Node_Id) return Boolean is
1455 pragma Assert (False
1456 or else NT (N).Nkind = N_Aggregate
1457 or else NT (N).Nkind = N_Extension_Aggregate);
1459 end Has_Self_Reference;
1461 function Has_Storage_Size_Pragma
1462 (N : Node_Id) return Boolean is
1464 pragma Assert (False
1465 or else NT (N).Nkind = N_Task_Definition);
1467 end Has_Storage_Size_Pragma;
1469 function Has_Task_Info_Pragma
1470 (N : Node_Id) return Boolean is
1472 pragma Assert (False
1473 or else NT (N).Nkind = N_Task_Definition);
1475 end Has_Task_Info_Pragma;
1477 function Has_Task_Name_Pragma
1478 (N : Node_Id) return Boolean is
1480 pragma Assert (False
1481 or else NT (N).Nkind = N_Task_Definition);
1483 end Has_Task_Name_Pragma;
1485 function Has_Wide_Character
1486 (N : Node_Id) return Boolean is
1488 pragma Assert (False
1489 or else NT (N).Nkind = N_String_Literal);
1491 end Has_Wide_Character;
1493 function Has_Wide_Wide_Character
1494 (N : Node_Id) return Boolean is
1496 pragma Assert (False
1497 or else NT (N).Nkind = N_String_Literal);
1499 end Has_Wide_Wide_Character;
1501 function Hidden_By_Use_Clause
1502 (N : Node_Id) return Elist_Id is
1504 pragma Assert (False
1505 or else NT (N).Nkind = N_Use_Package_Clause
1506 or else NT (N).Nkind = N_Use_Type_Clause);
1508 end Hidden_By_Use_Clause;
1511 (N : Node_Id) return Node_Id is
1513 pragma Assert (False
1514 or else NT (N).Nkind = N_Range
1515 or else NT (N).Nkind = N_Real_Range_Specification
1516 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1521 (N : Node_Id) return Node_Id is
1523 pragma Assert (False
1524 or else NT (N).Nkind = N_At_Clause
1525 or else NT (N).Nkind = N_Block_Statement
1526 or else NT (N).Nkind = N_Designator
1527 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1528 or else NT (N).Nkind = N_Label
1529 or else NT (N).Nkind = N_Loop_Statement
1530 or else NT (N).Nkind = N_Record_Representation_Clause
1531 or else NT (N).Nkind = N_Subprogram_Info);
1535 function Implicit_With
1536 (N : Node_Id) return Boolean is
1538 pragma Assert (False
1539 or else NT (N).Nkind = N_With_Clause);
1543 function Interface_List
1544 (N : Node_Id) return List_Id is
1546 pragma Assert (False
1547 or else NT (N).Nkind = N_Derived_Type_Definition
1548 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1549 or else NT (N).Nkind = N_Private_Extension_Declaration
1550 or else NT (N).Nkind = N_Protected_Type_Declaration
1551 or else NT (N).Nkind = N_Record_Definition
1552 or else NT (N).Nkind = N_Single_Protected_Declaration
1553 or else NT (N).Nkind = N_Single_Task_Declaration
1554 or else NT (N).Nkind = N_Task_Type_Declaration);
1558 function Interface_Present
1559 (N : Node_Id) return Boolean is
1561 pragma Assert (False
1562 or else NT (N).Nkind = N_Derived_Type_Definition
1563 or else NT (N).Nkind = N_Record_Definition);
1565 end Interface_Present;
1567 function Import_Interface_Present
1568 (N : Node_Id) return Boolean is
1570 pragma Assert (False
1571 or else NT (N).Nkind = N_Pragma);
1573 end Import_Interface_Present;
1576 (N : Node_Id) return Boolean is
1578 pragma Assert (False
1579 or else NT (N).Nkind = N_Formal_Object_Declaration
1580 or else NT (N).Nkind = N_Parameter_Specification);
1584 function Includes_Infinities
1585 (N : Node_Id) return Boolean is
1587 pragma Assert (False
1588 or else NT (N).Nkind = N_Range);
1590 end Includes_Infinities;
1592 function Inherited_Discriminant
1593 (N : Node_Id) return Boolean is
1595 pragma Assert (False
1596 or else NT (N).Nkind = N_Component_Association);
1598 end Inherited_Discriminant;
1600 function Instance_Spec
1601 (N : Node_Id) return Node_Id is
1603 pragma Assert (False
1604 or else NT (N).Nkind = N_Formal_Package_Declaration
1605 or else NT (N).Nkind = N_Function_Instantiation
1606 or else NT (N).Nkind = N_Package_Instantiation
1607 or else NT (N).Nkind = N_Procedure_Instantiation);
1612 (N : Node_Id) return Uint is
1614 pragma Assert (False
1615 or else NT (N).Nkind = N_Integer_Literal);
1619 function Is_Accessibility_Actual
1620 (N : Node_Id) return Boolean is
1622 pragma Assert (False
1623 or else NT (N).Nkind = N_Parameter_Association);
1625 end Is_Accessibility_Actual;
1627 function Is_Asynchronous_Call_Block
1628 (N : Node_Id) return Boolean is
1630 pragma Assert (False
1631 or else NT (N).Nkind = N_Block_Statement);
1633 end Is_Asynchronous_Call_Block;
1635 function Is_Component_Left_Opnd
1636 (N : Node_Id) return Boolean is
1638 pragma Assert (False
1639 or else NT (N).Nkind = N_Op_Concat);
1641 end Is_Component_Left_Opnd;
1643 function Is_Component_Right_Opnd
1644 (N : Node_Id) return Boolean is
1646 pragma Assert (False
1647 or else NT (N).Nkind = N_Op_Concat);
1649 end Is_Component_Right_Opnd;
1651 function Is_Controlling_Actual
1652 (N : Node_Id) return Boolean is
1654 pragma Assert (False
1655 or else NT (N).Nkind in N_Subexpr);
1657 end Is_Controlling_Actual;
1659 function Is_Dynamic_Coextension
1660 (N : Node_Id) return Boolean is
1662 pragma Assert (False
1663 or else NT (N).Nkind = N_Allocator);
1665 end Is_Dynamic_Coextension;
1668 (N : Node_Id) return Boolean is
1670 pragma Assert (False
1671 or else NT (N).Nkind = N_Conditional_Expression);
1675 function Is_Entry_Barrier_Function
1676 (N : Node_Id) return Boolean is
1678 pragma Assert (False
1679 or else NT (N).Nkind = N_Subprogram_Body);
1681 end Is_Entry_Barrier_Function;
1683 function Is_Expanded_Build_In_Place_Call
1684 (N : Node_Id) return Boolean is
1686 pragma Assert (False
1687 or else NT (N).Nkind = N_Function_Call);
1689 end Is_Expanded_Build_In_Place_Call;
1691 function Is_Folded_In_Parser
1692 (N : Node_Id) return Boolean is
1694 pragma Assert (False
1695 or else NT (N).Nkind = N_String_Literal);
1697 end Is_Folded_In_Parser;
1699 function Is_In_Discriminant_Check
1700 (N : Node_Id) return Boolean is
1702 pragma Assert (False
1703 or else NT (N).Nkind = N_Selected_Component);
1705 end Is_In_Discriminant_Check;
1707 function Is_Machine_Number
1708 (N : Node_Id) return Boolean is
1710 pragma Assert (False
1711 or else NT (N).Nkind = N_Real_Literal);
1713 end Is_Machine_Number;
1715 function Is_Null_Loop
1716 (N : Node_Id) return Boolean is
1718 pragma Assert (False
1719 or else NT (N).Nkind = N_Loop_Statement);
1723 function Is_Overloaded
1724 (N : Node_Id) return Boolean is
1726 pragma Assert (False
1727 or else NT (N).Nkind in N_Subexpr);
1731 function Is_Power_Of_2_For_Shift
1732 (N : Node_Id) return Boolean is
1734 pragma Assert (False
1735 or else NT (N).Nkind = N_Op_Expon);
1737 end Is_Power_Of_2_For_Shift;
1739 function Is_Protected_Subprogram_Body
1740 (N : Node_Id) return Boolean is
1742 pragma Assert (False
1743 or else NT (N).Nkind = N_Subprogram_Body);
1745 end Is_Protected_Subprogram_Body;
1747 function Is_Static_Coextension
1748 (N : Node_Id) return Boolean is
1750 pragma Assert (False
1751 or else NT (N).Nkind = N_Allocator);
1753 end Is_Static_Coextension;
1755 function Is_Static_Expression
1756 (N : Node_Id) return Boolean is
1758 pragma Assert (False
1759 or else NT (N).Nkind in N_Subexpr);
1761 end Is_Static_Expression;
1763 function Is_Subprogram_Descriptor
1764 (N : Node_Id) return Boolean is
1766 pragma Assert (False
1767 or else NT (N).Nkind = N_Object_Declaration);
1769 end Is_Subprogram_Descriptor;
1771 function Is_Task_Allocation_Block
1772 (N : Node_Id) return Boolean is
1774 pragma Assert (False
1775 or else NT (N).Nkind = N_Block_Statement);
1777 end Is_Task_Allocation_Block;
1779 function Is_Task_Master
1780 (N : Node_Id) return Boolean is
1782 pragma Assert (False
1783 or else NT (N).Nkind = N_Block_Statement
1784 or else NT (N).Nkind = N_Subprogram_Body
1785 or else NT (N).Nkind = N_Task_Body);
1789 function Iteration_Scheme
1790 (N : Node_Id) return Node_Id is
1792 pragma Assert (False
1793 or else NT (N).Nkind = N_Loop_Statement);
1795 end Iteration_Scheme;
1798 (N : Node_Id) return Node_Id is
1800 pragma Assert (False
1801 or else NT (N).Nkind = N_Itype_Reference);
1805 function Kill_Range_Check
1806 (N : Node_Id) return Boolean is
1808 pragma Assert (False
1809 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1811 end Kill_Range_Check;
1813 function Label_Construct
1814 (N : Node_Id) return Node_Id is
1816 pragma Assert (False
1817 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1819 end Label_Construct;
1822 (N : Node_Id) return Node_Id is
1824 pragma Assert (False
1825 or else NT (N).Nkind = N_Component_Clause);
1830 (N : Node_Id) return Boolean is
1832 pragma Assert (False
1833 or else NT (N).Nkind = N_With_Clause);
1838 (N : Node_Id) return Node_Id is
1840 pragma Assert (False
1841 or else NT (N).Nkind = N_And_Then
1842 or else NT (N).Nkind = N_In
1843 or else NT (N).Nkind = N_Not_In
1844 or else NT (N).Nkind = N_Or_Else
1845 or else NT (N).Nkind in N_Binary_Op);
1849 function Library_Unit
1850 (N : Node_Id) return Node_Id is
1852 pragma Assert (False
1853 or else NT (N).Nkind = N_Compilation_Unit
1854 or else NT (N).Nkind = N_Package_Body_Stub
1855 or else NT (N).Nkind = N_Protected_Body_Stub
1856 or else NT (N).Nkind = N_Subprogram_Body_Stub
1857 or else NT (N).Nkind = N_Task_Body_Stub
1858 or else NT (N).Nkind = N_With_Clause);
1862 function Limited_View_Installed
1863 (N : Node_Id) return Boolean is
1865 pragma Assert (False
1866 or else NT (N).Nkind = N_Package_Specification
1867 or else NT (N).Nkind = N_With_Clause);
1869 end Limited_View_Installed;
1871 function Limited_Present
1872 (N : Node_Id) return Boolean is
1874 pragma Assert (False
1875 or else NT (N).Nkind = N_Derived_Type_Definition
1876 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1877 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1878 or else NT (N).Nkind = N_Private_Extension_Declaration
1879 or else NT (N).Nkind = N_Private_Type_Declaration
1880 or else NT (N).Nkind = N_Record_Definition
1881 or else NT (N).Nkind = N_With_Clause);
1883 end Limited_Present;
1886 (N : Node_Id) return List_Id is
1888 pragma Assert (False
1889 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1893 function Local_Raise_Not_OK
1894 (N : Node_Id) return Boolean is
1896 pragma Assert (False
1897 or else NT (N).Nkind = N_Exception_Handler);
1899 end Local_Raise_Not_OK;
1901 function Local_Raise_Statements
1902 (N : Node_Id) return Elist_Id is
1904 pragma Assert (False
1905 or else NT (N).Nkind = N_Exception_Handler);
1907 end Local_Raise_Statements;
1909 function Loop_Actions
1910 (N : Node_Id) return List_Id is
1912 pragma Assert (False
1913 or else NT (N).Nkind = N_Component_Association);
1917 function Loop_Parameter_Specification
1918 (N : Node_Id) return Node_Id is
1920 pragma Assert (False
1921 or else NT (N).Nkind = N_Iteration_Scheme);
1923 end Loop_Parameter_Specification;
1926 (N : Node_Id) return Node_Id is
1928 pragma Assert (False
1929 or else NT (N).Nkind = N_Range
1930 or else NT (N).Nkind = N_Real_Range_Specification
1931 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1936 (N : Node_Id) return Node_Id is
1938 pragma Assert (False
1939 or else NT (N).Nkind = N_Record_Representation_Clause);
1944 (N : Node_Id) return Boolean is
1946 pragma Assert (False
1947 or else NT (N).Nkind = N_Component_Declaration
1948 or else NT (N).Nkind = N_Discriminant_Specification
1949 or else NT (N).Nkind = N_Exception_Declaration
1950 or else NT (N).Nkind = N_Formal_Object_Declaration
1951 or else NT (N).Nkind = N_Number_Declaration
1952 or else NT (N).Nkind = N_Object_Declaration
1953 or else NT (N).Nkind = N_Parameter_Specification);
1957 function Must_Be_Byte_Aligned
1958 (N : Node_Id) return Boolean is
1960 pragma Assert (False
1961 or else NT (N).Nkind = N_Attribute_Reference);
1963 end Must_Be_Byte_Aligned;
1965 function Must_Not_Freeze
1966 (N : Node_Id) return Boolean is
1968 pragma Assert (False
1969 or else NT (N).Nkind = N_Subtype_Indication
1970 or else NT (N).Nkind in N_Subexpr);
1972 end Must_Not_Freeze;
1974 function Must_Not_Override
1975 (N : Node_Id) return Boolean is
1977 pragma Assert (False
1978 or else NT (N).Nkind = N_Entry_Declaration
1979 or else NT (N).Nkind = N_Function_Instantiation
1980 or else NT (N).Nkind = N_Function_Specification
1981 or else NT (N).Nkind = N_Procedure_Instantiation
1982 or else NT (N).Nkind = N_Procedure_Specification);
1984 end Must_Not_Override;
1986 function Must_Override
1987 (N : Node_Id) return Boolean is
1989 pragma Assert (False
1990 or else NT (N).Nkind = N_Entry_Declaration
1991 or else NT (N).Nkind = N_Function_Instantiation
1992 or else NT (N).Nkind = N_Function_Specification
1993 or else NT (N).Nkind = N_Procedure_Instantiation
1994 or else NT (N).Nkind = N_Procedure_Specification);
1999 (N : Node_Id) return Node_Id is
2001 pragma Assert (False
2002 or else NT (N).Nkind = N_Assignment_Statement
2003 or else NT (N).Nkind = N_Attribute_Definition_Clause
2004 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2005 or else NT (N).Nkind = N_Designator
2006 or else NT (N).Nkind = N_Entry_Call_Statement
2007 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2008 or else NT (N).Nkind = N_Exit_Statement
2009 or else NT (N).Nkind = N_Formal_Package_Declaration
2010 or else NT (N).Nkind = N_Function_Call
2011 or else NT (N).Nkind = N_Function_Instantiation
2012 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2013 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2014 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2015 or else NT (N).Nkind = N_Goto_Statement
2016 or else NT (N).Nkind = N_Object_Renaming_Declaration
2017 or else NT (N).Nkind = N_Package_Instantiation
2018 or else NT (N).Nkind = N_Package_Renaming_Declaration
2019 or else NT (N).Nkind = N_Procedure_Call_Statement
2020 or else NT (N).Nkind = N_Procedure_Instantiation
2021 or else NT (N).Nkind = N_Raise_Statement
2022 or else NT (N).Nkind = N_Requeue_Statement
2023 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2024 or else NT (N).Nkind = N_Subunit
2025 or else NT (N).Nkind = N_Variant_Part
2026 or else NT (N).Nkind = N_With_Clause);
2031 (N : Node_Id) return List_Id is
2033 pragma Assert (False
2034 or else NT (N).Nkind = N_Abort_Statement
2035 or else NT (N).Nkind = N_Use_Package_Clause);
2039 function Next_Entity
2040 (N : Node_Id) return Node_Id is
2042 pragma Assert (False
2043 or else NT (N).Nkind = N_Defining_Character_Literal
2044 or else NT (N).Nkind = N_Defining_Identifier
2045 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2049 function Next_Exit_Statement
2050 (N : Node_Id) return Node_Id is
2052 pragma Assert (False
2053 or else NT (N).Nkind = N_Exit_Statement);
2055 end Next_Exit_Statement;
2057 function Next_Implicit_With
2058 (N : Node_Id) return Node_Id is
2060 pragma Assert (False
2061 or else NT (N).Nkind = N_With_Clause);
2063 end Next_Implicit_With;
2065 function Next_Named_Actual
2066 (N : Node_Id) return Node_Id is
2068 pragma Assert (False
2069 or else NT (N).Nkind = N_Parameter_Association);
2071 end Next_Named_Actual;
2073 function Next_Pragma
2074 (N : Node_Id) return Node_Id is
2076 pragma Assert (False
2077 or else NT (N).Nkind = N_Pragma);
2081 function Next_Rep_Item
2082 (N : Node_Id) return Node_Id is
2084 pragma Assert (False
2085 or else NT (N).Nkind = N_Attribute_Definition_Clause
2086 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2087 or else NT (N).Nkind = N_Pragma
2088 or else NT (N).Nkind = N_Record_Representation_Clause);
2092 function Next_Use_Clause
2093 (N : Node_Id) return Node_Id is
2095 pragma Assert (False
2096 or else NT (N).Nkind = N_Use_Package_Clause
2097 or else NT (N).Nkind = N_Use_Type_Clause);
2099 end Next_Use_Clause;
2101 function No_Ctrl_Actions
2102 (N : Node_Id) return Boolean is
2104 pragma Assert (False
2105 or else NT (N).Nkind = N_Assignment_Statement);
2107 end No_Ctrl_Actions;
2109 function No_Elaboration_Check
2110 (N : Node_Id) return Boolean is
2112 pragma Assert (False
2113 or else NT (N).Nkind = N_Function_Call
2114 or else NT (N).Nkind = N_Procedure_Call_Statement);
2116 end No_Elaboration_Check;
2118 function No_Entities_Ref_In_Spec
2119 (N : Node_Id) return Boolean is
2121 pragma Assert (False
2122 or else NT (N).Nkind = N_With_Clause);
2124 end No_Entities_Ref_In_Spec;
2126 function No_Initialization
2127 (N : Node_Id) return Boolean is
2129 pragma Assert (False
2130 or else NT (N).Nkind = N_Allocator
2131 or else NT (N).Nkind = N_Object_Declaration);
2133 end No_Initialization;
2135 function No_Truncation
2136 (N : Node_Id) return Boolean is
2138 pragma Assert (False
2139 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2143 function Null_Present
2144 (N : Node_Id) return Boolean is
2146 pragma Assert (False
2147 or else NT (N).Nkind = N_Component_List
2148 or else NT (N).Nkind = N_Procedure_Specification
2149 or else NT (N).Nkind = N_Record_Definition);
2153 function Null_Exclusion_Present
2154 (N : Node_Id) return Boolean is
2156 pragma Assert (False
2157 or else NT (N).Nkind = N_Access_Definition
2158 or else NT (N).Nkind = N_Access_Function_Definition
2159 or else NT (N).Nkind = N_Access_Procedure_Definition
2160 or else NT (N).Nkind = N_Access_To_Object_Definition
2161 or else NT (N).Nkind = N_Allocator
2162 or else NT (N).Nkind = N_Component_Definition
2163 or else NT (N).Nkind = N_Derived_Type_Definition
2164 or else NT (N).Nkind = N_Discriminant_Specification
2165 or else NT (N).Nkind = N_Formal_Object_Declaration
2166 or else NT (N).Nkind = N_Function_Specification
2167 or else NT (N).Nkind = N_Object_Declaration
2168 or else NT (N).Nkind = N_Object_Renaming_Declaration
2169 or else NT (N).Nkind = N_Parameter_Specification
2170 or else NT (N).Nkind = N_Subtype_Declaration);
2172 end Null_Exclusion_Present;
2174 function Null_Exclusion_In_Return_Present
2175 (N : Node_Id) return Boolean is
2177 pragma Assert (False
2178 or else NT (N).Nkind = N_Access_Function_Definition);
2180 end Null_Exclusion_In_Return_Present;
2182 function Null_Record_Present
2183 (N : Node_Id) return Boolean is
2185 pragma Assert (False
2186 or else NT (N).Nkind = N_Aggregate
2187 or else NT (N).Nkind = N_Extension_Aggregate);
2189 end Null_Record_Present;
2191 function Object_Definition
2192 (N : Node_Id) return Node_Id is
2194 pragma Assert (False
2195 or else NT (N).Nkind = N_Object_Declaration);
2197 end Object_Definition;
2199 function Original_Discriminant
2200 (N : Node_Id) return Node_Id is
2202 pragma Assert (False
2203 or else NT (N).Nkind = N_Identifier);
2205 end Original_Discriminant;
2207 function Original_Entity
2208 (N : Node_Id) return Entity_Id is
2210 pragma Assert (False
2211 or else NT (N).Nkind = N_Integer_Literal
2212 or else NT (N).Nkind = N_Real_Literal);
2214 end Original_Entity;
2216 function Others_Discrete_Choices
2217 (N : Node_Id) return List_Id is
2219 pragma Assert (False
2220 or else NT (N).Nkind = N_Others_Choice);
2222 end Others_Discrete_Choices;
2224 function Out_Present
2225 (N : Node_Id) return Boolean is
2227 pragma Assert (False
2228 or else NT (N).Nkind = N_Formal_Object_Declaration
2229 or else NT (N).Nkind = N_Parameter_Specification);
2233 function Parameter_Associations
2234 (N : Node_Id) return List_Id is
2236 pragma Assert (False
2237 or else NT (N).Nkind = N_Entry_Call_Statement
2238 or else NT (N).Nkind = N_Function_Call
2239 or else NT (N).Nkind = N_Procedure_Call_Statement);
2241 end Parameter_Associations;
2243 function Parameter_List_Truncated
2244 (N : Node_Id) return Boolean is
2246 pragma Assert (False
2247 or else NT (N).Nkind = N_Function_Call
2248 or else NT (N).Nkind = N_Procedure_Call_Statement);
2250 end Parameter_List_Truncated;
2252 function Parameter_Specifications
2253 (N : Node_Id) return List_Id is
2255 pragma Assert (False
2256 or else NT (N).Nkind = N_Accept_Statement
2257 or else NT (N).Nkind = N_Access_Function_Definition
2258 or else NT (N).Nkind = N_Access_Procedure_Definition
2259 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2260 or else NT (N).Nkind = N_Entry_Declaration
2261 or else NT (N).Nkind = N_Function_Specification
2262 or else NT (N).Nkind = N_Procedure_Specification);
2264 end Parameter_Specifications;
2266 function Parameter_Type
2267 (N : Node_Id) return Node_Id is
2269 pragma Assert (False
2270 or else NT (N).Nkind = N_Parameter_Specification);
2274 function Parent_Spec
2275 (N : Node_Id) return Node_Id is
2277 pragma Assert (False
2278 or else NT (N).Nkind = N_Function_Instantiation
2279 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2280 or else NT (N).Nkind = N_Generic_Package_Declaration
2281 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2282 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2283 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2284 or else NT (N).Nkind = N_Package_Declaration
2285 or else NT (N).Nkind = N_Package_Instantiation
2286 or else NT (N).Nkind = N_Package_Renaming_Declaration
2287 or else NT (N).Nkind = N_Procedure_Instantiation
2288 or else NT (N).Nkind = N_Subprogram_Declaration
2289 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2294 (N : Node_Id) return Node_Id is
2296 pragma Assert (False
2297 or else NT (N).Nkind = N_Component_Clause);
2301 function Pragma_Argument_Associations
2302 (N : Node_Id) return List_Id is
2304 pragma Assert (False
2305 or else NT (N).Nkind = N_Pragma);
2307 end Pragma_Argument_Associations;
2309 function Pragma_Enabled
2310 (N : Node_Id) return Boolean is
2312 pragma Assert (False
2313 or else NT (N).Nkind = N_Pragma);
2317 function Pragma_Identifier
2318 (N : Node_Id) return Node_Id is
2320 pragma Assert (False
2321 or else NT (N).Nkind = N_Pragma);
2323 end Pragma_Identifier;
2325 function Pragmas_After
2326 (N : Node_Id) return List_Id is
2328 pragma Assert (False
2329 or else NT (N).Nkind = N_Compilation_Unit_Aux
2330 or else NT (N).Nkind = N_Terminate_Alternative);
2334 function Pragmas_Before
2335 (N : Node_Id) return List_Id is
2337 pragma Assert (False
2338 or else NT (N).Nkind = N_Accept_Alternative
2339 or else NT (N).Nkind = N_Delay_Alternative
2340 or else NT (N).Nkind = N_Entry_Call_Alternative
2341 or else NT (N).Nkind = N_Mod_Clause
2342 or else NT (N).Nkind = N_Terminate_Alternative
2343 or else NT (N).Nkind = N_Triggering_Alternative);
2348 (N : Node_Id) return Node_Id is
2350 pragma Assert (False
2351 or else NT (N).Nkind = N_Attribute_Reference
2352 or else NT (N).Nkind = N_Expanded_Name
2353 or else NT (N).Nkind = N_Explicit_Dereference
2354 or else NT (N).Nkind = N_Indexed_Component
2355 or else NT (N).Nkind = N_Reference
2356 or else NT (N).Nkind = N_Selected_Component
2357 or else NT (N).Nkind = N_Slice);
2361 function Present_Expr
2362 (N : Node_Id) return Uint is
2364 pragma Assert (False
2365 or else NT (N).Nkind = N_Variant);
2370 (N : Node_Id) return Boolean is
2372 pragma Assert (False
2373 or else NT (N).Nkind = N_Component_Declaration
2374 or else NT (N).Nkind = N_Discriminant_Specification
2375 or else NT (N).Nkind = N_Exception_Declaration
2376 or else NT (N).Nkind = N_Formal_Object_Declaration
2377 or else NT (N).Nkind = N_Number_Declaration
2378 or else NT (N).Nkind = N_Object_Declaration
2379 or else NT (N).Nkind = N_Parameter_Specification);
2383 function Print_In_Hex
2384 (N : Node_Id) return Boolean is
2386 pragma Assert (False
2387 or else NT (N).Nkind = N_Integer_Literal);
2391 function Private_Declarations
2392 (N : Node_Id) return List_Id is
2394 pragma Assert (False
2395 or else NT (N).Nkind = N_Package_Specification
2396 or else NT (N).Nkind = N_Protected_Definition
2397 or else NT (N).Nkind = N_Task_Definition);
2399 end Private_Declarations;
2401 function Private_Present
2402 (N : Node_Id) return Boolean is
2404 pragma Assert (False
2405 or else NT (N).Nkind = N_Compilation_Unit
2406 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2407 or else NT (N).Nkind = N_With_Clause);
2409 end Private_Present;
2411 function Procedure_To_Call
2412 (N : Node_Id) return Node_Id is
2414 pragma Assert (False
2415 or else NT (N).Nkind = N_Allocator
2416 or else NT (N).Nkind = N_Extended_Return_Statement
2417 or else NT (N).Nkind = N_Free_Statement
2418 or else NT (N).Nkind = N_Return_Statement);
2420 end Procedure_To_Call;
2422 function Proper_Body
2423 (N : Node_Id) return Node_Id is
2425 pragma Assert (False
2426 or else NT (N).Nkind = N_Subunit);
2430 function Protected_Definition
2431 (N : Node_Id) return Node_Id is
2433 pragma Assert (False
2434 or else NT (N).Nkind = N_Protected_Type_Declaration
2435 or else NT (N).Nkind = N_Single_Protected_Declaration);
2437 end Protected_Definition;
2439 function Protected_Present
2440 (N : Node_Id) return Boolean is
2442 pragma Assert (False
2443 or else NT (N).Nkind = N_Access_Function_Definition
2444 or else NT (N).Nkind = N_Access_Procedure_Definition
2445 or else NT (N).Nkind = N_Derived_Type_Definition
2446 or else NT (N).Nkind = N_Record_Definition);
2448 end Protected_Present;
2450 function Raises_Constraint_Error
2451 (N : Node_Id) return Boolean is
2453 pragma Assert (False
2454 or else NT (N).Nkind in N_Subexpr);
2456 end Raises_Constraint_Error;
2458 function Range_Constraint
2459 (N : Node_Id) return Node_Id is
2461 pragma Assert (False
2462 or else NT (N).Nkind = N_Delta_Constraint
2463 or else NT (N).Nkind = N_Digits_Constraint);
2465 end Range_Constraint;
2467 function Range_Expression
2468 (N : Node_Id) return Node_Id is
2470 pragma Assert (False
2471 or else NT (N).Nkind = N_Range_Constraint);
2473 end Range_Expression;
2475 function Real_Range_Specification
2476 (N : Node_Id) return Node_Id is
2478 pragma Assert (False
2479 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2480 or else NT (N).Nkind = N_Floating_Point_Definition
2481 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2483 end Real_Range_Specification;
2486 (N : Node_Id) return Ureal is
2488 pragma Assert (False
2489 or else NT (N).Nkind = N_Real_Literal);
2494 (N : Node_Id) return Uint is
2496 pragma Assert (False
2497 or else NT (N).Nkind = N_Raise_Constraint_Error
2498 or else NT (N).Nkind = N_Raise_Program_Error
2499 or else NT (N).Nkind = N_Raise_Storage_Error);
2503 function Record_Extension_Part
2504 (N : Node_Id) return Node_Id is
2506 pragma Assert (False
2507 or else NT (N).Nkind = N_Derived_Type_Definition);
2509 end Record_Extension_Part;
2511 function Redundant_Use
2512 (N : Node_Id) return Boolean is
2514 pragma Assert (False
2515 or else NT (N).Nkind = N_Attribute_Reference
2516 or else NT (N).Nkind = N_Expanded_Name
2517 or else NT (N).Nkind = N_Identifier);
2521 function Renaming_Exception
2522 (N : Node_Id) return Node_Id is
2524 pragma Assert (False
2525 or else NT (N).Nkind = N_Exception_Declaration);
2527 end Renaming_Exception;
2529 function Result_Definition
2530 (N : Node_Id) return Node_Id is
2532 pragma Assert (False
2533 or else NT (N).Nkind = N_Access_Function_Definition
2534 or else NT (N).Nkind = N_Function_Specification);
2536 end Result_Definition;
2538 function Return_Object_Declarations
2539 (N : Node_Id) return List_Id is
2541 pragma Assert (False
2542 or else NT (N).Nkind = N_Extended_Return_Statement);
2544 end Return_Object_Declarations;
2546 function Return_Statement_Entity
2547 (N : Node_Id) return Node_Id is
2549 pragma Assert (False
2550 or else NT (N).Nkind = N_Extended_Return_Statement
2551 or else NT (N).Nkind = N_Return_Statement);
2553 end Return_Statement_Entity;
2555 function Reverse_Present
2556 (N : Node_Id) return Boolean is
2558 pragma Assert (False
2559 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2561 end Reverse_Present;
2564 (N : Node_Id) return Node_Id is
2566 pragma Assert (False
2567 or else NT (N).Nkind in N_Op
2568 or else NT (N).Nkind = N_And_Then
2569 or else NT (N).Nkind = N_In
2570 or else NT (N).Nkind = N_Not_In
2571 or else NT (N).Nkind = N_Or_Else);
2575 function Rounded_Result
2576 (N : Node_Id) return Boolean is
2578 pragma Assert (False
2579 or else NT (N).Nkind = N_Op_Divide
2580 or else NT (N).Nkind = N_Op_Multiply
2581 or else NT (N).Nkind = N_Type_Conversion);
2585 function SCIL_Controlling_Tag
2586 (N : Node_Id) return Node_Id is
2588 pragma Assert (False
2589 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2591 end SCIL_Controlling_Tag;
2593 function SCIL_Entity
2594 (N : Node_Id) return Node_Id is
2596 pragma Assert (False
2597 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2598 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2599 or else NT (N).Nkind = N_SCIL_Membership_Test);
2603 function SCIL_Tag_Value
2604 (N : Node_Id) return Node_Id is
2606 pragma Assert (False
2607 or else NT (N).Nkind = N_SCIL_Membership_Test);
2611 function SCIL_Target_Prim
2612 (N : Node_Id) return Node_Id is
2614 pragma Assert (False
2615 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2617 end SCIL_Target_Prim;
2620 (N : Node_Id) return Node_Id is
2622 pragma Assert (False
2623 or else NT (N).Nkind = N_Defining_Character_Literal
2624 or else NT (N).Nkind = N_Defining_Identifier
2625 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2629 function Select_Alternatives
2630 (N : Node_Id) return List_Id is
2632 pragma Assert (False
2633 or else NT (N).Nkind = N_Selective_Accept);
2635 end Select_Alternatives;
2637 function Selector_Name
2638 (N : Node_Id) return Node_Id is
2640 pragma Assert (False
2641 or else NT (N).Nkind = N_Expanded_Name
2642 or else NT (N).Nkind = N_Generic_Association
2643 or else NT (N).Nkind = N_Parameter_Association
2644 or else NT (N).Nkind = N_Selected_Component);
2648 function Selector_Names
2649 (N : Node_Id) return List_Id is
2651 pragma Assert (False
2652 or else NT (N).Nkind = N_Discriminant_Association);
2656 function Shift_Count_OK
2657 (N : Node_Id) return Boolean is
2659 pragma Assert (False
2660 or else NT (N).Nkind = N_Op_Rotate_Left
2661 or else NT (N).Nkind = N_Op_Rotate_Right
2662 or else NT (N).Nkind = N_Op_Shift_Left
2663 or else NT (N).Nkind = N_Op_Shift_Right
2664 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2668 function Source_Type
2669 (N : Node_Id) return Entity_Id is
2671 pragma Assert (False
2672 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2676 function Specification
2677 (N : Node_Id) return Node_Id is
2679 pragma Assert (False
2680 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2681 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2682 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2683 or else NT (N).Nkind = N_Generic_Package_Declaration
2684 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2685 or else NT (N).Nkind = N_Package_Declaration
2686 or else NT (N).Nkind = N_Parameterized_Expression
2687 or else NT (N).Nkind = N_Subprogram_Body
2688 or else NT (N).Nkind = N_Subprogram_Body_Stub
2689 or else NT (N).Nkind = N_Subprogram_Declaration
2690 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2695 (N : Node_Id) return List_Id is
2697 pragma Assert (False
2698 or else NT (N).Nkind = N_Abortable_Part
2699 or else NT (N).Nkind = N_Accept_Alternative
2700 or else NT (N).Nkind = N_Case_Statement_Alternative
2701 or else NT (N).Nkind = N_Delay_Alternative
2702 or else NT (N).Nkind = N_Entry_Call_Alternative
2703 or else NT (N).Nkind = N_Exception_Handler
2704 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2705 or else NT (N).Nkind = N_Loop_Statement
2706 or else NT (N).Nkind = N_Triggering_Alternative);
2710 function Static_Processing_OK
2711 (N : Node_Id) return Boolean is
2713 pragma Assert (False
2714 or else NT (N).Nkind = N_Aggregate);
2716 end Static_Processing_OK;
2718 function Storage_Pool
2719 (N : Node_Id) return Node_Id is
2721 pragma Assert (False
2722 or else NT (N).Nkind = N_Allocator
2723 or else NT (N).Nkind = N_Extended_Return_Statement
2724 or else NT (N).Nkind = N_Free_Statement
2725 or else NT (N).Nkind = N_Return_Statement);
2730 (N : Node_Id) return String_Id is
2732 pragma Assert (False
2733 or else NT (N).Nkind = N_Operator_Symbol
2734 or else NT (N).Nkind = N_String_Literal);
2738 function Subtype_Indication
2739 (N : Node_Id) return Node_Id is
2741 pragma Assert (False
2742 or else NT (N).Nkind = N_Access_To_Object_Definition
2743 or else NT (N).Nkind = N_Component_Definition
2744 or else NT (N).Nkind = N_Derived_Type_Definition
2745 or else NT (N).Nkind = N_Private_Extension_Declaration
2746 or else NT (N).Nkind = N_Subtype_Declaration);
2748 end Subtype_Indication;
2750 function Suppress_Loop_Warnings
2751 (N : Node_Id) return Boolean is
2753 pragma Assert (False
2754 or else NT (N).Nkind = N_Loop_Statement);
2756 end Suppress_Loop_Warnings;
2758 function Subtype_Mark
2759 (N : Node_Id) return Node_Id is
2761 pragma Assert (False
2762 or else NT (N).Nkind = N_Access_Definition
2763 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2764 or else NT (N).Nkind = N_Formal_Object_Declaration
2765 or else NT (N).Nkind = N_Object_Renaming_Declaration
2766 or else NT (N).Nkind = N_Qualified_Expression
2767 or else NT (N).Nkind = N_Subtype_Indication
2768 or else NT (N).Nkind = N_Type_Conversion
2769 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2773 function Subtype_Marks
2774 (N : Node_Id) return List_Id is
2776 pragma Assert (False
2777 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2778 or else NT (N).Nkind = N_Use_Type_Clause);
2782 function Synchronized_Present
2783 (N : Node_Id) return Boolean is
2785 pragma Assert (False
2786 or else NT (N).Nkind = N_Derived_Type_Definition
2787 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2788 or else NT (N).Nkind = N_Private_Extension_Declaration
2789 or else NT (N).Nkind = N_Record_Definition);
2791 end Synchronized_Present;
2793 function Tagged_Present
2794 (N : Node_Id) return Boolean is
2796 pragma Assert (False
2797 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2798 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2799 or else NT (N).Nkind = N_Private_Type_Declaration
2800 or else NT (N).Nkind = N_Record_Definition);
2804 function Target_Type
2805 (N : Node_Id) return Entity_Id is
2807 pragma Assert (False
2808 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2812 function Task_Definition
2813 (N : Node_Id) return Node_Id is
2815 pragma Assert (False
2816 or else NT (N).Nkind = N_Single_Task_Declaration
2817 or else NT (N).Nkind = N_Task_Type_Declaration);
2819 end Task_Definition;
2821 function Task_Present
2822 (N : Node_Id) return Boolean is
2824 pragma Assert (False
2825 or else NT (N).Nkind = N_Derived_Type_Definition
2826 or else NT (N).Nkind = N_Record_Definition);
2830 function Then_Actions
2831 (N : Node_Id) return List_Id is
2833 pragma Assert (False
2834 or else NT (N).Nkind = N_Conditional_Expression);
2838 function Then_Statements
2839 (N : Node_Id) return List_Id is
2841 pragma Assert (False
2842 or else NT (N).Nkind = N_Elsif_Part
2843 or else NT (N).Nkind = N_If_Statement);
2845 end Then_Statements;
2847 function Treat_Fixed_As_Integer
2848 (N : Node_Id) return Boolean is
2850 pragma Assert (False
2851 or else NT (N).Nkind = N_Op_Divide
2852 or else NT (N).Nkind = N_Op_Mod
2853 or else NT (N).Nkind = N_Op_Multiply
2854 or else NT (N).Nkind = N_Op_Rem);
2856 end Treat_Fixed_As_Integer;
2858 function Triggering_Alternative
2859 (N : Node_Id) return Node_Id is
2861 pragma Assert (False
2862 or else NT (N).Nkind = N_Asynchronous_Select);
2864 end Triggering_Alternative;
2866 function Triggering_Statement
2867 (N : Node_Id) return Node_Id is
2869 pragma Assert (False
2870 or else NT (N).Nkind = N_Triggering_Alternative);
2872 end Triggering_Statement;
2875 (N : Node_Id) return Elist_Id is
2877 pragma Assert (False
2878 or else NT (N).Nkind = N_Freeze_Entity);
2882 function Type_Definition
2883 (N : Node_Id) return Node_Id is
2885 pragma Assert (False
2886 or else NT (N).Nkind = N_Full_Type_Declaration);
2888 end Type_Definition;
2891 (N : Node_Id) return Node_Id is
2893 pragma Assert (False
2894 or else NT (N).Nkind = N_Compilation_Unit);
2898 function Unknown_Discriminants_Present
2899 (N : Node_Id) return Boolean is
2901 pragma Assert (False
2902 or else NT (N).Nkind = N_Formal_Type_Declaration
2903 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2904 or else NT (N).Nkind = N_Private_Extension_Declaration
2905 or else NT (N).Nkind = N_Private_Type_Declaration);
2907 end Unknown_Discriminants_Present;
2909 function Unreferenced_In_Spec
2910 (N : Node_Id) return Boolean is
2912 pragma Assert (False
2913 or else NT (N).Nkind = N_With_Clause);
2915 end Unreferenced_In_Spec;
2917 function Variant_Part
2918 (N : Node_Id) return Node_Id is
2920 pragma Assert (False
2921 or else NT (N).Nkind = N_Component_List);
2926 (N : Node_Id) return List_Id is
2928 pragma Assert (False
2929 or else NT (N).Nkind = N_Variant_Part);
2933 function Visible_Declarations
2934 (N : Node_Id) return List_Id is
2936 pragma Assert (False
2937 or else NT (N).Nkind = N_Package_Specification
2938 or else NT (N).Nkind = N_Protected_Definition
2939 or else NT (N).Nkind = N_Task_Definition);
2941 end Visible_Declarations;
2943 function Was_Originally_Stub
2944 (N : Node_Id) return Boolean is
2946 pragma Assert (False
2947 or else NT (N).Nkind = N_Package_Body
2948 or else NT (N).Nkind = N_Protected_Body
2949 or else NT (N).Nkind = N_Subprogram_Body
2950 or else NT (N).Nkind = N_Task_Body);
2952 end Was_Originally_Stub;
2954 function Withed_Body
2955 (N : Node_Id) return Node_Id is
2957 pragma Assert (False
2958 or else NT (N).Nkind = N_With_Clause);
2962 function Zero_Cost_Handling
2963 (N : Node_Id) return Boolean is
2965 pragma Assert (False
2966 or else NT (N).Nkind = N_Exception_Handler
2967 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2969 end Zero_Cost_Handling;
2971 --------------------------
2972 -- Field Set Procedures --
2973 --------------------------
2975 procedure Set_ABE_Is_Certain
2976 (N : Node_Id; Val : Boolean := True) is
2978 pragma Assert (False
2979 or else NT (N).Nkind = N_Formal_Package_Declaration
2980 or else NT (N).Nkind = N_Function_Call
2981 or else NT (N).Nkind = N_Function_Instantiation
2982 or else NT (N).Nkind = N_Package_Instantiation
2983 or else NT (N).Nkind = N_Procedure_Call_Statement
2984 or else NT (N).Nkind = N_Procedure_Instantiation);
2985 Set_Flag18 (N, Val);
2986 end Set_ABE_Is_Certain;
2988 procedure Set_Abort_Present
2989 (N : Node_Id; Val : Boolean := True) is
2991 pragma Assert (False
2992 or else NT (N).Nkind = N_Requeue_Statement);
2993 Set_Flag15 (N, Val);
2994 end Set_Abort_Present;
2996 procedure Set_Abortable_Part
2997 (N : Node_Id; Val : Node_Id) is
2999 pragma Assert (False
3000 or else NT (N).Nkind = N_Asynchronous_Select);
3001 Set_Node2_With_Parent (N, Val);
3002 end Set_Abortable_Part;
3004 procedure Set_Abstract_Present
3005 (N : Node_Id; Val : Boolean := True) is
3007 pragma Assert (False
3008 or else NT (N).Nkind = N_Derived_Type_Definition
3009 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3010 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3011 or else NT (N).Nkind = N_Private_Extension_Declaration
3012 or else NT (N).Nkind = N_Private_Type_Declaration
3013 or else NT (N).Nkind = N_Record_Definition);
3015 end Set_Abstract_Present;
3017 procedure Set_Accept_Handler_Records
3018 (N : Node_Id; Val : List_Id) is
3020 pragma Assert (False
3021 or else NT (N).Nkind = N_Accept_Alternative);
3022 Set_List5 (N, Val); -- semantic field, no parent set
3023 end Set_Accept_Handler_Records;
3025 procedure Set_Accept_Statement
3026 (N : Node_Id; Val : Node_Id) is
3028 pragma Assert (False
3029 or else NT (N).Nkind = N_Accept_Alternative);
3030 Set_Node2_With_Parent (N, Val);
3031 end Set_Accept_Statement;
3033 procedure Set_Access_Definition
3034 (N : Node_Id; Val : Node_Id) is
3036 pragma Assert (False
3037 or else NT (N).Nkind = N_Component_Definition
3038 or else NT (N).Nkind = N_Formal_Object_Declaration
3039 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3040 Set_Node3_With_Parent (N, Val);
3041 end Set_Access_Definition;
3043 procedure Set_Access_To_Subprogram_Definition
3044 (N : Node_Id; Val : Node_Id) is
3046 pragma Assert (False
3047 or else NT (N).Nkind = N_Access_Definition);
3048 Set_Node3_With_Parent (N, Val);
3049 end Set_Access_To_Subprogram_Definition;
3051 procedure Set_Access_Types_To_Process
3052 (N : Node_Id; Val : Elist_Id) is
3054 pragma Assert (False
3055 or else NT (N).Nkind = N_Freeze_Entity);
3056 Set_Elist2 (N, Val); -- semantic field, no parent set
3057 end Set_Access_Types_To_Process;
3059 procedure Set_Actions
3060 (N : Node_Id; Val : List_Id) is
3062 pragma Assert (False
3063 or else NT (N).Nkind = N_And_Then
3064 or else NT (N).Nkind = N_Case_Expression_Alternative
3065 or else NT (N).Nkind = N_Compilation_Unit_Aux
3066 or else NT (N).Nkind = N_Expression_With_Actions
3067 or else NT (N).Nkind = N_Freeze_Entity
3068 or else NT (N).Nkind = N_Or_Else);
3069 Set_List1_With_Parent (N, Val);
3072 procedure Set_Activation_Chain_Entity
3073 (N : Node_Id; Val : Node_Id) is
3075 pragma Assert (False
3076 or else NT (N).Nkind = N_Block_Statement
3077 or else NT (N).Nkind = N_Entry_Body
3078 or else NT (N).Nkind = N_Generic_Package_Declaration
3079 or else NT (N).Nkind = N_Package_Declaration
3080 or else NT (N).Nkind = N_Subprogram_Body
3081 or else NT (N).Nkind = N_Task_Body);
3082 Set_Node3 (N, Val); -- semantic field, no parent set
3083 end Set_Activation_Chain_Entity;
3085 procedure Set_Acts_As_Spec
3086 (N : Node_Id; Val : Boolean := True) is
3088 pragma Assert (False
3089 or else NT (N).Nkind = N_Compilation_Unit
3090 or else NT (N).Nkind = N_Subprogram_Body);
3092 end Set_Acts_As_Spec;
3094 procedure Set_Actual_Designated_Subtype
3095 (N : Node_Id; Val : Node_Id) is
3097 pragma Assert (False
3098 or else NT (N).Nkind = N_Explicit_Dereference
3099 or else NT (N).Nkind = N_Free_Statement);
3101 end Set_Actual_Designated_Subtype;
3103 procedure Set_Address_Warning_Posted
3104 (N : Node_Id; Val : Boolean := True) is
3106 pragma Assert (False
3107 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3108 Set_Flag18 (N, Val);
3109 end Set_Address_Warning_Posted;
3111 procedure Set_Aggregate_Bounds
3112 (N : Node_Id; Val : Node_Id) is
3114 pragma Assert (False
3115 or else NT (N).Nkind = N_Aggregate);
3116 Set_Node3 (N, Val); -- semantic field, no parent set
3117 end Set_Aggregate_Bounds;
3119 procedure Set_Aliased_Present
3120 (N : Node_Id; Val : Boolean := True) is
3122 pragma Assert (False
3123 or else NT (N).Nkind = N_Component_Definition
3124 or else NT (N).Nkind = N_Object_Declaration);
3126 end Set_Aliased_Present;
3128 procedure Set_All_Others
3129 (N : Node_Id; Val : Boolean := True) is
3131 pragma Assert (False
3132 or else NT (N).Nkind = N_Others_Choice);
3133 Set_Flag11 (N, Val);
3136 procedure Set_All_Present
3137 (N : Node_Id; Val : Boolean := True) is
3139 pragma Assert (False
3140 or else NT (N).Nkind = N_Access_Definition
3141 or else NT (N).Nkind = N_Access_To_Object_Definition
3142 or else NT (N).Nkind = N_Use_Type_Clause);
3143 Set_Flag15 (N, Val);
3144 end Set_All_Present;
3146 procedure Set_Alternatives
3147 (N : Node_Id; Val : List_Id) is
3149 pragma Assert (False
3150 or else NT (N).Nkind = N_Case_Expression
3151 or else NT (N).Nkind = N_Case_Statement
3152 or else NT (N).Nkind = N_In
3153 or else NT (N).Nkind = N_Not_In);
3154 Set_List4_With_Parent (N, Val);
3155 end Set_Alternatives;
3157 procedure Set_Ancestor_Part
3158 (N : Node_Id; Val : Node_Id) is
3160 pragma Assert (False
3161 or else NT (N).Nkind = N_Extension_Aggregate);
3162 Set_Node3_With_Parent (N, Val);
3163 end Set_Ancestor_Part;
3165 procedure Set_Array_Aggregate
3166 (N : Node_Id; Val : Node_Id) is
3168 pragma Assert (False
3169 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3170 Set_Node3_With_Parent (N, Val);
3171 end Set_Array_Aggregate;
3173 procedure Set_Assignment_OK
3174 (N : Node_Id; Val : Boolean := True) is
3176 pragma Assert (False
3177 or else NT (N).Nkind = N_Object_Declaration
3178 or else NT (N).Nkind in N_Subexpr);
3179 Set_Flag15 (N, Val);
3180 end Set_Assignment_OK;
3182 procedure Set_Associated_Node
3183 (N : Node_Id; Val : Node_Id) is
3185 pragma Assert (False
3186 or else NT (N).Nkind in N_Has_Entity
3187 or else NT (N).Nkind = N_Aggregate
3188 or else NT (N).Nkind = N_Extension_Aggregate
3189 or else NT (N).Nkind = N_Selected_Component);
3190 Set_Node4 (N, Val); -- semantic field, no parent set
3191 end Set_Associated_Node;
3193 procedure Set_At_End_Proc
3194 (N : Node_Id; Val : Node_Id) is
3196 pragma Assert (False
3197 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3199 end Set_At_End_Proc;
3201 procedure Set_Attribute_Name
3202 (N : Node_Id; Val : Name_Id) is
3204 pragma Assert (False
3205 or else NT (N).Nkind = N_Attribute_Reference);
3207 end Set_Attribute_Name;
3209 procedure Set_Aux_Decls_Node
3210 (N : Node_Id; Val : Node_Id) is
3212 pragma Assert (False
3213 or else NT (N).Nkind = N_Compilation_Unit);
3214 Set_Node5_With_Parent (N, Val);
3215 end Set_Aux_Decls_Node;
3217 procedure Set_Backwards_OK
3218 (N : Node_Id; Val : Boolean := True) is
3220 pragma Assert (False
3221 or else NT (N).Nkind = N_Assignment_Statement);
3223 end Set_Backwards_OK;
3225 procedure Set_Bad_Is_Detected
3226 (N : Node_Id; Val : Boolean := True) is
3228 pragma Assert (False
3229 or else NT (N).Nkind = N_Subprogram_Body);
3230 Set_Flag15 (N, Val);
3231 end Set_Bad_Is_Detected;
3233 procedure Set_Body_Required
3234 (N : Node_Id; Val : Boolean := True) is
3236 pragma Assert (False
3237 or else NT (N).Nkind = N_Compilation_Unit);
3238 Set_Flag13 (N, Val);
3239 end Set_Body_Required;
3241 procedure Set_Body_To_Inline
3242 (N : Node_Id; Val : Node_Id) is
3244 pragma Assert (False
3245 or else NT (N).Nkind = N_Subprogram_Declaration);
3247 end Set_Body_To_Inline;
3249 procedure Set_Box_Present
3250 (N : Node_Id; Val : Boolean := True) is
3252 pragma Assert (False
3253 or else NT (N).Nkind = N_Component_Association
3254 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3255 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3256 or else NT (N).Nkind = N_Formal_Package_Declaration
3257 or else NT (N).Nkind = N_Generic_Association);
3258 Set_Flag15 (N, Val);
3259 end Set_Box_Present;
3261 procedure Set_By_Ref
3262 (N : Node_Id; Val : Boolean := True) is
3264 pragma Assert (False
3265 or else NT (N).Nkind = N_Extended_Return_Statement
3266 or else NT (N).Nkind = N_Return_Statement);
3270 procedure Set_Char_Literal_Value
3271 (N : Node_Id; Val : Uint) is
3273 pragma Assert (False
3274 or else NT (N).Nkind = N_Character_Literal);
3276 end Set_Char_Literal_Value;
3279 (N : Node_Id; Val : Name_Id) is
3281 pragma Assert (False
3282 or else NT (N).Nkind in N_Has_Chars);
3286 procedure Set_Check_Address_Alignment
3287 (N : Node_Id; Val : Boolean := True) is
3289 pragma Assert (False
3290 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3291 Set_Flag11 (N, Val);
3292 end Set_Check_Address_Alignment;
3294 procedure Set_Choice_Parameter
3295 (N : Node_Id; Val : Node_Id) is
3297 pragma Assert (False
3298 or else NT (N).Nkind = N_Exception_Handler);
3299 Set_Node2_With_Parent (N, Val);
3300 end Set_Choice_Parameter;
3302 procedure Set_Choices
3303 (N : Node_Id; Val : List_Id) is
3305 pragma Assert (False
3306 or else NT (N).Nkind = N_Component_Association);
3307 Set_List1_With_Parent (N, Val);
3310 procedure Set_Coextensions
3311 (N : Node_Id; Val : Elist_Id) is
3313 pragma Assert (False
3314 or else NT (N).Nkind = N_Allocator);
3315 Set_Elist4 (N, Val);
3316 end Set_Coextensions;
3318 procedure Set_Comes_From_Extended_Return_Statement
3319 (N : Node_Id; Val : Boolean := True) is
3321 pragma Assert (False
3322 or else NT (N).Nkind = N_Return_Statement);
3323 Set_Flag18 (N, Val);
3324 end Set_Comes_From_Extended_Return_Statement;
3326 procedure Set_Compile_Time_Known_Aggregate
3327 (N : Node_Id; Val : Boolean := True) is
3329 pragma Assert (False
3330 or else NT (N).Nkind = N_Aggregate);
3331 Set_Flag18 (N, Val);
3332 end Set_Compile_Time_Known_Aggregate;
3334 procedure Set_Component_Associations
3335 (N : Node_Id; Val : List_Id) is
3337 pragma Assert (False
3338 or else NT (N).Nkind = N_Aggregate
3339 or else NT (N).Nkind = N_Extension_Aggregate);
3340 Set_List2_With_Parent (N, Val);
3341 end Set_Component_Associations;
3343 procedure Set_Component_Clauses
3344 (N : Node_Id; Val : List_Id) is
3346 pragma Assert (False
3347 or else NT (N).Nkind = N_Record_Representation_Clause);
3348 Set_List3_With_Parent (N, Val);
3349 end Set_Component_Clauses;
3351 procedure Set_Component_Definition
3352 (N : Node_Id; Val : Node_Id) is
3354 pragma Assert (False
3355 or else NT (N).Nkind = N_Component_Declaration
3356 or else NT (N).Nkind = N_Constrained_Array_Definition
3357 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3358 Set_Node4_With_Parent (N, Val);
3359 end Set_Component_Definition;
3361 procedure Set_Component_Items
3362 (N : Node_Id; Val : List_Id) is
3364 pragma Assert (False
3365 or else NT (N).Nkind = N_Component_List);
3366 Set_List3_With_Parent (N, Val);
3367 end Set_Component_Items;
3369 procedure Set_Component_List
3370 (N : Node_Id; Val : Node_Id) is
3372 pragma Assert (False
3373 or else NT (N).Nkind = N_Record_Definition
3374 or else NT (N).Nkind = N_Variant);
3375 Set_Node1_With_Parent (N, Val);
3376 end Set_Component_List;
3378 procedure Set_Component_Name
3379 (N : Node_Id; Val : Node_Id) is
3381 pragma Assert (False
3382 or else NT (N).Nkind = N_Component_Clause);
3383 Set_Node1_With_Parent (N, Val);
3384 end Set_Component_Name;
3386 procedure Set_Componentwise_Assignment
3387 (N : Node_Id; Val : Boolean := True) is
3389 pragma Assert (False
3390 or else NT (N).Nkind = N_Assignment_Statement);
3391 Set_Flag14 (N, Val);
3392 end Set_Componentwise_Assignment;
3394 procedure Set_Condition
3395 (N : Node_Id; Val : Node_Id) is
3397 pragma Assert (False
3398 or else NT (N).Nkind = N_Accept_Alternative
3399 or else NT (N).Nkind = N_Delay_Alternative
3400 or else NT (N).Nkind = N_Elsif_Part
3401 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3402 or else NT (N).Nkind = N_Exit_Statement
3403 or else NT (N).Nkind = N_If_Statement
3404 or else NT (N).Nkind = N_Iteration_Scheme
3405 or else NT (N).Nkind = N_Raise_Constraint_Error
3406 or else NT (N).Nkind = N_Raise_Program_Error
3407 or else NT (N).Nkind = N_Raise_Storage_Error
3408 or else NT (N).Nkind = N_Terminate_Alternative);
3409 Set_Node1_With_Parent (N, Val);
3412 procedure Set_Condition_Actions
3413 (N : Node_Id; Val : List_Id) is
3415 pragma Assert (False
3416 or else NT (N).Nkind = N_Elsif_Part
3417 or else NT (N).Nkind = N_Iteration_Scheme);
3418 Set_List3 (N, Val); -- semantic field, no parent set
3419 end Set_Condition_Actions;
3421 procedure Set_Config_Pragmas
3422 (N : Node_Id; Val : List_Id) is
3424 pragma Assert (False
3425 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3426 Set_List4_With_Parent (N, Val);
3427 end Set_Config_Pragmas;
3429 procedure Set_Constant_Present
3430 (N : Node_Id; Val : Boolean := True) is
3432 pragma Assert (False
3433 or else NT (N).Nkind = N_Access_Definition
3434 or else NT (N).Nkind = N_Access_To_Object_Definition
3435 or else NT (N).Nkind = N_Object_Declaration);
3436 Set_Flag17 (N, Val);
3437 end Set_Constant_Present;
3439 procedure Set_Constraint
3440 (N : Node_Id; Val : Node_Id) is
3442 pragma Assert (False
3443 or else NT (N).Nkind = N_Subtype_Indication);
3444 Set_Node3_With_Parent (N, Val);
3447 procedure Set_Constraints
3448 (N : Node_Id; Val : List_Id) is
3450 pragma Assert (False
3451 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3452 Set_List1_With_Parent (N, Val);
3453 end Set_Constraints;
3455 procedure Set_Context_Installed
3456 (N : Node_Id; Val : Boolean := True) is
3458 pragma Assert (False
3459 or else NT (N).Nkind = N_With_Clause);
3460 Set_Flag13 (N, Val);
3461 end Set_Context_Installed;
3463 procedure Set_Context_Items
3464 (N : Node_Id; Val : List_Id) is
3466 pragma Assert (False
3467 or else NT (N).Nkind = N_Compilation_Unit);
3468 Set_List1_With_Parent (N, Val);
3469 end Set_Context_Items;
3471 procedure Set_Context_Pending
3472 (N : Node_Id; Val : Boolean := True) is
3474 pragma Assert (False
3475 or else NT (N).Nkind = N_Compilation_Unit);
3476 Set_Flag16 (N, Val);
3477 end Set_Context_Pending;
3479 procedure Set_Controlling_Argument
3480 (N : Node_Id; Val : Node_Id) is
3482 pragma Assert (False
3483 or else NT (N).Nkind = N_Function_Call
3484 or else NT (N).Nkind = N_Procedure_Call_Statement);
3485 Set_Node1 (N, Val); -- semantic field, no parent set
3486 end Set_Controlling_Argument;
3488 procedure Set_Conversion_OK
3489 (N : Node_Id; Val : Boolean := True) is
3491 pragma Assert (False
3492 or else NT (N).Nkind = N_Type_Conversion);
3493 Set_Flag14 (N, Val);
3494 end Set_Conversion_OK;
3496 procedure Set_Corresponding_Body
3497 (N : Node_Id; Val : Node_Id) is
3499 pragma Assert (False
3500 or else NT (N).Nkind = N_Entry_Declaration
3501 or else NT (N).Nkind = N_Generic_Package_Declaration
3502 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3503 or else NT (N).Nkind = N_Package_Body_Stub
3504 or else NT (N).Nkind = N_Package_Declaration
3505 or else NT (N).Nkind = N_Protected_Body_Stub
3506 or else NT (N).Nkind = N_Protected_Type_Declaration
3507 or else NT (N).Nkind = N_Subprogram_Body_Stub
3508 or else NT (N).Nkind = N_Subprogram_Declaration
3509 or else NT (N).Nkind = N_Task_Body_Stub
3510 or else NT (N).Nkind = N_Task_Type_Declaration);
3511 Set_Node5 (N, Val); -- semantic field, no parent set
3512 end Set_Corresponding_Body;
3514 procedure Set_Corresponding_Formal_Spec
3515 (N : Node_Id; Val : Node_Id) is
3517 pragma Assert (False
3518 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3519 Set_Node3 (N, Val); -- semantic field, no parent set
3520 end Set_Corresponding_Formal_Spec;
3522 procedure Set_Corresponding_Generic_Association
3523 (N : Node_Id; Val : Node_Id) is
3525 pragma Assert (False
3526 or else NT (N).Nkind = N_Object_Declaration
3527 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3528 Set_Node5 (N, Val); -- semantic field, no parent set
3529 end Set_Corresponding_Generic_Association;
3531 procedure Set_Corresponding_Integer_Value
3532 (N : Node_Id; Val : Uint) is
3534 pragma Assert (False
3535 or else NT (N).Nkind = N_Real_Literal);
3536 Set_Uint4 (N, Val); -- semantic field, no parent set
3537 end Set_Corresponding_Integer_Value;
3539 procedure Set_Corresponding_Spec
3540 (N : Node_Id; Val : Node_Id) is
3542 pragma Assert (False
3543 or else NT (N).Nkind = N_Package_Body
3544 or else NT (N).Nkind = N_Protected_Body
3545 or else NT (N).Nkind = N_Subprogram_Body
3546 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3547 or else NT (N).Nkind = N_Task_Body
3548 or else NT (N).Nkind = N_With_Clause);
3549 Set_Node5 (N, Val); -- semantic field, no parent set
3550 end Set_Corresponding_Spec;
3552 procedure Set_Corresponding_Stub
3553 (N : Node_Id; Val : Node_Id) is
3555 pragma Assert (False
3556 or else NT (N).Nkind = N_Subunit);
3558 end Set_Corresponding_Stub;
3560 procedure Set_Dcheck_Function
3561 (N : Node_Id; Val : Entity_Id) is
3563 pragma Assert (False
3564 or else NT (N).Nkind = N_Variant);
3565 Set_Node5 (N, Val); -- semantic field, no parent set
3566 end Set_Dcheck_Function;
3568 procedure Set_Debug_Statement
3569 (N : Node_Id; Val : Node_Id) is
3571 pragma Assert (False
3572 or else NT (N).Nkind = N_Pragma);
3573 Set_Node3_With_Parent (N, Val);
3574 end Set_Debug_Statement;
3576 procedure Set_Declarations
3577 (N : Node_Id; Val : List_Id) is
3579 pragma Assert (False
3580 or else NT (N).Nkind = N_Accept_Statement
3581 or else NT (N).Nkind = N_Block_Statement
3582 or else NT (N).Nkind = N_Compilation_Unit_Aux
3583 or else NT (N).Nkind = N_Entry_Body
3584 or else NT (N).Nkind = N_Package_Body
3585 or else NT (N).Nkind = N_Protected_Body
3586 or else NT (N).Nkind = N_Subprogram_Body
3587 or else NT (N).Nkind = N_Task_Body);
3588 Set_List2_With_Parent (N, Val);
3589 end Set_Declarations;
3591 procedure Set_Default_Expression
3592 (N : Node_Id; Val : Node_Id) is
3594 pragma Assert (False
3595 or else NT (N).Nkind = N_Formal_Object_Declaration
3596 or else NT (N).Nkind = N_Parameter_Specification);
3597 Set_Node5 (N, Val); -- semantic field, no parent set
3598 end Set_Default_Expression;
3600 procedure Set_Default_Name
3601 (N : Node_Id; Val : Node_Id) is
3603 pragma Assert (False
3604 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3605 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3606 Set_Node2_With_Parent (N, Val);
3607 end Set_Default_Name;
3609 procedure Set_Defining_Identifier
3610 (N : Node_Id; Val : Entity_Id) is
3612 pragma Assert (False
3613 or else NT (N).Nkind = N_Component_Declaration
3614 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3615 or else NT (N).Nkind = N_Discriminant_Specification
3616 or else NT (N).Nkind = N_Entry_Body
3617 or else NT (N).Nkind = N_Entry_Declaration
3618 or else NT (N).Nkind = N_Entry_Index_Specification
3619 or else NT (N).Nkind = N_Exception_Declaration
3620 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3621 or else NT (N).Nkind = N_Formal_Object_Declaration
3622 or else NT (N).Nkind = N_Formal_Package_Declaration
3623 or else NT (N).Nkind = N_Formal_Type_Declaration
3624 or else NT (N).Nkind = N_Full_Type_Declaration
3625 or else NT (N).Nkind = N_Implicit_Label_Declaration
3626 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3627 or else NT (N).Nkind = N_Loop_Parameter_Specification
3628 or else NT (N).Nkind = N_Number_Declaration
3629 or else NT (N).Nkind = N_Object_Declaration
3630 or else NT (N).Nkind = N_Object_Renaming_Declaration
3631 or else NT (N).Nkind = N_Package_Body_Stub
3632 or else NT (N).Nkind = N_Parameter_Specification
3633 or else NT (N).Nkind = N_Private_Extension_Declaration
3634 or else NT (N).Nkind = N_Private_Type_Declaration
3635 or else NT (N).Nkind = N_Protected_Body
3636 or else NT (N).Nkind = N_Protected_Body_Stub
3637 or else NT (N).Nkind = N_Protected_Type_Declaration
3638 or else NT (N).Nkind = N_Single_Protected_Declaration
3639 or else NT (N).Nkind = N_Single_Task_Declaration
3640 or else NT (N).Nkind = N_Subtype_Declaration
3641 or else NT (N).Nkind = N_Task_Body
3642 or else NT (N).Nkind = N_Task_Body_Stub
3643 or else NT (N).Nkind = N_Task_Type_Declaration);
3644 Set_Node1_With_Parent (N, Val);
3645 end Set_Defining_Identifier;
3647 procedure Set_Defining_Unit_Name
3648 (N : Node_Id; Val : Node_Id) is
3650 pragma Assert (False
3651 or else NT (N).Nkind = N_Function_Instantiation
3652 or else NT (N).Nkind = N_Function_Specification
3653 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3654 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3655 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3656 or else NT (N).Nkind = N_Package_Body
3657 or else NT (N).Nkind = N_Package_Instantiation
3658 or else NT (N).Nkind = N_Package_Renaming_Declaration
3659 or else NT (N).Nkind = N_Package_Specification
3660 or else NT (N).Nkind = N_Procedure_Instantiation
3661 or else NT (N).Nkind = N_Procedure_Specification);
3662 Set_Node1_With_Parent (N, Val);
3663 end Set_Defining_Unit_Name;
3665 procedure Set_Delay_Alternative
3666 (N : Node_Id; Val : Node_Id) is
3668 pragma Assert (False
3669 or else NT (N).Nkind = N_Timed_Entry_Call);
3670 Set_Node4_With_Parent (N, Val);
3671 end Set_Delay_Alternative;
3673 procedure Set_Delay_Statement
3674 (N : Node_Id; Val : Node_Id) is
3676 pragma Assert (False
3677 or else NT (N).Nkind = N_Delay_Alternative);
3678 Set_Node2_With_Parent (N, Val);
3679 end Set_Delay_Statement;
3681 procedure Set_Delta_Expression
3682 (N : Node_Id; Val : Node_Id) is
3684 pragma Assert (False
3685 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3686 or else NT (N).Nkind = N_Delta_Constraint
3687 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3688 Set_Node3_With_Parent (N, Val);
3689 end Set_Delta_Expression;
3691 procedure Set_Digits_Expression
3692 (N : Node_Id; Val : Node_Id) is
3694 pragma Assert (False
3695 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3696 or else NT (N).Nkind = N_Digits_Constraint
3697 or else NT (N).Nkind = N_Floating_Point_Definition);
3698 Set_Node2_With_Parent (N, Val);
3699 end Set_Digits_Expression;
3701 procedure Set_Discr_Check_Funcs_Built
3702 (N : Node_Id; Val : Boolean := True) is
3704 pragma Assert (False
3705 or else NT (N).Nkind = N_Full_Type_Declaration);
3706 Set_Flag11 (N, Val);
3707 end Set_Discr_Check_Funcs_Built;
3709 procedure Set_Discrete_Choices
3710 (N : Node_Id; Val : List_Id) is
3712 pragma Assert (False
3713 or else NT (N).Nkind = N_Case_Expression_Alternative
3714 or else NT (N).Nkind = N_Case_Statement_Alternative
3715 or else NT (N).Nkind = N_Variant);
3716 Set_List4_With_Parent (N, Val);
3717 end Set_Discrete_Choices;
3719 procedure Set_Discrete_Range
3720 (N : Node_Id; Val : Node_Id) is
3722 pragma Assert (False
3723 or else NT (N).Nkind = N_Slice);
3724 Set_Node4_With_Parent (N, Val);
3725 end Set_Discrete_Range;
3727 procedure Set_Discrete_Subtype_Definition
3728 (N : Node_Id; Val : Node_Id) is
3730 pragma Assert (False
3731 or else NT (N).Nkind = N_Entry_Declaration
3732 or else NT (N).Nkind = N_Entry_Index_Specification
3733 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3734 Set_Node4_With_Parent (N, Val);
3735 end Set_Discrete_Subtype_Definition;
3737 procedure Set_Discrete_Subtype_Definitions
3738 (N : Node_Id; Val : List_Id) is
3740 pragma Assert (False
3741 or else NT (N).Nkind = N_Constrained_Array_Definition);
3742 Set_List2_With_Parent (N, Val);
3743 end Set_Discrete_Subtype_Definitions;
3745 procedure Set_Discriminant_Specifications
3746 (N : Node_Id; Val : List_Id) is
3748 pragma Assert (False
3749 or else NT (N).Nkind = N_Formal_Type_Declaration
3750 or else NT (N).Nkind = N_Full_Type_Declaration
3751 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3752 or else NT (N).Nkind = N_Private_Extension_Declaration
3753 or else NT (N).Nkind = N_Private_Type_Declaration
3754 or else NT (N).Nkind = N_Protected_Type_Declaration
3755 or else NT (N).Nkind = N_Task_Type_Declaration);
3756 Set_List4_With_Parent (N, Val);
3757 end Set_Discriminant_Specifications;
3759 procedure Set_Discriminant_Type
3760 (N : Node_Id; Val : Node_Id) is
3762 pragma Assert (False
3763 or else NT (N).Nkind = N_Discriminant_Specification);
3764 Set_Node5_With_Parent (N, Val);
3765 end Set_Discriminant_Type;
3767 procedure Set_Do_Accessibility_Check
3768 (N : Node_Id; Val : Boolean := True) is
3770 pragma Assert (False
3771 or else NT (N).Nkind = N_Parameter_Specification);
3772 Set_Flag13 (N, Val);
3773 end Set_Do_Accessibility_Check;
3775 procedure Set_Do_Discriminant_Check
3776 (N : Node_Id; Val : Boolean := True) is
3778 pragma Assert (False
3779 or else NT (N).Nkind = N_Selected_Component);
3780 Set_Flag13 (N, Val);
3781 end Set_Do_Discriminant_Check;
3783 procedure Set_Do_Division_Check
3784 (N : Node_Id; Val : Boolean := True) is
3786 pragma Assert (False
3787 or else NT (N).Nkind = N_Op_Divide
3788 or else NT (N).Nkind = N_Op_Mod
3789 or else NT (N).Nkind = N_Op_Rem);
3790 Set_Flag13 (N, Val);
3791 end Set_Do_Division_Check;
3793 procedure Set_Do_Length_Check
3794 (N : Node_Id; Val : Boolean := True) is
3796 pragma Assert (False
3797 or else NT (N).Nkind = N_Assignment_Statement
3798 or else NT (N).Nkind = N_Op_And
3799 or else NT (N).Nkind = N_Op_Or
3800 or else NT (N).Nkind = N_Op_Xor
3801 or else NT (N).Nkind = N_Type_Conversion);
3803 end Set_Do_Length_Check;
3805 procedure Set_Do_Overflow_Check
3806 (N : Node_Id; Val : Boolean := True) is
3808 pragma Assert (False
3809 or else NT (N).Nkind in N_Op
3810 or else NT (N).Nkind = N_Attribute_Reference
3811 or else NT (N).Nkind = N_Type_Conversion);
3812 Set_Flag17 (N, Val);
3813 end Set_Do_Overflow_Check;
3815 procedure Set_Do_Range_Check
3816 (N : Node_Id; Val : Boolean := True) is
3818 pragma Assert (False
3819 or else NT (N).Nkind in N_Subexpr);
3821 end Set_Do_Range_Check;
3823 procedure Set_Do_Storage_Check
3824 (N : Node_Id; Val : Boolean := True) is
3826 pragma Assert (False
3827 or else NT (N).Nkind = N_Allocator
3828 or else NT (N).Nkind = N_Subprogram_Body);
3829 Set_Flag17 (N, Val);
3830 end Set_Do_Storage_Check;
3832 procedure Set_Do_Tag_Check
3833 (N : Node_Id; Val : Boolean := True) is
3835 pragma Assert (False
3836 or else NT (N).Nkind = N_Assignment_Statement
3837 or else NT (N).Nkind = N_Extended_Return_Statement
3838 or else NT (N).Nkind = N_Function_Call
3839 or else NT (N).Nkind = N_Procedure_Call_Statement
3840 or else NT (N).Nkind = N_Return_Statement
3841 or else NT (N).Nkind = N_Type_Conversion);
3842 Set_Flag13 (N, Val);
3843 end Set_Do_Tag_Check;
3845 procedure Set_Elaborate_All_Desirable
3846 (N : Node_Id; Val : Boolean := True) is
3848 pragma Assert (False
3849 or else NT (N).Nkind = N_With_Clause);
3851 end Set_Elaborate_All_Desirable;
3853 procedure Set_Elaborate_All_Present
3854 (N : Node_Id; Val : Boolean := True) is
3856 pragma Assert (False
3857 or else NT (N).Nkind = N_With_Clause);
3858 Set_Flag14 (N, Val);
3859 end Set_Elaborate_All_Present;
3861 procedure Set_Elaborate_Desirable
3862 (N : Node_Id; Val : Boolean := True) is
3864 pragma Assert (False
3865 or else NT (N).Nkind = N_With_Clause);
3866 Set_Flag11 (N, Val);
3867 end Set_Elaborate_Desirable;
3869 procedure Set_Elaborate_Present
3870 (N : Node_Id; Val : Boolean := True) is
3872 pragma Assert (False
3873 or else NT (N).Nkind = N_With_Clause);
3875 end Set_Elaborate_Present;
3877 procedure Set_Elaboration_Boolean
3878 (N : Node_Id; Val : Node_Id) is
3880 pragma Assert (False
3881 or else NT (N).Nkind = N_Function_Specification
3882 or else NT (N).Nkind = N_Procedure_Specification);
3884 end Set_Elaboration_Boolean;
3886 procedure Set_Else_Actions
3887 (N : Node_Id; Val : List_Id) is
3889 pragma Assert (False
3890 or else NT (N).Nkind = N_Conditional_Expression);
3891 Set_List3 (N, Val); -- semantic field, no parent set
3892 end Set_Else_Actions;
3894 procedure Set_Else_Statements
3895 (N : Node_Id; Val : List_Id) is
3897 pragma Assert (False
3898 or else NT (N).Nkind = N_Conditional_Entry_Call
3899 or else NT (N).Nkind = N_If_Statement
3900 or else NT (N).Nkind = N_Selective_Accept);
3901 Set_List4_With_Parent (N, Val);
3902 end Set_Else_Statements;
3904 procedure Set_Elsif_Parts
3905 (N : Node_Id; Val : List_Id) is
3907 pragma Assert (False
3908 or else NT (N).Nkind = N_If_Statement);
3909 Set_List3_With_Parent (N, Val);
3910 end Set_Elsif_Parts;
3912 procedure Set_Enclosing_Variant
3913 (N : Node_Id; Val : Node_Id) is
3915 pragma Assert (False
3916 or else NT (N).Nkind = N_Variant);
3917 Set_Node2 (N, Val); -- semantic field, no parent set
3918 end Set_Enclosing_Variant;
3920 procedure Set_End_Label
3921 (N : Node_Id; Val : Node_Id) is
3923 pragma Assert (False
3924 or else NT (N).Nkind = N_Enumeration_Type_Definition
3925 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
3926 or else NT (N).Nkind = N_Loop_Statement
3927 or else NT (N).Nkind = N_Package_Specification
3928 or else NT (N).Nkind = N_Protected_Body
3929 or else NT (N).Nkind = N_Protected_Definition
3930 or else NT (N).Nkind = N_Record_Definition
3931 or else NT (N).Nkind = N_Task_Definition);
3932 Set_Node4_With_Parent (N, Val);
3935 procedure Set_End_Span
3936 (N : Node_Id; Val : Uint) is
3938 pragma Assert (False
3939 or else NT (N).Nkind = N_Case_Statement
3940 or else NT (N).Nkind = N_If_Statement);
3944 procedure Set_Entity
3945 (N : Node_Id; Val : Node_Id) is
3947 pragma Assert (False
3948 or else NT (N).Nkind in N_Has_Entity
3949 or else NT (N).Nkind = N_Freeze_Entity
3950 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3951 Set_Node4 (N, Val); -- semantic field, no parent set
3954 procedure Set_Entry_Body_Formal_Part
3955 (N : Node_Id; Val : Node_Id) is
3957 pragma Assert (False
3958 or else NT (N).Nkind = N_Entry_Body);
3959 Set_Node5_With_Parent (N, Val);
3960 end Set_Entry_Body_Formal_Part;
3962 procedure Set_Entry_Call_Alternative
3963 (N : Node_Id; Val : Node_Id) is
3965 pragma Assert (False
3966 or else NT (N).Nkind = N_Conditional_Entry_Call
3967 or else NT (N).Nkind = N_Timed_Entry_Call);
3968 Set_Node1_With_Parent (N, Val);
3969 end Set_Entry_Call_Alternative;
3971 procedure Set_Entry_Call_Statement
3972 (N : Node_Id; Val : Node_Id) is
3974 pragma Assert (False
3975 or else NT (N).Nkind = N_Entry_Call_Alternative);
3976 Set_Node1_With_Parent (N, Val);
3977 end Set_Entry_Call_Statement;
3979 procedure Set_Entry_Direct_Name
3980 (N : Node_Id; Val : Node_Id) is
3982 pragma Assert (False
3983 or else NT (N).Nkind = N_Accept_Statement);
3984 Set_Node1_With_Parent (N, Val);
3985 end Set_Entry_Direct_Name;
3987 procedure Set_Entry_Index
3988 (N : Node_Id; Val : Node_Id) is
3990 pragma Assert (False
3991 or else NT (N).Nkind = N_Accept_Statement);
3992 Set_Node5_With_Parent (N, Val);
3993 end Set_Entry_Index;
3995 procedure Set_Entry_Index_Specification
3996 (N : Node_Id; Val : Node_Id) is
3998 pragma Assert (False
3999 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4000 Set_Node4_With_Parent (N, Val);
4001 end Set_Entry_Index_Specification;
4004 (N : Node_Id; Val : Node_Id) is
4006 pragma Assert (False
4007 or else NT (N).Nkind in N_Has_Etype);
4008 Set_Node5 (N, Val); -- semantic field, no parent set
4011 procedure Set_Exception_Choices
4012 (N : Node_Id; Val : List_Id) is
4014 pragma Assert (False
4015 or else NT (N).Nkind = N_Exception_Handler);
4016 Set_List4_With_Parent (N, Val);
4017 end Set_Exception_Choices;
4019 procedure Set_Exception_Handlers
4020 (N : Node_Id; Val : List_Id) is
4022 pragma Assert (False
4023 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4024 Set_List5_With_Parent (N, Val);
4025 end Set_Exception_Handlers;
4027 procedure Set_Exception_Junk
4028 (N : Node_Id; Val : Boolean := True) is
4030 pragma Assert (False
4031 or else NT (N).Nkind = N_Block_Statement
4032 or else NT (N).Nkind = N_Goto_Statement
4033 or else NT (N).Nkind = N_Label
4034 or else NT (N).Nkind = N_Object_Declaration
4035 or else NT (N).Nkind = N_Subtype_Declaration);
4037 end Set_Exception_Junk;
4039 procedure Set_Exception_Label
4040 (N : Node_Id; Val : Node_Id) is
4042 pragma Assert (False
4043 or else NT (N).Nkind = N_Exception_Handler
4044 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4045 or else NT (N).Nkind = N_Push_Program_Error_Label
4046 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4047 Set_Node5 (N, Val); -- semantic field, no parent set
4048 end Set_Exception_Label;
4050 procedure Set_Expansion_Delayed
4051 (N : Node_Id; Val : Boolean := True) is
4053 pragma Assert (False
4054 or else NT (N).Nkind = N_Aggregate
4055 or else NT (N).Nkind = N_Extension_Aggregate);
4056 Set_Flag11 (N, Val);
4057 end Set_Expansion_Delayed;
4059 procedure Set_Explicit_Actual_Parameter
4060 (N : Node_Id; Val : Node_Id) is
4062 pragma Assert (False
4063 or else NT (N).Nkind = N_Parameter_Association);
4064 Set_Node3_With_Parent (N, Val);
4065 end Set_Explicit_Actual_Parameter;
4067 procedure Set_Explicit_Generic_Actual_Parameter
4068 (N : Node_Id; Val : Node_Id) is
4070 pragma Assert (False
4071 or else NT (N).Nkind = N_Generic_Association);
4072 Set_Node1_With_Parent (N, Val);
4073 end Set_Explicit_Generic_Actual_Parameter;
4075 procedure Set_Expression
4076 (N : Node_Id; Val : Node_Id) is
4078 pragma Assert (False
4079 or else NT (N).Nkind = N_Allocator
4080 or else NT (N).Nkind = N_Assignment_Statement
4081 or else NT (N).Nkind = N_At_Clause
4082 or else NT (N).Nkind = N_Attribute_Definition_Clause
4083 or else NT (N).Nkind = N_Case_Expression
4084 or else NT (N).Nkind = N_Case_Expression_Alternative
4085 or else NT (N).Nkind = N_Case_Statement
4086 or else NT (N).Nkind = N_Code_Statement
4087 or else NT (N).Nkind = N_Component_Association
4088 or else NT (N).Nkind = N_Component_Declaration
4089 or else NT (N).Nkind = N_Delay_Relative_Statement
4090 or else NT (N).Nkind = N_Delay_Until_Statement
4091 or else NT (N).Nkind = N_Discriminant_Association
4092 or else NT (N).Nkind = N_Discriminant_Specification
4093 or else NT (N).Nkind = N_Exception_Declaration
4094 or else NT (N).Nkind = N_Expression_With_Actions
4095 or else NT (N).Nkind = N_Free_Statement
4096 or else NT (N).Nkind = N_Mod_Clause
4097 or else NT (N).Nkind = N_Modular_Type_Definition
4098 or else NT (N).Nkind = N_Number_Declaration
4099 or else NT (N).Nkind = N_Object_Declaration
4100 or else NT (N).Nkind = N_Parameter_Specification
4101 or else NT (N).Nkind = N_Parameterized_Expression
4102 or else NT (N).Nkind = N_Pragma_Argument_Association
4103 or else NT (N).Nkind = N_Qualified_Expression
4104 or else NT (N).Nkind = N_Raise_Statement
4105 or else NT (N).Nkind = N_Return_Statement
4106 or else NT (N).Nkind = N_Type_Conversion
4107 or else NT (N).Nkind = N_Unchecked_Expression
4108 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4109 Set_Node3_With_Parent (N, Val);
4112 procedure Set_Expressions
4113 (N : Node_Id; Val : List_Id) is
4115 pragma Assert (False
4116 or else NT (N).Nkind = N_Aggregate
4117 or else NT (N).Nkind = N_Attribute_Reference
4118 or else NT (N).Nkind = N_Conditional_Expression
4119 or else NT (N).Nkind = N_Extension_Aggregate
4120 or else NT (N).Nkind = N_Indexed_Component);
4121 Set_List1_With_Parent (N, Val);
4122 end Set_Expressions;
4124 procedure Set_First_Bit
4125 (N : Node_Id; Val : Node_Id) is
4127 pragma Assert (False
4128 or else NT (N).Nkind = N_Component_Clause);
4129 Set_Node3_With_Parent (N, Val);
4132 procedure Set_First_Inlined_Subprogram
4133 (N : Node_Id; Val : Entity_Id) is
4135 pragma Assert (False
4136 or else NT (N).Nkind = N_Compilation_Unit);
4137 Set_Node3 (N, Val); -- semantic field, no parent set
4138 end Set_First_Inlined_Subprogram;
4140 procedure Set_First_Name
4141 (N : Node_Id; Val : Boolean := True) is
4143 pragma Assert (False
4144 or else NT (N).Nkind = N_With_Clause);
4148 procedure Set_First_Named_Actual
4149 (N : Node_Id; Val : Node_Id) is
4151 pragma Assert (False
4152 or else NT (N).Nkind = N_Entry_Call_Statement
4153 or else NT (N).Nkind = N_Function_Call
4154 or else NT (N).Nkind = N_Procedure_Call_Statement);
4155 Set_Node4 (N, Val); -- semantic field, no parent set
4156 end Set_First_Named_Actual;
4158 procedure Set_First_Real_Statement
4159 (N : Node_Id; Val : Node_Id) is
4161 pragma Assert (False
4162 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4163 Set_Node2 (N, Val); -- semantic field, no parent set
4164 end Set_First_Real_Statement;
4166 procedure Set_First_Subtype_Link
4167 (N : Node_Id; Val : Entity_Id) is
4169 pragma Assert (False
4170 or else NT (N).Nkind = N_Freeze_Entity);
4171 Set_Node5 (N, Val); -- semantic field, no parent set
4172 end Set_First_Subtype_Link;
4174 procedure Set_Float_Truncate
4175 (N : Node_Id; Val : Boolean := True) is
4177 pragma Assert (False
4178 or else NT (N).Nkind = N_Type_Conversion);
4179 Set_Flag11 (N, Val);
4180 end Set_Float_Truncate;
4182 procedure Set_Formal_Type_Definition
4183 (N : Node_Id; Val : Node_Id) is
4185 pragma Assert (False
4186 or else NT (N).Nkind = N_Formal_Type_Declaration);
4187 Set_Node3_With_Parent (N, Val);
4188 end Set_Formal_Type_Definition;
4190 procedure Set_Forwards_OK
4191 (N : Node_Id; Val : Boolean := True) is
4193 pragma Assert (False
4194 or else NT (N).Nkind = N_Assignment_Statement);
4196 end Set_Forwards_OK;
4198 procedure Set_From_At_End
4199 (N : Node_Id; Val : Boolean := True) is
4201 pragma Assert (False
4202 or else NT (N).Nkind = N_Raise_Statement);
4204 end Set_From_At_End;
4206 procedure Set_From_At_Mod
4207 (N : Node_Id; Val : Boolean := True) is
4209 pragma Assert (False
4210 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4212 end Set_From_At_Mod;
4214 procedure Set_From_Default
4215 (N : Node_Id; Val : Boolean := True) is
4217 pragma Assert (False
4218 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4220 end Set_From_Default;
4222 procedure Set_Generic_Associations
4223 (N : Node_Id; Val : List_Id) is
4225 pragma Assert (False
4226 or else NT (N).Nkind = N_Formal_Package_Declaration
4227 or else NT (N).Nkind = N_Function_Instantiation
4228 or else NT (N).Nkind = N_Package_Instantiation
4229 or else NT (N).Nkind = N_Procedure_Instantiation);
4230 Set_List3_With_Parent (N, Val);
4231 end Set_Generic_Associations;
4233 procedure Set_Generic_Formal_Declarations
4234 (N : Node_Id; Val : List_Id) is
4236 pragma Assert (False
4237 or else NT (N).Nkind = N_Generic_Package_Declaration
4238 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4239 Set_List2_With_Parent (N, Val);
4240 end Set_Generic_Formal_Declarations;
4242 procedure Set_Generic_Parent
4243 (N : Node_Id; Val : Node_Id) is
4245 pragma Assert (False
4246 or else NT (N).Nkind = N_Function_Specification
4247 or else NT (N).Nkind = N_Package_Specification
4248 or else NT (N).Nkind = N_Procedure_Specification);
4250 end Set_Generic_Parent;
4252 procedure Set_Generic_Parent_Type
4253 (N : Node_Id; Val : Node_Id) is
4255 pragma Assert (False
4256 or else NT (N).Nkind = N_Subtype_Declaration);
4258 end Set_Generic_Parent_Type;
4260 procedure Set_Handled_Statement_Sequence
4261 (N : Node_Id; Val : Node_Id) is
4263 pragma Assert (False
4264 or else NT (N).Nkind = N_Accept_Statement
4265 or else NT (N).Nkind = N_Block_Statement
4266 or else NT (N).Nkind = N_Entry_Body
4267 or else NT (N).Nkind = N_Extended_Return_Statement
4268 or else NT (N).Nkind = N_Package_Body
4269 or else NT (N).Nkind = N_Subprogram_Body
4270 or else NT (N).Nkind = N_Task_Body);
4271 Set_Node4_With_Parent (N, Val);
4272 end Set_Handled_Statement_Sequence;
4274 procedure Set_Handler_List_Entry
4275 (N : Node_Id; Val : Node_Id) is
4277 pragma Assert (False
4278 or else NT (N).Nkind = N_Object_Declaration);
4280 end Set_Handler_List_Entry;
4282 procedure Set_Has_Created_Identifier
4283 (N : Node_Id; Val : Boolean := True) is
4285 pragma Assert (False
4286 or else NT (N).Nkind = N_Block_Statement
4287 or else NT (N).Nkind = N_Loop_Statement);
4288 Set_Flag15 (N, Val);
4289 end Set_Has_Created_Identifier;
4291 procedure Set_Has_Dynamic_Length_Check
4292 (N : Node_Id; Val : Boolean := True) is
4294 Set_Flag10 (N, Val);
4295 end Set_Has_Dynamic_Length_Check;
4297 procedure Set_Has_Dynamic_Range_Check
4298 (N : Node_Id; Val : Boolean := True) is
4300 Set_Flag12 (N, Val);
4301 end Set_Has_Dynamic_Range_Check;
4303 procedure Set_Has_Init_Expression
4304 (N : Node_Id; Val : Boolean := True) is
4306 pragma Assert (False
4307 or else NT (N).Nkind = N_Object_Declaration);
4308 Set_Flag14 (N, Val);
4309 end Set_Has_Init_Expression;
4311 procedure Set_Has_Local_Raise
4312 (N : Node_Id; Val : Boolean := True) is
4314 pragma Assert (False
4315 or else NT (N).Nkind = N_Exception_Handler);
4317 end Set_Has_Local_Raise;
4319 procedure Set_Has_No_Elaboration_Code
4320 (N : Node_Id; Val : Boolean := True) is
4322 pragma Assert (False
4323 or else NT (N).Nkind = N_Compilation_Unit);
4324 Set_Flag17 (N, Val);
4325 end Set_Has_No_Elaboration_Code;
4327 procedure Set_Has_Priority_Pragma
4328 (N : Node_Id; Val : Boolean := True) is
4330 pragma Assert (False
4331 or else NT (N).Nkind = N_Protected_Definition
4332 or else NT (N).Nkind = N_Subprogram_Body
4333 or else NT (N).Nkind = N_Task_Definition);
4335 end Set_Has_Priority_Pragma;
4337 procedure Set_Has_Private_View
4338 (N : Node_Id; Val : Boolean := True) is
4340 pragma Assert (False
4341 or else NT (N).Nkind in N_Op
4342 or else NT (N).Nkind = N_Character_Literal
4343 or else NT (N).Nkind = N_Expanded_Name
4344 or else NT (N).Nkind = N_Identifier
4345 or else NT (N).Nkind = N_Operator_Symbol);
4346 Set_Flag11 (N, Val);
4347 end Set_Has_Private_View;
4349 procedure Set_Has_Relative_Deadline_Pragma
4350 (N : Node_Id; Val : Boolean := True) is
4352 pragma Assert (False
4353 or else NT (N).Nkind = N_Subprogram_Body
4354 or else NT (N).Nkind = N_Task_Definition);
4356 end Set_Has_Relative_Deadline_Pragma;
4358 procedure Set_Has_Self_Reference
4359 (N : Node_Id; Val : Boolean := True) is
4361 pragma Assert (False
4362 or else NT (N).Nkind = N_Aggregate
4363 or else NT (N).Nkind = N_Extension_Aggregate);
4364 Set_Flag13 (N, Val);
4365 end Set_Has_Self_Reference;
4367 procedure Set_Has_Storage_Size_Pragma
4368 (N : Node_Id; Val : Boolean := True) is
4370 pragma Assert (False
4371 or else NT (N).Nkind = N_Task_Definition);
4373 end Set_Has_Storage_Size_Pragma;
4375 procedure Set_Has_Task_Info_Pragma
4376 (N : Node_Id; Val : Boolean := True) is
4378 pragma Assert (False
4379 or else NT (N).Nkind = N_Task_Definition);
4381 end Set_Has_Task_Info_Pragma;
4383 procedure Set_Has_Task_Name_Pragma
4384 (N : Node_Id; Val : Boolean := True) is
4386 pragma Assert (False
4387 or else NT (N).Nkind = N_Task_Definition);
4389 end Set_Has_Task_Name_Pragma;
4391 procedure Set_Has_Wide_Character
4392 (N : Node_Id; Val : Boolean := True) is
4394 pragma Assert (False
4395 or else NT (N).Nkind = N_String_Literal);
4396 Set_Flag11 (N, Val);
4397 end Set_Has_Wide_Character;
4399 procedure Set_Has_Wide_Wide_Character
4400 (N : Node_Id; Val : Boolean := True) is
4402 pragma Assert (False
4403 or else NT (N).Nkind = N_String_Literal);
4404 Set_Flag13 (N, Val);
4405 end Set_Has_Wide_Wide_Character;
4407 procedure Set_Hidden_By_Use_Clause
4408 (N : Node_Id; Val : Elist_Id) is
4410 pragma Assert (False
4411 or else NT (N).Nkind = N_Use_Package_Clause
4412 or else NT (N).Nkind = N_Use_Type_Clause);
4413 Set_Elist4 (N, Val);
4414 end Set_Hidden_By_Use_Clause;
4416 procedure Set_High_Bound
4417 (N : Node_Id; Val : Node_Id) is
4419 pragma Assert (False
4420 or else NT (N).Nkind = N_Range
4421 or else NT (N).Nkind = N_Real_Range_Specification
4422 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4423 Set_Node2_With_Parent (N, Val);
4426 procedure Set_Identifier
4427 (N : Node_Id; Val : Node_Id) is
4429 pragma Assert (False
4430 or else NT (N).Nkind = N_At_Clause
4431 or else NT (N).Nkind = N_Block_Statement
4432 or else NT (N).Nkind = N_Designator
4433 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4434 or else NT (N).Nkind = N_Label
4435 or else NT (N).Nkind = N_Loop_Statement
4436 or else NT (N).Nkind = N_Record_Representation_Clause
4437 or else NT (N).Nkind = N_Subprogram_Info);
4438 Set_Node1_With_Parent (N, Val);
4441 procedure Set_Implicit_With
4442 (N : Node_Id; Val : Boolean := True) is
4444 pragma Assert (False
4445 or else NT (N).Nkind = N_With_Clause);
4446 Set_Flag16 (N, Val);
4447 end Set_Implicit_With;
4449 procedure Set_Interface_List
4450 (N : Node_Id; Val : List_Id) is
4452 pragma Assert (False
4453 or else NT (N).Nkind = N_Derived_Type_Definition
4454 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4455 or else NT (N).Nkind = N_Private_Extension_Declaration
4456 or else NT (N).Nkind = N_Protected_Type_Declaration
4457 or else NT (N).Nkind = N_Record_Definition
4458 or else NT (N).Nkind = N_Single_Protected_Declaration
4459 or else NT (N).Nkind = N_Single_Task_Declaration
4460 or else NT (N).Nkind = N_Task_Type_Declaration);
4461 Set_List2_With_Parent (N, Val);
4462 end Set_Interface_List;
4464 procedure Set_Interface_Present
4465 (N : Node_Id; Val : Boolean := True) is
4467 pragma Assert (False
4468 or else NT (N).Nkind = N_Derived_Type_Definition
4469 or else NT (N).Nkind = N_Record_Definition);
4470 Set_Flag16 (N, Val);
4471 end Set_Interface_Present;
4473 procedure Set_Import_Interface_Present
4474 (N : Node_Id; Val : Boolean := True) is
4476 pragma Assert (False
4477 or else NT (N).Nkind = N_Pragma);
4478 Set_Flag16 (N, Val);
4479 end Set_Import_Interface_Present;
4481 procedure Set_In_Present
4482 (N : Node_Id; Val : Boolean := True) is
4484 pragma Assert (False
4485 or else NT (N).Nkind = N_Formal_Object_Declaration
4486 or else NT (N).Nkind = N_Parameter_Specification);
4487 Set_Flag15 (N, Val);
4490 procedure Set_Includes_Infinities
4491 (N : Node_Id; Val : Boolean := True) is
4493 pragma Assert (False
4494 or else NT (N).Nkind = N_Range);
4495 Set_Flag11 (N, Val);
4496 end Set_Includes_Infinities;
4498 procedure Set_Inherited_Discriminant
4499 (N : Node_Id; Val : Boolean := True) is
4501 pragma Assert (False
4502 or else NT (N).Nkind = N_Component_Association);
4503 Set_Flag13 (N, Val);
4504 end Set_Inherited_Discriminant;
4506 procedure Set_Instance_Spec
4507 (N : Node_Id; Val : Node_Id) is
4509 pragma Assert (False
4510 or else NT (N).Nkind = N_Formal_Package_Declaration
4511 or else NT (N).Nkind = N_Function_Instantiation
4512 or else NT (N).Nkind = N_Package_Instantiation
4513 or else NT (N).Nkind = N_Procedure_Instantiation);
4514 Set_Node5 (N, Val); -- semantic field, no Parent set
4515 end Set_Instance_Spec;
4517 procedure Set_Intval
4518 (N : Node_Id; Val : Uint) is
4520 pragma Assert (False
4521 or else NT (N).Nkind = N_Integer_Literal);
4525 procedure Set_Is_Accessibility_Actual
4526 (N : Node_Id; Val : Boolean := True) is
4528 pragma Assert (False
4529 or else NT (N).Nkind = N_Parameter_Association);
4530 Set_Flag13 (N, Val);
4531 end Set_Is_Accessibility_Actual;
4533 procedure Set_Is_Asynchronous_Call_Block
4534 (N : Node_Id; Val : Boolean := True) is
4536 pragma Assert (False
4537 or else NT (N).Nkind = N_Block_Statement);
4539 end Set_Is_Asynchronous_Call_Block;
4541 procedure Set_Is_Component_Left_Opnd
4542 (N : Node_Id; Val : Boolean := True) is
4544 pragma Assert (False
4545 or else NT (N).Nkind = N_Op_Concat);
4546 Set_Flag13 (N, Val);
4547 end Set_Is_Component_Left_Opnd;
4549 procedure Set_Is_Component_Right_Opnd
4550 (N : Node_Id; Val : Boolean := True) is
4552 pragma Assert (False
4553 or else NT (N).Nkind = N_Op_Concat);
4554 Set_Flag14 (N, Val);
4555 end Set_Is_Component_Right_Opnd;
4557 procedure Set_Is_Controlling_Actual
4558 (N : Node_Id; Val : Boolean := True) is
4560 pragma Assert (False
4561 or else NT (N).Nkind in N_Subexpr);
4562 Set_Flag16 (N, Val);
4563 end Set_Is_Controlling_Actual;
4565 procedure Set_Is_Dynamic_Coextension
4566 (N : Node_Id; Val : Boolean := True) is
4568 pragma Assert (False
4569 or else NT (N).Nkind = N_Allocator);
4570 Set_Flag18 (N, Val);
4571 end Set_Is_Dynamic_Coextension;
4573 procedure Set_Is_Elsif
4574 (N : Node_Id; Val : Boolean := True) is
4576 pragma Assert (False
4577 or else NT (N).Nkind = N_Conditional_Expression);
4578 Set_Flag13 (N, Val);
4581 procedure Set_Is_Entry_Barrier_Function
4582 (N : Node_Id; Val : Boolean := True) is
4584 pragma Assert (False
4585 or else NT (N).Nkind = N_Subprogram_Body);
4587 end Set_Is_Entry_Barrier_Function;
4589 procedure Set_Is_Expanded_Build_In_Place_Call
4590 (N : Node_Id; Val : Boolean := True) is
4592 pragma Assert (False
4593 or else NT (N).Nkind = N_Function_Call);
4594 Set_Flag11 (N, Val);
4595 end Set_Is_Expanded_Build_In_Place_Call;
4597 procedure Set_Is_Folded_In_Parser
4598 (N : Node_Id; Val : Boolean := True) is
4600 pragma Assert (False
4601 or else NT (N).Nkind = N_String_Literal);
4603 end Set_Is_Folded_In_Parser;
4605 procedure Set_Is_In_Discriminant_Check
4606 (N : Node_Id; Val : Boolean := True) is
4608 pragma Assert (False
4609 or else NT (N).Nkind = N_Selected_Component);
4610 Set_Flag11 (N, Val);
4611 end Set_Is_In_Discriminant_Check;
4613 procedure Set_Is_Machine_Number
4614 (N : Node_Id; Val : Boolean := True) is
4616 pragma Assert (False
4617 or else NT (N).Nkind = N_Real_Literal);
4618 Set_Flag11 (N, Val);
4619 end Set_Is_Machine_Number;
4621 procedure Set_Is_Null_Loop
4622 (N : Node_Id; Val : Boolean := True) is
4624 pragma Assert (False
4625 or else NT (N).Nkind = N_Loop_Statement);
4626 Set_Flag16 (N, Val);
4627 end Set_Is_Null_Loop;
4629 procedure Set_Is_Overloaded
4630 (N : Node_Id; Val : Boolean := True) is
4632 pragma Assert (False
4633 or else NT (N).Nkind in N_Subexpr);
4635 end Set_Is_Overloaded;
4637 procedure Set_Is_Power_Of_2_For_Shift
4638 (N : Node_Id; Val : Boolean := True) is
4640 pragma Assert (False
4641 or else NT (N).Nkind = N_Op_Expon);
4642 Set_Flag13 (N, Val);
4643 end Set_Is_Power_Of_2_For_Shift;
4645 procedure Set_Is_Protected_Subprogram_Body
4646 (N : Node_Id; Val : Boolean := True) is
4648 pragma Assert (False
4649 or else NT (N).Nkind = N_Subprogram_Body);
4651 end Set_Is_Protected_Subprogram_Body;
4653 procedure Set_Is_Static_Coextension
4654 (N : Node_Id; Val : Boolean := True) is
4656 pragma Assert (False
4657 or else NT (N).Nkind = N_Allocator);
4658 Set_Flag14 (N, Val);
4659 end Set_Is_Static_Coextension;
4661 procedure Set_Is_Static_Expression
4662 (N : Node_Id; Val : Boolean := True) is
4664 pragma Assert (False
4665 or else NT (N).Nkind in N_Subexpr);
4667 end Set_Is_Static_Expression;
4669 procedure Set_Is_Subprogram_Descriptor
4670 (N : Node_Id; Val : Boolean := True) is
4672 pragma Assert (False
4673 or else NT (N).Nkind = N_Object_Declaration);
4674 Set_Flag16 (N, Val);
4675 end Set_Is_Subprogram_Descriptor;
4677 procedure Set_Is_Task_Allocation_Block
4678 (N : Node_Id; Val : Boolean := True) is
4680 pragma Assert (False
4681 or else NT (N).Nkind = N_Block_Statement);
4683 end Set_Is_Task_Allocation_Block;
4685 procedure Set_Is_Task_Master
4686 (N : Node_Id; Val : Boolean := True) is
4688 pragma Assert (False
4689 or else NT (N).Nkind = N_Block_Statement
4690 or else NT (N).Nkind = N_Subprogram_Body
4691 or else NT (N).Nkind = N_Task_Body);
4693 end Set_Is_Task_Master;
4695 procedure Set_Iteration_Scheme
4696 (N : Node_Id; Val : Node_Id) is
4698 pragma Assert (False
4699 or else NT (N).Nkind = N_Loop_Statement);
4700 Set_Node2_With_Parent (N, Val);
4701 end Set_Iteration_Scheme;
4704 (N : Node_Id; Val : Entity_Id) is
4706 pragma Assert (False
4707 or else NT (N).Nkind = N_Itype_Reference);
4708 Set_Node1 (N, Val); -- no parent, semantic field
4711 procedure Set_Kill_Range_Check
4712 (N : Node_Id; Val : Boolean := True) is
4714 pragma Assert (False
4715 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4716 Set_Flag11 (N, Val);
4717 end Set_Kill_Range_Check;
4719 procedure Set_Label_Construct
4720 (N : Node_Id; Val : Node_Id) is
4722 pragma Assert (False
4723 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4724 Set_Node2 (N, Val); -- semantic field, no parent set
4725 end Set_Label_Construct;
4727 procedure Set_Last_Bit
4728 (N : Node_Id; Val : Node_Id) is
4730 pragma Assert (False
4731 or else NT (N).Nkind = N_Component_Clause);
4732 Set_Node4_With_Parent (N, Val);
4735 procedure Set_Last_Name
4736 (N : Node_Id; Val : Boolean := True) is
4738 pragma Assert (False
4739 or else NT (N).Nkind = N_With_Clause);
4743 procedure Set_Left_Opnd
4744 (N : Node_Id; Val : Node_Id) is
4746 pragma Assert (False
4747 or else NT (N).Nkind = N_And_Then
4748 or else NT (N).Nkind = N_In
4749 or else NT (N).Nkind = N_Not_In
4750 or else NT (N).Nkind = N_Or_Else
4751 or else NT (N).Nkind in N_Binary_Op);
4752 Set_Node2_With_Parent (N, Val);
4755 procedure Set_Library_Unit
4756 (N : Node_Id; Val : Node_Id) is
4758 pragma Assert (False
4759 or else NT (N).Nkind = N_Compilation_Unit
4760 or else NT (N).Nkind = N_Package_Body_Stub
4761 or else NT (N).Nkind = N_Protected_Body_Stub
4762 or else NT (N).Nkind = N_Subprogram_Body_Stub
4763 or else NT (N).Nkind = N_Task_Body_Stub
4764 or else NT (N).Nkind = N_With_Clause);
4765 Set_Node4 (N, Val); -- semantic field, no parent set
4766 end Set_Library_Unit;
4768 procedure Set_Limited_View_Installed
4769 (N : Node_Id; Val : Boolean := True) is
4771 pragma Assert (False
4772 or else NT (N).Nkind = N_Package_Specification
4773 or else NT (N).Nkind = N_With_Clause);
4774 Set_Flag18 (N, Val);
4775 end Set_Limited_View_Installed;
4777 procedure Set_Limited_Present
4778 (N : Node_Id; Val : Boolean := True) is
4780 pragma Assert (False
4781 or else NT (N).Nkind = N_Derived_Type_Definition
4782 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4783 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4784 or else NT (N).Nkind = N_Private_Extension_Declaration
4785 or else NT (N).Nkind = N_Private_Type_Declaration
4786 or else NT (N).Nkind = N_Record_Definition
4787 or else NT (N).Nkind = N_With_Clause);
4788 Set_Flag17 (N, Val);
4789 end Set_Limited_Present;
4791 procedure Set_Literals
4792 (N : Node_Id; Val : List_Id) is
4794 pragma Assert (False
4795 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4796 Set_List1_With_Parent (N, Val);
4799 procedure Set_Local_Raise_Not_OK
4800 (N : Node_Id; Val : Boolean := True) is
4802 pragma Assert (False
4803 or else NT (N).Nkind = N_Exception_Handler);
4805 end Set_Local_Raise_Not_OK;
4807 procedure Set_Local_Raise_Statements
4808 (N : Node_Id; Val : Elist_Id) is
4810 pragma Assert (False
4811 or else NT (N).Nkind = N_Exception_Handler);
4812 Set_Elist1 (N, Val);
4813 end Set_Local_Raise_Statements;
4815 procedure Set_Loop_Actions
4816 (N : Node_Id; Val : List_Id) is
4818 pragma Assert (False
4819 or else NT (N).Nkind = N_Component_Association);
4820 Set_List2 (N, Val); -- semantic field, no parent set
4821 end Set_Loop_Actions;
4823 procedure Set_Loop_Parameter_Specification
4824 (N : Node_Id; Val : Node_Id) is
4826 pragma Assert (False
4827 or else NT (N).Nkind = N_Iteration_Scheme);
4828 Set_Node4_With_Parent (N, Val);
4829 end Set_Loop_Parameter_Specification;
4831 procedure Set_Low_Bound
4832 (N : Node_Id; Val : Node_Id) is
4834 pragma Assert (False
4835 or else NT (N).Nkind = N_Range
4836 or else NT (N).Nkind = N_Real_Range_Specification
4837 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4838 Set_Node1_With_Parent (N, Val);
4841 procedure Set_Mod_Clause
4842 (N : Node_Id; Val : Node_Id) is
4844 pragma Assert (False
4845 or else NT (N).Nkind = N_Record_Representation_Clause);
4846 Set_Node2_With_Parent (N, Val);
4849 procedure Set_More_Ids
4850 (N : Node_Id; Val : Boolean := True) is
4852 pragma Assert (False
4853 or else NT (N).Nkind = N_Component_Declaration
4854 or else NT (N).Nkind = N_Discriminant_Specification
4855 or else NT (N).Nkind = N_Exception_Declaration
4856 or else NT (N).Nkind = N_Formal_Object_Declaration
4857 or else NT (N).Nkind = N_Number_Declaration
4858 or else NT (N).Nkind = N_Object_Declaration
4859 or else NT (N).Nkind = N_Parameter_Specification);
4863 procedure Set_Must_Be_Byte_Aligned
4864 (N : Node_Id; Val : Boolean := True) is
4866 pragma Assert (False
4867 or else NT (N).Nkind = N_Attribute_Reference);
4868 Set_Flag14 (N, Val);
4869 end Set_Must_Be_Byte_Aligned;
4871 procedure Set_Must_Not_Freeze
4872 (N : Node_Id; Val : Boolean := True) is
4874 pragma Assert (False
4875 or else NT (N).Nkind = N_Subtype_Indication
4876 or else NT (N).Nkind in N_Subexpr);
4878 end Set_Must_Not_Freeze;
4880 procedure Set_Must_Not_Override
4881 (N : Node_Id; Val : Boolean := True) is
4883 pragma Assert (False
4884 or else NT (N).Nkind = N_Entry_Declaration
4885 or else NT (N).Nkind = N_Function_Instantiation
4886 or else NT (N).Nkind = N_Function_Specification
4887 or else NT (N).Nkind = N_Procedure_Instantiation
4888 or else NT (N).Nkind = N_Procedure_Specification);
4889 Set_Flag15 (N, Val);
4890 end Set_Must_Not_Override;
4892 procedure Set_Must_Override
4893 (N : Node_Id; Val : Boolean := True) is
4895 pragma Assert (False
4896 or else NT (N).Nkind = N_Entry_Declaration
4897 or else NT (N).Nkind = N_Function_Instantiation
4898 or else NT (N).Nkind = N_Function_Specification
4899 or else NT (N).Nkind = N_Procedure_Instantiation
4900 or else NT (N).Nkind = N_Procedure_Specification);
4901 Set_Flag14 (N, Val);
4902 end Set_Must_Override;
4905 (N : Node_Id; Val : Node_Id) is
4907 pragma Assert (False
4908 or else NT (N).Nkind = N_Assignment_Statement
4909 or else NT (N).Nkind = N_Attribute_Definition_Clause
4910 or else NT (N).Nkind = N_Defining_Program_Unit_Name
4911 or else NT (N).Nkind = N_Designator
4912 or else NT (N).Nkind = N_Entry_Call_Statement
4913 or else NT (N).Nkind = N_Exception_Renaming_Declaration
4914 or else NT (N).Nkind = N_Exit_Statement
4915 or else NT (N).Nkind = N_Formal_Package_Declaration
4916 or else NT (N).Nkind = N_Function_Call
4917 or else NT (N).Nkind = N_Function_Instantiation
4918 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4919 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4920 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4921 or else NT (N).Nkind = N_Goto_Statement
4922 or else NT (N).Nkind = N_Object_Renaming_Declaration
4923 or else NT (N).Nkind = N_Package_Instantiation
4924 or else NT (N).Nkind = N_Package_Renaming_Declaration
4925 or else NT (N).Nkind = N_Procedure_Call_Statement
4926 or else NT (N).Nkind = N_Procedure_Instantiation
4927 or else NT (N).Nkind = N_Raise_Statement
4928 or else NT (N).Nkind = N_Requeue_Statement
4929 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
4930 or else NT (N).Nkind = N_Subunit
4931 or else NT (N).Nkind = N_Variant_Part
4932 or else NT (N).Nkind = N_With_Clause);
4933 Set_Node2_With_Parent (N, Val);
4937 (N : Node_Id; Val : List_Id) is
4939 pragma Assert (False
4940 or else NT (N).Nkind = N_Abort_Statement
4941 or else NT (N).Nkind = N_Use_Package_Clause);
4942 Set_List2_With_Parent (N, Val);
4945 procedure Set_Next_Entity
4946 (N : Node_Id; Val : Node_Id) is
4948 pragma Assert (False
4949 or else NT (N).Nkind = N_Defining_Character_Literal
4950 or else NT (N).Nkind = N_Defining_Identifier
4951 or else NT (N).Nkind = N_Defining_Operator_Symbol);
4952 Set_Node2 (N, Val); -- semantic field, no parent set
4953 end Set_Next_Entity;
4955 procedure Set_Next_Exit_Statement
4956 (N : Node_Id; Val : Node_Id) is
4958 pragma Assert (False
4959 or else NT (N).Nkind = N_Exit_Statement);
4960 Set_Node3 (N, Val); -- semantic field, no parent set
4961 end Set_Next_Exit_Statement;
4963 procedure Set_Next_Implicit_With
4964 (N : Node_Id; Val : Node_Id) is
4966 pragma Assert (False
4967 or else NT (N).Nkind = N_With_Clause);
4968 Set_Node3 (N, Val); -- semantic field, no parent set
4969 end Set_Next_Implicit_With;
4971 procedure Set_Next_Named_Actual
4972 (N : Node_Id; Val : Node_Id) is
4974 pragma Assert (False
4975 or else NT (N).Nkind = N_Parameter_Association);
4976 Set_Node4 (N, Val); -- semantic field, no parent set
4977 end Set_Next_Named_Actual;
4979 procedure Set_Next_Pragma
4980 (N : Node_Id; Val : Node_Id) is
4982 pragma Assert (False
4983 or else NT (N).Nkind = N_Pragma);
4984 Set_Node1 (N, Val); -- semantic field, no parent set
4985 end Set_Next_Pragma;
4987 procedure Set_Next_Rep_Item
4988 (N : Node_Id; Val : Node_Id) is
4990 pragma Assert (False
4991 or else NT (N).Nkind = N_Attribute_Definition_Clause
4992 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4993 or else NT (N).Nkind = N_Pragma
4994 or else NT (N).Nkind = N_Record_Representation_Clause);
4995 Set_Node5 (N, Val); -- semantic field, no parent set
4996 end Set_Next_Rep_Item;
4998 procedure Set_Next_Use_Clause
4999 (N : Node_Id; Val : Node_Id) is
5001 pragma Assert (False
5002 or else NT (N).Nkind = N_Use_Package_Clause
5003 or else NT (N).Nkind = N_Use_Type_Clause);
5004 Set_Node3 (N, Val); -- semantic field, no parent set
5005 end Set_Next_Use_Clause;
5007 procedure Set_No_Ctrl_Actions
5008 (N : Node_Id; Val : Boolean := True) is
5010 pragma Assert (False
5011 or else NT (N).Nkind = N_Assignment_Statement);
5013 end Set_No_Ctrl_Actions;
5015 procedure Set_No_Elaboration_Check
5016 (N : Node_Id; Val : Boolean := True) is
5018 pragma Assert (False
5019 or else NT (N).Nkind = N_Function_Call
5020 or else NT (N).Nkind = N_Procedure_Call_Statement);
5021 Set_Flag14 (N, Val);
5022 end Set_No_Elaboration_Check;
5024 procedure Set_No_Entities_Ref_In_Spec
5025 (N : Node_Id; Val : Boolean := True) is
5027 pragma Assert (False
5028 or else NT (N).Nkind = N_With_Clause);
5030 end Set_No_Entities_Ref_In_Spec;
5032 procedure Set_No_Initialization
5033 (N : Node_Id; Val : Boolean := True) is
5035 pragma Assert (False
5036 or else NT (N).Nkind = N_Allocator
5037 or else NT (N).Nkind = N_Object_Declaration);
5038 Set_Flag13 (N, Val);
5039 end Set_No_Initialization;
5041 procedure Set_No_Truncation
5042 (N : Node_Id; Val : Boolean := True) is
5044 pragma Assert (False
5045 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5046 Set_Flag17 (N, Val);
5047 end Set_No_Truncation;
5049 procedure Set_Null_Present
5050 (N : Node_Id; Val : Boolean := True) is
5052 pragma Assert (False
5053 or else NT (N).Nkind = N_Component_List
5054 or else NT (N).Nkind = N_Procedure_Specification
5055 or else NT (N).Nkind = N_Record_Definition);
5056 Set_Flag13 (N, Val);
5057 end Set_Null_Present;
5059 procedure Set_Null_Exclusion_Present
5060 (N : Node_Id; Val : Boolean := True) is
5062 pragma Assert (False
5063 or else NT (N).Nkind = N_Access_Definition
5064 or else NT (N).Nkind = N_Access_Function_Definition
5065 or else NT (N).Nkind = N_Access_Procedure_Definition
5066 or else NT (N).Nkind = N_Access_To_Object_Definition
5067 or else NT (N).Nkind = N_Allocator
5068 or else NT (N).Nkind = N_Component_Definition
5069 or else NT (N).Nkind = N_Derived_Type_Definition
5070 or else NT (N).Nkind = N_Discriminant_Specification
5071 or else NT (N).Nkind = N_Formal_Object_Declaration
5072 or else NT (N).Nkind = N_Function_Specification
5073 or else NT (N).Nkind = N_Object_Declaration
5074 or else NT (N).Nkind = N_Object_Renaming_Declaration
5075 or else NT (N).Nkind = N_Parameter_Specification
5076 or else NT (N).Nkind = N_Subtype_Declaration);
5077 Set_Flag11 (N, Val);
5078 end Set_Null_Exclusion_Present;
5080 procedure Set_Null_Exclusion_In_Return_Present
5081 (N : Node_Id; Val : Boolean := True) is
5083 pragma Assert (False
5084 or else NT (N).Nkind = N_Access_Function_Definition);
5085 Set_Flag14 (N, Val);
5086 end Set_Null_Exclusion_In_Return_Present;
5088 procedure Set_Null_Record_Present
5089 (N : Node_Id; Val : Boolean := True) is
5091 pragma Assert (False
5092 or else NT (N).Nkind = N_Aggregate
5093 or else NT (N).Nkind = N_Extension_Aggregate);
5094 Set_Flag17 (N, Val);
5095 end Set_Null_Record_Present;
5097 procedure Set_Object_Definition
5098 (N : Node_Id; Val : Node_Id) is
5100 pragma Assert (False
5101 or else NT (N).Nkind = N_Object_Declaration);
5102 Set_Node4_With_Parent (N, Val);
5103 end Set_Object_Definition;
5105 procedure Set_Original_Discriminant
5106 (N : Node_Id; Val : Node_Id) is
5108 pragma Assert (False
5109 or else NT (N).Nkind = N_Identifier);
5110 Set_Node2 (N, Val); -- semantic field, no parent set
5111 end Set_Original_Discriminant;
5113 procedure Set_Original_Entity
5114 (N : Node_Id; Val : Entity_Id) is
5116 pragma Assert (False
5117 or else NT (N).Nkind = N_Integer_Literal
5118 or else NT (N).Nkind = N_Real_Literal);
5119 Set_Node2 (N, Val); -- semantic field, no parent set
5120 end Set_Original_Entity;
5122 procedure Set_Others_Discrete_Choices
5123 (N : Node_Id; Val : List_Id) is
5125 pragma Assert (False
5126 or else NT (N).Nkind = N_Others_Choice);
5127 Set_List1_With_Parent (N, Val);
5128 end Set_Others_Discrete_Choices;
5130 procedure Set_Out_Present
5131 (N : Node_Id; Val : Boolean := True) is
5133 pragma Assert (False
5134 or else NT (N).Nkind = N_Formal_Object_Declaration
5135 or else NT (N).Nkind = N_Parameter_Specification);
5136 Set_Flag17 (N, Val);
5137 end Set_Out_Present;
5139 procedure Set_Parameter_Associations
5140 (N : Node_Id; Val : List_Id) is
5142 pragma Assert (False
5143 or else NT (N).Nkind = N_Entry_Call_Statement
5144 or else NT (N).Nkind = N_Function_Call
5145 or else NT (N).Nkind = N_Procedure_Call_Statement);
5146 Set_List3_With_Parent (N, Val);
5147 end Set_Parameter_Associations;
5149 procedure Set_Parameter_List_Truncated
5150 (N : Node_Id; Val : Boolean := True) is
5152 pragma Assert (False
5153 or else NT (N).Nkind = N_Function_Call
5154 or else NT (N).Nkind = N_Procedure_Call_Statement);
5155 Set_Flag17 (N, Val);
5156 end Set_Parameter_List_Truncated;
5158 procedure Set_Parameter_Specifications
5159 (N : Node_Id; Val : List_Id) is
5161 pragma Assert (False
5162 or else NT (N).Nkind = N_Accept_Statement
5163 or else NT (N).Nkind = N_Access_Function_Definition
5164 or else NT (N).Nkind = N_Access_Procedure_Definition
5165 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5166 or else NT (N).Nkind = N_Entry_Declaration
5167 or else NT (N).Nkind = N_Function_Specification
5168 or else NT (N).Nkind = N_Procedure_Specification);
5169 Set_List3_With_Parent (N, Val);
5170 end Set_Parameter_Specifications;
5172 procedure Set_Parameter_Type
5173 (N : Node_Id; Val : Node_Id) is
5175 pragma Assert (False
5176 or else NT (N).Nkind = N_Parameter_Specification);
5177 Set_Node2_With_Parent (N, Val);
5178 end Set_Parameter_Type;
5180 procedure Set_Parent_Spec
5181 (N : Node_Id; Val : Node_Id) is
5183 pragma Assert (False
5184 or else NT (N).Nkind = N_Function_Instantiation
5185 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5186 or else NT (N).Nkind = N_Generic_Package_Declaration
5187 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5188 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5189 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5190 or else NT (N).Nkind = N_Package_Declaration
5191 or else NT (N).Nkind = N_Package_Instantiation
5192 or else NT (N).Nkind = N_Package_Renaming_Declaration
5193 or else NT (N).Nkind = N_Procedure_Instantiation
5194 or else NT (N).Nkind = N_Subprogram_Declaration
5195 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5196 Set_Node4 (N, Val); -- semantic field, no parent set
5197 end Set_Parent_Spec;
5199 procedure Set_Position
5200 (N : Node_Id; Val : Node_Id) is
5202 pragma Assert (False
5203 or else NT (N).Nkind = N_Component_Clause);
5204 Set_Node2_With_Parent (N, Val);
5207 procedure Set_Pragma_Argument_Associations
5208 (N : Node_Id; Val : List_Id) is
5210 pragma Assert (False
5211 or else NT (N).Nkind = N_Pragma);
5212 Set_List2_With_Parent (N, Val);
5213 end Set_Pragma_Argument_Associations;
5215 procedure Set_Pragma_Enabled
5216 (N : Node_Id; Val : Boolean := True) is
5218 pragma Assert (False
5219 or else NT (N).Nkind = N_Pragma);
5221 end Set_Pragma_Enabled;
5223 procedure Set_Pragma_Identifier
5224 (N : Node_Id; Val : Node_Id) is
5226 pragma Assert (False
5227 or else NT (N).Nkind = N_Pragma);
5228 Set_Node4_With_Parent (N, Val);
5229 end Set_Pragma_Identifier;
5231 procedure Set_Pragmas_After
5232 (N : Node_Id; Val : List_Id) is
5234 pragma Assert (False
5235 or else NT (N).Nkind = N_Compilation_Unit_Aux
5236 or else NT (N).Nkind = N_Terminate_Alternative);
5237 Set_List5_With_Parent (N, Val);
5238 end Set_Pragmas_After;
5240 procedure Set_Pragmas_Before
5241 (N : Node_Id; Val : List_Id) is
5243 pragma Assert (False
5244 or else NT (N).Nkind = N_Accept_Alternative
5245 or else NT (N).Nkind = N_Delay_Alternative
5246 or else NT (N).Nkind = N_Entry_Call_Alternative
5247 or else NT (N).Nkind = N_Mod_Clause
5248 or else NT (N).Nkind = N_Terminate_Alternative
5249 or else NT (N).Nkind = N_Triggering_Alternative);
5250 Set_List4_With_Parent (N, Val);
5251 end Set_Pragmas_Before;
5253 procedure Set_Prefix
5254 (N : Node_Id; Val : Node_Id) is
5256 pragma Assert (False
5257 or else NT (N).Nkind = N_Attribute_Reference
5258 or else NT (N).Nkind = N_Expanded_Name
5259 or else NT (N).Nkind = N_Explicit_Dereference
5260 or else NT (N).Nkind = N_Indexed_Component
5261 or else NT (N).Nkind = N_Reference
5262 or else NT (N).Nkind = N_Selected_Component
5263 or else NT (N).Nkind = N_Slice);
5264 Set_Node3_With_Parent (N, Val);
5267 procedure Set_Present_Expr
5268 (N : Node_Id; Val : Uint) is
5270 pragma Assert (False
5271 or else NT (N).Nkind = N_Variant);
5273 end Set_Present_Expr;
5275 procedure Set_Prev_Ids
5276 (N : Node_Id; Val : Boolean := True) is
5278 pragma Assert (False
5279 or else NT (N).Nkind = N_Component_Declaration
5280 or else NT (N).Nkind = N_Discriminant_Specification
5281 or else NT (N).Nkind = N_Exception_Declaration
5282 or else NT (N).Nkind = N_Formal_Object_Declaration
5283 or else NT (N).Nkind = N_Number_Declaration
5284 or else NT (N).Nkind = N_Object_Declaration
5285 or else NT (N).Nkind = N_Parameter_Specification);
5289 procedure Set_Print_In_Hex
5290 (N : Node_Id; Val : Boolean := True) is
5292 pragma Assert (False
5293 or else NT (N).Nkind = N_Integer_Literal);
5294 Set_Flag13 (N, Val);
5295 end Set_Print_In_Hex;
5297 procedure Set_Private_Declarations
5298 (N : Node_Id; Val : List_Id) is
5300 pragma Assert (False
5301 or else NT (N).Nkind = N_Package_Specification
5302 or else NT (N).Nkind = N_Protected_Definition
5303 or else NT (N).Nkind = N_Task_Definition);
5304 Set_List3_With_Parent (N, Val);
5305 end Set_Private_Declarations;
5307 procedure Set_Private_Present
5308 (N : Node_Id; Val : Boolean := True) is
5310 pragma Assert (False
5311 or else NT (N).Nkind = N_Compilation_Unit
5312 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5313 or else NT (N).Nkind = N_With_Clause);
5314 Set_Flag15 (N, Val);
5315 end Set_Private_Present;
5317 procedure Set_Procedure_To_Call
5318 (N : Node_Id; Val : Node_Id) is
5320 pragma Assert (False
5321 or else NT (N).Nkind = N_Allocator
5322 or else NT (N).Nkind = N_Extended_Return_Statement
5323 or else NT (N).Nkind = N_Free_Statement
5324 or else NT (N).Nkind = N_Return_Statement);
5325 Set_Node2 (N, Val); -- semantic field, no parent set
5326 end Set_Procedure_To_Call;
5328 procedure Set_Proper_Body
5329 (N : Node_Id; Val : Node_Id) is
5331 pragma Assert (False
5332 or else NT (N).Nkind = N_Subunit);
5333 Set_Node1_With_Parent (N, Val);
5334 end Set_Proper_Body;
5336 procedure Set_Protected_Definition
5337 (N : Node_Id; Val : Node_Id) is
5339 pragma Assert (False
5340 or else NT (N).Nkind = N_Protected_Type_Declaration
5341 or else NT (N).Nkind = N_Single_Protected_Declaration);
5342 Set_Node3_With_Parent (N, Val);
5343 end Set_Protected_Definition;
5345 procedure Set_Protected_Present
5346 (N : Node_Id; Val : Boolean := True) is
5348 pragma Assert (False
5349 or else NT (N).Nkind = N_Access_Function_Definition
5350 or else NT (N).Nkind = N_Access_Procedure_Definition
5351 or else NT (N).Nkind = N_Derived_Type_Definition
5352 or else NT (N).Nkind = N_Record_Definition);
5354 end Set_Protected_Present;
5356 procedure Set_Raises_Constraint_Error
5357 (N : Node_Id; Val : Boolean := True) is
5359 pragma Assert (False
5360 or else NT (N).Nkind in N_Subexpr);
5362 end Set_Raises_Constraint_Error;
5364 procedure Set_Range_Constraint
5365 (N : Node_Id; Val : Node_Id) is
5367 pragma Assert (False
5368 or else NT (N).Nkind = N_Delta_Constraint
5369 or else NT (N).Nkind = N_Digits_Constraint);
5370 Set_Node4_With_Parent (N, Val);
5371 end Set_Range_Constraint;
5373 procedure Set_Range_Expression
5374 (N : Node_Id; Val : Node_Id) is
5376 pragma Assert (False
5377 or else NT (N).Nkind = N_Range_Constraint);
5378 Set_Node4_With_Parent (N, Val);
5379 end Set_Range_Expression;
5381 procedure Set_Real_Range_Specification
5382 (N : Node_Id; Val : Node_Id) is
5384 pragma Assert (False
5385 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5386 or else NT (N).Nkind = N_Floating_Point_Definition
5387 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5388 Set_Node4_With_Parent (N, Val);
5389 end Set_Real_Range_Specification;
5391 procedure Set_Realval
5392 (N : Node_Id; Val : Ureal) is
5394 pragma Assert (False
5395 or else NT (N).Nkind = N_Real_Literal);
5396 Set_Ureal3 (N, Val);
5399 procedure Set_Reason
5400 (N : Node_Id; Val : Uint) is
5402 pragma Assert (False
5403 or else NT (N).Nkind = N_Raise_Constraint_Error
5404 or else NT (N).Nkind = N_Raise_Program_Error
5405 or else NT (N).Nkind = N_Raise_Storage_Error);
5409 procedure Set_Record_Extension_Part
5410 (N : Node_Id; Val : Node_Id) is
5412 pragma Assert (False
5413 or else NT (N).Nkind = N_Derived_Type_Definition);
5414 Set_Node3_With_Parent (N, Val);
5415 end Set_Record_Extension_Part;
5417 procedure Set_Redundant_Use
5418 (N : Node_Id; Val : Boolean := True) is
5420 pragma Assert (False
5421 or else NT (N).Nkind = N_Attribute_Reference
5422 or else NT (N).Nkind = N_Expanded_Name
5423 or else NT (N).Nkind = N_Identifier);
5424 Set_Flag13 (N, Val);
5425 end Set_Redundant_Use;
5427 procedure Set_Renaming_Exception
5428 (N : Node_Id; Val : Node_Id) is
5430 pragma Assert (False
5431 or else NT (N).Nkind = N_Exception_Declaration);
5433 end Set_Renaming_Exception;
5435 procedure Set_Result_Definition
5436 (N : Node_Id; Val : Node_Id) is
5438 pragma Assert (False
5439 or else NT (N).Nkind = N_Access_Function_Definition
5440 or else NT (N).Nkind = N_Function_Specification);
5441 Set_Node4_With_Parent (N, Val);
5442 end Set_Result_Definition;
5444 procedure Set_Return_Object_Declarations
5445 (N : Node_Id; Val : List_Id) is
5447 pragma Assert (False
5448 or else NT (N).Nkind = N_Extended_Return_Statement);
5449 Set_List3_With_Parent (N, Val);
5450 end Set_Return_Object_Declarations;
5452 procedure Set_Return_Statement_Entity
5453 (N : Node_Id; Val : Node_Id) is
5455 pragma Assert (False
5456 or else NT (N).Nkind = N_Extended_Return_Statement
5457 or else NT (N).Nkind = N_Return_Statement);
5458 Set_Node5 (N, Val); -- semantic field, no parent set
5459 end Set_Return_Statement_Entity;
5461 procedure Set_Reverse_Present
5462 (N : Node_Id; Val : Boolean := True) is
5464 pragma Assert (False
5465 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5466 Set_Flag15 (N, Val);
5467 end Set_Reverse_Present;
5469 procedure Set_Right_Opnd
5470 (N : Node_Id; Val : Node_Id) is
5472 pragma Assert (False
5473 or else NT (N).Nkind in N_Op
5474 or else NT (N).Nkind = N_And_Then
5475 or else NT (N).Nkind = N_In
5476 or else NT (N).Nkind = N_Not_In
5477 or else NT (N).Nkind = N_Or_Else);
5478 Set_Node3_With_Parent (N, Val);
5481 procedure Set_Rounded_Result
5482 (N : Node_Id; Val : Boolean := True) is
5484 pragma Assert (False
5485 or else NT (N).Nkind = N_Op_Divide
5486 or else NT (N).Nkind = N_Op_Multiply
5487 or else NT (N).Nkind = N_Type_Conversion);
5488 Set_Flag18 (N, Val);
5489 end Set_Rounded_Result;
5491 procedure Set_SCIL_Controlling_Tag
5492 (N : Node_Id; Val : Node_Id) is
5494 pragma Assert (False
5495 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5496 Set_Node5 (N, Val); -- semantic field, no parent set
5497 end Set_SCIL_Controlling_Tag;
5499 procedure Set_SCIL_Entity
5500 (N : Node_Id; Val : Node_Id) is
5502 pragma Assert (False
5503 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5504 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5505 or else NT (N).Nkind = N_SCIL_Membership_Test);
5506 Set_Node4 (N, Val); -- semantic field, no parent set
5507 end Set_SCIL_Entity;
5509 procedure Set_SCIL_Tag_Value
5510 (N : Node_Id; Val : Node_Id) is
5512 pragma Assert (False
5513 or else NT (N).Nkind = N_SCIL_Membership_Test);
5514 Set_Node5 (N, Val); -- semantic field, no parent set
5515 end Set_SCIL_Tag_Value;
5517 procedure Set_SCIL_Target_Prim
5518 (N : Node_Id; Val : Node_Id) is
5520 pragma Assert (False
5521 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5522 Set_Node2 (N, Val); -- semantic field, no parent set
5523 end Set_SCIL_Target_Prim;
5526 (N : Node_Id; Val : Node_Id) is
5528 pragma Assert (False
5529 or else NT (N).Nkind = N_Defining_Character_Literal
5530 or else NT (N).Nkind = N_Defining_Identifier
5531 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5532 Set_Node3 (N, Val); -- semantic field, no parent set
5535 procedure Set_Select_Alternatives
5536 (N : Node_Id; Val : List_Id) is
5538 pragma Assert (False
5539 or else NT (N).Nkind = N_Selective_Accept);
5540 Set_List1_With_Parent (N, Val);
5541 end Set_Select_Alternatives;
5543 procedure Set_Selector_Name
5544 (N : Node_Id; Val : Node_Id) is
5546 pragma Assert (False
5547 or else NT (N).Nkind = N_Expanded_Name
5548 or else NT (N).Nkind = N_Generic_Association
5549 or else NT (N).Nkind = N_Parameter_Association
5550 or else NT (N).Nkind = N_Selected_Component);
5551 Set_Node2_With_Parent (N, Val);
5552 end Set_Selector_Name;
5554 procedure Set_Selector_Names
5555 (N : Node_Id; Val : List_Id) is
5557 pragma Assert (False
5558 or else NT (N).Nkind = N_Discriminant_Association);
5559 Set_List1_With_Parent (N, Val);
5560 end Set_Selector_Names;
5562 procedure Set_Shift_Count_OK
5563 (N : Node_Id; Val : Boolean := True) is
5565 pragma Assert (False
5566 or else NT (N).Nkind = N_Op_Rotate_Left
5567 or else NT (N).Nkind = N_Op_Rotate_Right
5568 or else NT (N).Nkind = N_Op_Shift_Left
5569 or else NT (N).Nkind = N_Op_Shift_Right
5570 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5572 end Set_Shift_Count_OK;
5574 procedure Set_Source_Type
5575 (N : Node_Id; Val : Entity_Id) is
5577 pragma Assert (False
5578 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5579 Set_Node1 (N, Val); -- semantic field, no parent set
5580 end Set_Source_Type;
5582 procedure Set_Specification
5583 (N : Node_Id; Val : Node_Id) is
5585 pragma Assert (False
5586 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5587 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5588 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5589 or else NT (N).Nkind = N_Generic_Package_Declaration
5590 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5591 or else NT (N).Nkind = N_Package_Declaration
5592 or else NT (N).Nkind = N_Parameterized_Expression
5593 or else NT (N).Nkind = N_Subprogram_Body
5594 or else NT (N).Nkind = N_Subprogram_Body_Stub
5595 or else NT (N).Nkind = N_Subprogram_Declaration
5596 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5597 Set_Node1_With_Parent (N, Val);
5598 end Set_Specification;
5600 procedure Set_Statements
5601 (N : Node_Id; Val : List_Id) is
5603 pragma Assert (False
5604 or else NT (N).Nkind = N_Abortable_Part
5605 or else NT (N).Nkind = N_Accept_Alternative
5606 or else NT (N).Nkind = N_Case_Statement_Alternative
5607 or else NT (N).Nkind = N_Delay_Alternative
5608 or else NT (N).Nkind = N_Entry_Call_Alternative
5609 or else NT (N).Nkind = N_Exception_Handler
5610 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5611 or else NT (N).Nkind = N_Loop_Statement
5612 or else NT (N).Nkind = N_Triggering_Alternative);
5613 Set_List3_With_Parent (N, Val);
5616 procedure Set_Static_Processing_OK
5617 (N : Node_Id; Val : Boolean) is
5619 pragma Assert (False
5620 or else NT (N).Nkind = N_Aggregate);
5622 end Set_Static_Processing_OK;
5624 procedure Set_Storage_Pool
5625 (N : Node_Id; Val : Node_Id) is
5627 pragma Assert (False
5628 or else NT (N).Nkind = N_Allocator
5629 or else NT (N).Nkind = N_Extended_Return_Statement
5630 or else NT (N).Nkind = N_Free_Statement
5631 or else NT (N).Nkind = N_Return_Statement);
5632 Set_Node1 (N, Val); -- semantic field, no parent set
5633 end Set_Storage_Pool;
5635 procedure Set_Strval
5636 (N : Node_Id; Val : String_Id) is
5638 pragma Assert (False
5639 or else NT (N).Nkind = N_Operator_Symbol
5640 or else NT (N).Nkind = N_String_Literal);
5644 procedure Set_Subtype_Indication
5645 (N : Node_Id; Val : Node_Id) is
5647 pragma Assert (False
5648 or else NT (N).Nkind = N_Access_To_Object_Definition
5649 or else NT (N).Nkind = N_Component_Definition
5650 or else NT (N).Nkind = N_Derived_Type_Definition
5651 or else NT (N).Nkind = N_Private_Extension_Declaration
5652 or else NT (N).Nkind = N_Subtype_Declaration);
5653 Set_Node5_With_Parent (N, Val);
5654 end Set_Subtype_Indication;
5656 procedure Set_Subtype_Mark
5657 (N : Node_Id; Val : Node_Id) is
5659 pragma Assert (False
5660 or else NT (N).Nkind = N_Access_Definition
5661 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5662 or else NT (N).Nkind = N_Formal_Object_Declaration
5663 or else NT (N).Nkind = N_Object_Renaming_Declaration
5664 or else NT (N).Nkind = N_Qualified_Expression
5665 or else NT (N).Nkind = N_Subtype_Indication
5666 or else NT (N).Nkind = N_Type_Conversion
5667 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5668 Set_Node4_With_Parent (N, Val);
5669 end Set_Subtype_Mark;
5671 procedure Set_Subtype_Marks
5672 (N : Node_Id; Val : List_Id) is
5674 pragma Assert (False
5675 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5676 or else NT (N).Nkind = N_Use_Type_Clause);
5677 Set_List2_With_Parent (N, Val);
5678 end Set_Subtype_Marks;
5680 procedure Set_Suppress_Loop_Warnings
5681 (N : Node_Id; Val : Boolean := True) is
5683 pragma Assert (False
5684 or else NT (N).Nkind = N_Loop_Statement);
5685 Set_Flag17 (N, Val);
5686 end Set_Suppress_Loop_Warnings;
5688 procedure Set_Synchronized_Present
5689 (N : Node_Id; Val : Boolean := True) is
5691 pragma Assert (False
5692 or else NT (N).Nkind = N_Derived_Type_Definition
5693 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5694 or else NT (N).Nkind = N_Private_Extension_Declaration
5695 or else NT (N).Nkind = N_Record_Definition);
5697 end Set_Synchronized_Present;
5699 procedure Set_Tagged_Present
5700 (N : Node_Id; Val : Boolean := True) is
5702 pragma Assert (False
5703 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5704 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5705 or else NT (N).Nkind = N_Private_Type_Declaration
5706 or else NT (N).Nkind = N_Record_Definition);
5707 Set_Flag15 (N, Val);
5708 end Set_Tagged_Present;
5710 procedure Set_Target_Type
5711 (N : Node_Id; Val : Entity_Id) is
5713 pragma Assert (False
5714 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5715 Set_Node2 (N, Val); -- semantic field, no parent set
5716 end Set_Target_Type;
5718 procedure Set_Task_Definition
5719 (N : Node_Id; Val : Node_Id) is
5721 pragma Assert (False
5722 or else NT (N).Nkind = N_Single_Task_Declaration
5723 or else NT (N).Nkind = N_Task_Type_Declaration);
5724 Set_Node3_With_Parent (N, Val);
5725 end Set_Task_Definition;
5727 procedure Set_Task_Present
5728 (N : Node_Id; Val : Boolean := True) is
5730 pragma Assert (False
5731 or else NT (N).Nkind = N_Derived_Type_Definition
5732 or else NT (N).Nkind = N_Record_Definition);
5734 end Set_Task_Present;
5736 procedure Set_Then_Actions
5737 (N : Node_Id; Val : List_Id) is
5739 pragma Assert (False
5740 or else NT (N).Nkind = N_Conditional_Expression);
5741 Set_List2 (N, Val); -- semantic field, no parent set
5742 end Set_Then_Actions;
5744 procedure Set_Then_Statements
5745 (N : Node_Id; Val : List_Id) is
5747 pragma Assert (False
5748 or else NT (N).Nkind = N_Elsif_Part
5749 or else NT (N).Nkind = N_If_Statement);
5750 Set_List2_With_Parent (N, Val);
5751 end Set_Then_Statements;
5753 procedure Set_Treat_Fixed_As_Integer
5754 (N : Node_Id; Val : Boolean := True) is
5756 pragma Assert (False
5757 or else NT (N).Nkind = N_Op_Divide
5758 or else NT (N).Nkind = N_Op_Mod
5759 or else NT (N).Nkind = N_Op_Multiply
5760 or else NT (N).Nkind = N_Op_Rem);
5761 Set_Flag14 (N, Val);
5762 end Set_Treat_Fixed_As_Integer;
5764 procedure Set_Triggering_Alternative
5765 (N : Node_Id; Val : Node_Id) is
5767 pragma Assert (False
5768 or else NT (N).Nkind = N_Asynchronous_Select);
5769 Set_Node1_With_Parent (N, Val);
5770 end Set_Triggering_Alternative;
5772 procedure Set_Triggering_Statement
5773 (N : Node_Id; Val : Node_Id) is
5775 pragma Assert (False
5776 or else NT (N).Nkind = N_Triggering_Alternative);
5777 Set_Node1_With_Parent (N, Val);
5778 end Set_Triggering_Statement;
5780 procedure Set_TSS_Elist
5781 (N : Node_Id; Val : Elist_Id) is
5783 pragma Assert (False
5784 or else NT (N).Nkind = N_Freeze_Entity);
5785 Set_Elist3 (N, Val); -- semantic field, no parent set
5788 procedure Set_Type_Definition
5789 (N : Node_Id; Val : Node_Id) is
5791 pragma Assert (False
5792 or else NT (N).Nkind = N_Full_Type_Declaration);
5793 Set_Node3_With_Parent (N, Val);
5794 end Set_Type_Definition;
5797 (N : Node_Id; Val : Node_Id) is
5799 pragma Assert (False
5800 or else NT (N).Nkind = N_Compilation_Unit);
5801 Set_Node2_With_Parent (N, Val);
5804 procedure Set_Unknown_Discriminants_Present
5805 (N : Node_Id; Val : Boolean := True) is
5807 pragma Assert (False
5808 or else NT (N).Nkind = N_Formal_Type_Declaration
5809 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5810 or else NT (N).Nkind = N_Private_Extension_Declaration
5811 or else NT (N).Nkind = N_Private_Type_Declaration);
5812 Set_Flag13 (N, Val);
5813 end Set_Unknown_Discriminants_Present;
5815 procedure Set_Unreferenced_In_Spec
5816 (N : Node_Id; Val : Boolean := True) is
5818 pragma Assert (False
5819 or else NT (N).Nkind = N_With_Clause);
5821 end Set_Unreferenced_In_Spec;
5823 procedure Set_Variant_Part
5824 (N : Node_Id; Val : Node_Id) is
5826 pragma Assert (False
5827 or else NT (N).Nkind = N_Component_List);
5828 Set_Node4_With_Parent (N, Val);
5829 end Set_Variant_Part;
5831 procedure Set_Variants
5832 (N : Node_Id; Val : List_Id) is
5834 pragma Assert (False
5835 or else NT (N).Nkind = N_Variant_Part);
5836 Set_List1_With_Parent (N, Val);
5839 procedure Set_Visible_Declarations
5840 (N : Node_Id; Val : List_Id) is
5842 pragma Assert (False
5843 or else NT (N).Nkind = N_Package_Specification
5844 or else NT (N).Nkind = N_Protected_Definition
5845 or else NT (N).Nkind = N_Task_Definition);
5846 Set_List2_With_Parent (N, Val);
5847 end Set_Visible_Declarations;
5849 procedure Set_Was_Originally_Stub
5850 (N : Node_Id; Val : Boolean := True) is
5852 pragma Assert (False
5853 or else NT (N).Nkind = N_Package_Body
5854 or else NT (N).Nkind = N_Protected_Body
5855 or else NT (N).Nkind = N_Subprogram_Body
5856 or else NT (N).Nkind = N_Task_Body);
5857 Set_Flag13 (N, Val);
5858 end Set_Was_Originally_Stub;
5860 procedure Set_Withed_Body
5861 (N : Node_Id; Val : Node_Id) is
5863 pragma Assert (False
5864 or else NT (N).Nkind = N_With_Clause);
5866 end Set_Withed_Body;
5868 procedure Set_Zero_Cost_Handling
5869 (N : Node_Id; Val : Boolean := True) is
5871 pragma Assert (False
5872 or else NT (N).Nkind = N_Exception_Handler
5873 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
5875 end Set_Zero_Cost_Handling;
5877 -------------------------
5878 -- Iterator Procedures --
5879 -------------------------
5881 procedure Next_Entity (N : in out Node_Id) is
5883 N := Next_Entity (N);
5886 procedure Next_Named_Actual (N : in out Node_Id) is
5888 N := Next_Named_Actual (N);
5889 end Next_Named_Actual;
5891 procedure Next_Rep_Item (N : in out Node_Id) is
5893 N := Next_Rep_Item (N);
5896 procedure Next_Use_Clause (N : in out Node_Id) is
5898 N := Next_Use_Clause (N);
5899 end Next_Use_Clause;
5905 function End_Location (N : Node_Id) return Source_Ptr is
5906 L : constant Uint := End_Span (N);
5911 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
5915 ----------------------
5916 -- Set_End_Location --
5917 ----------------------
5919 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
5922 UI_From_Int (Int (S) - Int (Sloc (N))));
5923 end Set_End_Location;
5932 V2 : Node_Kind) return Boolean
5935 return T = V1 or else
5943 V3 : Node_Kind) return Boolean
5946 return T = V1 or else
5956 V4 : Node_Kind) return Boolean
5959 return T = V1 or else
5971 V5 : Node_Kind) return Boolean
5974 return T = V1 or else
5988 V6 : Node_Kind) return Boolean
5991 return T = V1 or else
6007 V7 : Node_Kind) return Boolean
6010 return T = V1 or else
6028 V8 : Node_Kind) return Boolean
6031 return T = V1 or else
6051 V9 : Node_Kind) return Boolean
6054 return T = V1 or else
6069 function Pragma_Name (N : Node_Id) return Name_Id is
6071 return Chars (Pragma_Identifier (N));