1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2007, 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 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 pragma Style_Checks (All_Checks);
35 -- No subprogram ordering check, due to logical grouping
37 with Atree; use Atree;
41 use Atree.Unchecked_Access;
42 -- This package is one of the few packages which is allowed to make direct
43 -- references to tree nodes (since it is in the business of providing a
44 -- higher level of tree access which other clients are expected to use and
45 -- which implements checks).
47 use Atree_Private_Part;
48 -- The only reason that we ask for direct access to the private part of
49 -- the tree package is so that we can directly reference the Nkind field
50 -- of nodes table entries. We do this since it helps the efficiency of
51 -- the Sinfo debugging checks considerably (note that when we are checking
52 -- Nkind values, we don't need to check for a valid node reference, because
53 -- we will check that anyway when we reference the field).
55 NT : Nodes.Table_Ptr renames Nodes.Table;
56 -- A short hand abbreviation, useful for the debugging checks
58 ----------------------------
59 -- Field Access Functions --
60 ----------------------------
62 function ABE_Is_Certain
63 (N : Node_Id) return Boolean is
66 or else NT (N).Nkind = N_Formal_Package_Declaration
67 or else NT (N).Nkind = N_Function_Call
68 or else NT (N).Nkind = N_Function_Instantiation
69 or else NT (N).Nkind = N_Package_Instantiation
70 or else NT (N).Nkind = N_Procedure_Call_Statement
71 or else NT (N).Nkind = N_Procedure_Instantiation);
75 function Abort_Present
76 (N : Node_Id) return Boolean is
79 or else NT (N).Nkind = N_Requeue_Statement);
83 function Abortable_Part
84 (N : Node_Id) return Node_Id is
87 or else NT (N).Nkind = N_Asynchronous_Select);
91 function Abstract_Present
92 (N : Node_Id) return Boolean is
95 or else NT (N).Nkind = N_Derived_Type_Definition
96 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
97 or else NT (N).Nkind = N_Formal_Private_Type_Definition
98 or else NT (N).Nkind = N_Private_Extension_Declaration
99 or else NT (N).Nkind = N_Private_Type_Declaration
100 or else NT (N).Nkind = N_Record_Definition);
102 end Abstract_Present;
104 function Accept_Handler_Records
105 (N : Node_Id) return List_Id is
108 or else NT (N).Nkind = N_Accept_Alternative);
110 end Accept_Handler_Records;
112 function Accept_Statement
113 (N : Node_Id) return Node_Id is
116 or else NT (N).Nkind = N_Accept_Alternative);
118 end Accept_Statement;
120 function Access_Definition
121 (N : Node_Id) return Node_Id is
124 or else NT (N).Nkind = N_Component_Definition
125 or else NT (N).Nkind = N_Formal_Object_Declaration
126 or else NT (N).Nkind = N_Object_Renaming_Declaration);
128 end Access_Definition;
130 function Access_To_Subprogram_Definition
131 (N : Node_Id) return Node_Id is
134 or else NT (N).Nkind = N_Access_Definition);
136 end Access_To_Subprogram_Definition;
138 function Access_Types_To_Process
139 (N : Node_Id) return Elist_Id is
142 or else NT (N).Nkind = N_Freeze_Entity);
144 end Access_Types_To_Process;
147 (N : Node_Id) return List_Id is
150 or else NT (N).Nkind = N_And_Then
151 or else NT (N).Nkind = N_Compilation_Unit_Aux
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 Aggregate_Bounds
189 (N : Node_Id) return Node_Id is
192 or else NT (N).Nkind = N_Aggregate);
194 end Aggregate_Bounds;
196 function Aliased_Present
197 (N : Node_Id) return Boolean is
200 or else NT (N).Nkind = N_Component_Definition
201 or else NT (N).Nkind = N_Object_Declaration);
206 (N : Node_Id) return Boolean is
209 or else NT (N).Nkind = N_Others_Choice);
214 (N : Node_Id) return Boolean is
217 or else NT (N).Nkind = N_Access_Definition
218 or else NT (N).Nkind = N_Access_To_Object_Definition);
222 function Alternatives
223 (N : Node_Id) return List_Id is
226 or else NT (N).Nkind = N_Case_Statement);
230 function Ancestor_Part
231 (N : Node_Id) return Node_Id is
234 or else NT (N).Nkind = N_Extension_Aggregate);
238 function Array_Aggregate
239 (N : Node_Id) return Node_Id is
242 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
246 function Assignment_OK
247 (N : Node_Id) return Boolean is
250 or else NT (N).Nkind = N_Object_Declaration
251 or else NT (N).Nkind in N_Subexpr);
255 function Associated_Node
256 (N : Node_Id) return Node_Id is
259 or else NT (N).Nkind in N_Has_Entity
260 or else NT (N).Nkind = N_Aggregate
261 or else NT (N).Nkind = N_Extension_Aggregate
262 or else NT (N).Nkind = N_Selected_Component);
267 (N : Node_Id) return Node_Id is
270 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
274 function Attribute_Name
275 (N : Node_Id) return Name_Id is
278 or else NT (N).Nkind = N_Attribute_Reference);
282 function Aux_Decls_Node
283 (N : Node_Id) return Node_Id is
286 or else NT (N).Nkind = N_Compilation_Unit);
290 function Backwards_OK
291 (N : Node_Id) return Boolean is
294 or else NT (N).Nkind = N_Assignment_Statement);
298 function Bad_Is_Detected
299 (N : Node_Id) return Boolean is
302 or else NT (N).Nkind = N_Subprogram_Body);
306 function Body_Required
307 (N : Node_Id) return Boolean is
310 or else NT (N).Nkind = N_Compilation_Unit);
314 function Body_To_Inline
315 (N : Node_Id) return Node_Id is
318 or else NT (N).Nkind = N_Subprogram_Declaration);
323 (N : Node_Id) return Boolean is
326 or else NT (N).Nkind = N_Component_Association
327 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
328 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
329 or else NT (N).Nkind = N_Formal_Package_Declaration
330 or else NT (N).Nkind = N_Generic_Association);
335 (N : Node_Id) return Boolean is
338 or else NT (N).Nkind = N_Extended_Return_Statement
339 or else NT (N).Nkind = N_Return_Statement);
343 function Char_Literal_Value
344 (N : Node_Id) return Uint is
347 or else NT (N).Nkind = N_Character_Literal);
349 end Char_Literal_Value;
352 (N : Node_Id) return Name_Id is
355 or else NT (N).Nkind in N_Has_Chars);
359 function Check_Address_Alignment
360 (N : Node_Id) return Boolean is
363 or else NT (N).Nkind = N_Attribute_Definition_Clause);
365 end Check_Address_Alignment;
367 function Choice_Parameter
368 (N : Node_Id) return Node_Id is
371 or else NT (N).Nkind = N_Exception_Handler);
373 end Choice_Parameter;
376 (N : Node_Id) return List_Id is
379 or else NT (N).Nkind = N_Component_Association);
383 function Coextensions
384 (N : Node_Id) return Elist_Id is
387 or else NT (N).Nkind = N_Allocator);
391 function Comes_From_Extended_Return_Statement
392 (N : Node_Id) return Boolean is
395 or else NT (N).Nkind = N_Return_Statement);
397 end Comes_From_Extended_Return_Statement;
399 function Compile_Time_Known_Aggregate
400 (N : Node_Id) return Boolean is
403 or else NT (N).Nkind = N_Aggregate);
405 end Compile_Time_Known_Aggregate;
407 function Component_Associations
408 (N : Node_Id) return List_Id is
411 or else NT (N).Nkind = N_Aggregate
412 or else NT (N).Nkind = N_Extension_Aggregate);
414 end Component_Associations;
416 function Component_Clauses
417 (N : Node_Id) return List_Id is
420 or else NT (N).Nkind = N_Record_Representation_Clause);
422 end Component_Clauses;
424 function Component_Definition
425 (N : Node_Id) return Node_Id is
428 or else NT (N).Nkind = N_Component_Declaration
429 or else NT (N).Nkind = N_Constrained_Array_Definition
430 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
432 end Component_Definition;
434 function Component_Items
435 (N : Node_Id) return List_Id is
438 or else NT (N).Nkind = N_Component_List);
442 function Component_List
443 (N : Node_Id) return Node_Id is
446 or else NT (N).Nkind = N_Record_Definition
447 or else NT (N).Nkind = N_Variant);
451 function Component_Name
452 (N : Node_Id) return Node_Id is
455 or else NT (N).Nkind = N_Component_Clause);
460 (N : Node_Id) return Node_Id is
463 or else NT (N).Nkind = N_Accept_Alternative
464 or else NT (N).Nkind = N_Delay_Alternative
465 or else NT (N).Nkind = N_Elsif_Part
466 or else NT (N).Nkind = N_Entry_Body_Formal_Part
467 or else NT (N).Nkind = N_Exit_Statement
468 or else NT (N).Nkind = N_If_Statement
469 or else NT (N).Nkind = N_Iteration_Scheme
470 or else NT (N).Nkind = N_Raise_Constraint_Error
471 or else NT (N).Nkind = N_Raise_Program_Error
472 or else NT (N).Nkind = N_Raise_Storage_Error
473 or else NT (N).Nkind = N_Terminate_Alternative);
477 function Condition_Actions
478 (N : Node_Id) return List_Id is
481 or else NT (N).Nkind = N_Elsif_Part
482 or else NT (N).Nkind = N_Iteration_Scheme);
484 end Condition_Actions;
486 function Config_Pragmas
487 (N : Node_Id) return List_Id is
490 or else NT (N).Nkind = N_Compilation_Unit_Aux);
494 function Constant_Present
495 (N : Node_Id) return Boolean is
498 or else NT (N).Nkind = N_Access_Definition
499 or else NT (N).Nkind = N_Access_To_Object_Definition
500 or else NT (N).Nkind = N_Object_Declaration);
502 end Constant_Present;
505 (N : Node_Id) return Node_Id is
508 or else NT (N).Nkind = N_Subtype_Indication);
513 (N : Node_Id) return List_Id is
516 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
520 function Context_Installed
521 (N : Node_Id) return Boolean is
524 or else NT (N).Nkind = N_With_Clause);
526 end Context_Installed;
528 function Context_Items
529 (N : Node_Id) return List_Id is
532 or else NT (N).Nkind = N_Compilation_Unit);
536 function Controlling_Argument
537 (N : Node_Id) return Node_Id is
540 or else NT (N).Nkind = N_Function_Call
541 or else NT (N).Nkind = N_Procedure_Call_Statement);
543 end Controlling_Argument;
545 function Conversion_OK
546 (N : Node_Id) return Boolean is
549 or else NT (N).Nkind = N_Type_Conversion);
553 function Corresponding_Body
554 (N : Node_Id) return Node_Id is
557 or else NT (N).Nkind = N_Entry_Declaration
558 or else NT (N).Nkind = N_Generic_Package_Declaration
559 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
560 or else NT (N).Nkind = N_Package_Body_Stub
561 or else NT (N).Nkind = N_Package_Declaration
562 or else NT (N).Nkind = N_Protected_Body_Stub
563 or else NT (N).Nkind = N_Protected_Type_Declaration
564 or else NT (N).Nkind = N_Subprogram_Body_Stub
565 or else NT (N).Nkind = N_Subprogram_Declaration
566 or else NT (N).Nkind = N_Task_Body_Stub
567 or else NT (N).Nkind = N_Task_Type_Declaration);
569 end Corresponding_Body;
571 function Corresponding_Formal_Spec
572 (N : Node_Id) return Node_Id is
575 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
577 end Corresponding_Formal_Spec;
579 function Corresponding_Generic_Association
580 (N : Node_Id) return Node_Id is
583 or else NT (N).Nkind = N_Object_Declaration
584 or else NT (N).Nkind = N_Object_Renaming_Declaration);
586 end Corresponding_Generic_Association;
588 function Corresponding_Integer_Value
589 (N : Node_Id) return Uint is
592 or else NT (N).Nkind = N_Real_Literal);
594 end Corresponding_Integer_Value;
596 function Corresponding_Spec
597 (N : Node_Id) return Node_Id is
600 or else NT (N).Nkind = N_Package_Body
601 or else NT (N).Nkind = N_Protected_Body
602 or else NT (N).Nkind = N_Subprogram_Body
603 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
604 or else NT (N).Nkind = N_Task_Body
605 or else NT (N).Nkind = N_With_Clause);
607 end Corresponding_Spec;
609 function Corresponding_Stub
610 (N : Node_Id) return Node_Id is
613 or else NT (N).Nkind = N_Subunit);
615 end Corresponding_Stub;
617 function Dcheck_Function
618 (N : Node_Id) return Entity_Id is
621 or else NT (N).Nkind = N_Variant);
625 function Debug_Statement
626 (N : Node_Id) return Node_Id is
629 or else NT (N).Nkind = N_Pragma);
633 function Declarations
634 (N : Node_Id) return List_Id is
637 or else NT (N).Nkind = N_Accept_Statement
638 or else NT (N).Nkind = N_Block_Statement
639 or else NT (N).Nkind = N_Compilation_Unit_Aux
640 or else NT (N).Nkind = N_Entry_Body
641 or else NT (N).Nkind = N_Package_Body
642 or else NT (N).Nkind = N_Protected_Body
643 or else NT (N).Nkind = N_Subprogram_Body
644 or else NT (N).Nkind = N_Task_Body);
648 function Default_Expression
649 (N : Node_Id) return Node_Id is
652 or else NT (N).Nkind = N_Formal_Object_Declaration
653 or else NT (N).Nkind = N_Parameter_Specification);
655 end Default_Expression;
657 function Default_Name
658 (N : Node_Id) return Node_Id is
661 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
662 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
666 function Defining_Identifier
667 (N : Node_Id) return Entity_Id is
670 or else NT (N).Nkind = N_Component_Declaration
671 or else NT (N).Nkind = N_Defining_Program_Unit_Name
672 or else NT (N).Nkind = N_Discriminant_Specification
673 or else NT (N).Nkind = N_Entry_Body
674 or else NT (N).Nkind = N_Entry_Declaration
675 or else NT (N).Nkind = N_Entry_Index_Specification
676 or else NT (N).Nkind = N_Exception_Declaration
677 or else NT (N).Nkind = N_Exception_Renaming_Declaration
678 or else NT (N).Nkind = N_Formal_Object_Declaration
679 or else NT (N).Nkind = N_Formal_Package_Declaration
680 or else NT (N).Nkind = N_Formal_Type_Declaration
681 or else NT (N).Nkind = N_Full_Type_Declaration
682 or else NT (N).Nkind = N_Implicit_Label_Declaration
683 or else NT (N).Nkind = N_Incomplete_Type_Declaration
684 or else NT (N).Nkind = N_Loop_Parameter_Specification
685 or else NT (N).Nkind = N_Number_Declaration
686 or else NT (N).Nkind = N_Object_Declaration
687 or else NT (N).Nkind = N_Object_Renaming_Declaration
688 or else NT (N).Nkind = N_Package_Body_Stub
689 or else NT (N).Nkind = N_Parameter_Specification
690 or else NT (N).Nkind = N_Private_Extension_Declaration
691 or else NT (N).Nkind = N_Private_Type_Declaration
692 or else NT (N).Nkind = N_Protected_Body
693 or else NT (N).Nkind = N_Protected_Body_Stub
694 or else NT (N).Nkind = N_Protected_Type_Declaration
695 or else NT (N).Nkind = N_Single_Protected_Declaration
696 or else NT (N).Nkind = N_Single_Task_Declaration
697 or else NT (N).Nkind = N_Subtype_Declaration
698 or else NT (N).Nkind = N_Task_Body
699 or else NT (N).Nkind = N_Task_Body_Stub
700 or else NT (N).Nkind = N_Task_Type_Declaration);
702 end Defining_Identifier;
704 function Defining_Unit_Name
705 (N : Node_Id) return Node_Id is
708 or else NT (N).Nkind = N_Function_Instantiation
709 or else NT (N).Nkind = N_Function_Specification
710 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
711 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
712 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
713 or else NT (N).Nkind = N_Package_Body
714 or else NT (N).Nkind = N_Package_Instantiation
715 or else NT (N).Nkind = N_Package_Renaming_Declaration
716 or else NT (N).Nkind = N_Package_Specification
717 or else NT (N).Nkind = N_Procedure_Instantiation
718 or else NT (N).Nkind = N_Procedure_Specification);
720 end Defining_Unit_Name;
722 function Delay_Alternative
723 (N : Node_Id) return Node_Id is
726 or else NT (N).Nkind = N_Timed_Entry_Call);
728 end Delay_Alternative;
730 function Delay_Statement
731 (N : Node_Id) return Node_Id is
734 or else NT (N).Nkind = N_Delay_Alternative);
738 function Delta_Expression
739 (N : Node_Id) return Node_Id is
742 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
743 or else NT (N).Nkind = N_Delta_Constraint
744 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
746 end Delta_Expression;
748 function Digits_Expression
749 (N : Node_Id) return Node_Id is
752 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
753 or else NT (N).Nkind = N_Digits_Constraint
754 or else NT (N).Nkind = N_Floating_Point_Definition);
756 end Digits_Expression;
758 function Discr_Check_Funcs_Built
759 (N : Node_Id) return Boolean is
762 or else NT (N).Nkind = N_Full_Type_Declaration);
764 end Discr_Check_Funcs_Built;
766 function Discrete_Choices
767 (N : Node_Id) return List_Id is
770 or else NT (N).Nkind = N_Case_Statement_Alternative
771 or else NT (N).Nkind = N_Variant);
773 end Discrete_Choices;
775 function Discrete_Range
776 (N : Node_Id) return Node_Id is
779 or else NT (N).Nkind = N_Slice);
783 function Discrete_Subtype_Definition
784 (N : Node_Id) return Node_Id is
787 or else NT (N).Nkind = N_Entry_Declaration
788 or else NT (N).Nkind = N_Entry_Index_Specification
789 or else NT (N).Nkind = N_Loop_Parameter_Specification);
791 end Discrete_Subtype_Definition;
793 function Discrete_Subtype_Definitions
794 (N : Node_Id) return List_Id is
797 or else NT (N).Nkind = N_Constrained_Array_Definition);
799 end Discrete_Subtype_Definitions;
801 function Discriminant_Specifications
802 (N : Node_Id) return List_Id is
805 or else NT (N).Nkind = N_Formal_Type_Declaration
806 or else NT (N).Nkind = N_Full_Type_Declaration
807 or else NT (N).Nkind = N_Incomplete_Type_Declaration
808 or else NT (N).Nkind = N_Private_Extension_Declaration
809 or else NT (N).Nkind = N_Private_Type_Declaration
810 or else NT (N).Nkind = N_Protected_Type_Declaration
811 or else NT (N).Nkind = N_Task_Type_Declaration);
813 end Discriminant_Specifications;
815 function Discriminant_Type
816 (N : Node_Id) return Node_Id is
819 or else NT (N).Nkind = N_Discriminant_Specification);
821 end Discriminant_Type;
823 function Do_Accessibility_Check
824 (N : Node_Id) return Boolean is
827 or else NT (N).Nkind = N_Parameter_Specification);
829 end Do_Accessibility_Check;
831 function Do_Discriminant_Check
832 (N : Node_Id) return Boolean is
835 or else NT (N).Nkind = N_Selected_Component);
837 end Do_Discriminant_Check;
839 function Do_Division_Check
840 (N : Node_Id) return Boolean is
843 or else NT (N).Nkind = N_Op_Divide
844 or else NT (N).Nkind = N_Op_Mod
845 or else NT (N).Nkind = N_Op_Rem);
847 end Do_Division_Check;
849 function Do_Length_Check
850 (N : Node_Id) return Boolean is
853 or else NT (N).Nkind = N_Assignment_Statement
854 or else NT (N).Nkind = N_Op_And
855 or else NT (N).Nkind = N_Op_Or
856 or else NT (N).Nkind = N_Op_Xor
857 or else NT (N).Nkind = N_Type_Conversion);
861 function Do_Overflow_Check
862 (N : Node_Id) return Boolean is
865 or else NT (N).Nkind in N_Op
866 or else NT (N).Nkind = N_Attribute_Reference
867 or else NT (N).Nkind = N_Type_Conversion);
869 end Do_Overflow_Check;
871 function Do_Range_Check
872 (N : Node_Id) return Boolean is
875 or else NT (N).Nkind in N_Subexpr);
879 function Do_Storage_Check
880 (N : Node_Id) return Boolean is
883 or else NT (N).Nkind = N_Allocator
884 or else NT (N).Nkind = N_Subprogram_Body);
886 end Do_Storage_Check;
888 function Do_Tag_Check
889 (N : Node_Id) return Boolean is
892 or else NT (N).Nkind = N_Assignment_Statement
893 or else NT (N).Nkind = N_Extended_Return_Statement
894 or else NT (N).Nkind = N_Function_Call
895 or else NT (N).Nkind = N_Procedure_Call_Statement
896 or else NT (N).Nkind = N_Return_Statement
897 or else NT (N).Nkind = N_Type_Conversion);
901 function Elaborate_All_Desirable
902 (N : Node_Id) return Boolean is
905 or else NT (N).Nkind = N_With_Clause);
907 end Elaborate_All_Desirable;
909 function Elaborate_All_Present
910 (N : Node_Id) return Boolean is
913 or else NT (N).Nkind = N_With_Clause);
915 end Elaborate_All_Present;
917 function Elaborate_Desirable
918 (N : Node_Id) return Boolean is
921 or else NT (N).Nkind = N_With_Clause);
923 end Elaborate_Desirable;
925 function Elaborate_Present
926 (N : Node_Id) return Boolean is
929 or else NT (N).Nkind = N_With_Clause);
931 end Elaborate_Present;
933 function Elaboration_Boolean
934 (N : Node_Id) return Node_Id is
937 or else NT (N).Nkind = N_Function_Specification
938 or else NT (N).Nkind = N_Procedure_Specification);
940 end Elaboration_Boolean;
942 function Else_Actions
943 (N : Node_Id) return List_Id is
946 or else NT (N).Nkind = N_Conditional_Expression);
950 function Else_Statements
951 (N : Node_Id) return List_Id is
954 or else NT (N).Nkind = N_Conditional_Entry_Call
955 or else NT (N).Nkind = N_If_Statement
956 or else NT (N).Nkind = N_Selective_Accept);
961 (N : Node_Id) return List_Id is
964 or else NT (N).Nkind = N_If_Statement);
968 function Enclosing_Variant
969 (N : Node_Id) return Node_Id is
972 or else NT (N).Nkind = N_Variant);
974 end Enclosing_Variant;
977 (N : Node_Id) return Node_Id is
980 or else NT (N).Nkind = N_Enumeration_Type_Definition
981 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
982 or else NT (N).Nkind = N_Loop_Statement
983 or else NT (N).Nkind = N_Package_Specification
984 or else NT (N).Nkind = N_Protected_Body
985 or else NT (N).Nkind = N_Protected_Definition
986 or else NT (N).Nkind = N_Record_Definition
987 or else NT (N).Nkind = N_Task_Definition);
992 (N : Node_Id) return Uint is
995 or else NT (N).Nkind = N_Case_Statement
996 or else NT (N).Nkind = N_If_Statement);
1001 (N : Node_Id) return Node_Id is
1003 pragma Assert (False
1004 or else NT (N).Nkind in N_Has_Entity
1005 or else NT (N).Nkind = N_Freeze_Entity
1006 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1010 function Entity_Or_Associated_Node
1011 (N : Node_Id) return Node_Id is
1013 pragma Assert (False
1014 or else NT (N).Nkind in N_Has_Entity
1015 or else NT (N).Nkind = N_Freeze_Entity);
1017 end Entity_Or_Associated_Node;
1019 function Entry_Body_Formal_Part
1020 (N : Node_Id) return Node_Id is
1022 pragma Assert (False
1023 or else NT (N).Nkind = N_Entry_Body);
1025 end Entry_Body_Formal_Part;
1027 function Entry_Call_Alternative
1028 (N : Node_Id) return Node_Id is
1030 pragma Assert (False
1031 or else NT (N).Nkind = N_Conditional_Entry_Call
1032 or else NT (N).Nkind = N_Timed_Entry_Call);
1034 end Entry_Call_Alternative;
1036 function Entry_Call_Statement
1037 (N : Node_Id) return Node_Id is
1039 pragma Assert (False
1040 or else NT (N).Nkind = N_Entry_Call_Alternative);
1042 end Entry_Call_Statement;
1044 function Entry_Direct_Name
1045 (N : Node_Id) return Node_Id is
1047 pragma Assert (False
1048 or else NT (N).Nkind = N_Accept_Statement);
1050 end Entry_Direct_Name;
1052 function Entry_Index
1053 (N : Node_Id) return Node_Id is
1055 pragma Assert (False
1056 or else NT (N).Nkind = N_Accept_Statement);
1060 function Entry_Index_Specification
1061 (N : Node_Id) return Node_Id is
1063 pragma Assert (False
1064 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1066 end Entry_Index_Specification;
1069 (N : Node_Id) return Node_Id is
1071 pragma Assert (False
1072 or else NT (N).Nkind in N_Has_Etype);
1076 function Exception_Choices
1077 (N : Node_Id) return List_Id is
1079 pragma Assert (False
1080 or else NT (N).Nkind = N_Exception_Handler);
1082 end Exception_Choices;
1084 function Exception_Handlers
1085 (N : Node_Id) return List_Id is
1087 pragma Assert (False
1088 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1090 end Exception_Handlers;
1092 function Exception_Junk
1093 (N : Node_Id) return Boolean is
1095 pragma Assert (False
1096 or else NT (N).Nkind = N_Block_Statement
1097 or else NT (N).Nkind = N_Goto_Statement
1098 or else NT (N).Nkind = N_Label
1099 or else NT (N).Nkind = N_Object_Declaration
1100 or else NT (N).Nkind = N_Subtype_Declaration);
1104 function Exception_Label
1105 (N : Node_Id) return Node_Id is
1107 pragma Assert (False
1108 or else NT (N).Nkind = N_Exception_Handler
1109 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1110 or else NT (N).Nkind = N_Push_Program_Error_Label
1111 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1113 end Exception_Label;
1115 function Expansion_Delayed
1116 (N : Node_Id) return Boolean is
1118 pragma Assert (False
1119 or else NT (N).Nkind = N_Aggregate
1120 or else NT (N).Nkind = N_Extension_Aggregate);
1122 end Expansion_Delayed;
1124 function Explicit_Actual_Parameter
1125 (N : Node_Id) return Node_Id is
1127 pragma Assert (False
1128 or else NT (N).Nkind = N_Parameter_Association);
1130 end Explicit_Actual_Parameter;
1132 function Explicit_Generic_Actual_Parameter
1133 (N : Node_Id) return Node_Id is
1135 pragma Assert (False
1136 or else NT (N).Nkind = N_Generic_Association);
1138 end Explicit_Generic_Actual_Parameter;
1141 (N : Node_Id) return Node_Id is
1143 pragma Assert (False
1144 or else NT (N).Nkind = N_Allocator
1145 or else NT (N).Nkind = N_Assignment_Statement
1146 or else NT (N).Nkind = N_At_Clause
1147 or else NT (N).Nkind = N_Attribute_Definition_Clause
1148 or else NT (N).Nkind = N_Case_Statement
1149 or else NT (N).Nkind = N_Code_Statement
1150 or else NT (N).Nkind = N_Component_Association
1151 or else NT (N).Nkind = N_Component_Declaration
1152 or else NT (N).Nkind = N_Delay_Relative_Statement
1153 or else NT (N).Nkind = N_Delay_Until_Statement
1154 or else NT (N).Nkind = N_Discriminant_Association
1155 or else NT (N).Nkind = N_Discriminant_Specification
1156 or else NT (N).Nkind = N_Exception_Declaration
1157 or else NT (N).Nkind = N_Free_Statement
1158 or else NT (N).Nkind = N_Mod_Clause
1159 or else NT (N).Nkind = N_Modular_Type_Definition
1160 or else NT (N).Nkind = N_Number_Declaration
1161 or else NT (N).Nkind = N_Object_Declaration
1162 or else NT (N).Nkind = N_Parameter_Specification
1163 or else NT (N).Nkind = N_Pragma_Argument_Association
1164 or else NT (N).Nkind = N_Qualified_Expression
1165 or else NT (N).Nkind = N_Raise_Statement
1166 or else NT (N).Nkind = N_Return_Statement
1167 or else NT (N).Nkind = N_Type_Conversion
1168 or else NT (N).Nkind = N_Unchecked_Expression
1169 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1173 function Expressions
1174 (N : Node_Id) return List_Id is
1176 pragma Assert (False
1177 or else NT (N).Nkind = N_Aggregate
1178 or else NT (N).Nkind = N_Attribute_Reference
1179 or else NT (N).Nkind = N_Conditional_Expression
1180 or else NT (N).Nkind = N_Extension_Aggregate
1181 or else NT (N).Nkind = N_Indexed_Component);
1186 (N : Node_Id) return Node_Id is
1188 pragma Assert (False
1189 or else NT (N).Nkind = N_Component_Clause);
1193 function First_Inlined_Subprogram
1194 (N : Node_Id) return Entity_Id is
1196 pragma Assert (False
1197 or else NT (N).Nkind = N_Compilation_Unit);
1199 end First_Inlined_Subprogram;
1202 (N : Node_Id) return Boolean is
1204 pragma Assert (False
1205 or else NT (N).Nkind = N_With_Clause);
1209 function First_Named_Actual
1210 (N : Node_Id) return Node_Id is
1212 pragma Assert (False
1213 or else NT (N).Nkind = N_Entry_Call_Statement
1214 or else NT (N).Nkind = N_Function_Call
1215 or else NT (N).Nkind = N_Procedure_Call_Statement);
1217 end First_Named_Actual;
1219 function First_Real_Statement
1220 (N : Node_Id) return Node_Id is
1222 pragma Assert (False
1223 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1225 end First_Real_Statement;
1227 function First_Subtype_Link
1228 (N : Node_Id) return Entity_Id is
1230 pragma Assert (False
1231 or else NT (N).Nkind = N_Freeze_Entity);
1233 end First_Subtype_Link;
1235 function Float_Truncate
1236 (N : Node_Id) return Boolean is
1238 pragma Assert (False
1239 or else NT (N).Nkind = N_Type_Conversion);
1243 function Formal_Type_Definition
1244 (N : Node_Id) return Node_Id is
1246 pragma Assert (False
1247 or else NT (N).Nkind = N_Formal_Type_Declaration);
1249 end Formal_Type_Definition;
1251 function Forwards_OK
1252 (N : Node_Id) return Boolean is
1254 pragma Assert (False
1255 or else NT (N).Nkind = N_Assignment_Statement);
1259 function From_At_Mod
1260 (N : Node_Id) return Boolean is
1262 pragma Assert (False
1263 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1267 function From_Default
1268 (N : Node_Id) return Boolean is
1270 pragma Assert (False
1271 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1275 function Generic_Associations
1276 (N : Node_Id) return List_Id is
1278 pragma Assert (False
1279 or else NT (N).Nkind = N_Formal_Package_Declaration
1280 or else NT (N).Nkind = N_Function_Instantiation
1281 or else NT (N).Nkind = N_Package_Instantiation
1282 or else NT (N).Nkind = N_Procedure_Instantiation);
1284 end Generic_Associations;
1286 function Generic_Formal_Declarations
1287 (N : Node_Id) return List_Id is
1289 pragma Assert (False
1290 or else NT (N).Nkind = N_Generic_Package_Declaration
1291 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1293 end Generic_Formal_Declarations;
1295 function Generic_Parent
1296 (N : Node_Id) return Node_Id is
1298 pragma Assert (False
1299 or else NT (N).Nkind = N_Function_Specification
1300 or else NT (N).Nkind = N_Package_Specification
1301 or else NT (N).Nkind = N_Procedure_Specification);
1305 function Generic_Parent_Type
1306 (N : Node_Id) return Node_Id is
1308 pragma Assert (False
1309 or else NT (N).Nkind = N_Subtype_Declaration);
1311 end Generic_Parent_Type;
1313 function Handled_Statement_Sequence
1314 (N : Node_Id) return Node_Id is
1316 pragma Assert (False
1317 or else NT (N).Nkind = N_Accept_Statement
1318 or else NT (N).Nkind = N_Block_Statement
1319 or else NT (N).Nkind = N_Entry_Body
1320 or else NT (N).Nkind = N_Extended_Return_Statement
1321 or else NT (N).Nkind = N_Package_Body
1322 or else NT (N).Nkind = N_Subprogram_Body
1323 or else NT (N).Nkind = N_Task_Body);
1325 end Handled_Statement_Sequence;
1327 function Handler_List_Entry
1328 (N : Node_Id) return Node_Id is
1330 pragma Assert (False
1331 or else NT (N).Nkind = N_Object_Declaration);
1333 end Handler_List_Entry;
1335 function Has_Created_Identifier
1336 (N : Node_Id) return Boolean is
1338 pragma Assert (False
1339 or else NT (N).Nkind = N_Block_Statement
1340 or else NT (N).Nkind = N_Loop_Statement);
1342 end Has_Created_Identifier;
1344 function Has_Dynamic_Length_Check
1345 (N : Node_Id) return Boolean is
1348 end Has_Dynamic_Length_Check;
1350 function Has_Dynamic_Range_Check
1351 (N : Node_Id) return Boolean is
1354 end Has_Dynamic_Range_Check;
1356 function Has_Init_Expression
1357 (N : Node_Id) return Boolean is
1359 pragma Assert (False
1360 or else NT (N).Nkind = N_Object_Declaration);
1362 end Has_Init_Expression;
1364 function Has_Local_Raise
1365 (N : Node_Id) return Boolean is
1367 pragma Assert (False
1368 or else NT (N).Nkind = N_Exception_Handler);
1370 end Has_Local_Raise;
1372 function Has_No_Elaboration_Code
1373 (N : Node_Id) return Boolean is
1375 pragma Assert (False
1376 or else NT (N).Nkind = N_Compilation_Unit);
1378 end Has_No_Elaboration_Code;
1380 function Has_Priority_Pragma
1381 (N : Node_Id) return Boolean is
1383 pragma Assert (False
1384 or else NT (N).Nkind = N_Protected_Definition
1385 or else NT (N).Nkind = N_Subprogram_Body
1386 or else NT (N).Nkind = N_Task_Definition);
1388 end Has_Priority_Pragma;
1390 function Has_Private_View
1391 (N : Node_Id) return Boolean is
1393 pragma Assert (False
1394 or else NT (N).Nkind in N_Op
1395 or else NT (N).Nkind = N_Character_Literal
1396 or else NT (N).Nkind = N_Expanded_Name
1397 or else NT (N).Nkind = N_Identifier
1398 or else NT (N).Nkind = N_Operator_Symbol);
1400 end Has_Private_View;
1402 function Has_Self_Reference
1403 (N : Node_Id) return Boolean is
1405 pragma Assert (False
1406 or else NT (N).Nkind = N_Aggregate
1407 or else NT (N).Nkind = N_Extension_Aggregate);
1409 end Has_Self_Reference;
1411 function Has_Storage_Size_Pragma
1412 (N : Node_Id) return Boolean is
1414 pragma Assert (False
1415 or else NT (N).Nkind = N_Task_Definition);
1417 end Has_Storage_Size_Pragma;
1419 function Has_Task_Info_Pragma
1420 (N : Node_Id) return Boolean is
1422 pragma Assert (False
1423 or else NT (N).Nkind = N_Task_Definition);
1425 end Has_Task_Info_Pragma;
1427 function Has_Task_Name_Pragma
1428 (N : Node_Id) return Boolean is
1430 pragma Assert (False
1431 or else NT (N).Nkind = N_Task_Definition);
1433 end Has_Task_Name_Pragma;
1435 function Has_Wide_Character
1436 (N : Node_Id) return Boolean is
1438 pragma Assert (False
1439 or else NT (N).Nkind = N_String_Literal);
1441 end Has_Wide_Character;
1443 function Hidden_By_Use_Clause
1444 (N : Node_Id) return Elist_Id is
1446 pragma Assert (False
1447 or else NT (N).Nkind = N_Use_Package_Clause
1448 or else NT (N).Nkind = N_Use_Type_Clause);
1450 end Hidden_By_Use_Clause;
1453 (N : Node_Id) return Node_Id is
1455 pragma Assert (False
1456 or else NT (N).Nkind = N_Range
1457 or else NT (N).Nkind = N_Real_Range_Specification
1458 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1463 (N : Node_Id) return Node_Id is
1465 pragma Assert (False
1466 or else NT (N).Nkind = N_At_Clause
1467 or else NT (N).Nkind = N_Block_Statement
1468 or else NT (N).Nkind = N_Designator
1469 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1470 or else NT (N).Nkind = N_Label
1471 or else NT (N).Nkind = N_Loop_Statement
1472 or else NT (N).Nkind = N_Record_Representation_Clause
1473 or else NT (N).Nkind = N_Subprogram_Info);
1477 function Implicit_With
1478 (N : Node_Id) return Boolean is
1480 pragma Assert (False
1481 or else NT (N).Nkind = N_With_Clause);
1485 function Interface_List
1486 (N : Node_Id) return List_Id is
1488 pragma Assert (False
1489 or else NT (N).Nkind = N_Derived_Type_Definition
1490 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1491 or else NT (N).Nkind = N_Private_Extension_Declaration
1492 or else NT (N).Nkind = N_Protected_Type_Declaration
1493 or else NT (N).Nkind = N_Record_Definition
1494 or else NT (N).Nkind = N_Single_Protected_Declaration
1495 or else NT (N).Nkind = N_Single_Task_Declaration
1496 or else NT (N).Nkind = N_Task_Type_Declaration);
1500 function Interface_Present
1501 (N : Node_Id) return Boolean is
1503 pragma Assert (False
1504 or else NT (N).Nkind = N_Derived_Type_Definition
1505 or else NT (N).Nkind = N_Record_Definition);
1507 end Interface_Present;
1510 (N : Node_Id) return Boolean is
1512 pragma Assert (False
1513 or else NT (N).Nkind = N_Formal_Object_Declaration
1514 or else NT (N).Nkind = N_Parameter_Specification);
1518 function Includes_Infinities
1519 (N : Node_Id) return Boolean is
1521 pragma Assert (False
1522 or else NT (N).Nkind = N_Range);
1524 end Includes_Infinities;
1526 function Instance_Spec
1527 (N : Node_Id) return Node_Id is
1529 pragma Assert (False
1530 or else NT (N).Nkind = N_Formal_Package_Declaration
1531 or else NT (N).Nkind = N_Function_Instantiation
1532 or else NT (N).Nkind = N_Package_Instantiation
1533 or else NT (N).Nkind = N_Procedure_Instantiation);
1538 (N : Node_Id) return Uint is
1540 pragma Assert (False
1541 or else NT (N).Nkind = N_Integer_Literal);
1545 function Is_Asynchronous_Call_Block
1546 (N : Node_Id) return Boolean is
1548 pragma Assert (False
1549 or else NT (N).Nkind = N_Block_Statement);
1551 end Is_Asynchronous_Call_Block;
1553 function Is_Coextension
1554 (N : Node_Id) return Boolean is
1556 pragma Assert (False
1557 or else NT (N).Nkind = N_Allocator);
1561 function Is_Component_Left_Opnd
1562 (N : Node_Id) return Boolean is
1564 pragma Assert (False
1565 or else NT (N).Nkind = N_Op_Concat);
1567 end Is_Component_Left_Opnd;
1569 function Is_Component_Right_Opnd
1570 (N : Node_Id) return Boolean is
1572 pragma Assert (False
1573 or else NT (N).Nkind = N_Op_Concat);
1575 end Is_Component_Right_Opnd;
1577 function Is_Controlling_Actual
1578 (N : Node_Id) return Boolean is
1580 pragma Assert (False
1581 or else NT (N).Nkind in N_Subexpr);
1583 end Is_Controlling_Actual;
1585 function Is_Entry_Barrier_Function
1586 (N : Node_Id) return Boolean is
1588 pragma Assert (False
1589 or else NT (N).Nkind = N_Subprogram_Body);
1591 end Is_Entry_Barrier_Function;
1593 function Is_In_Discriminant_Check
1594 (N : Node_Id) return Boolean is
1596 pragma Assert (False
1597 or else NT (N).Nkind = N_Selected_Component);
1599 end Is_In_Discriminant_Check;
1601 function Is_Machine_Number
1602 (N : Node_Id) return Boolean is
1604 pragma Assert (False
1605 or else NT (N).Nkind = N_Real_Literal);
1607 end Is_Machine_Number;
1609 function Is_Null_Loop
1610 (N : Node_Id) return Boolean is
1612 pragma Assert (False
1613 or else NT (N).Nkind = N_Loop_Statement);
1617 function Is_Overloaded
1618 (N : Node_Id) return Boolean is
1620 pragma Assert (False
1621 or else NT (N).Nkind in N_Subexpr);
1625 function Is_Power_Of_2_For_Shift
1626 (N : Node_Id) return Boolean is
1628 pragma Assert (False
1629 or else NT (N).Nkind = N_Op_Expon);
1631 end Is_Power_Of_2_For_Shift;
1633 function Is_Protected_Subprogram_Body
1634 (N : Node_Id) return Boolean is
1636 pragma Assert (False
1637 or else NT (N).Nkind = N_Subprogram_Body);
1639 end Is_Protected_Subprogram_Body;
1641 function Is_Static_Coextension
1642 (N : Node_Id) return Boolean is
1644 pragma Assert (False
1645 or else NT (N).Nkind = N_Allocator);
1647 end Is_Static_Coextension;
1649 function Is_Static_Expression
1650 (N : Node_Id) return Boolean is
1652 pragma Assert (False
1653 or else NT (N).Nkind in N_Subexpr);
1655 end Is_Static_Expression;
1657 function Is_Subprogram_Descriptor
1658 (N : Node_Id) return Boolean is
1660 pragma Assert (False
1661 or else NT (N).Nkind = N_Object_Declaration);
1663 end Is_Subprogram_Descriptor;
1665 function Is_Task_Allocation_Block
1666 (N : Node_Id) return Boolean is
1668 pragma Assert (False
1669 or else NT (N).Nkind = N_Block_Statement);
1671 end Is_Task_Allocation_Block;
1673 function Is_Task_Master
1674 (N : Node_Id) return Boolean is
1676 pragma Assert (False
1677 or else NT (N).Nkind = N_Block_Statement
1678 or else NT (N).Nkind = N_Subprogram_Body
1679 or else NT (N).Nkind = N_Task_Body);
1683 function Iteration_Scheme
1684 (N : Node_Id) return Node_Id is
1686 pragma Assert (False
1687 or else NT (N).Nkind = N_Loop_Statement);
1689 end Iteration_Scheme;
1692 (N : Node_Id) return Node_Id is
1694 pragma Assert (False
1695 or else NT (N).Nkind = N_Itype_Reference);
1699 function Kill_Range_Check
1700 (N : Node_Id) return Boolean is
1702 pragma Assert (False
1703 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1705 end Kill_Range_Check;
1707 function Label_Construct
1708 (N : Node_Id) return Node_Id is
1710 pragma Assert (False
1711 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1713 end Label_Construct;
1716 (N : Node_Id) return Node_Id is
1718 pragma Assert (False
1719 or else NT (N).Nkind = N_Component_Clause);
1724 (N : Node_Id) return Boolean is
1726 pragma Assert (False
1727 or else NT (N).Nkind = N_With_Clause);
1732 (N : Node_Id) return Node_Id is
1734 pragma Assert (False
1735 or else NT (N).Nkind = N_And_Then
1736 or else NT (N).Nkind = N_In
1737 or else NT (N).Nkind = N_Not_In
1738 or else NT (N).Nkind = N_Or_Else
1739 or else NT (N).Nkind in N_Binary_Op);
1743 function Library_Unit
1744 (N : Node_Id) return Node_Id is
1746 pragma Assert (False
1747 or else NT (N).Nkind = N_Compilation_Unit
1748 or else NT (N).Nkind = N_Package_Body_Stub
1749 or else NT (N).Nkind = N_Protected_Body_Stub
1750 or else NT (N).Nkind = N_Subprogram_Body_Stub
1751 or else NT (N).Nkind = N_Task_Body_Stub
1752 or else NT (N).Nkind = N_With_Clause);
1756 function Limited_View_Installed
1757 (N : Node_Id) return Boolean is
1759 pragma Assert (False
1760 or else NT (N).Nkind = N_Package_Specification
1761 or else NT (N).Nkind = N_With_Clause);
1763 end Limited_View_Installed;
1765 function Limited_Present
1766 (N : Node_Id) return Boolean is
1768 pragma Assert (False
1769 or else NT (N).Nkind = N_Derived_Type_Definition
1770 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1771 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1772 or else NT (N).Nkind = N_Private_Extension_Declaration
1773 or else NT (N).Nkind = N_Private_Type_Declaration
1774 or else NT (N).Nkind = N_Record_Definition
1775 or else NT (N).Nkind = N_With_Clause);
1777 end Limited_Present;
1780 (N : Node_Id) return List_Id is
1782 pragma Assert (False
1783 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1787 function Local_Raise_Not_OK
1788 (N : Node_Id) return Boolean is
1790 pragma Assert (False
1791 or else NT (N).Nkind = N_Exception_Handler);
1793 end Local_Raise_Not_OK;
1795 function Local_Raise_Statements
1796 (N : Node_Id) return Elist_Id is
1798 pragma Assert (False
1799 or else NT (N).Nkind = N_Exception_Handler);
1801 end Local_Raise_Statements;
1803 function Loop_Actions
1804 (N : Node_Id) return List_Id is
1806 pragma Assert (False
1807 or else NT (N).Nkind = N_Component_Association);
1811 function Loop_Parameter_Specification
1812 (N : Node_Id) return Node_Id is
1814 pragma Assert (False
1815 or else NT (N).Nkind = N_Iteration_Scheme);
1817 end Loop_Parameter_Specification;
1820 (N : Node_Id) return Node_Id is
1822 pragma Assert (False
1823 or else NT (N).Nkind = N_Range
1824 or else NT (N).Nkind = N_Real_Range_Specification
1825 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1830 (N : Node_Id) return Node_Id is
1832 pragma Assert (False
1833 or else NT (N).Nkind = N_Record_Representation_Clause);
1838 (N : Node_Id) return Boolean is
1840 pragma Assert (False
1841 or else NT (N).Nkind = N_Component_Declaration
1842 or else NT (N).Nkind = N_Discriminant_Specification
1843 or else NT (N).Nkind = N_Exception_Declaration
1844 or else NT (N).Nkind = N_Formal_Object_Declaration
1845 or else NT (N).Nkind = N_Number_Declaration
1846 or else NT (N).Nkind = N_Object_Declaration
1847 or else NT (N).Nkind = N_Parameter_Specification);
1851 function Must_Be_Byte_Aligned
1852 (N : Node_Id) return Boolean is
1854 pragma Assert (False
1855 or else NT (N).Nkind = N_Attribute_Reference);
1857 end Must_Be_Byte_Aligned;
1859 function Must_Not_Freeze
1860 (N : Node_Id) return Boolean is
1862 pragma Assert (False
1863 or else NT (N).Nkind = N_Subtype_Indication
1864 or else NT (N).Nkind in N_Subexpr);
1866 end Must_Not_Freeze;
1868 function Must_Not_Override
1869 (N : Node_Id) return Boolean is
1871 pragma Assert (False
1872 or else NT (N).Nkind = N_Entry_Declaration
1873 or else NT (N).Nkind = N_Function_Instantiation
1874 or else NT (N).Nkind = N_Function_Specification
1875 or else NT (N).Nkind = N_Procedure_Instantiation
1876 or else NT (N).Nkind = N_Procedure_Specification);
1878 end Must_Not_Override;
1880 function Must_Override
1881 (N : Node_Id) return Boolean is
1883 pragma Assert (False
1884 or else NT (N).Nkind = N_Entry_Declaration
1885 or else NT (N).Nkind = N_Function_Instantiation
1886 or else NT (N).Nkind = N_Function_Specification
1887 or else NT (N).Nkind = N_Procedure_Instantiation
1888 or else NT (N).Nkind = N_Procedure_Specification);
1893 (N : Node_Id) return Node_Id is
1895 pragma Assert (False
1896 or else NT (N).Nkind = N_Assignment_Statement
1897 or else NT (N).Nkind = N_Attribute_Definition_Clause
1898 or else NT (N).Nkind = N_Defining_Program_Unit_Name
1899 or else NT (N).Nkind = N_Designator
1900 or else NT (N).Nkind = N_Entry_Call_Statement
1901 or else NT (N).Nkind = N_Exception_Renaming_Declaration
1902 or else NT (N).Nkind = N_Exit_Statement
1903 or else NT (N).Nkind = N_Formal_Package_Declaration
1904 or else NT (N).Nkind = N_Function_Call
1905 or else NT (N).Nkind = N_Function_Instantiation
1906 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
1907 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
1908 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
1909 or else NT (N).Nkind = N_Goto_Statement
1910 or else NT (N).Nkind = N_Object_Renaming_Declaration
1911 or else NT (N).Nkind = N_Package_Instantiation
1912 or else NT (N).Nkind = N_Package_Renaming_Declaration
1913 or else NT (N).Nkind = N_Procedure_Call_Statement
1914 or else NT (N).Nkind = N_Procedure_Instantiation
1915 or else NT (N).Nkind = N_Raise_Statement
1916 or else NT (N).Nkind = N_Requeue_Statement
1917 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
1918 or else NT (N).Nkind = N_Subunit
1919 or else NT (N).Nkind = N_Variant_Part
1920 or else NT (N).Nkind = N_With_Clause);
1925 (N : Node_Id) return List_Id is
1927 pragma Assert (False
1928 or else NT (N).Nkind = N_Abort_Statement
1929 or else NT (N).Nkind = N_Use_Package_Clause);
1933 function Next_Entity
1934 (N : Node_Id) return Node_Id is
1936 pragma Assert (False
1937 or else NT (N).Nkind = N_Defining_Character_Literal
1938 or else NT (N).Nkind = N_Defining_Identifier
1939 or else NT (N).Nkind = N_Defining_Operator_Symbol);
1943 function Next_Named_Actual
1944 (N : Node_Id) return Node_Id is
1946 pragma Assert (False
1947 or else NT (N).Nkind = N_Parameter_Association);
1949 end Next_Named_Actual;
1951 function Next_Rep_Item
1952 (N : Node_Id) return Node_Id is
1954 pragma Assert (False
1955 or else NT (N).Nkind = N_Attribute_Definition_Clause
1956 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1957 or else NT (N).Nkind = N_Pragma
1958 or else NT (N).Nkind = N_Record_Representation_Clause);
1962 function Next_Use_Clause
1963 (N : Node_Id) return Node_Id is
1965 pragma Assert (False
1966 or else NT (N).Nkind = N_Use_Package_Clause
1967 or else NT (N).Nkind = N_Use_Type_Clause);
1969 end Next_Use_Clause;
1971 function No_Ctrl_Actions
1972 (N : Node_Id) return Boolean is
1974 pragma Assert (False
1975 or else NT (N).Nkind = N_Assignment_Statement);
1977 end No_Ctrl_Actions;
1979 function No_Elaboration_Check
1980 (N : Node_Id) return Boolean is
1982 pragma Assert (False
1983 or else NT (N).Nkind = N_Function_Call
1984 or else NT (N).Nkind = N_Procedure_Call_Statement);
1986 end No_Elaboration_Check;
1988 function No_Entities_Ref_In_Spec
1989 (N : Node_Id) return Boolean is
1991 pragma Assert (False
1992 or else NT (N).Nkind = N_With_Clause);
1994 end No_Entities_Ref_In_Spec;
1996 function No_Initialization
1997 (N : Node_Id) return Boolean is
1999 pragma Assert (False
2000 or else NT (N).Nkind = N_Allocator
2001 or else NT (N).Nkind = N_Object_Declaration);
2003 end No_Initialization;
2005 function No_Truncation
2006 (N : Node_Id) return Boolean is
2008 pragma Assert (False
2009 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2013 function Null_Present
2014 (N : Node_Id) return Boolean is
2016 pragma Assert (False
2017 or else NT (N).Nkind = N_Component_List
2018 or else NT (N).Nkind = N_Procedure_Specification
2019 or else NT (N).Nkind = N_Record_Definition);
2023 function Null_Exclusion_Present
2024 (N : Node_Id) return Boolean is
2026 pragma Assert (False
2027 or else NT (N).Nkind = N_Access_Definition
2028 or else NT (N).Nkind = N_Access_Function_Definition
2029 or else NT (N).Nkind = N_Access_Procedure_Definition
2030 or else NT (N).Nkind = N_Access_To_Object_Definition
2031 or else NT (N).Nkind = N_Allocator
2032 or else NT (N).Nkind = N_Component_Definition
2033 or else NT (N).Nkind = N_Derived_Type_Definition
2034 or else NT (N).Nkind = N_Discriminant_Specification
2035 or else NT (N).Nkind = N_Formal_Object_Declaration
2036 or else NT (N).Nkind = N_Function_Specification
2037 or else NT (N).Nkind = N_Object_Declaration
2038 or else NT (N).Nkind = N_Object_Renaming_Declaration
2039 or else NT (N).Nkind = N_Parameter_Specification
2040 or else NT (N).Nkind = N_Subtype_Declaration);
2042 end Null_Exclusion_Present;
2044 function Null_Record_Present
2045 (N : Node_Id) return Boolean is
2047 pragma Assert (False
2048 or else NT (N).Nkind = N_Aggregate
2049 or else NT (N).Nkind = N_Extension_Aggregate);
2051 end Null_Record_Present;
2053 function Object_Definition
2054 (N : Node_Id) return Node_Id is
2056 pragma Assert (False
2057 or else NT (N).Nkind = N_Object_Declaration);
2059 end Object_Definition;
2061 function Original_Discriminant
2062 (N : Node_Id) return Node_Id is
2064 pragma Assert (False
2065 or else NT (N).Nkind = N_Identifier);
2067 end Original_Discriminant;
2069 function Original_Entity
2070 (N : Node_Id) return Entity_Id is
2072 pragma Assert (False
2073 or else NT (N).Nkind = N_Integer_Literal
2074 or else NT (N).Nkind = N_Real_Literal);
2076 end Original_Entity;
2078 function Others_Discrete_Choices
2079 (N : Node_Id) return List_Id is
2081 pragma Assert (False
2082 or else NT (N).Nkind = N_Others_Choice);
2084 end Others_Discrete_Choices;
2086 function Out_Present
2087 (N : Node_Id) return Boolean is
2089 pragma Assert (False
2090 or else NT (N).Nkind = N_Formal_Object_Declaration
2091 or else NT (N).Nkind = N_Parameter_Specification);
2095 function Parameter_Associations
2096 (N : Node_Id) return List_Id is
2098 pragma Assert (False
2099 or else NT (N).Nkind = N_Entry_Call_Statement
2100 or else NT (N).Nkind = N_Function_Call
2101 or else NT (N).Nkind = N_Procedure_Call_Statement);
2103 end Parameter_Associations;
2105 function Parameter_List_Truncated
2106 (N : Node_Id) return Boolean is
2108 pragma Assert (False
2109 or else NT (N).Nkind = N_Function_Call
2110 or else NT (N).Nkind = N_Procedure_Call_Statement);
2112 end Parameter_List_Truncated;
2114 function Parameter_Specifications
2115 (N : Node_Id) return List_Id is
2117 pragma Assert (False
2118 or else NT (N).Nkind = N_Accept_Statement
2119 or else NT (N).Nkind = N_Access_Function_Definition
2120 or else NT (N).Nkind = N_Access_Procedure_Definition
2121 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2122 or else NT (N).Nkind = N_Entry_Declaration
2123 or else NT (N).Nkind = N_Function_Specification
2124 or else NT (N).Nkind = N_Procedure_Specification);
2126 end Parameter_Specifications;
2128 function Parameter_Type
2129 (N : Node_Id) return Node_Id is
2131 pragma Assert (False
2132 or else NT (N).Nkind = N_Parameter_Specification);
2136 function Parent_Spec
2137 (N : Node_Id) return Node_Id is
2139 pragma Assert (False
2140 or else NT (N).Nkind = N_Function_Instantiation
2141 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2142 or else NT (N).Nkind = N_Generic_Package_Declaration
2143 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2144 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2145 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2146 or else NT (N).Nkind = N_Package_Declaration
2147 or else NT (N).Nkind = N_Package_Instantiation
2148 or else NT (N).Nkind = N_Package_Renaming_Declaration
2149 or else NT (N).Nkind = N_Procedure_Instantiation
2150 or else NT (N).Nkind = N_Subprogram_Declaration
2151 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2156 (N : Node_Id) return Node_Id is
2158 pragma Assert (False
2159 or else NT (N).Nkind = N_Component_Clause);
2163 function Pragma_Argument_Associations
2164 (N : Node_Id) return List_Id is
2166 pragma Assert (False
2167 or else NT (N).Nkind = N_Pragma);
2169 end Pragma_Argument_Associations;
2171 function Pragmas_After
2172 (N : Node_Id) return List_Id is
2174 pragma Assert (False
2175 or else NT (N).Nkind = N_Compilation_Unit_Aux
2176 or else NT (N).Nkind = N_Terminate_Alternative);
2180 function Pragmas_Before
2181 (N : Node_Id) return List_Id is
2183 pragma Assert (False
2184 or else NT (N).Nkind = N_Accept_Alternative
2185 or else NT (N).Nkind = N_Delay_Alternative
2186 or else NT (N).Nkind = N_Entry_Call_Alternative
2187 or else NT (N).Nkind = N_Mod_Clause
2188 or else NT (N).Nkind = N_Terminate_Alternative
2189 or else NT (N).Nkind = N_Triggering_Alternative);
2194 (N : Node_Id) return Node_Id is
2196 pragma Assert (False
2197 or else NT (N).Nkind = N_Attribute_Reference
2198 or else NT (N).Nkind = N_Expanded_Name
2199 or else NT (N).Nkind = N_Explicit_Dereference
2200 or else NT (N).Nkind = N_Indexed_Component
2201 or else NT (N).Nkind = N_Reference
2202 or else NT (N).Nkind = N_Selected_Component
2203 or else NT (N).Nkind = N_Slice);
2207 function Present_Expr
2208 (N : Node_Id) return Uint is
2210 pragma Assert (False
2211 or else NT (N).Nkind = N_Variant);
2216 (N : Node_Id) return Boolean is
2218 pragma Assert (False
2219 or else NT (N).Nkind = N_Component_Declaration
2220 or else NT (N).Nkind = N_Discriminant_Specification
2221 or else NT (N).Nkind = N_Exception_Declaration
2222 or else NT (N).Nkind = N_Formal_Object_Declaration
2223 or else NT (N).Nkind = N_Number_Declaration
2224 or else NT (N).Nkind = N_Object_Declaration
2225 or else NT (N).Nkind = N_Parameter_Specification);
2229 function Print_In_Hex
2230 (N : Node_Id) return Boolean is
2232 pragma Assert (False
2233 or else NT (N).Nkind = N_Integer_Literal);
2237 function Private_Declarations
2238 (N : Node_Id) return List_Id is
2240 pragma Assert (False
2241 or else NT (N).Nkind = N_Package_Specification
2242 or else NT (N).Nkind = N_Protected_Definition
2243 or else NT (N).Nkind = N_Task_Definition);
2245 end Private_Declarations;
2247 function Private_Present
2248 (N : Node_Id) return Boolean is
2250 pragma Assert (False
2251 or else NT (N).Nkind = N_Compilation_Unit
2252 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2253 or else NT (N).Nkind = N_With_Clause);
2255 end Private_Present;
2257 function Procedure_To_Call
2258 (N : Node_Id) return Node_Id is
2260 pragma Assert (False
2261 or else NT (N).Nkind = N_Allocator
2262 or else NT (N).Nkind = N_Extended_Return_Statement
2263 or else NT (N).Nkind = N_Free_Statement
2264 or else NT (N).Nkind = N_Return_Statement);
2266 end Procedure_To_Call;
2268 function Proper_Body
2269 (N : Node_Id) return Node_Id is
2271 pragma Assert (False
2272 or else NT (N).Nkind = N_Subunit);
2276 function Protected_Definition
2277 (N : Node_Id) return Node_Id is
2279 pragma Assert (False
2280 or else NT (N).Nkind = N_Protected_Type_Declaration
2281 or else NT (N).Nkind = N_Single_Protected_Declaration);
2283 end Protected_Definition;
2285 function Protected_Present
2286 (N : Node_Id) return Boolean is
2288 pragma Assert (False
2289 or else NT (N).Nkind = N_Access_Function_Definition
2290 or else NT (N).Nkind = N_Access_Procedure_Definition
2291 or else NT (N).Nkind = N_Derived_Type_Definition
2292 or else NT (N).Nkind = N_Record_Definition);
2294 end Protected_Present;
2296 function Raises_Constraint_Error
2297 (N : Node_Id) return Boolean is
2299 pragma Assert (False
2300 or else NT (N).Nkind in N_Subexpr);
2302 end Raises_Constraint_Error;
2304 function Range_Constraint
2305 (N : Node_Id) return Node_Id is
2307 pragma Assert (False
2308 or else NT (N).Nkind = N_Delta_Constraint
2309 or else NT (N).Nkind = N_Digits_Constraint);
2311 end Range_Constraint;
2313 function Range_Expression
2314 (N : Node_Id) return Node_Id is
2316 pragma Assert (False
2317 or else NT (N).Nkind = N_Range_Constraint);
2319 end Range_Expression;
2321 function Real_Range_Specification
2322 (N : Node_Id) return Node_Id is
2324 pragma Assert (False
2325 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2326 or else NT (N).Nkind = N_Floating_Point_Definition
2327 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2329 end Real_Range_Specification;
2332 (N : Node_Id) return Ureal is
2334 pragma Assert (False
2335 or else NT (N).Nkind = N_Real_Literal);
2340 (N : Node_Id) return Uint is
2342 pragma Assert (False
2343 or else NT (N).Nkind = N_Raise_Constraint_Error
2344 or else NT (N).Nkind = N_Raise_Program_Error
2345 or else NT (N).Nkind = N_Raise_Storage_Error);
2349 function Record_Extension_Part
2350 (N : Node_Id) return Node_Id is
2352 pragma Assert (False
2353 or else NT (N).Nkind = N_Derived_Type_Definition);
2355 end Record_Extension_Part;
2357 function Redundant_Use
2358 (N : Node_Id) return Boolean is
2360 pragma Assert (False
2361 or else NT (N).Nkind = N_Attribute_Reference
2362 or else NT (N).Nkind = N_Expanded_Name
2363 or else NT (N).Nkind = N_Identifier);
2367 function Renaming_Exception
2368 (N : Node_Id) return Node_Id is
2370 pragma Assert (False
2371 or else NT (N).Nkind = N_Exception_Declaration);
2373 end Renaming_Exception;
2375 function Result_Definition
2376 (N : Node_Id) return Node_Id is
2378 pragma Assert (False
2379 or else NT (N).Nkind = N_Access_Function_Definition
2380 or else NT (N).Nkind = N_Function_Specification);
2382 end Result_Definition;
2384 function Return_Object_Declarations
2385 (N : Node_Id) return List_Id is
2387 pragma Assert (False
2388 or else NT (N).Nkind = N_Extended_Return_Statement);
2390 end Return_Object_Declarations;
2392 function Return_Statement_Entity
2393 (N : Node_Id) return Node_Id is
2395 pragma Assert (False
2396 or else NT (N).Nkind = N_Extended_Return_Statement
2397 or else NT (N).Nkind = N_Return_Statement);
2399 end Return_Statement_Entity;
2401 function Reverse_Present
2402 (N : Node_Id) return Boolean is
2404 pragma Assert (False
2405 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2407 end Reverse_Present;
2410 (N : Node_Id) return Node_Id is
2412 pragma Assert (False
2413 or else NT (N).Nkind in N_Op
2414 or else NT (N).Nkind = N_And_Then
2415 or else NT (N).Nkind = N_In
2416 or else NT (N).Nkind = N_Not_In
2417 or else NT (N).Nkind = N_Or_Else);
2421 function Rounded_Result
2422 (N : Node_Id) return Boolean is
2424 pragma Assert (False
2425 or else NT (N).Nkind = N_Op_Divide
2426 or else NT (N).Nkind = N_Op_Multiply
2427 or else NT (N).Nkind = N_Type_Conversion);
2432 (N : Node_Id) return Node_Id is
2434 pragma Assert (False
2435 or else NT (N).Nkind = N_Defining_Character_Literal
2436 or else NT (N).Nkind = N_Defining_Identifier
2437 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2441 function Select_Alternatives
2442 (N : Node_Id) return List_Id is
2444 pragma Assert (False
2445 or else NT (N).Nkind = N_Selective_Accept);
2447 end Select_Alternatives;
2449 function Selector_Name
2450 (N : Node_Id) return Node_Id is
2452 pragma Assert (False
2453 or else NT (N).Nkind = N_Expanded_Name
2454 or else NT (N).Nkind = N_Generic_Association
2455 or else NT (N).Nkind = N_Parameter_Association
2456 or else NT (N).Nkind = N_Selected_Component);
2460 function Selector_Names
2461 (N : Node_Id) return List_Id is
2463 pragma Assert (False
2464 or else NT (N).Nkind = N_Discriminant_Association);
2468 function Shift_Count_OK
2469 (N : Node_Id) return Boolean is
2471 pragma Assert (False
2472 or else NT (N).Nkind = N_Op_Rotate_Left
2473 or else NT (N).Nkind = N_Op_Rotate_Right
2474 or else NT (N).Nkind = N_Op_Shift_Left
2475 or else NT (N).Nkind = N_Op_Shift_Right
2476 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2480 function Source_Type
2481 (N : Node_Id) return Entity_Id is
2483 pragma Assert (False
2484 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2488 function Specification
2489 (N : Node_Id) return Node_Id is
2491 pragma Assert (False
2492 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2493 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2494 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2495 or else NT (N).Nkind = N_Generic_Package_Declaration
2496 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2497 or else NT (N).Nkind = N_Package_Declaration
2498 or else NT (N).Nkind = N_Subprogram_Body
2499 or else NT (N).Nkind = N_Subprogram_Body_Stub
2500 or else NT (N).Nkind = N_Subprogram_Declaration
2501 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2506 (N : Node_Id) return List_Id is
2508 pragma Assert (False
2509 or else NT (N).Nkind = N_Abortable_Part
2510 or else NT (N).Nkind = N_Accept_Alternative
2511 or else NT (N).Nkind = N_Case_Statement_Alternative
2512 or else NT (N).Nkind = N_Delay_Alternative
2513 or else NT (N).Nkind = N_Entry_Call_Alternative
2514 or else NT (N).Nkind = N_Exception_Handler
2515 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2516 or else NT (N).Nkind = N_Loop_Statement
2517 or else NT (N).Nkind = N_Triggering_Alternative);
2521 function Static_Processing_OK
2522 (N : Node_Id) return Boolean is
2524 pragma Assert (False
2525 or else NT (N).Nkind = N_Aggregate);
2527 end Static_Processing_OK;
2529 function Storage_Pool
2530 (N : Node_Id) return Node_Id is
2532 pragma Assert (False
2533 or else NT (N).Nkind = N_Allocator
2534 or else NT (N).Nkind = N_Extended_Return_Statement
2535 or else NT (N).Nkind = N_Free_Statement
2536 or else NT (N).Nkind = N_Return_Statement);
2541 (N : Node_Id) return String_Id is
2543 pragma Assert (False
2544 or else NT (N).Nkind = N_Operator_Symbol
2545 or else NT (N).Nkind = N_String_Literal);
2549 function Subtype_Indication
2550 (N : Node_Id) return Node_Id is
2552 pragma Assert (False
2553 or else NT (N).Nkind = N_Access_To_Object_Definition
2554 or else NT (N).Nkind = N_Component_Definition
2555 or else NT (N).Nkind = N_Derived_Type_Definition
2556 or else NT (N).Nkind = N_Private_Extension_Declaration
2557 or else NT (N).Nkind = N_Subtype_Declaration);
2559 end Subtype_Indication;
2561 function Subtype_Mark
2562 (N : Node_Id) return Node_Id is
2564 pragma Assert (False
2565 or else NT (N).Nkind = N_Access_Definition
2566 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2567 or else NT (N).Nkind = N_Formal_Object_Declaration
2568 or else NT (N).Nkind = N_Object_Renaming_Declaration
2569 or else NT (N).Nkind = N_Qualified_Expression
2570 or else NT (N).Nkind = N_Subtype_Indication
2571 or else NT (N).Nkind = N_Type_Conversion
2572 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2576 function Subtype_Marks
2577 (N : Node_Id) return List_Id is
2579 pragma Assert (False
2580 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2581 or else NT (N).Nkind = N_Use_Type_Clause);
2585 function Synchronized_Present
2586 (N : Node_Id) return Boolean is
2588 pragma Assert (False
2589 or else NT (N).Nkind = N_Derived_Type_Definition
2590 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2591 or else NT (N).Nkind = N_Private_Extension_Declaration
2592 or else NT (N).Nkind = N_Record_Definition);
2594 end Synchronized_Present;
2596 function Tagged_Present
2597 (N : Node_Id) return Boolean is
2599 pragma Assert (False
2600 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2601 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2602 or else NT (N).Nkind = N_Private_Type_Declaration
2603 or else NT (N).Nkind = N_Record_Definition);
2607 function Target_Type
2608 (N : Node_Id) return Entity_Id is
2610 pragma Assert (False
2611 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2615 function Task_Definition
2616 (N : Node_Id) return Node_Id is
2618 pragma Assert (False
2619 or else NT (N).Nkind = N_Single_Task_Declaration
2620 or else NT (N).Nkind = N_Task_Type_Declaration);
2622 end Task_Definition;
2624 function Task_Present
2625 (N : Node_Id) return Boolean is
2627 pragma Assert (False
2628 or else NT (N).Nkind = N_Derived_Type_Definition
2629 or else NT (N).Nkind = N_Record_Definition);
2633 function Then_Actions
2634 (N : Node_Id) return List_Id is
2636 pragma Assert (False
2637 or else NT (N).Nkind = N_Conditional_Expression);
2641 function Then_Statements
2642 (N : Node_Id) return List_Id is
2644 pragma Assert (False
2645 or else NT (N).Nkind = N_Elsif_Part
2646 or else NT (N).Nkind = N_If_Statement);
2648 end Then_Statements;
2650 function Treat_Fixed_As_Integer
2651 (N : Node_Id) return Boolean is
2653 pragma Assert (False
2654 or else NT (N).Nkind = N_Op_Divide
2655 or else NT (N).Nkind = N_Op_Mod
2656 or else NT (N).Nkind = N_Op_Multiply
2657 or else NT (N).Nkind = N_Op_Rem);
2659 end Treat_Fixed_As_Integer;
2661 function Triggering_Alternative
2662 (N : Node_Id) return Node_Id is
2664 pragma Assert (False
2665 or else NT (N).Nkind = N_Asynchronous_Select);
2667 end Triggering_Alternative;
2669 function Triggering_Statement
2670 (N : Node_Id) return Node_Id is
2672 pragma Assert (False
2673 or else NT (N).Nkind = N_Triggering_Alternative);
2675 end Triggering_Statement;
2678 (N : Node_Id) return Elist_Id is
2680 pragma Assert (False
2681 or else NT (N).Nkind = N_Freeze_Entity);
2685 function Type_Definition
2686 (N : Node_Id) return Node_Id is
2688 pragma Assert (False
2689 or else NT (N).Nkind = N_Full_Type_Declaration);
2691 end Type_Definition;
2694 (N : Node_Id) return Node_Id is
2696 pragma Assert (False
2697 or else NT (N).Nkind = N_Compilation_Unit);
2701 function Unknown_Discriminants_Present
2702 (N : Node_Id) return Boolean is
2704 pragma Assert (False
2705 or else NT (N).Nkind = N_Formal_Type_Declaration
2706 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2707 or else NT (N).Nkind = N_Private_Extension_Declaration
2708 or else NT (N).Nkind = N_Private_Type_Declaration);
2710 end Unknown_Discriminants_Present;
2712 function Unreferenced_In_Spec
2713 (N : Node_Id) return Boolean is
2715 pragma Assert (False
2716 or else NT (N).Nkind = N_With_Clause);
2718 end Unreferenced_In_Spec;
2720 function Variant_Part
2721 (N : Node_Id) return Node_Id is
2723 pragma Assert (False
2724 or else NT (N).Nkind = N_Component_List);
2729 (N : Node_Id) return List_Id is
2731 pragma Assert (False
2732 or else NT (N).Nkind = N_Variant_Part);
2736 function Visible_Declarations
2737 (N : Node_Id) return List_Id is
2739 pragma Assert (False
2740 or else NT (N).Nkind = N_Package_Specification
2741 or else NT (N).Nkind = N_Protected_Definition
2742 or else NT (N).Nkind = N_Task_Definition);
2744 end Visible_Declarations;
2746 function Was_Originally_Stub
2747 (N : Node_Id) return Boolean is
2749 pragma Assert (False
2750 or else NT (N).Nkind = N_Package_Body
2751 or else NT (N).Nkind = N_Protected_Body
2752 or else NT (N).Nkind = N_Subprogram_Body
2753 or else NT (N).Nkind = N_Task_Body);
2755 end Was_Originally_Stub;
2757 function Zero_Cost_Handling
2758 (N : Node_Id) return Boolean is
2760 pragma Assert (False
2761 or else NT (N).Nkind = N_Exception_Handler
2762 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2764 end Zero_Cost_Handling;
2766 --------------------------
2767 -- Field Set Procedures --
2768 --------------------------
2770 procedure Set_ABE_Is_Certain
2771 (N : Node_Id; Val : Boolean := True) is
2773 pragma Assert (False
2774 or else NT (N).Nkind = N_Formal_Package_Declaration
2775 or else NT (N).Nkind = N_Function_Call
2776 or else NT (N).Nkind = N_Function_Instantiation
2777 or else NT (N).Nkind = N_Package_Instantiation
2778 or else NT (N).Nkind = N_Procedure_Call_Statement
2779 or else NT (N).Nkind = N_Procedure_Instantiation);
2780 Set_Flag18 (N, Val);
2781 end Set_ABE_Is_Certain;
2783 procedure Set_Abort_Present
2784 (N : Node_Id; Val : Boolean := True) is
2786 pragma Assert (False
2787 or else NT (N).Nkind = N_Requeue_Statement);
2788 Set_Flag15 (N, Val);
2789 end Set_Abort_Present;
2791 procedure Set_Abortable_Part
2792 (N : Node_Id; Val : Node_Id) is
2794 pragma Assert (False
2795 or else NT (N).Nkind = N_Asynchronous_Select);
2796 Set_Node2_With_Parent (N, Val);
2797 end Set_Abortable_Part;
2799 procedure Set_Abstract_Present
2800 (N : Node_Id; Val : Boolean := True) is
2802 pragma Assert (False
2803 or else NT (N).Nkind = N_Derived_Type_Definition
2804 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2805 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2806 or else NT (N).Nkind = N_Private_Extension_Declaration
2807 or else NT (N).Nkind = N_Private_Type_Declaration
2808 or else NT (N).Nkind = N_Record_Definition);
2810 end Set_Abstract_Present;
2812 procedure Set_Accept_Handler_Records
2813 (N : Node_Id; Val : List_Id) is
2815 pragma Assert (False
2816 or else NT (N).Nkind = N_Accept_Alternative);
2817 Set_List5 (N, Val); -- semantic field, no parent set
2818 end Set_Accept_Handler_Records;
2820 procedure Set_Accept_Statement
2821 (N : Node_Id; Val : Node_Id) is
2823 pragma Assert (False
2824 or else NT (N).Nkind = N_Accept_Alternative);
2825 Set_Node2_With_Parent (N, Val);
2826 end Set_Accept_Statement;
2828 procedure Set_Access_Definition
2829 (N : Node_Id; Val : Node_Id) is
2831 pragma Assert (False
2832 or else NT (N).Nkind = N_Component_Definition
2833 or else NT (N).Nkind = N_Formal_Object_Declaration
2834 or else NT (N).Nkind = N_Object_Renaming_Declaration);
2835 Set_Node3_With_Parent (N, Val);
2836 end Set_Access_Definition;
2838 procedure Set_Access_To_Subprogram_Definition
2839 (N : Node_Id; Val : Node_Id) is
2841 pragma Assert (False
2842 or else NT (N).Nkind = N_Access_Definition);
2843 Set_Node3_With_Parent (N, Val);
2844 end Set_Access_To_Subprogram_Definition;
2846 procedure Set_Access_Types_To_Process
2847 (N : Node_Id; Val : Elist_Id) is
2849 pragma Assert (False
2850 or else NT (N).Nkind = N_Freeze_Entity);
2851 Set_Elist2 (N, Val); -- semantic field, no parent set
2852 end Set_Access_Types_To_Process;
2854 procedure Set_Actions
2855 (N : Node_Id; Val : List_Id) is
2857 pragma Assert (False
2858 or else NT (N).Nkind = N_And_Then
2859 or else NT (N).Nkind = N_Compilation_Unit_Aux
2860 or else NT (N).Nkind = N_Freeze_Entity
2861 or else NT (N).Nkind = N_Or_Else);
2862 Set_List1_With_Parent (N, Val);
2865 procedure Set_Activation_Chain_Entity
2866 (N : Node_Id; Val : Node_Id) is
2868 pragma Assert (False
2869 or else NT (N).Nkind = N_Block_Statement
2870 or else NT (N).Nkind = N_Entry_Body
2871 or else NT (N).Nkind = N_Generic_Package_Declaration
2872 or else NT (N).Nkind = N_Package_Declaration
2873 or else NT (N).Nkind = N_Subprogram_Body
2874 or else NT (N).Nkind = N_Task_Body);
2875 Set_Node3 (N, Val); -- semantic field, no parent set
2876 end Set_Activation_Chain_Entity;
2878 procedure Set_Acts_As_Spec
2879 (N : Node_Id; Val : Boolean := True) is
2881 pragma Assert (False
2882 or else NT (N).Nkind = N_Compilation_Unit
2883 or else NT (N).Nkind = N_Subprogram_Body);
2885 end Set_Acts_As_Spec;
2887 procedure Set_Actual_Designated_Subtype
2888 (N : Node_Id; Val : Node_Id) is
2890 pragma Assert (False
2891 or else NT (N).Nkind = N_Explicit_Dereference
2892 or else NT (N).Nkind = N_Free_Statement);
2894 end Set_Actual_Designated_Subtype;
2896 procedure Set_Aggregate_Bounds
2897 (N : Node_Id; Val : Node_Id) is
2899 pragma Assert (False
2900 or else NT (N).Nkind = N_Aggregate);
2901 Set_Node3 (N, Val); -- semantic field, no parent set
2902 end Set_Aggregate_Bounds;
2904 procedure Set_Aliased_Present
2905 (N : Node_Id; Val : Boolean := True) is
2907 pragma Assert (False
2908 or else NT (N).Nkind = N_Component_Definition
2909 or else NT (N).Nkind = N_Object_Declaration);
2911 end Set_Aliased_Present;
2913 procedure Set_All_Others
2914 (N : Node_Id; Val : Boolean := True) is
2916 pragma Assert (False
2917 or else NT (N).Nkind = N_Others_Choice);
2918 Set_Flag11 (N, Val);
2921 procedure Set_All_Present
2922 (N : Node_Id; Val : Boolean := True) is
2924 pragma Assert (False
2925 or else NT (N).Nkind = N_Access_Definition
2926 or else NT (N).Nkind = N_Access_To_Object_Definition);
2927 Set_Flag15 (N, Val);
2928 end Set_All_Present;
2930 procedure Set_Alternatives
2931 (N : Node_Id; Val : List_Id) is
2933 pragma Assert (False
2934 or else NT (N).Nkind = N_Case_Statement);
2935 Set_List4_With_Parent (N, Val);
2936 end Set_Alternatives;
2938 procedure Set_Ancestor_Part
2939 (N : Node_Id; Val : Node_Id) is
2941 pragma Assert (False
2942 or else NT (N).Nkind = N_Extension_Aggregate);
2943 Set_Node3_With_Parent (N, Val);
2944 end Set_Ancestor_Part;
2946 procedure Set_Array_Aggregate
2947 (N : Node_Id; Val : Node_Id) is
2949 pragma Assert (False
2950 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
2951 Set_Node3_With_Parent (N, Val);
2952 end Set_Array_Aggregate;
2954 procedure Set_Assignment_OK
2955 (N : Node_Id; Val : Boolean := True) is
2957 pragma Assert (False
2958 or else NT (N).Nkind = N_Object_Declaration
2959 or else NT (N).Nkind in N_Subexpr);
2960 Set_Flag15 (N, Val);
2961 end Set_Assignment_OK;
2963 procedure Set_Associated_Node
2964 (N : Node_Id; Val : Node_Id) is
2966 pragma Assert (False
2967 or else NT (N).Nkind in N_Has_Entity
2968 or else NT (N).Nkind = N_Aggregate
2969 or else NT (N).Nkind = N_Extension_Aggregate
2970 or else NT (N).Nkind = N_Selected_Component);
2971 Set_Node4 (N, Val); -- semantic field, no parent set
2972 end Set_Associated_Node;
2974 procedure Set_At_End_Proc
2975 (N : Node_Id; Val : Node_Id) is
2977 pragma Assert (False
2978 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2980 end Set_At_End_Proc;
2982 procedure Set_Attribute_Name
2983 (N : Node_Id; Val : Name_Id) is
2985 pragma Assert (False
2986 or else NT (N).Nkind = N_Attribute_Reference);
2988 end Set_Attribute_Name;
2990 procedure Set_Aux_Decls_Node
2991 (N : Node_Id; Val : Node_Id) is
2993 pragma Assert (False
2994 or else NT (N).Nkind = N_Compilation_Unit);
2995 Set_Node5_With_Parent (N, Val);
2996 end Set_Aux_Decls_Node;
2998 procedure Set_Backwards_OK
2999 (N : Node_Id; Val : Boolean := True) is
3001 pragma Assert (False
3002 or else NT (N).Nkind = N_Assignment_Statement);
3004 end Set_Backwards_OK;
3006 procedure Set_Bad_Is_Detected
3007 (N : Node_Id; Val : Boolean := True) is
3009 pragma Assert (False
3010 or else NT (N).Nkind = N_Subprogram_Body);
3011 Set_Flag15 (N, Val);
3012 end Set_Bad_Is_Detected;
3014 procedure Set_Body_Required
3015 (N : Node_Id; Val : Boolean := True) is
3017 pragma Assert (False
3018 or else NT (N).Nkind = N_Compilation_Unit);
3019 Set_Flag13 (N, Val);
3020 end Set_Body_Required;
3022 procedure Set_Body_To_Inline
3023 (N : Node_Id; Val : Node_Id) is
3025 pragma Assert (False
3026 or else NT (N).Nkind = N_Subprogram_Declaration);
3028 end Set_Body_To_Inline;
3030 procedure Set_Box_Present
3031 (N : Node_Id; Val : Boolean := True) is
3033 pragma Assert (False
3034 or else NT (N).Nkind = N_Component_Association
3035 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3036 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3037 or else NT (N).Nkind = N_Formal_Package_Declaration
3038 or else NT (N).Nkind = N_Generic_Association);
3039 Set_Flag15 (N, Val);
3040 end Set_Box_Present;
3042 procedure Set_By_Ref
3043 (N : Node_Id; Val : Boolean := True) is
3045 pragma Assert (False
3046 or else NT (N).Nkind = N_Extended_Return_Statement
3047 or else NT (N).Nkind = N_Return_Statement);
3051 procedure Set_Char_Literal_Value
3052 (N : Node_Id; Val : Uint) is
3054 pragma Assert (False
3055 or else NT (N).Nkind = N_Character_Literal);
3057 end Set_Char_Literal_Value;
3060 (N : Node_Id; Val : Name_Id) is
3062 pragma Assert (False
3063 or else NT (N).Nkind in N_Has_Chars);
3067 procedure Set_Check_Address_Alignment
3068 (N : Node_Id; Val : Boolean := True) is
3070 pragma Assert (False
3071 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3072 Set_Flag11 (N, Val);
3073 end Set_Check_Address_Alignment;
3075 procedure Set_Choice_Parameter
3076 (N : Node_Id; Val : Node_Id) is
3078 pragma Assert (False
3079 or else NT (N).Nkind = N_Exception_Handler);
3080 Set_Node2_With_Parent (N, Val);
3081 end Set_Choice_Parameter;
3083 procedure Set_Choices
3084 (N : Node_Id; Val : List_Id) is
3086 pragma Assert (False
3087 or else NT (N).Nkind = N_Component_Association);
3088 Set_List1_With_Parent (N, Val);
3091 procedure Set_Coextensions
3092 (N : Node_Id; Val : Elist_Id) is
3094 pragma Assert (False
3095 or else NT (N).Nkind = N_Allocator);
3096 Set_Elist4 (N, Val);
3097 end Set_Coextensions;
3099 procedure Set_Comes_From_Extended_Return_Statement
3100 (N : Node_Id; Val : Boolean := True) is
3102 pragma Assert (False
3103 or else NT (N).Nkind = N_Return_Statement);
3104 Set_Flag18 (N, Val);
3105 end Set_Comes_From_Extended_Return_Statement;
3107 procedure Set_Compile_Time_Known_Aggregate
3108 (N : Node_Id; Val : Boolean := True) is
3110 pragma Assert (False
3111 or else NT (N).Nkind = N_Aggregate);
3112 Set_Flag18 (N, Val);
3113 end Set_Compile_Time_Known_Aggregate;
3115 procedure Set_Component_Associations
3116 (N : Node_Id; Val : List_Id) is
3118 pragma Assert (False
3119 or else NT (N).Nkind = N_Aggregate
3120 or else NT (N).Nkind = N_Extension_Aggregate);
3121 Set_List2_With_Parent (N, Val);
3122 end Set_Component_Associations;
3124 procedure Set_Component_Clauses
3125 (N : Node_Id; Val : List_Id) is
3127 pragma Assert (False
3128 or else NT (N).Nkind = N_Record_Representation_Clause);
3129 Set_List3_With_Parent (N, Val);
3130 end Set_Component_Clauses;
3132 procedure Set_Component_Definition
3133 (N : Node_Id; Val : Node_Id) is
3135 pragma Assert (False
3136 or else NT (N).Nkind = N_Component_Declaration
3137 or else NT (N).Nkind = N_Constrained_Array_Definition
3138 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3139 Set_Node4_With_Parent (N, Val);
3140 end Set_Component_Definition;
3142 procedure Set_Component_Items
3143 (N : Node_Id; Val : List_Id) is
3145 pragma Assert (False
3146 or else NT (N).Nkind = N_Component_List);
3147 Set_List3_With_Parent (N, Val);
3148 end Set_Component_Items;
3150 procedure Set_Component_List
3151 (N : Node_Id; Val : Node_Id) is
3153 pragma Assert (False
3154 or else NT (N).Nkind = N_Record_Definition
3155 or else NT (N).Nkind = N_Variant);
3156 Set_Node1_With_Parent (N, Val);
3157 end Set_Component_List;
3159 procedure Set_Component_Name
3160 (N : Node_Id; Val : Node_Id) is
3162 pragma Assert (False
3163 or else NT (N).Nkind = N_Component_Clause);
3164 Set_Node1_With_Parent (N, Val);
3165 end Set_Component_Name;
3167 procedure Set_Condition
3168 (N : Node_Id; Val : Node_Id) is
3170 pragma Assert (False
3171 or else NT (N).Nkind = N_Accept_Alternative
3172 or else NT (N).Nkind = N_Delay_Alternative
3173 or else NT (N).Nkind = N_Elsif_Part
3174 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3175 or else NT (N).Nkind = N_Exit_Statement
3176 or else NT (N).Nkind = N_If_Statement
3177 or else NT (N).Nkind = N_Iteration_Scheme
3178 or else NT (N).Nkind = N_Raise_Constraint_Error
3179 or else NT (N).Nkind = N_Raise_Program_Error
3180 or else NT (N).Nkind = N_Raise_Storage_Error
3181 or else NT (N).Nkind = N_Terminate_Alternative);
3182 Set_Node1_With_Parent (N, Val);
3185 procedure Set_Condition_Actions
3186 (N : Node_Id; Val : List_Id) is
3188 pragma Assert (False
3189 or else NT (N).Nkind = N_Elsif_Part
3190 or else NT (N).Nkind = N_Iteration_Scheme);
3191 Set_List3 (N, Val); -- semantic field, no parent set
3192 end Set_Condition_Actions;
3194 procedure Set_Config_Pragmas
3195 (N : Node_Id; Val : List_Id) is
3197 pragma Assert (False
3198 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3199 Set_List4_With_Parent (N, Val);
3200 end Set_Config_Pragmas;
3202 procedure Set_Constant_Present
3203 (N : Node_Id; Val : Boolean := True) is
3205 pragma Assert (False
3206 or else NT (N).Nkind = N_Access_Definition
3207 or else NT (N).Nkind = N_Access_To_Object_Definition
3208 or else NT (N).Nkind = N_Object_Declaration);
3209 Set_Flag17 (N, Val);
3210 end Set_Constant_Present;
3212 procedure Set_Constraint
3213 (N : Node_Id; Val : Node_Id) is
3215 pragma Assert (False
3216 or else NT (N).Nkind = N_Subtype_Indication);
3217 Set_Node3_With_Parent (N, Val);
3220 procedure Set_Constraints
3221 (N : Node_Id; Val : List_Id) is
3223 pragma Assert (False
3224 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3225 Set_List1_With_Parent (N, Val);
3226 end Set_Constraints;
3228 procedure Set_Context_Installed
3229 (N : Node_Id; Val : Boolean := True) is
3231 pragma Assert (False
3232 or else NT (N).Nkind = N_With_Clause);
3233 Set_Flag13 (N, Val);
3234 end Set_Context_Installed;
3236 procedure Set_Context_Items
3237 (N : Node_Id; Val : List_Id) is
3239 pragma Assert (False
3240 or else NT (N).Nkind = N_Compilation_Unit);
3241 Set_List1_With_Parent (N, Val);
3242 end Set_Context_Items;
3244 procedure Set_Controlling_Argument
3245 (N : Node_Id; Val : Node_Id) is
3247 pragma Assert (False
3248 or else NT (N).Nkind = N_Function_Call
3249 or else NT (N).Nkind = N_Procedure_Call_Statement);
3250 Set_Node1 (N, Val); -- semantic field, no parent set
3251 end Set_Controlling_Argument;
3253 procedure Set_Conversion_OK
3254 (N : Node_Id; Val : Boolean := True) is
3256 pragma Assert (False
3257 or else NT (N).Nkind = N_Type_Conversion);
3258 Set_Flag14 (N, Val);
3259 end Set_Conversion_OK;
3261 procedure Set_Corresponding_Body
3262 (N : Node_Id; Val : Node_Id) is
3264 pragma Assert (False
3265 or else NT (N).Nkind = N_Entry_Declaration
3266 or else NT (N).Nkind = N_Generic_Package_Declaration
3267 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3268 or else NT (N).Nkind = N_Package_Body_Stub
3269 or else NT (N).Nkind = N_Package_Declaration
3270 or else NT (N).Nkind = N_Protected_Body_Stub
3271 or else NT (N).Nkind = N_Protected_Type_Declaration
3272 or else NT (N).Nkind = N_Subprogram_Body_Stub
3273 or else NT (N).Nkind = N_Subprogram_Declaration
3274 or else NT (N).Nkind = N_Task_Body_Stub
3275 or else NT (N).Nkind = N_Task_Type_Declaration);
3276 Set_Node5 (N, Val); -- semantic field, no parent set
3277 end Set_Corresponding_Body;
3279 procedure Set_Corresponding_Formal_Spec
3280 (N : Node_Id; Val : Node_Id) is
3282 pragma Assert (False
3283 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3284 Set_Node3 (N, Val); -- semantic field, no parent set
3285 end Set_Corresponding_Formal_Spec;
3287 procedure Set_Corresponding_Generic_Association
3288 (N : Node_Id; Val : Node_Id) is
3290 pragma Assert (False
3291 or else NT (N).Nkind = N_Object_Declaration
3292 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3293 Set_Node5 (N, Val); -- semantic field, no parent set
3294 end Set_Corresponding_Generic_Association;
3296 procedure Set_Corresponding_Integer_Value
3297 (N : Node_Id; Val : Uint) is
3299 pragma Assert (False
3300 or else NT (N).Nkind = N_Real_Literal);
3301 Set_Uint4 (N, Val); -- semantic field, no parent set
3302 end Set_Corresponding_Integer_Value;
3304 procedure Set_Corresponding_Spec
3305 (N : Node_Id; Val : Node_Id) is
3307 pragma Assert (False
3308 or else NT (N).Nkind = N_Package_Body
3309 or else NT (N).Nkind = N_Protected_Body
3310 or else NT (N).Nkind = N_Subprogram_Body
3311 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3312 or else NT (N).Nkind = N_Task_Body
3313 or else NT (N).Nkind = N_With_Clause);
3314 Set_Node5 (N, Val); -- semantic field, no parent set
3315 end Set_Corresponding_Spec;
3317 procedure Set_Corresponding_Stub
3318 (N : Node_Id; Val : Node_Id) is
3320 pragma Assert (False
3321 or else NT (N).Nkind = N_Subunit);
3323 end Set_Corresponding_Stub;
3325 procedure Set_Dcheck_Function
3326 (N : Node_Id; Val : Entity_Id) is
3328 pragma Assert (False
3329 or else NT (N).Nkind = N_Variant);
3330 Set_Node5 (N, Val); -- semantic field, no parent set
3331 end Set_Dcheck_Function;
3333 procedure Set_Debug_Statement
3334 (N : Node_Id; Val : Node_Id) is
3336 pragma Assert (False
3337 or else NT (N).Nkind = N_Pragma);
3338 Set_Node3_With_Parent (N, Val);
3339 end Set_Debug_Statement;
3341 procedure Set_Declarations
3342 (N : Node_Id; Val : List_Id) is
3344 pragma Assert (False
3345 or else NT (N).Nkind = N_Accept_Statement
3346 or else NT (N).Nkind = N_Block_Statement
3347 or else NT (N).Nkind = N_Compilation_Unit_Aux
3348 or else NT (N).Nkind = N_Entry_Body
3349 or else NT (N).Nkind = N_Package_Body
3350 or else NT (N).Nkind = N_Protected_Body
3351 or else NT (N).Nkind = N_Subprogram_Body
3352 or else NT (N).Nkind = N_Task_Body);
3353 Set_List2_With_Parent (N, Val);
3354 end Set_Declarations;
3356 procedure Set_Default_Expression
3357 (N : Node_Id; Val : Node_Id) is
3359 pragma Assert (False
3360 or else NT (N).Nkind = N_Formal_Object_Declaration
3361 or else NT (N).Nkind = N_Parameter_Specification);
3362 Set_Node5 (N, Val); -- semantic field, no parent set
3363 end Set_Default_Expression;
3365 procedure Set_Default_Name
3366 (N : Node_Id; Val : Node_Id) is
3368 pragma Assert (False
3369 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3370 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3371 Set_Node2_With_Parent (N, Val);
3372 end Set_Default_Name;
3374 procedure Set_Defining_Identifier
3375 (N : Node_Id; Val : Entity_Id) is
3377 pragma Assert (False
3378 or else NT (N).Nkind = N_Component_Declaration
3379 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3380 or else NT (N).Nkind = N_Discriminant_Specification
3381 or else NT (N).Nkind = N_Entry_Body
3382 or else NT (N).Nkind = N_Entry_Declaration
3383 or else NT (N).Nkind = N_Entry_Index_Specification
3384 or else NT (N).Nkind = N_Exception_Declaration
3385 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3386 or else NT (N).Nkind = N_Formal_Object_Declaration
3387 or else NT (N).Nkind = N_Formal_Package_Declaration
3388 or else NT (N).Nkind = N_Formal_Type_Declaration
3389 or else NT (N).Nkind = N_Full_Type_Declaration
3390 or else NT (N).Nkind = N_Implicit_Label_Declaration
3391 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3392 or else NT (N).Nkind = N_Loop_Parameter_Specification
3393 or else NT (N).Nkind = N_Number_Declaration
3394 or else NT (N).Nkind = N_Object_Declaration
3395 or else NT (N).Nkind = N_Object_Renaming_Declaration
3396 or else NT (N).Nkind = N_Package_Body_Stub
3397 or else NT (N).Nkind = N_Parameter_Specification
3398 or else NT (N).Nkind = N_Private_Extension_Declaration
3399 or else NT (N).Nkind = N_Private_Type_Declaration
3400 or else NT (N).Nkind = N_Protected_Body
3401 or else NT (N).Nkind = N_Protected_Body_Stub
3402 or else NT (N).Nkind = N_Protected_Type_Declaration
3403 or else NT (N).Nkind = N_Single_Protected_Declaration
3404 or else NT (N).Nkind = N_Single_Task_Declaration
3405 or else NT (N).Nkind = N_Subtype_Declaration
3406 or else NT (N).Nkind = N_Task_Body
3407 or else NT (N).Nkind = N_Task_Body_Stub
3408 or else NT (N).Nkind = N_Task_Type_Declaration);
3409 Set_Node1_With_Parent (N, Val);
3410 end Set_Defining_Identifier;
3412 procedure Set_Defining_Unit_Name
3413 (N : Node_Id; Val : Node_Id) is
3415 pragma Assert (False
3416 or else NT (N).Nkind = N_Function_Instantiation
3417 or else NT (N).Nkind = N_Function_Specification
3418 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3419 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3420 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3421 or else NT (N).Nkind = N_Package_Body
3422 or else NT (N).Nkind = N_Package_Instantiation
3423 or else NT (N).Nkind = N_Package_Renaming_Declaration
3424 or else NT (N).Nkind = N_Package_Specification
3425 or else NT (N).Nkind = N_Procedure_Instantiation
3426 or else NT (N).Nkind = N_Procedure_Specification);
3427 Set_Node1_With_Parent (N, Val);
3428 end Set_Defining_Unit_Name;
3430 procedure Set_Delay_Alternative
3431 (N : Node_Id; Val : Node_Id) is
3433 pragma Assert (False
3434 or else NT (N).Nkind = N_Timed_Entry_Call);
3435 Set_Node4_With_Parent (N, Val);
3436 end Set_Delay_Alternative;
3438 procedure Set_Delay_Statement
3439 (N : Node_Id; Val : Node_Id) is
3441 pragma Assert (False
3442 or else NT (N).Nkind = N_Delay_Alternative);
3443 Set_Node2_With_Parent (N, Val);
3444 end Set_Delay_Statement;
3446 procedure Set_Delta_Expression
3447 (N : Node_Id; Val : Node_Id) is
3449 pragma Assert (False
3450 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3451 or else NT (N).Nkind = N_Delta_Constraint
3452 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3453 Set_Node3_With_Parent (N, Val);
3454 end Set_Delta_Expression;
3456 procedure Set_Digits_Expression
3457 (N : Node_Id; Val : Node_Id) is
3459 pragma Assert (False
3460 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3461 or else NT (N).Nkind = N_Digits_Constraint
3462 or else NT (N).Nkind = N_Floating_Point_Definition);
3463 Set_Node2_With_Parent (N, Val);
3464 end Set_Digits_Expression;
3466 procedure Set_Discr_Check_Funcs_Built
3467 (N : Node_Id; Val : Boolean := True) is
3469 pragma Assert (False
3470 or else NT (N).Nkind = N_Full_Type_Declaration);
3471 Set_Flag11 (N, Val);
3472 end Set_Discr_Check_Funcs_Built;
3474 procedure Set_Discrete_Choices
3475 (N : Node_Id; Val : List_Id) is
3477 pragma Assert (False
3478 or else NT (N).Nkind = N_Case_Statement_Alternative
3479 or else NT (N).Nkind = N_Variant);
3480 Set_List4_With_Parent (N, Val);
3481 end Set_Discrete_Choices;
3483 procedure Set_Discrete_Range
3484 (N : Node_Id; Val : Node_Id) is
3486 pragma Assert (False
3487 or else NT (N).Nkind = N_Slice);
3488 Set_Node4_With_Parent (N, Val);
3489 end Set_Discrete_Range;
3491 procedure Set_Discrete_Subtype_Definition
3492 (N : Node_Id; Val : Node_Id) is
3494 pragma Assert (False
3495 or else NT (N).Nkind = N_Entry_Declaration
3496 or else NT (N).Nkind = N_Entry_Index_Specification
3497 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3498 Set_Node4_With_Parent (N, Val);
3499 end Set_Discrete_Subtype_Definition;
3501 procedure Set_Discrete_Subtype_Definitions
3502 (N : Node_Id; Val : List_Id) is
3504 pragma Assert (False
3505 or else NT (N).Nkind = N_Constrained_Array_Definition);
3506 Set_List2_With_Parent (N, Val);
3507 end Set_Discrete_Subtype_Definitions;
3509 procedure Set_Discriminant_Specifications
3510 (N : Node_Id; Val : List_Id) is
3512 pragma Assert (False
3513 or else NT (N).Nkind = N_Formal_Type_Declaration
3514 or else NT (N).Nkind = N_Full_Type_Declaration
3515 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3516 or else NT (N).Nkind = N_Private_Extension_Declaration
3517 or else NT (N).Nkind = N_Private_Type_Declaration
3518 or else NT (N).Nkind = N_Protected_Type_Declaration
3519 or else NT (N).Nkind = N_Task_Type_Declaration);
3520 Set_List4_With_Parent (N, Val);
3521 end Set_Discriminant_Specifications;
3523 procedure Set_Discriminant_Type
3524 (N : Node_Id; Val : Node_Id) is
3526 pragma Assert (False
3527 or else NT (N).Nkind = N_Discriminant_Specification);
3528 Set_Node5_With_Parent (N, Val);
3529 end Set_Discriminant_Type;
3531 procedure Set_Do_Accessibility_Check
3532 (N : Node_Id; Val : Boolean := True) is
3534 pragma Assert (False
3535 or else NT (N).Nkind = N_Parameter_Specification);
3536 Set_Flag13 (N, Val);
3537 end Set_Do_Accessibility_Check;
3539 procedure Set_Do_Discriminant_Check
3540 (N : Node_Id; Val : Boolean := True) is
3542 pragma Assert (False
3543 or else NT (N).Nkind = N_Selected_Component);
3544 Set_Flag13 (N, Val);
3545 end Set_Do_Discriminant_Check;
3547 procedure Set_Do_Division_Check
3548 (N : Node_Id; Val : Boolean := True) is
3550 pragma Assert (False
3551 or else NT (N).Nkind = N_Op_Divide
3552 or else NT (N).Nkind = N_Op_Mod
3553 or else NT (N).Nkind = N_Op_Rem);
3554 Set_Flag13 (N, Val);
3555 end Set_Do_Division_Check;
3557 procedure Set_Do_Length_Check
3558 (N : Node_Id; Val : Boolean := True) is
3560 pragma Assert (False
3561 or else NT (N).Nkind = N_Assignment_Statement
3562 or else NT (N).Nkind = N_Op_And
3563 or else NT (N).Nkind = N_Op_Or
3564 or else NT (N).Nkind = N_Op_Xor
3565 or else NT (N).Nkind = N_Type_Conversion);
3567 end Set_Do_Length_Check;
3569 procedure Set_Do_Overflow_Check
3570 (N : Node_Id; Val : Boolean := True) is
3572 pragma Assert (False
3573 or else NT (N).Nkind in N_Op
3574 or else NT (N).Nkind = N_Attribute_Reference
3575 or else NT (N).Nkind = N_Type_Conversion);
3576 Set_Flag17 (N, Val);
3577 end Set_Do_Overflow_Check;
3579 procedure Set_Do_Range_Check
3580 (N : Node_Id; Val : Boolean := True) is
3582 pragma Assert (False
3583 or else NT (N).Nkind in N_Subexpr);
3585 end Set_Do_Range_Check;
3587 procedure Set_Do_Storage_Check
3588 (N : Node_Id; Val : Boolean := True) is
3590 pragma Assert (False
3591 or else NT (N).Nkind = N_Allocator
3592 or else NT (N).Nkind = N_Subprogram_Body);
3593 Set_Flag17 (N, Val);
3594 end Set_Do_Storage_Check;
3596 procedure Set_Do_Tag_Check
3597 (N : Node_Id; Val : Boolean := True) is
3599 pragma Assert (False
3600 or else NT (N).Nkind = N_Assignment_Statement
3601 or else NT (N).Nkind = N_Extended_Return_Statement
3602 or else NT (N).Nkind = N_Function_Call
3603 or else NT (N).Nkind = N_Procedure_Call_Statement
3604 or else NT (N).Nkind = N_Return_Statement
3605 or else NT (N).Nkind = N_Type_Conversion);
3606 Set_Flag13 (N, Val);
3607 end Set_Do_Tag_Check;
3609 procedure Set_Elaborate_All_Desirable
3610 (N : Node_Id; Val : Boolean := True) is
3612 pragma Assert (False
3613 or else NT (N).Nkind = N_With_Clause);
3615 end Set_Elaborate_All_Desirable;
3617 procedure Set_Elaborate_All_Present
3618 (N : Node_Id; Val : Boolean := True) is
3620 pragma Assert (False
3621 or else NT (N).Nkind = N_With_Clause);
3622 Set_Flag14 (N, Val);
3623 end Set_Elaborate_All_Present;
3625 procedure Set_Elaborate_Desirable
3626 (N : Node_Id; Val : Boolean := True) is
3628 pragma Assert (False
3629 or else NT (N).Nkind = N_With_Clause);
3630 Set_Flag11 (N, Val);
3631 end Set_Elaborate_Desirable;
3633 procedure Set_Elaborate_Present
3634 (N : Node_Id; Val : Boolean := True) is
3636 pragma Assert (False
3637 or else NT (N).Nkind = N_With_Clause);
3639 end Set_Elaborate_Present;
3641 procedure Set_Elaboration_Boolean
3642 (N : Node_Id; Val : Node_Id) is
3644 pragma Assert (False
3645 or else NT (N).Nkind = N_Function_Specification
3646 or else NT (N).Nkind = N_Procedure_Specification);
3648 end Set_Elaboration_Boolean;
3650 procedure Set_Else_Actions
3651 (N : Node_Id; Val : List_Id) is
3653 pragma Assert (False
3654 or else NT (N).Nkind = N_Conditional_Expression);
3655 Set_List3 (N, Val); -- semantic field, no parent set
3656 end Set_Else_Actions;
3658 procedure Set_Else_Statements
3659 (N : Node_Id; Val : List_Id) is
3661 pragma Assert (False
3662 or else NT (N).Nkind = N_Conditional_Entry_Call
3663 or else NT (N).Nkind = N_If_Statement
3664 or else NT (N).Nkind = N_Selective_Accept);
3665 Set_List4_With_Parent (N, Val);
3666 end Set_Else_Statements;
3668 procedure Set_Elsif_Parts
3669 (N : Node_Id; Val : List_Id) is
3671 pragma Assert (False
3672 or else NT (N).Nkind = N_If_Statement);
3673 Set_List3_With_Parent (N, Val);
3674 end Set_Elsif_Parts;
3676 procedure Set_Enclosing_Variant
3677 (N : Node_Id; Val : Node_Id) is
3679 pragma Assert (False
3680 or else NT (N).Nkind = N_Variant);
3681 Set_Node2 (N, Val); -- semantic field, no parent set
3682 end Set_Enclosing_Variant;
3684 procedure Set_End_Label
3685 (N : Node_Id; Val : Node_Id) is
3687 pragma Assert (False
3688 or else NT (N).Nkind = N_Enumeration_Type_Definition
3689 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
3690 or else NT (N).Nkind = N_Loop_Statement
3691 or else NT (N).Nkind = N_Package_Specification
3692 or else NT (N).Nkind = N_Protected_Body
3693 or else NT (N).Nkind = N_Protected_Definition
3694 or else NT (N).Nkind = N_Record_Definition
3695 or else NT (N).Nkind = N_Task_Definition);
3696 Set_Node4_With_Parent (N, Val);
3699 procedure Set_End_Span
3700 (N : Node_Id; Val : Uint) is
3702 pragma Assert (False
3703 or else NT (N).Nkind = N_Case_Statement
3704 or else NT (N).Nkind = N_If_Statement);
3708 procedure Set_Entity
3709 (N : Node_Id; Val : Node_Id) is
3711 pragma Assert (False
3712 or else NT (N).Nkind in N_Has_Entity
3713 or else NT (N).Nkind = N_Freeze_Entity
3714 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3715 Set_Node4 (N, Val); -- semantic field, no parent set
3718 procedure Set_Entry_Body_Formal_Part
3719 (N : Node_Id; Val : Node_Id) is
3721 pragma Assert (False
3722 or else NT (N).Nkind = N_Entry_Body);
3723 Set_Node5_With_Parent (N, Val);
3724 end Set_Entry_Body_Formal_Part;
3726 procedure Set_Entry_Call_Alternative
3727 (N : Node_Id; Val : Node_Id) is
3729 pragma Assert (False
3730 or else NT (N).Nkind = N_Conditional_Entry_Call
3731 or else NT (N).Nkind = N_Timed_Entry_Call);
3732 Set_Node1_With_Parent (N, Val);
3733 end Set_Entry_Call_Alternative;
3735 procedure Set_Entry_Call_Statement
3736 (N : Node_Id; Val : Node_Id) is
3738 pragma Assert (False
3739 or else NT (N).Nkind = N_Entry_Call_Alternative);
3740 Set_Node1_With_Parent (N, Val);
3741 end Set_Entry_Call_Statement;
3743 procedure Set_Entry_Direct_Name
3744 (N : Node_Id; Val : Node_Id) is
3746 pragma Assert (False
3747 or else NT (N).Nkind = N_Accept_Statement);
3748 Set_Node1_With_Parent (N, Val);
3749 end Set_Entry_Direct_Name;
3751 procedure Set_Entry_Index
3752 (N : Node_Id; Val : Node_Id) is
3754 pragma Assert (False
3755 or else NT (N).Nkind = N_Accept_Statement);
3756 Set_Node5_With_Parent (N, Val);
3757 end Set_Entry_Index;
3759 procedure Set_Entry_Index_Specification
3760 (N : Node_Id; Val : Node_Id) is
3762 pragma Assert (False
3763 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
3764 Set_Node4_With_Parent (N, Val);
3765 end Set_Entry_Index_Specification;
3768 (N : Node_Id; Val : Node_Id) is
3770 pragma Assert (False
3771 or else NT (N).Nkind in N_Has_Etype);
3772 Set_Node5 (N, Val); -- semantic field, no parent set
3775 procedure Set_Exception_Choices
3776 (N : Node_Id; Val : List_Id) is
3778 pragma Assert (False
3779 or else NT (N).Nkind = N_Exception_Handler);
3780 Set_List4_With_Parent (N, Val);
3781 end Set_Exception_Choices;
3783 procedure Set_Exception_Handlers
3784 (N : Node_Id; Val : List_Id) is
3786 pragma Assert (False
3787 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3788 Set_List5_With_Parent (N, Val);
3789 end Set_Exception_Handlers;
3791 procedure Set_Exception_Junk
3792 (N : Node_Id; Val : Boolean := True) is
3794 pragma Assert (False
3795 or else NT (N).Nkind = N_Block_Statement
3796 or else NT (N).Nkind = N_Goto_Statement
3797 or else NT (N).Nkind = N_Label
3798 or else NT (N).Nkind = N_Object_Declaration
3799 or else NT (N).Nkind = N_Subtype_Declaration);
3801 end Set_Exception_Junk;
3803 procedure Set_Exception_Label
3804 (N : Node_Id; Val : Node_Id) is
3806 pragma Assert (False
3807 or else NT (N).Nkind = N_Exception_Handler
3808 or else NT (N).Nkind = N_Push_Constraint_Error_Label
3809 or else NT (N).Nkind = N_Push_Program_Error_Label
3810 or else NT (N).Nkind = N_Push_Storage_Error_Label);
3811 Set_Node5 (N, Val); -- semantic field, no parent set
3812 end Set_Exception_Label;
3814 procedure Set_Expansion_Delayed
3815 (N : Node_Id; Val : Boolean := True) is
3817 pragma Assert (False
3818 or else NT (N).Nkind = N_Aggregate
3819 or else NT (N).Nkind = N_Extension_Aggregate);
3820 Set_Flag11 (N, Val);
3821 end Set_Expansion_Delayed;
3823 procedure Set_Explicit_Actual_Parameter
3824 (N : Node_Id; Val : Node_Id) is
3826 pragma Assert (False
3827 or else NT (N).Nkind = N_Parameter_Association);
3828 Set_Node3_With_Parent (N, Val);
3829 end Set_Explicit_Actual_Parameter;
3831 procedure Set_Explicit_Generic_Actual_Parameter
3832 (N : Node_Id; Val : Node_Id) is
3834 pragma Assert (False
3835 or else NT (N).Nkind = N_Generic_Association);
3836 Set_Node1_With_Parent (N, Val);
3837 end Set_Explicit_Generic_Actual_Parameter;
3839 procedure Set_Expression
3840 (N : Node_Id; Val : Node_Id) is
3842 pragma Assert (False
3843 or else NT (N).Nkind = N_Allocator
3844 or else NT (N).Nkind = N_Assignment_Statement
3845 or else NT (N).Nkind = N_At_Clause
3846 or else NT (N).Nkind = N_Attribute_Definition_Clause
3847 or else NT (N).Nkind = N_Case_Statement
3848 or else NT (N).Nkind = N_Code_Statement
3849 or else NT (N).Nkind = N_Component_Association
3850 or else NT (N).Nkind = N_Component_Declaration
3851 or else NT (N).Nkind = N_Delay_Relative_Statement
3852 or else NT (N).Nkind = N_Delay_Until_Statement
3853 or else NT (N).Nkind = N_Discriminant_Association
3854 or else NT (N).Nkind = N_Discriminant_Specification
3855 or else NT (N).Nkind = N_Exception_Declaration
3856 or else NT (N).Nkind = N_Free_Statement
3857 or else NT (N).Nkind = N_Mod_Clause
3858 or else NT (N).Nkind = N_Modular_Type_Definition
3859 or else NT (N).Nkind = N_Number_Declaration
3860 or else NT (N).Nkind = N_Object_Declaration
3861 or else NT (N).Nkind = N_Parameter_Specification
3862 or else NT (N).Nkind = N_Pragma_Argument_Association
3863 or else NT (N).Nkind = N_Qualified_Expression
3864 or else NT (N).Nkind = N_Raise_Statement
3865 or else NT (N).Nkind = N_Return_Statement
3866 or else NT (N).Nkind = N_Type_Conversion
3867 or else NT (N).Nkind = N_Unchecked_Expression
3868 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
3869 Set_Node3_With_Parent (N, Val);
3872 procedure Set_Expressions
3873 (N : Node_Id; Val : List_Id) is
3875 pragma Assert (False
3876 or else NT (N).Nkind = N_Aggregate
3877 or else NT (N).Nkind = N_Attribute_Reference
3878 or else NT (N).Nkind = N_Conditional_Expression
3879 or else NT (N).Nkind = N_Extension_Aggregate
3880 or else NT (N).Nkind = N_Indexed_Component);
3881 Set_List1_With_Parent (N, Val);
3882 end Set_Expressions;
3884 procedure Set_First_Bit
3885 (N : Node_Id; Val : Node_Id) is
3887 pragma Assert (False
3888 or else NT (N).Nkind = N_Component_Clause);
3889 Set_Node3_With_Parent (N, Val);
3892 procedure Set_First_Inlined_Subprogram
3893 (N : Node_Id; Val : Entity_Id) is
3895 pragma Assert (False
3896 or else NT (N).Nkind = N_Compilation_Unit);
3897 Set_Node3 (N, Val); -- semantic field, no parent set
3898 end Set_First_Inlined_Subprogram;
3900 procedure Set_First_Name
3901 (N : Node_Id; Val : Boolean := True) is
3903 pragma Assert (False
3904 or else NT (N).Nkind = N_With_Clause);
3908 procedure Set_First_Named_Actual
3909 (N : Node_Id; Val : Node_Id) is
3911 pragma Assert (False
3912 or else NT (N).Nkind = N_Entry_Call_Statement
3913 or else NT (N).Nkind = N_Function_Call
3914 or else NT (N).Nkind = N_Procedure_Call_Statement);
3915 Set_Node4 (N, Val); -- semantic field, no parent set
3916 end Set_First_Named_Actual;
3918 procedure Set_First_Real_Statement
3919 (N : Node_Id; Val : Node_Id) is
3921 pragma Assert (False
3922 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3923 Set_Node2 (N, Val); -- semantic field, no parent set
3924 end Set_First_Real_Statement;
3926 procedure Set_First_Subtype_Link
3927 (N : Node_Id; Val : Entity_Id) is
3929 pragma Assert (False
3930 or else NT (N).Nkind = N_Freeze_Entity);
3931 Set_Node5 (N, Val); -- semantic field, no parent set
3932 end Set_First_Subtype_Link;
3934 procedure Set_Float_Truncate
3935 (N : Node_Id; Val : Boolean := True) is
3937 pragma Assert (False
3938 or else NT (N).Nkind = N_Type_Conversion);
3939 Set_Flag11 (N, Val);
3940 end Set_Float_Truncate;
3942 procedure Set_Formal_Type_Definition
3943 (N : Node_Id; Val : Node_Id) is
3945 pragma Assert (False
3946 or else NT (N).Nkind = N_Formal_Type_Declaration);
3947 Set_Node3_With_Parent (N, Val);
3948 end Set_Formal_Type_Definition;
3950 procedure Set_Forwards_OK
3951 (N : Node_Id; Val : Boolean := True) is
3953 pragma Assert (False
3954 or else NT (N).Nkind = N_Assignment_Statement);
3956 end Set_Forwards_OK;
3958 procedure Set_From_At_Mod
3959 (N : Node_Id; Val : Boolean := True) is
3961 pragma Assert (False
3962 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3964 end Set_From_At_Mod;
3966 procedure Set_From_Default
3967 (N : Node_Id; Val : Boolean := True) is
3969 pragma Assert (False
3970 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3972 end Set_From_Default;
3974 procedure Set_Generic_Associations
3975 (N : Node_Id; Val : List_Id) is
3977 pragma Assert (False
3978 or else NT (N).Nkind = N_Formal_Package_Declaration
3979 or else NT (N).Nkind = N_Function_Instantiation
3980 or else NT (N).Nkind = N_Package_Instantiation
3981 or else NT (N).Nkind = N_Procedure_Instantiation);
3982 Set_List3_With_Parent (N, Val);
3983 end Set_Generic_Associations;
3985 procedure Set_Generic_Formal_Declarations
3986 (N : Node_Id; Val : List_Id) is
3988 pragma Assert (False
3989 or else NT (N).Nkind = N_Generic_Package_Declaration
3990 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
3991 Set_List2_With_Parent (N, Val);
3992 end Set_Generic_Formal_Declarations;
3994 procedure Set_Generic_Parent
3995 (N : Node_Id; Val : Node_Id) is
3997 pragma Assert (False
3998 or else NT (N).Nkind = N_Function_Specification
3999 or else NT (N).Nkind = N_Package_Specification
4000 or else NT (N).Nkind = N_Procedure_Specification);
4002 end Set_Generic_Parent;
4004 procedure Set_Generic_Parent_Type
4005 (N : Node_Id; Val : Node_Id) is
4007 pragma Assert (False
4008 or else NT (N).Nkind = N_Subtype_Declaration);
4010 end Set_Generic_Parent_Type;
4012 procedure Set_Handled_Statement_Sequence
4013 (N : Node_Id; Val : Node_Id) is
4015 pragma Assert (False
4016 or else NT (N).Nkind = N_Accept_Statement
4017 or else NT (N).Nkind = N_Block_Statement
4018 or else NT (N).Nkind = N_Entry_Body
4019 or else NT (N).Nkind = N_Extended_Return_Statement
4020 or else NT (N).Nkind = N_Package_Body
4021 or else NT (N).Nkind = N_Subprogram_Body
4022 or else NT (N).Nkind = N_Task_Body);
4023 Set_Node4_With_Parent (N, Val);
4024 end Set_Handled_Statement_Sequence;
4026 procedure Set_Handler_List_Entry
4027 (N : Node_Id; Val : Node_Id) is
4029 pragma Assert (False
4030 or else NT (N).Nkind = N_Object_Declaration);
4032 end Set_Handler_List_Entry;
4034 procedure Set_Has_Created_Identifier
4035 (N : Node_Id; Val : Boolean := True) is
4037 pragma Assert (False
4038 or else NT (N).Nkind = N_Block_Statement
4039 or else NT (N).Nkind = N_Loop_Statement);
4040 Set_Flag15 (N, Val);
4041 end Set_Has_Created_Identifier;
4043 procedure Set_Has_Dynamic_Length_Check
4044 (N : Node_Id; Val : Boolean := True) is
4046 Set_Flag10 (N, Val);
4047 end Set_Has_Dynamic_Length_Check;
4049 procedure Set_Has_Dynamic_Range_Check
4050 (N : Node_Id; Val : Boolean := True) is
4052 Set_Flag12 (N, Val);
4053 end Set_Has_Dynamic_Range_Check;
4055 procedure Set_Has_Init_Expression
4056 (N : Node_Id; Val : Boolean := True) is
4058 pragma Assert (False
4059 or else NT (N).Nkind = N_Object_Declaration);
4060 Set_Flag14 (N, Val);
4061 end Set_Has_Init_Expression;
4063 procedure Set_Has_Local_Raise
4064 (N : Node_Id; Val : Boolean := True) is
4066 pragma Assert (False
4067 or else NT (N).Nkind = N_Exception_Handler);
4069 end Set_Has_Local_Raise;
4071 procedure Set_Has_No_Elaboration_Code
4072 (N : Node_Id; Val : Boolean := True) is
4074 pragma Assert (False
4075 or else NT (N).Nkind = N_Compilation_Unit);
4076 Set_Flag17 (N, Val);
4077 end Set_Has_No_Elaboration_Code;
4079 procedure Set_Has_Priority_Pragma
4080 (N : Node_Id; Val : Boolean := True) is
4082 pragma Assert (False
4083 or else NT (N).Nkind = N_Protected_Definition
4084 or else NT (N).Nkind = N_Subprogram_Body
4085 or else NT (N).Nkind = N_Task_Definition);
4087 end Set_Has_Priority_Pragma;
4089 procedure Set_Has_Private_View
4090 (N : Node_Id; Val : Boolean := True) is
4092 pragma Assert (False
4093 or else NT (N).Nkind in N_Op
4094 or else NT (N).Nkind = N_Character_Literal
4095 or else NT (N).Nkind = N_Expanded_Name
4096 or else NT (N).Nkind = N_Identifier
4097 or else NT (N).Nkind = N_Operator_Symbol);
4098 Set_Flag11 (N, Val);
4099 end Set_Has_Private_View;
4101 procedure Set_Has_Self_Reference
4102 (N : Node_Id; Val : Boolean := True) is
4104 pragma Assert (False
4105 or else NT (N).Nkind = N_Aggregate
4106 or else NT (N).Nkind = N_Extension_Aggregate);
4107 Set_Flag13 (N, Val);
4108 end Set_Has_Self_Reference;
4110 procedure Set_Has_Storage_Size_Pragma
4111 (N : Node_Id; Val : Boolean := True) is
4113 pragma Assert (False
4114 or else NT (N).Nkind = N_Task_Definition);
4116 end Set_Has_Storage_Size_Pragma;
4118 procedure Set_Has_Task_Info_Pragma
4119 (N : Node_Id; Val : Boolean := True) is
4121 pragma Assert (False
4122 or else NT (N).Nkind = N_Task_Definition);
4124 end Set_Has_Task_Info_Pragma;
4126 procedure Set_Has_Task_Name_Pragma
4127 (N : Node_Id; Val : Boolean := True) is
4129 pragma Assert (False
4130 or else NT (N).Nkind = N_Task_Definition);
4132 end Set_Has_Task_Name_Pragma;
4134 procedure Set_Has_Wide_Character
4135 (N : Node_Id; Val : Boolean := True) is
4137 pragma Assert (False
4138 or else NT (N).Nkind = N_String_Literal);
4139 Set_Flag11 (N, Val);
4140 end Set_Has_Wide_Character;
4142 procedure Set_Hidden_By_Use_Clause
4143 (N : Node_Id; Val : Elist_Id) is
4145 pragma Assert (False
4146 or else NT (N).Nkind = N_Use_Package_Clause
4147 or else NT (N).Nkind = N_Use_Type_Clause);
4148 Set_Elist4 (N, Val);
4149 end Set_Hidden_By_Use_Clause;
4151 procedure Set_High_Bound
4152 (N : Node_Id; Val : Node_Id) is
4154 pragma Assert (False
4155 or else NT (N).Nkind = N_Range
4156 or else NT (N).Nkind = N_Real_Range_Specification
4157 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4158 Set_Node2_With_Parent (N, Val);
4161 procedure Set_Identifier
4162 (N : Node_Id; Val : Node_Id) is
4164 pragma Assert (False
4165 or else NT (N).Nkind = N_At_Clause
4166 or else NT (N).Nkind = N_Block_Statement
4167 or else NT (N).Nkind = N_Designator
4168 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4169 or else NT (N).Nkind = N_Label
4170 or else NT (N).Nkind = N_Loop_Statement
4171 or else NT (N).Nkind = N_Record_Representation_Clause
4172 or else NT (N).Nkind = N_Subprogram_Info);
4173 Set_Node1_With_Parent (N, Val);
4176 procedure Set_Implicit_With
4177 (N : Node_Id; Val : Boolean := True) is
4179 pragma Assert (False
4180 or else NT (N).Nkind = N_With_Clause);
4181 Set_Flag16 (N, Val);
4182 end Set_Implicit_With;
4184 procedure Set_Interface_List
4185 (N : Node_Id; Val : List_Id) is
4187 pragma Assert (False
4188 or else NT (N).Nkind = N_Derived_Type_Definition
4189 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4190 or else NT (N).Nkind = N_Private_Extension_Declaration
4191 or else NT (N).Nkind = N_Protected_Type_Declaration
4192 or else NT (N).Nkind = N_Record_Definition
4193 or else NT (N).Nkind = N_Single_Protected_Declaration
4194 or else NT (N).Nkind = N_Single_Task_Declaration
4195 or else NT (N).Nkind = N_Task_Type_Declaration);
4196 Set_List2_With_Parent (N, Val);
4197 end Set_Interface_List;
4199 procedure Set_Interface_Present
4200 (N : Node_Id; Val : Boolean := True) is
4202 pragma Assert (False
4203 or else NT (N).Nkind = N_Derived_Type_Definition
4204 or else NT (N).Nkind = N_Record_Definition);
4205 Set_Flag16 (N, Val);
4206 end Set_Interface_Present;
4208 procedure Set_In_Present
4209 (N : Node_Id; Val : Boolean := True) is
4211 pragma Assert (False
4212 or else NT (N).Nkind = N_Formal_Object_Declaration
4213 or else NT (N).Nkind = N_Parameter_Specification);
4214 Set_Flag15 (N, Val);
4217 procedure Set_Includes_Infinities
4218 (N : Node_Id; Val : Boolean := True) is
4220 pragma Assert (False
4221 or else NT (N).Nkind = N_Range);
4222 Set_Flag11 (N, Val);
4223 end Set_Includes_Infinities;
4225 procedure Set_Instance_Spec
4226 (N : Node_Id; Val : Node_Id) is
4228 pragma Assert (False
4229 or else NT (N).Nkind = N_Formal_Package_Declaration
4230 or else NT (N).Nkind = N_Function_Instantiation
4231 or else NT (N).Nkind = N_Package_Instantiation
4232 or else NT (N).Nkind = N_Procedure_Instantiation);
4233 Set_Node5 (N, Val); -- semantic field, no Parent set
4234 end Set_Instance_Spec;
4236 procedure Set_Intval
4237 (N : Node_Id; Val : Uint) is
4239 pragma Assert (False
4240 or else NT (N).Nkind = N_Integer_Literal);
4244 procedure Set_Is_Asynchronous_Call_Block
4245 (N : Node_Id; Val : Boolean := True) is
4247 pragma Assert (False
4248 or else NT (N).Nkind = N_Block_Statement);
4250 end Set_Is_Asynchronous_Call_Block;
4252 procedure Set_Is_Coextension
4253 (N : Node_Id; Val : Boolean := True) is
4255 pragma Assert (False
4256 or else NT (N).Nkind = N_Allocator);
4257 Set_Flag18 (N, Val);
4258 end Set_Is_Coextension;
4260 procedure Set_Is_Component_Left_Opnd
4261 (N : Node_Id; Val : Boolean := True) is
4263 pragma Assert (False
4264 or else NT (N).Nkind = N_Op_Concat);
4265 Set_Flag13 (N, Val);
4266 end Set_Is_Component_Left_Opnd;
4268 procedure Set_Is_Component_Right_Opnd
4269 (N : Node_Id; Val : Boolean := True) is
4271 pragma Assert (False
4272 or else NT (N).Nkind = N_Op_Concat);
4273 Set_Flag14 (N, Val);
4274 end Set_Is_Component_Right_Opnd;
4276 procedure Set_Is_Controlling_Actual
4277 (N : Node_Id; Val : Boolean := True) is
4279 pragma Assert (False
4280 or else NT (N).Nkind in N_Subexpr);
4281 Set_Flag16 (N, Val);
4282 end Set_Is_Controlling_Actual;
4284 procedure Set_Is_Entry_Barrier_Function
4285 (N : Node_Id; Val : Boolean := True) is
4287 pragma Assert (False
4288 or else NT (N).Nkind = N_Subprogram_Body);
4290 end Set_Is_Entry_Barrier_Function;
4292 procedure Set_Is_In_Discriminant_Check
4293 (N : Node_Id; Val : Boolean := True) is
4295 pragma Assert (False
4296 or else NT (N).Nkind = N_Selected_Component);
4297 Set_Flag11 (N, Val);
4298 end Set_Is_In_Discriminant_Check;
4300 procedure Set_Is_Machine_Number
4301 (N : Node_Id; Val : Boolean := True) is
4303 pragma Assert (False
4304 or else NT (N).Nkind = N_Real_Literal);
4305 Set_Flag11 (N, Val);
4306 end Set_Is_Machine_Number;
4308 procedure Set_Is_Null_Loop
4309 (N : Node_Id; Val : Boolean := True) is
4311 pragma Assert (False
4312 or else NT (N).Nkind = N_Loop_Statement);
4313 Set_Flag16 (N, Val);
4314 end Set_Is_Null_Loop;
4316 procedure Set_Is_Overloaded
4317 (N : Node_Id; Val : Boolean := True) is
4319 pragma Assert (False
4320 or else NT (N).Nkind in N_Subexpr);
4322 end Set_Is_Overloaded;
4324 procedure Set_Is_Power_Of_2_For_Shift
4325 (N : Node_Id; Val : Boolean := True) is
4327 pragma Assert (False
4328 or else NT (N).Nkind = N_Op_Expon);
4329 Set_Flag13 (N, Val);
4330 end Set_Is_Power_Of_2_For_Shift;
4332 procedure Set_Is_Protected_Subprogram_Body
4333 (N : Node_Id; Val : Boolean := True) is
4335 pragma Assert (False
4336 or else NT (N).Nkind = N_Subprogram_Body);
4338 end Set_Is_Protected_Subprogram_Body;
4340 procedure Set_Is_Static_Coextension
4341 (N : Node_Id; Val : Boolean := True) is
4343 pragma Assert (False
4344 or else NT (N).Nkind = N_Allocator);
4345 Set_Flag14 (N, Val);
4346 end Set_Is_Static_Coextension;
4348 procedure Set_Is_Static_Expression
4349 (N : Node_Id; Val : Boolean := True) is
4351 pragma Assert (False
4352 or else NT (N).Nkind in N_Subexpr);
4354 end Set_Is_Static_Expression;
4356 procedure Set_Is_Subprogram_Descriptor
4357 (N : Node_Id; Val : Boolean := True) is
4359 pragma Assert (False
4360 or else NT (N).Nkind = N_Object_Declaration);
4361 Set_Flag16 (N, Val);
4362 end Set_Is_Subprogram_Descriptor;
4364 procedure Set_Is_Task_Allocation_Block
4365 (N : Node_Id; Val : Boolean := True) is
4367 pragma Assert (False
4368 or else NT (N).Nkind = N_Block_Statement);
4370 end Set_Is_Task_Allocation_Block;
4372 procedure Set_Is_Task_Master
4373 (N : Node_Id; Val : Boolean := True) is
4375 pragma Assert (False
4376 or else NT (N).Nkind = N_Block_Statement
4377 or else NT (N).Nkind = N_Subprogram_Body
4378 or else NT (N).Nkind = N_Task_Body);
4380 end Set_Is_Task_Master;
4382 procedure Set_Iteration_Scheme
4383 (N : Node_Id; Val : Node_Id) is
4385 pragma Assert (False
4386 or else NT (N).Nkind = N_Loop_Statement);
4387 Set_Node2_With_Parent (N, Val);
4388 end Set_Iteration_Scheme;
4391 (N : Node_Id; Val : Entity_Id) is
4393 pragma Assert (False
4394 or else NT (N).Nkind = N_Itype_Reference);
4395 Set_Node1 (N, Val); -- no parent, semantic field
4398 procedure Set_Kill_Range_Check
4399 (N : Node_Id; Val : Boolean := True) is
4401 pragma Assert (False
4402 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4403 Set_Flag11 (N, Val);
4404 end Set_Kill_Range_Check;
4406 procedure Set_Label_Construct
4407 (N : Node_Id; Val : Node_Id) is
4409 pragma Assert (False
4410 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4411 Set_Node2 (N, Val); -- semantic field, no parent set
4412 end Set_Label_Construct;
4414 procedure Set_Last_Bit
4415 (N : Node_Id; Val : Node_Id) is
4417 pragma Assert (False
4418 or else NT (N).Nkind = N_Component_Clause);
4419 Set_Node4_With_Parent (N, Val);
4422 procedure Set_Last_Name
4423 (N : Node_Id; Val : Boolean := True) is
4425 pragma Assert (False
4426 or else NT (N).Nkind = N_With_Clause);
4430 procedure Set_Left_Opnd
4431 (N : Node_Id; Val : Node_Id) is
4433 pragma Assert (False
4434 or else NT (N).Nkind = N_And_Then
4435 or else NT (N).Nkind = N_In
4436 or else NT (N).Nkind = N_Not_In
4437 or else NT (N).Nkind = N_Or_Else
4438 or else NT (N).Nkind in N_Binary_Op);
4439 Set_Node2_With_Parent (N, Val);
4442 procedure Set_Library_Unit
4443 (N : Node_Id; Val : Node_Id) is
4445 pragma Assert (False
4446 or else NT (N).Nkind = N_Compilation_Unit
4447 or else NT (N).Nkind = N_Package_Body_Stub
4448 or else NT (N).Nkind = N_Protected_Body_Stub
4449 or else NT (N).Nkind = N_Subprogram_Body_Stub
4450 or else NT (N).Nkind = N_Task_Body_Stub
4451 or else NT (N).Nkind = N_With_Clause);
4452 Set_Node4 (N, Val); -- semantic field, no parent set
4453 end Set_Library_Unit;
4455 procedure Set_Limited_View_Installed
4456 (N : Node_Id; Val : Boolean := True) is
4458 pragma Assert (False
4459 or else NT (N).Nkind = N_Package_Specification
4460 or else NT (N).Nkind = N_With_Clause);
4461 Set_Flag18 (N, Val);
4462 end Set_Limited_View_Installed;
4464 procedure Set_Limited_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_Formal_Derived_Type_Definition
4470 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4471 or else NT (N).Nkind = N_Private_Extension_Declaration
4472 or else NT (N).Nkind = N_Private_Type_Declaration
4473 or else NT (N).Nkind = N_Record_Definition
4474 or else NT (N).Nkind = N_With_Clause);
4475 Set_Flag17 (N, Val);
4476 end Set_Limited_Present;
4478 procedure Set_Literals
4479 (N : Node_Id; Val : List_Id) is
4481 pragma Assert (False
4482 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4483 Set_List1_With_Parent (N, Val);
4486 procedure Set_Local_Raise_Not_OK
4487 (N : Node_Id; Val : Boolean := True) is
4489 pragma Assert (False
4490 or else NT (N).Nkind = N_Exception_Handler);
4492 end Set_Local_Raise_Not_OK;
4494 procedure Set_Local_Raise_Statements
4495 (N : Node_Id; Val : Elist_Id) is
4497 pragma Assert (False
4498 or else NT (N).Nkind = N_Exception_Handler);
4499 Set_Elist1 (N, Val);
4500 end Set_Local_Raise_Statements;
4502 procedure Set_Loop_Actions
4503 (N : Node_Id; Val : List_Id) is
4505 pragma Assert (False
4506 or else NT (N).Nkind = N_Component_Association);
4507 Set_List2 (N, Val); -- semantic field, no parent set
4508 end Set_Loop_Actions;
4510 procedure Set_Loop_Parameter_Specification
4511 (N : Node_Id; Val : Node_Id) is
4513 pragma Assert (False
4514 or else NT (N).Nkind = N_Iteration_Scheme);
4515 Set_Node4_With_Parent (N, Val);
4516 end Set_Loop_Parameter_Specification;
4518 procedure Set_Low_Bound
4519 (N : Node_Id; Val : Node_Id) is
4521 pragma Assert (False
4522 or else NT (N).Nkind = N_Range
4523 or else NT (N).Nkind = N_Real_Range_Specification
4524 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4525 Set_Node1_With_Parent (N, Val);
4528 procedure Set_Mod_Clause
4529 (N : Node_Id; Val : Node_Id) is
4531 pragma Assert (False
4532 or else NT (N).Nkind = N_Record_Representation_Clause);
4533 Set_Node2_With_Parent (N, Val);
4536 procedure Set_More_Ids
4537 (N : Node_Id; Val : Boolean := True) is
4539 pragma Assert (False
4540 or else NT (N).Nkind = N_Component_Declaration
4541 or else NT (N).Nkind = N_Discriminant_Specification
4542 or else NT (N).Nkind = N_Exception_Declaration
4543 or else NT (N).Nkind = N_Formal_Object_Declaration
4544 or else NT (N).Nkind = N_Number_Declaration
4545 or else NT (N).Nkind = N_Object_Declaration
4546 or else NT (N).Nkind = N_Parameter_Specification);
4550 procedure Set_Must_Be_Byte_Aligned
4551 (N : Node_Id; Val : Boolean := True) is
4553 pragma Assert (False
4554 or else NT (N).Nkind = N_Attribute_Reference);
4555 Set_Flag14 (N, Val);
4556 end Set_Must_Be_Byte_Aligned;
4558 procedure Set_Must_Not_Freeze
4559 (N : Node_Id; Val : Boolean := True) is
4561 pragma Assert (False
4562 or else NT (N).Nkind = N_Subtype_Indication
4563 or else NT (N).Nkind in N_Subexpr);
4565 end Set_Must_Not_Freeze;
4567 procedure Set_Must_Not_Override
4568 (N : Node_Id; Val : Boolean := True) is
4570 pragma Assert (False
4571 or else NT (N).Nkind = N_Entry_Declaration
4572 or else NT (N).Nkind = N_Function_Instantiation
4573 or else NT (N).Nkind = N_Function_Specification
4574 or else NT (N).Nkind = N_Procedure_Instantiation
4575 or else NT (N).Nkind = N_Procedure_Specification);
4576 Set_Flag15 (N, Val);
4577 end Set_Must_Not_Override;
4579 procedure Set_Must_Override
4580 (N : Node_Id; Val : Boolean := True) is
4582 pragma Assert (False
4583 or else NT (N).Nkind = N_Entry_Declaration
4584 or else NT (N).Nkind = N_Function_Instantiation
4585 or else NT (N).Nkind = N_Function_Specification
4586 or else NT (N).Nkind = N_Procedure_Instantiation
4587 or else NT (N).Nkind = N_Procedure_Specification);
4588 Set_Flag14 (N, Val);
4589 end Set_Must_Override;
4592 (N : Node_Id; Val : Node_Id) is
4594 pragma Assert (False
4595 or else NT (N).Nkind = N_Assignment_Statement
4596 or else NT (N).Nkind = N_Attribute_Definition_Clause
4597 or else NT (N).Nkind = N_Defining_Program_Unit_Name
4598 or else NT (N).Nkind = N_Designator
4599 or else NT (N).Nkind = N_Entry_Call_Statement
4600 or else NT (N).Nkind = N_Exception_Renaming_Declaration
4601 or else NT (N).Nkind = N_Exit_Statement
4602 or else NT (N).Nkind = N_Formal_Package_Declaration
4603 or else NT (N).Nkind = N_Function_Call
4604 or else NT (N).Nkind = N_Function_Instantiation
4605 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4606 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4607 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4608 or else NT (N).Nkind = N_Goto_Statement
4609 or else NT (N).Nkind = N_Object_Renaming_Declaration
4610 or else NT (N).Nkind = N_Package_Instantiation
4611 or else NT (N).Nkind = N_Package_Renaming_Declaration
4612 or else NT (N).Nkind = N_Procedure_Call_Statement
4613 or else NT (N).Nkind = N_Procedure_Instantiation
4614 or else NT (N).Nkind = N_Raise_Statement
4615 or else NT (N).Nkind = N_Requeue_Statement
4616 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
4617 or else NT (N).Nkind = N_Subunit
4618 or else NT (N).Nkind = N_Variant_Part
4619 or else NT (N).Nkind = N_With_Clause);
4620 Set_Node2_With_Parent (N, Val);
4624 (N : Node_Id; Val : List_Id) is
4626 pragma Assert (False
4627 or else NT (N).Nkind = N_Abort_Statement
4628 or else NT (N).Nkind = N_Use_Package_Clause);
4629 Set_List2_With_Parent (N, Val);
4632 procedure Set_Next_Entity
4633 (N : Node_Id; Val : Node_Id) is
4635 pragma Assert (False
4636 or else NT (N).Nkind = N_Defining_Character_Literal
4637 or else NT (N).Nkind = N_Defining_Identifier
4638 or else NT (N).Nkind = N_Defining_Operator_Symbol);
4639 Set_Node2 (N, Val); -- semantic field, no parent set
4640 end Set_Next_Entity;
4642 procedure Set_Next_Named_Actual
4643 (N : Node_Id; Val : Node_Id) is
4645 pragma Assert (False
4646 or else NT (N).Nkind = N_Parameter_Association);
4647 Set_Node4 (N, Val); -- semantic field, no parent set
4648 end Set_Next_Named_Actual;
4650 procedure Set_Next_Rep_Item
4651 (N : Node_Id; Val : Node_Id) is
4653 pragma Assert (False
4654 or else NT (N).Nkind = N_Attribute_Definition_Clause
4655 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4656 or else NT (N).Nkind = N_Pragma
4657 or else NT (N).Nkind = N_Record_Representation_Clause);
4658 Set_Node5 (N, Val); -- semantic field, no parent set
4659 end Set_Next_Rep_Item;
4661 procedure Set_Next_Use_Clause
4662 (N : Node_Id; Val : Node_Id) is
4664 pragma Assert (False
4665 or else NT (N).Nkind = N_Use_Package_Clause
4666 or else NT (N).Nkind = N_Use_Type_Clause);
4667 Set_Node3 (N, Val); -- semantic field, no parent set
4668 end Set_Next_Use_Clause;
4670 procedure Set_No_Ctrl_Actions
4671 (N : Node_Id; Val : Boolean := True) is
4673 pragma Assert (False
4674 or else NT (N).Nkind = N_Assignment_Statement);
4676 end Set_No_Ctrl_Actions;
4678 procedure Set_No_Elaboration_Check
4679 (N : Node_Id; Val : Boolean := True) is
4681 pragma Assert (False
4682 or else NT (N).Nkind = N_Function_Call
4683 or else NT (N).Nkind = N_Procedure_Call_Statement);
4684 Set_Flag14 (N, Val);
4685 end Set_No_Elaboration_Check;
4687 procedure Set_No_Entities_Ref_In_Spec
4688 (N : Node_Id; Val : Boolean := True) is
4690 pragma Assert (False
4691 or else NT (N).Nkind = N_With_Clause);
4693 end Set_No_Entities_Ref_In_Spec;
4695 procedure Set_No_Initialization
4696 (N : Node_Id; Val : Boolean := True) is
4698 pragma Assert (False
4699 or else NT (N).Nkind = N_Allocator
4700 or else NT (N).Nkind = N_Object_Declaration);
4701 Set_Flag13 (N, Val);
4702 end Set_No_Initialization;
4704 procedure Set_No_Truncation
4705 (N : Node_Id; Val : Boolean := True) is
4707 pragma Assert (False
4708 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4709 Set_Flag17 (N, Val);
4710 end Set_No_Truncation;
4712 procedure Set_Null_Present
4713 (N : Node_Id; Val : Boolean := True) is
4715 pragma Assert (False
4716 or else NT (N).Nkind = N_Component_List
4717 or else NT (N).Nkind = N_Procedure_Specification
4718 or else NT (N).Nkind = N_Record_Definition);
4719 Set_Flag13 (N, Val);
4720 end Set_Null_Present;
4722 procedure Set_Null_Exclusion_Present
4723 (N : Node_Id; Val : Boolean := True) is
4725 pragma Assert (False
4726 or else NT (N).Nkind = N_Access_Definition
4727 or else NT (N).Nkind = N_Access_Function_Definition
4728 or else NT (N).Nkind = N_Access_Procedure_Definition
4729 or else NT (N).Nkind = N_Access_To_Object_Definition
4730 or else NT (N).Nkind = N_Allocator
4731 or else NT (N).Nkind = N_Component_Definition
4732 or else NT (N).Nkind = N_Derived_Type_Definition
4733 or else NT (N).Nkind = N_Discriminant_Specification
4734 or else NT (N).Nkind = N_Formal_Object_Declaration
4735 or else NT (N).Nkind = N_Function_Specification
4736 or else NT (N).Nkind = N_Object_Declaration
4737 or else NT (N).Nkind = N_Object_Renaming_Declaration
4738 or else NT (N).Nkind = N_Parameter_Specification
4739 or else NT (N).Nkind = N_Subtype_Declaration);
4740 Set_Flag11 (N, Val);
4741 end Set_Null_Exclusion_Present;
4743 procedure Set_Null_Record_Present
4744 (N : Node_Id; Val : Boolean := True) is
4746 pragma Assert (False
4747 or else NT (N).Nkind = N_Aggregate
4748 or else NT (N).Nkind = N_Extension_Aggregate);
4749 Set_Flag17 (N, Val);
4750 end Set_Null_Record_Present;
4752 procedure Set_Object_Definition
4753 (N : Node_Id; Val : Node_Id) is
4755 pragma Assert (False
4756 or else NT (N).Nkind = N_Object_Declaration);
4757 Set_Node4_With_Parent (N, Val);
4758 end Set_Object_Definition;
4760 procedure Set_Original_Discriminant
4761 (N : Node_Id; Val : Node_Id) is
4763 pragma Assert (False
4764 or else NT (N).Nkind = N_Identifier);
4765 Set_Node2 (N, Val); -- semantic field, no parent set
4766 end Set_Original_Discriminant;
4768 procedure Set_Original_Entity
4769 (N : Node_Id; Val : Entity_Id) is
4771 pragma Assert (False
4772 or else NT (N).Nkind = N_Integer_Literal
4773 or else NT (N).Nkind = N_Real_Literal);
4774 Set_Node2 (N, Val); -- semantic field, no parent set
4775 end Set_Original_Entity;
4777 procedure Set_Others_Discrete_Choices
4778 (N : Node_Id; Val : List_Id) is
4780 pragma Assert (False
4781 or else NT (N).Nkind = N_Others_Choice);
4782 Set_List1_With_Parent (N, Val);
4783 end Set_Others_Discrete_Choices;
4785 procedure Set_Out_Present
4786 (N : Node_Id; Val : Boolean := True) is
4788 pragma Assert (False
4789 or else NT (N).Nkind = N_Formal_Object_Declaration
4790 or else NT (N).Nkind = N_Parameter_Specification);
4791 Set_Flag17 (N, Val);
4792 end Set_Out_Present;
4794 procedure Set_Parameter_Associations
4795 (N : Node_Id; Val : List_Id) is
4797 pragma Assert (False
4798 or else NT (N).Nkind = N_Entry_Call_Statement
4799 or else NT (N).Nkind = N_Function_Call
4800 or else NT (N).Nkind = N_Procedure_Call_Statement);
4801 Set_List3_With_Parent (N, Val);
4802 end Set_Parameter_Associations;
4804 procedure Set_Parameter_List_Truncated
4805 (N : Node_Id; Val : Boolean := True) is
4807 pragma Assert (False
4808 or else NT (N).Nkind = N_Function_Call
4809 or else NT (N).Nkind = N_Procedure_Call_Statement);
4810 Set_Flag17 (N, Val);
4811 end Set_Parameter_List_Truncated;
4813 procedure Set_Parameter_Specifications
4814 (N : Node_Id; Val : List_Id) is
4816 pragma Assert (False
4817 or else NT (N).Nkind = N_Accept_Statement
4818 or else NT (N).Nkind = N_Access_Function_Definition
4819 or else NT (N).Nkind = N_Access_Procedure_Definition
4820 or else NT (N).Nkind = N_Entry_Body_Formal_Part
4821 or else NT (N).Nkind = N_Entry_Declaration
4822 or else NT (N).Nkind = N_Function_Specification
4823 or else NT (N).Nkind = N_Procedure_Specification);
4824 Set_List3_With_Parent (N, Val);
4825 end Set_Parameter_Specifications;
4827 procedure Set_Parameter_Type
4828 (N : Node_Id; Val : Node_Id) is
4830 pragma Assert (False
4831 or else NT (N).Nkind = N_Parameter_Specification);
4832 Set_Node2_With_Parent (N, Val);
4833 end Set_Parameter_Type;
4835 procedure Set_Parent_Spec
4836 (N : Node_Id; Val : Node_Id) is
4838 pragma Assert (False
4839 or else NT (N).Nkind = N_Function_Instantiation
4840 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4841 or else NT (N).Nkind = N_Generic_Package_Declaration
4842 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4843 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4844 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
4845 or else NT (N).Nkind = N_Package_Declaration
4846 or else NT (N).Nkind = N_Package_Instantiation
4847 or else NT (N).Nkind = N_Package_Renaming_Declaration
4848 or else NT (N).Nkind = N_Procedure_Instantiation
4849 or else NT (N).Nkind = N_Subprogram_Declaration
4850 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4851 Set_Node4 (N, Val); -- semantic field, no parent set
4852 end Set_Parent_Spec;
4854 procedure Set_Position
4855 (N : Node_Id; Val : Node_Id) is
4857 pragma Assert (False
4858 or else NT (N).Nkind = N_Component_Clause);
4859 Set_Node2_With_Parent (N, Val);
4862 procedure Set_Pragma_Argument_Associations
4863 (N : Node_Id; Val : List_Id) is
4865 pragma Assert (False
4866 or else NT (N).Nkind = N_Pragma);
4867 Set_List2_With_Parent (N, Val);
4868 end Set_Pragma_Argument_Associations;
4870 procedure Set_Pragmas_After
4871 (N : Node_Id; Val : List_Id) is
4873 pragma Assert (False
4874 or else NT (N).Nkind = N_Compilation_Unit_Aux
4875 or else NT (N).Nkind = N_Terminate_Alternative);
4876 Set_List5_With_Parent (N, Val);
4877 end Set_Pragmas_After;
4879 procedure Set_Pragmas_Before
4880 (N : Node_Id; Val : List_Id) is
4882 pragma Assert (False
4883 or else NT (N).Nkind = N_Accept_Alternative
4884 or else NT (N).Nkind = N_Delay_Alternative
4885 or else NT (N).Nkind = N_Entry_Call_Alternative
4886 or else NT (N).Nkind = N_Mod_Clause
4887 or else NT (N).Nkind = N_Terminate_Alternative
4888 or else NT (N).Nkind = N_Triggering_Alternative);
4889 Set_List4_With_Parent (N, Val);
4890 end Set_Pragmas_Before;
4892 procedure Set_Prefix
4893 (N : Node_Id; Val : Node_Id) is
4895 pragma Assert (False
4896 or else NT (N).Nkind = N_Attribute_Reference
4897 or else NT (N).Nkind = N_Expanded_Name
4898 or else NT (N).Nkind = N_Explicit_Dereference
4899 or else NT (N).Nkind = N_Indexed_Component
4900 or else NT (N).Nkind = N_Reference
4901 or else NT (N).Nkind = N_Selected_Component
4902 or else NT (N).Nkind = N_Slice);
4903 Set_Node3_With_Parent (N, Val);
4906 procedure Set_Present_Expr
4907 (N : Node_Id; Val : Uint) is
4909 pragma Assert (False
4910 or else NT (N).Nkind = N_Variant);
4912 end Set_Present_Expr;
4914 procedure Set_Prev_Ids
4915 (N : Node_Id; Val : Boolean := True) is
4917 pragma Assert (False
4918 or else NT (N).Nkind = N_Component_Declaration
4919 or else NT (N).Nkind = N_Discriminant_Specification
4920 or else NT (N).Nkind = N_Exception_Declaration
4921 or else NT (N).Nkind = N_Formal_Object_Declaration
4922 or else NT (N).Nkind = N_Number_Declaration
4923 or else NT (N).Nkind = N_Object_Declaration
4924 or else NT (N).Nkind = N_Parameter_Specification);
4928 procedure Set_Print_In_Hex
4929 (N : Node_Id; Val : Boolean := True) is
4931 pragma Assert (False
4932 or else NT (N).Nkind = N_Integer_Literal);
4933 Set_Flag13 (N, Val);
4934 end Set_Print_In_Hex;
4936 procedure Set_Private_Declarations
4937 (N : Node_Id; Val : List_Id) is
4939 pragma Assert (False
4940 or else NT (N).Nkind = N_Package_Specification
4941 or else NT (N).Nkind = N_Protected_Definition
4942 or else NT (N).Nkind = N_Task_Definition);
4943 Set_List3_With_Parent (N, Val);
4944 end Set_Private_Declarations;
4946 procedure Set_Private_Present
4947 (N : Node_Id; Val : Boolean := True) is
4949 pragma Assert (False
4950 or else NT (N).Nkind = N_Compilation_Unit
4951 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4952 or else NT (N).Nkind = N_With_Clause);
4953 Set_Flag15 (N, Val);
4954 end Set_Private_Present;
4956 procedure Set_Procedure_To_Call
4957 (N : Node_Id; Val : Node_Id) is
4959 pragma Assert (False
4960 or else NT (N).Nkind = N_Allocator
4961 or else NT (N).Nkind = N_Extended_Return_Statement
4962 or else NT (N).Nkind = N_Free_Statement
4963 or else NT (N).Nkind = N_Return_Statement);
4964 Set_Node2 (N, Val); -- semantic field, no parent set
4965 end Set_Procedure_To_Call;
4967 procedure Set_Proper_Body
4968 (N : Node_Id; Val : Node_Id) is
4970 pragma Assert (False
4971 or else NT (N).Nkind = N_Subunit);
4972 Set_Node1_With_Parent (N, Val);
4973 end Set_Proper_Body;
4975 procedure Set_Protected_Definition
4976 (N : Node_Id; Val : Node_Id) is
4978 pragma Assert (False
4979 or else NT (N).Nkind = N_Protected_Type_Declaration
4980 or else NT (N).Nkind = N_Single_Protected_Declaration);
4981 Set_Node3_With_Parent (N, Val);
4982 end Set_Protected_Definition;
4984 procedure Set_Protected_Present
4985 (N : Node_Id; Val : Boolean := True) is
4987 pragma Assert (False
4988 or else NT (N).Nkind = N_Access_Function_Definition
4989 or else NT (N).Nkind = N_Access_Procedure_Definition
4990 or else NT (N).Nkind = N_Derived_Type_Definition
4991 or else NT (N).Nkind = N_Record_Definition);
4993 end Set_Protected_Present;
4995 procedure Set_Raises_Constraint_Error
4996 (N : Node_Id; Val : Boolean := True) is
4998 pragma Assert (False
4999 or else NT (N).Nkind in N_Subexpr);
5001 end Set_Raises_Constraint_Error;
5003 procedure Set_Range_Constraint
5004 (N : Node_Id; Val : Node_Id) is
5006 pragma Assert (False
5007 or else NT (N).Nkind = N_Delta_Constraint
5008 or else NT (N).Nkind = N_Digits_Constraint);
5009 Set_Node4_With_Parent (N, Val);
5010 end Set_Range_Constraint;
5012 procedure Set_Range_Expression
5013 (N : Node_Id; Val : Node_Id) is
5015 pragma Assert (False
5016 or else NT (N).Nkind = N_Range_Constraint);
5017 Set_Node4_With_Parent (N, Val);
5018 end Set_Range_Expression;
5020 procedure Set_Real_Range_Specification
5021 (N : Node_Id; Val : Node_Id) is
5023 pragma Assert (False
5024 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5025 or else NT (N).Nkind = N_Floating_Point_Definition
5026 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5027 Set_Node4_With_Parent (N, Val);
5028 end Set_Real_Range_Specification;
5030 procedure Set_Realval
5031 (N : Node_Id; Val : Ureal) is
5033 pragma Assert (False
5034 or else NT (N).Nkind = N_Real_Literal);
5035 Set_Ureal3 (N, Val);
5038 procedure Set_Reason
5039 (N : Node_Id; Val : Uint) is
5041 pragma Assert (False
5042 or else NT (N).Nkind = N_Raise_Constraint_Error
5043 or else NT (N).Nkind = N_Raise_Program_Error
5044 or else NT (N).Nkind = N_Raise_Storage_Error);
5048 procedure Set_Record_Extension_Part
5049 (N : Node_Id; Val : Node_Id) is
5051 pragma Assert (False
5052 or else NT (N).Nkind = N_Derived_Type_Definition);
5053 Set_Node3_With_Parent (N, Val);
5054 end Set_Record_Extension_Part;
5056 procedure Set_Redundant_Use
5057 (N : Node_Id; Val : Boolean := True) is
5059 pragma Assert (False
5060 or else NT (N).Nkind = N_Attribute_Reference
5061 or else NT (N).Nkind = N_Expanded_Name
5062 or else NT (N).Nkind = N_Identifier);
5063 Set_Flag13 (N, Val);
5064 end Set_Redundant_Use;
5066 procedure Set_Renaming_Exception
5067 (N : Node_Id; Val : Node_Id) is
5069 pragma Assert (False
5070 or else NT (N).Nkind = N_Exception_Declaration);
5072 end Set_Renaming_Exception;
5074 procedure Set_Result_Definition
5075 (N : Node_Id; Val : Node_Id) is
5077 pragma Assert (False
5078 or else NT (N).Nkind = N_Access_Function_Definition
5079 or else NT (N).Nkind = N_Function_Specification);
5080 Set_Node4_With_Parent (N, Val);
5081 end Set_Result_Definition;
5083 procedure Set_Return_Object_Declarations
5084 (N : Node_Id; Val : List_Id) is
5086 pragma Assert (False
5087 or else NT (N).Nkind = N_Extended_Return_Statement);
5088 Set_List3_With_Parent (N, Val);
5089 end Set_Return_Object_Declarations;
5091 procedure Set_Return_Statement_Entity
5092 (N : Node_Id; Val : Node_Id) is
5094 pragma Assert (False
5095 or else NT (N).Nkind = N_Extended_Return_Statement
5096 or else NT (N).Nkind = N_Return_Statement);
5097 Set_Node5 (N, Val); -- semantic field, no parent set
5098 end Set_Return_Statement_Entity;
5100 procedure Set_Reverse_Present
5101 (N : Node_Id; Val : Boolean := True) is
5103 pragma Assert (False
5104 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5105 Set_Flag15 (N, Val);
5106 end Set_Reverse_Present;
5108 procedure Set_Right_Opnd
5109 (N : Node_Id; Val : Node_Id) is
5111 pragma Assert (False
5112 or else NT (N).Nkind in N_Op
5113 or else NT (N).Nkind = N_And_Then
5114 or else NT (N).Nkind = N_In
5115 or else NT (N).Nkind = N_Not_In
5116 or else NT (N).Nkind = N_Or_Else);
5117 Set_Node3_With_Parent (N, Val);
5120 procedure Set_Rounded_Result
5121 (N : Node_Id; Val : Boolean := True) is
5123 pragma Assert (False
5124 or else NT (N).Nkind = N_Op_Divide
5125 or else NT (N).Nkind = N_Op_Multiply
5126 or else NT (N).Nkind = N_Type_Conversion);
5127 Set_Flag18 (N, Val);
5128 end Set_Rounded_Result;
5131 (N : Node_Id; Val : Node_Id) is
5133 pragma Assert (False
5134 or else NT (N).Nkind = N_Defining_Character_Literal
5135 or else NT (N).Nkind = N_Defining_Identifier
5136 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5137 Set_Node3 (N, Val); -- semantic field, no parent set
5140 procedure Set_Select_Alternatives
5141 (N : Node_Id; Val : List_Id) is
5143 pragma Assert (False
5144 or else NT (N).Nkind = N_Selective_Accept);
5145 Set_List1_With_Parent (N, Val);
5146 end Set_Select_Alternatives;
5148 procedure Set_Selector_Name
5149 (N : Node_Id; Val : Node_Id) is
5151 pragma Assert (False
5152 or else NT (N).Nkind = N_Expanded_Name
5153 or else NT (N).Nkind = N_Generic_Association
5154 or else NT (N).Nkind = N_Parameter_Association
5155 or else NT (N).Nkind = N_Selected_Component);
5156 Set_Node2_With_Parent (N, Val);
5157 end Set_Selector_Name;
5159 procedure Set_Selector_Names
5160 (N : Node_Id; Val : List_Id) is
5162 pragma Assert (False
5163 or else NT (N).Nkind = N_Discriminant_Association);
5164 Set_List1_With_Parent (N, Val);
5165 end Set_Selector_Names;
5167 procedure Set_Shift_Count_OK
5168 (N : Node_Id; Val : Boolean := True) is
5170 pragma Assert (False
5171 or else NT (N).Nkind = N_Op_Rotate_Left
5172 or else NT (N).Nkind = N_Op_Rotate_Right
5173 or else NT (N).Nkind = N_Op_Shift_Left
5174 or else NT (N).Nkind = N_Op_Shift_Right
5175 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5177 end Set_Shift_Count_OK;
5179 procedure Set_Source_Type
5180 (N : Node_Id; Val : Entity_Id) is
5182 pragma Assert (False
5183 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5184 Set_Node1 (N, Val); -- semantic field, no parent set
5185 end Set_Source_Type;
5187 procedure Set_Specification
5188 (N : Node_Id; Val : Node_Id) is
5190 pragma Assert (False
5191 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5192 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5193 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5194 or else NT (N).Nkind = N_Generic_Package_Declaration
5195 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5196 or else NT (N).Nkind = N_Package_Declaration
5197 or else NT (N).Nkind = N_Subprogram_Body
5198 or else NT (N).Nkind = N_Subprogram_Body_Stub
5199 or else NT (N).Nkind = N_Subprogram_Declaration
5200 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5201 Set_Node1_With_Parent (N, Val);
5202 end Set_Specification;
5204 procedure Set_Statements
5205 (N : Node_Id; Val : List_Id) is
5207 pragma Assert (False
5208 or else NT (N).Nkind = N_Abortable_Part
5209 or else NT (N).Nkind = N_Accept_Alternative
5210 or else NT (N).Nkind = N_Case_Statement_Alternative
5211 or else NT (N).Nkind = N_Delay_Alternative
5212 or else NT (N).Nkind = N_Entry_Call_Alternative
5213 or else NT (N).Nkind = N_Exception_Handler
5214 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5215 or else NT (N).Nkind = N_Loop_Statement
5216 or else NT (N).Nkind = N_Triggering_Alternative);
5217 Set_List3_With_Parent (N, Val);
5220 procedure Set_Static_Processing_OK
5221 (N : Node_Id; Val : Boolean) is
5223 pragma Assert (False
5224 or else NT (N).Nkind = N_Aggregate);
5226 end Set_Static_Processing_OK;
5228 procedure Set_Storage_Pool
5229 (N : Node_Id; Val : Node_Id) is
5231 pragma Assert (False
5232 or else NT (N).Nkind = N_Allocator
5233 or else NT (N).Nkind = N_Extended_Return_Statement
5234 or else NT (N).Nkind = N_Free_Statement
5235 or else NT (N).Nkind = N_Return_Statement);
5236 Set_Node1 (N, Val); -- semantic field, no parent set
5237 end Set_Storage_Pool;
5239 procedure Set_Strval
5240 (N : Node_Id; Val : String_Id) is
5242 pragma Assert (False
5243 or else NT (N).Nkind = N_Operator_Symbol
5244 or else NT (N).Nkind = N_String_Literal);
5248 procedure Set_Subtype_Indication
5249 (N : Node_Id; Val : Node_Id) is
5251 pragma Assert (False
5252 or else NT (N).Nkind = N_Access_To_Object_Definition
5253 or else NT (N).Nkind = N_Component_Definition
5254 or else NT (N).Nkind = N_Derived_Type_Definition
5255 or else NT (N).Nkind = N_Private_Extension_Declaration
5256 or else NT (N).Nkind = N_Subtype_Declaration);
5257 Set_Node5_With_Parent (N, Val);
5258 end Set_Subtype_Indication;
5260 procedure Set_Subtype_Mark
5261 (N : Node_Id; Val : Node_Id) is
5263 pragma Assert (False
5264 or else NT (N).Nkind = N_Access_Definition
5265 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5266 or else NT (N).Nkind = N_Formal_Object_Declaration
5267 or else NT (N).Nkind = N_Object_Renaming_Declaration
5268 or else NT (N).Nkind = N_Qualified_Expression
5269 or else NT (N).Nkind = N_Subtype_Indication
5270 or else NT (N).Nkind = N_Type_Conversion
5271 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5272 Set_Node4_With_Parent (N, Val);
5273 end Set_Subtype_Mark;
5275 procedure Set_Subtype_Marks
5276 (N : Node_Id; Val : List_Id) is
5278 pragma Assert (False
5279 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5280 or else NT (N).Nkind = N_Use_Type_Clause);
5281 Set_List2_With_Parent (N, Val);
5282 end Set_Subtype_Marks;
5284 procedure Set_Synchronized_Present
5285 (N : Node_Id; Val : Boolean := True) is
5287 pragma Assert (False
5288 or else NT (N).Nkind = N_Derived_Type_Definition
5289 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5290 or else NT (N).Nkind = N_Private_Extension_Declaration
5291 or else NT (N).Nkind = N_Record_Definition);
5293 end Set_Synchronized_Present;
5295 procedure Set_Tagged_Present
5296 (N : Node_Id; Val : Boolean := True) is
5298 pragma Assert (False
5299 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5300 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5301 or else NT (N).Nkind = N_Private_Type_Declaration
5302 or else NT (N).Nkind = N_Record_Definition);
5303 Set_Flag15 (N, Val);
5304 end Set_Tagged_Present;
5306 procedure Set_Target_Type
5307 (N : Node_Id; Val : Entity_Id) is
5309 pragma Assert (False
5310 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5311 Set_Node2 (N, Val); -- semantic field, no parent set
5312 end Set_Target_Type;
5314 procedure Set_Task_Definition
5315 (N : Node_Id; Val : Node_Id) is
5317 pragma Assert (False
5318 or else NT (N).Nkind = N_Single_Task_Declaration
5319 or else NT (N).Nkind = N_Task_Type_Declaration);
5320 Set_Node3_With_Parent (N, Val);
5321 end Set_Task_Definition;
5323 procedure Set_Task_Present
5324 (N : Node_Id; Val : Boolean := True) is
5326 pragma Assert (False
5327 or else NT (N).Nkind = N_Derived_Type_Definition
5328 or else NT (N).Nkind = N_Record_Definition);
5330 end Set_Task_Present;
5332 procedure Set_Then_Actions
5333 (N : Node_Id; Val : List_Id) is
5335 pragma Assert (False
5336 or else NT (N).Nkind = N_Conditional_Expression);
5337 Set_List2 (N, Val); -- semantic field, no parent set
5338 end Set_Then_Actions;
5340 procedure Set_Then_Statements
5341 (N : Node_Id; Val : List_Id) is
5343 pragma Assert (False
5344 or else NT (N).Nkind = N_Elsif_Part
5345 or else NT (N).Nkind = N_If_Statement);
5346 Set_List2_With_Parent (N, Val);
5347 end Set_Then_Statements;
5349 procedure Set_Treat_Fixed_As_Integer
5350 (N : Node_Id; Val : Boolean := True) is
5352 pragma Assert (False
5353 or else NT (N).Nkind = N_Op_Divide
5354 or else NT (N).Nkind = N_Op_Mod
5355 or else NT (N).Nkind = N_Op_Multiply
5356 or else NT (N).Nkind = N_Op_Rem);
5357 Set_Flag14 (N, Val);
5358 end Set_Treat_Fixed_As_Integer;
5360 procedure Set_Triggering_Alternative
5361 (N : Node_Id; Val : Node_Id) is
5363 pragma Assert (False
5364 or else NT (N).Nkind = N_Asynchronous_Select);
5365 Set_Node1_With_Parent (N, Val);
5366 end Set_Triggering_Alternative;
5368 procedure Set_Triggering_Statement
5369 (N : Node_Id; Val : Node_Id) is
5371 pragma Assert (False
5372 or else NT (N).Nkind = N_Triggering_Alternative);
5373 Set_Node1_With_Parent (N, Val);
5374 end Set_Triggering_Statement;
5376 procedure Set_TSS_Elist
5377 (N : Node_Id; Val : Elist_Id) is
5379 pragma Assert (False
5380 or else NT (N).Nkind = N_Freeze_Entity);
5381 Set_Elist3 (N, Val); -- semantic field, no parent set
5384 procedure Set_Type_Definition
5385 (N : Node_Id; Val : Node_Id) is
5387 pragma Assert (False
5388 or else NT (N).Nkind = N_Full_Type_Declaration);
5389 Set_Node3_With_Parent (N, Val);
5390 end Set_Type_Definition;
5393 (N : Node_Id; Val : Node_Id) is
5395 pragma Assert (False
5396 or else NT (N).Nkind = N_Compilation_Unit);
5397 Set_Node2_With_Parent (N, Val);
5400 procedure Set_Unknown_Discriminants_Present
5401 (N : Node_Id; Val : Boolean := True) is
5403 pragma Assert (False
5404 or else NT (N).Nkind = N_Formal_Type_Declaration
5405 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5406 or else NT (N).Nkind = N_Private_Extension_Declaration
5407 or else NT (N).Nkind = N_Private_Type_Declaration);
5408 Set_Flag13 (N, Val);
5409 end Set_Unknown_Discriminants_Present;
5411 procedure Set_Unreferenced_In_Spec
5412 (N : Node_Id; Val : Boolean := True) is
5414 pragma Assert (False
5415 or else NT (N).Nkind = N_With_Clause);
5417 end Set_Unreferenced_In_Spec;
5419 procedure Set_Variant_Part
5420 (N : Node_Id; Val : Node_Id) is
5422 pragma Assert (False
5423 or else NT (N).Nkind = N_Component_List);
5424 Set_Node4_With_Parent (N, Val);
5425 end Set_Variant_Part;
5427 procedure Set_Variants
5428 (N : Node_Id; Val : List_Id) is
5430 pragma Assert (False
5431 or else NT (N).Nkind = N_Variant_Part);
5432 Set_List1_With_Parent (N, Val);
5435 procedure Set_Visible_Declarations
5436 (N : Node_Id; Val : List_Id) is
5438 pragma Assert (False
5439 or else NT (N).Nkind = N_Package_Specification
5440 or else NT (N).Nkind = N_Protected_Definition
5441 or else NT (N).Nkind = N_Task_Definition);
5442 Set_List2_With_Parent (N, Val);
5443 end Set_Visible_Declarations;
5445 procedure Set_Was_Originally_Stub
5446 (N : Node_Id; Val : Boolean := True) is
5448 pragma Assert (False
5449 or else NT (N).Nkind = N_Package_Body
5450 or else NT (N).Nkind = N_Protected_Body
5451 or else NT (N).Nkind = N_Subprogram_Body
5452 or else NT (N).Nkind = N_Task_Body);
5453 Set_Flag13 (N, Val);
5454 end Set_Was_Originally_Stub;
5456 procedure Set_Zero_Cost_Handling
5457 (N : Node_Id; Val : Boolean := True) is
5459 pragma Assert (False
5460 or else NT (N).Nkind = N_Exception_Handler
5461 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
5463 end Set_Zero_Cost_Handling;
5465 -------------------------
5466 -- Iterator Procedures --
5467 -------------------------
5469 procedure Next_Entity (N : in out Node_Id) is
5471 N := Next_Entity (N);
5474 procedure Next_Named_Actual (N : in out Node_Id) is
5476 N := Next_Named_Actual (N);
5477 end Next_Named_Actual;
5479 procedure Next_Rep_Item (N : in out Node_Id) is
5481 N := Next_Rep_Item (N);
5484 procedure Next_Use_Clause (N : in out Node_Id) is
5486 N := Next_Use_Clause (N);
5487 end Next_Use_Clause;
5493 function End_Location (N : Node_Id) return Source_Ptr is
5494 L : constant Uint := End_Span (N);
5499 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
5503 ----------------------
5504 -- Set_End_Location --
5505 ----------------------
5507 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
5510 UI_From_Int (Int (S) - Int (Sloc (N))));
5511 end Set_End_Location;