1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks (All_Checks);
33 -- No subprogram ordering check, due to logical grouping
35 with Atree; use Atree;
39 use Atree.Unchecked_Access;
40 -- This package is one of the few packages which is allowed to make direct
41 -- references to tree nodes (since it is in the business of providing a
42 -- higher level of tree access which other clients are expected to use and
43 -- which implements checks).
45 use Atree_Private_Part;
46 -- The only reason that we ask for direct access to the private part of
47 -- the tree package is so that we can directly reference the Nkind field
48 -- of nodes table entries. We do this since it helps the efficiency of
49 -- the Sinfo debugging checks considerably (note that when we are checking
50 -- Nkind values, we don't need to check for a valid node reference, because
51 -- we will check that anyway when we reference the field).
53 NT : Nodes.Table_Ptr renames Nodes.Table;
54 -- A short hand abbreviation, useful for the debugging checks
56 ----------------------------
57 -- Field Access Functions --
58 ----------------------------
60 function ABE_Is_Certain
61 (N : Node_Id) return Boolean is
64 or else NT (N).Nkind = N_Formal_Package_Declaration
65 or else NT (N).Nkind = N_Function_Call
66 or else NT (N).Nkind = N_Function_Instantiation
67 or else NT (N).Nkind = N_Package_Instantiation
68 or else NT (N).Nkind = N_Procedure_Call_Statement
69 or else NT (N).Nkind = N_Procedure_Instantiation);
73 function Abort_Present
74 (N : Node_Id) return Boolean is
77 or else NT (N).Nkind = N_Requeue_Statement);
81 function Abortable_Part
82 (N : Node_Id) return Node_Id is
85 or else NT (N).Nkind = N_Asynchronous_Select);
89 function Abstract_Present
90 (N : Node_Id) return Boolean is
93 or else NT (N).Nkind = N_Derived_Type_Definition
94 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
95 or else NT (N).Nkind = N_Formal_Private_Type_Definition
96 or else NT (N).Nkind = N_Private_Extension_Declaration
97 or else NT (N).Nkind = N_Private_Type_Declaration
98 or else NT (N).Nkind = N_Record_Definition);
100 end Abstract_Present;
102 function Accept_Handler_Records
103 (N : Node_Id) return List_Id is
106 or else NT (N).Nkind = N_Accept_Alternative);
108 end Accept_Handler_Records;
110 function Accept_Statement
111 (N : Node_Id) return Node_Id is
114 or else NT (N).Nkind = N_Accept_Alternative);
116 end Accept_Statement;
118 function Access_Definition
119 (N : Node_Id) return Node_Id is
122 or else NT (N).Nkind = N_Component_Definition
123 or else NT (N).Nkind = N_Formal_Object_Declaration
124 or else NT (N).Nkind = N_Object_Renaming_Declaration);
126 end Access_Definition;
128 function Access_To_Subprogram_Definition
129 (N : Node_Id) return Node_Id is
132 or else NT (N).Nkind = N_Access_Definition);
134 end Access_To_Subprogram_Definition;
136 function Access_Types_To_Process
137 (N : Node_Id) return Elist_Id is
140 or else NT (N).Nkind = N_Freeze_Entity);
142 end Access_Types_To_Process;
145 (N : Node_Id) return List_Id is
148 or else NT (N).Nkind = N_And_Then
149 or else NT (N).Nkind = N_Case_Expression_Alternative
150 or else NT (N).Nkind = N_Compilation_Unit_Aux
151 or else NT (N).Nkind = N_Expression_With_Actions
152 or else NT (N).Nkind = N_Freeze_Entity
153 or else NT (N).Nkind = N_Or_Else);
157 function Activation_Chain_Entity
158 (N : Node_Id) return Node_Id is
161 or else NT (N).Nkind = N_Block_Statement
162 or else NT (N).Nkind = N_Entry_Body
163 or else NT (N).Nkind = N_Generic_Package_Declaration
164 or else NT (N).Nkind = N_Package_Declaration
165 or else NT (N).Nkind = N_Subprogram_Body
166 or else NT (N).Nkind = N_Task_Body);
168 end Activation_Chain_Entity;
170 function Acts_As_Spec
171 (N : Node_Id) return Boolean is
174 or else NT (N).Nkind = N_Compilation_Unit
175 or else NT (N).Nkind = N_Subprogram_Body);
179 function Actual_Designated_Subtype
180 (N : Node_Id) return Node_Id is
183 or else NT (N).Nkind = N_Explicit_Dereference
184 or else NT (N).Nkind = N_Free_Statement);
186 end Actual_Designated_Subtype;
188 function Address_Warning_Posted
189 (N : Node_Id) return Boolean is
192 or else NT (N).Nkind = N_Attribute_Definition_Clause);
194 end Address_Warning_Posted;
196 function Aggregate_Bounds
197 (N : Node_Id) return Node_Id is
200 or else NT (N).Nkind = N_Aggregate);
202 end Aggregate_Bounds;
204 function Aliased_Present
205 (N : Node_Id) return Boolean is
208 or else NT (N).Nkind = N_Component_Definition
209 or else NT (N).Nkind = N_Object_Declaration);
214 (N : Node_Id) return Boolean is
217 or else NT (N).Nkind = N_Others_Choice);
222 (N : Node_Id) return Boolean is
225 or else NT (N).Nkind = N_Access_Definition
226 or else NT (N).Nkind = N_Access_To_Object_Definition
227 or else NT (N).Nkind = N_Use_Type_Clause);
231 function Alternatives
232 (N : Node_Id) return List_Id is
235 or else NT (N).Nkind = N_Case_Expression
236 or else NT (N).Nkind = N_Case_Statement
237 or else NT (N).Nkind = N_In
238 or else NT (N).Nkind = N_Not_In);
242 function Ancestor_Part
243 (N : Node_Id) return Node_Id is
246 or else NT (N).Nkind = N_Extension_Aggregate);
250 function Array_Aggregate
251 (N : Node_Id) return Node_Id is
254 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
258 function Aspect_Cancel
259 (N : Node_Id) return Boolean is
262 or else NT (N).Nkind = N_Pragma);
266 function Aspect_Rep_Item
267 (N : Node_Id) return Node_Id is
270 or else NT (N).Nkind = N_Aspect_Specification);
274 function Assignment_OK
275 (N : Node_Id) return Boolean is
278 or else NT (N).Nkind = N_Object_Declaration
279 or else NT (N).Nkind in N_Subexpr);
283 function Associated_Node
284 (N : Node_Id) return Node_Id is
287 or else NT (N).Nkind in N_Has_Entity
288 or else NT (N).Nkind = N_Aggregate
289 or else NT (N).Nkind = N_Extension_Aggregate
290 or else NT (N).Nkind = N_Selected_Component);
295 (N : Node_Id) return Node_Id is
298 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
302 function Attribute_Name
303 (N : Node_Id) return Name_Id is
306 or else NT (N).Nkind = N_Attribute_Reference);
310 function Aux_Decls_Node
311 (N : Node_Id) return Node_Id is
314 or else NT (N).Nkind = N_Compilation_Unit);
318 function Backwards_OK
319 (N : Node_Id) return Boolean is
322 or else NT (N).Nkind = N_Assignment_Statement);
326 function Bad_Is_Detected
327 (N : Node_Id) return Boolean is
330 or else NT (N).Nkind = N_Subprogram_Body);
334 function Body_Required
335 (N : Node_Id) return Boolean is
338 or else NT (N).Nkind = N_Compilation_Unit);
342 function Body_To_Inline
343 (N : Node_Id) return Node_Id is
346 or else NT (N).Nkind = N_Subprogram_Declaration);
351 (N : Node_Id) return Boolean is
354 or else NT (N).Nkind = N_Component_Association
355 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
356 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
357 or else NT (N).Nkind = N_Formal_Package_Declaration
358 or else NT (N).Nkind = N_Generic_Association);
363 (N : Node_Id) return Boolean is
366 or else NT (N).Nkind = N_Extended_Return_Statement
367 or else NT (N).Nkind = N_Return_Statement);
371 function Char_Literal_Value
372 (N : Node_Id) return Uint is
375 or else NT (N).Nkind = N_Character_Literal);
377 end Char_Literal_Value;
380 (N : Node_Id) return Name_Id is
383 or else NT (N).Nkind in N_Has_Chars);
387 function Check_Address_Alignment
388 (N : Node_Id) return Boolean is
391 or else NT (N).Nkind = N_Attribute_Definition_Clause);
393 end Check_Address_Alignment;
395 function Choice_Parameter
396 (N : Node_Id) return Node_Id is
399 or else NT (N).Nkind = N_Exception_Handler);
401 end Choice_Parameter;
404 (N : Node_Id) return List_Id is
407 or else NT (N).Nkind = N_Component_Association);
411 function Class_Present
412 (N : Node_Id) return Boolean is
415 or else NT (N).Nkind = N_Aspect_Specification);
419 function Coextensions
420 (N : Node_Id) return Elist_Id is
423 or else NT (N).Nkind = N_Allocator);
427 function Comes_From_Extended_Return_Statement
428 (N : Node_Id) return Boolean is
431 or else NT (N).Nkind = N_Return_Statement);
433 end Comes_From_Extended_Return_Statement;
435 function Compile_Time_Known_Aggregate
436 (N : Node_Id) return Boolean is
439 or else NT (N).Nkind = N_Aggregate);
441 end Compile_Time_Known_Aggregate;
443 function Component_Associations
444 (N : Node_Id) return List_Id is
447 or else NT (N).Nkind = N_Aggregate
448 or else NT (N).Nkind = N_Extension_Aggregate);
450 end Component_Associations;
452 function Component_Clauses
453 (N : Node_Id) return List_Id is
456 or else NT (N).Nkind = N_Record_Representation_Clause);
458 end Component_Clauses;
460 function Component_Definition
461 (N : Node_Id) return Node_Id is
464 or else NT (N).Nkind = N_Component_Declaration
465 or else NT (N).Nkind = N_Constrained_Array_Definition
466 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
468 end Component_Definition;
470 function Component_Items
471 (N : Node_Id) return List_Id is
474 or else NT (N).Nkind = N_Component_List);
478 function Component_List
479 (N : Node_Id) return Node_Id is
482 or else NT (N).Nkind = N_Record_Definition
483 or else NT (N).Nkind = N_Variant);
487 function Component_Name
488 (N : Node_Id) return Node_Id is
491 or else NT (N).Nkind = N_Component_Clause);
495 function Componentwise_Assignment
496 (N : Node_Id) return Boolean is
499 or else NT (N).Nkind = N_Assignment_Statement);
501 end Componentwise_Assignment;
504 (N : Node_Id) return Node_Id is
507 or else NT (N).Nkind = N_Accept_Alternative
508 or else NT (N).Nkind = N_Delay_Alternative
509 or else NT (N).Nkind = N_Elsif_Part
510 or else NT (N).Nkind = N_Entry_Body_Formal_Part
511 or else NT (N).Nkind = N_Exit_Statement
512 or else NT (N).Nkind = N_If_Statement
513 or else NT (N).Nkind = N_Iteration_Scheme
514 or else NT (N).Nkind = N_Raise_Constraint_Error
515 or else NT (N).Nkind = N_Raise_Program_Error
516 or else NT (N).Nkind = N_Raise_Storage_Error
517 or else NT (N).Nkind = N_Terminate_Alternative);
521 function Condition_Actions
522 (N : Node_Id) return List_Id is
525 or else NT (N).Nkind = N_Elsif_Part
526 or else NT (N).Nkind = N_Iteration_Scheme);
528 end Condition_Actions;
530 function Config_Pragmas
531 (N : Node_Id) return List_Id is
534 or else NT (N).Nkind = N_Compilation_Unit_Aux);
538 function Constant_Present
539 (N : Node_Id) return Boolean is
542 or else NT (N).Nkind = N_Access_Definition
543 or else NT (N).Nkind = N_Access_To_Object_Definition
544 or else NT (N).Nkind = N_Object_Declaration);
546 end Constant_Present;
549 (N : Node_Id) return Node_Id is
552 or else NT (N).Nkind = N_Subtype_Indication);
557 (N : Node_Id) return List_Id is
560 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
564 function Context_Installed
565 (N : Node_Id) return Boolean is
568 or else NT (N).Nkind = N_With_Clause);
570 end Context_Installed;
572 function Context_Items
573 (N : Node_Id) return List_Id is
576 or else NT (N).Nkind = N_Compilation_Unit);
580 function Context_Pending
581 (N : Node_Id) return Boolean is
584 or else NT (N).Nkind = N_Compilation_Unit);
588 function Controlling_Argument
589 (N : Node_Id) return Node_Id is
592 or else NT (N).Nkind = N_Function_Call
593 or else NT (N).Nkind = N_Procedure_Call_Statement);
595 end Controlling_Argument;
597 function Conversion_OK
598 (N : Node_Id) return Boolean is
601 or else NT (N).Nkind = N_Type_Conversion);
605 function Corresponding_Body
606 (N : Node_Id) return Node_Id is
609 or else NT (N).Nkind = N_Entry_Declaration
610 or else NT (N).Nkind = N_Generic_Package_Declaration
611 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
612 or else NT (N).Nkind = N_Package_Body_Stub
613 or else NT (N).Nkind = N_Package_Declaration
614 or else NT (N).Nkind = N_Protected_Body_Stub
615 or else NT (N).Nkind = N_Protected_Type_Declaration
616 or else NT (N).Nkind = N_Subprogram_Body_Stub
617 or else NT (N).Nkind = N_Subprogram_Declaration
618 or else NT (N).Nkind = N_Task_Body_Stub
619 or else NT (N).Nkind = N_Task_Type_Declaration);
621 end Corresponding_Body;
623 function Corresponding_Formal_Spec
624 (N : Node_Id) return Node_Id is
627 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
629 end Corresponding_Formal_Spec;
631 function Corresponding_Generic_Association
632 (N : Node_Id) return Node_Id is
635 or else NT (N).Nkind = N_Object_Declaration
636 or else NT (N).Nkind = N_Object_Renaming_Declaration);
638 end Corresponding_Generic_Association;
640 function Corresponding_Integer_Value
641 (N : Node_Id) return Uint is
644 or else NT (N).Nkind = N_Real_Literal);
646 end Corresponding_Integer_Value;
648 function Corresponding_Spec
649 (N : Node_Id) return Node_Id is
652 or else NT (N).Nkind = N_Package_Body
653 or else NT (N).Nkind = N_Protected_Body
654 or else NT (N).Nkind = N_Subprogram_Body
655 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
656 or else NT (N).Nkind = N_Task_Body
657 or else NT (N).Nkind = N_With_Clause);
659 end Corresponding_Spec;
661 function Corresponding_Stub
662 (N : Node_Id) return Node_Id is
665 or else NT (N).Nkind = N_Subunit);
667 end Corresponding_Stub;
669 function Dcheck_Function
670 (N : Node_Id) return Entity_Id is
673 or else NT (N).Nkind = N_Variant);
677 function Debug_Statement
678 (N : Node_Id) return Node_Id is
681 or else NT (N).Nkind = N_Pragma);
685 function Declarations
686 (N : Node_Id) return List_Id is
689 or else NT (N).Nkind = N_Accept_Statement
690 or else NT (N).Nkind = N_Block_Statement
691 or else NT (N).Nkind = N_Compilation_Unit_Aux
692 or else NT (N).Nkind = N_Entry_Body
693 or else NT (N).Nkind = N_Package_Body
694 or else NT (N).Nkind = N_Protected_Body
695 or else NT (N).Nkind = N_Subprogram_Body
696 or else NT (N).Nkind = N_Task_Body);
700 function Default_Expression
701 (N : Node_Id) return Node_Id is
704 or else NT (N).Nkind = N_Formal_Object_Declaration
705 or else NT (N).Nkind = N_Parameter_Specification);
707 end Default_Expression;
709 function Default_Name
710 (N : Node_Id) return Node_Id is
713 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
714 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
718 function Defining_Identifier
719 (N : Node_Id) return Entity_Id is
722 or else NT (N).Nkind = N_Component_Declaration
723 or else NT (N).Nkind = N_Defining_Program_Unit_Name
724 or else NT (N).Nkind = N_Discriminant_Specification
725 or else NT (N).Nkind = N_Entry_Body
726 or else NT (N).Nkind = N_Entry_Declaration
727 or else NT (N).Nkind = N_Entry_Index_Specification
728 or else NT (N).Nkind = N_Exception_Declaration
729 or else NT (N).Nkind = N_Exception_Renaming_Declaration
730 or else NT (N).Nkind = N_Formal_Object_Declaration
731 or else NT (N).Nkind = N_Formal_Package_Declaration
732 or else NT (N).Nkind = N_Formal_Type_Declaration
733 or else NT (N).Nkind = N_Full_Type_Declaration
734 or else NT (N).Nkind = N_Implicit_Label_Declaration
735 or else NT (N).Nkind = N_Incomplete_Type_Declaration
736 or else NT (N).Nkind = N_Loop_Parameter_Specification
737 or else NT (N).Nkind = N_Number_Declaration
738 or else NT (N).Nkind = N_Object_Declaration
739 or else NT (N).Nkind = N_Object_Renaming_Declaration
740 or else NT (N).Nkind = N_Package_Body_Stub
741 or else NT (N).Nkind = N_Parameter_Specification
742 or else NT (N).Nkind = N_Private_Extension_Declaration
743 or else NT (N).Nkind = N_Private_Type_Declaration
744 or else NT (N).Nkind = N_Protected_Body
745 or else NT (N).Nkind = N_Protected_Body_Stub
746 or else NT (N).Nkind = N_Protected_Type_Declaration
747 or else NT (N).Nkind = N_Single_Protected_Declaration
748 or else NT (N).Nkind = N_Single_Task_Declaration
749 or else NT (N).Nkind = N_Subtype_Declaration
750 or else NT (N).Nkind = N_Task_Body
751 or else NT (N).Nkind = N_Task_Body_Stub
752 or else NT (N).Nkind = N_Task_Type_Declaration);
754 end Defining_Identifier;
756 function Defining_Unit_Name
757 (N : Node_Id) return Node_Id is
760 or else NT (N).Nkind = N_Function_Instantiation
761 or else NT (N).Nkind = N_Function_Specification
762 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
763 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
764 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
765 or else NT (N).Nkind = N_Package_Body
766 or else NT (N).Nkind = N_Package_Instantiation
767 or else NT (N).Nkind = N_Package_Renaming_Declaration
768 or else NT (N).Nkind = N_Package_Specification
769 or else NT (N).Nkind = N_Procedure_Instantiation
770 or else NT (N).Nkind = N_Procedure_Specification);
772 end Defining_Unit_Name;
774 function Delay_Alternative
775 (N : Node_Id) return Node_Id is
778 or else NT (N).Nkind = N_Timed_Entry_Call);
780 end Delay_Alternative;
782 function Delay_Statement
783 (N : Node_Id) return Node_Id is
786 or else NT (N).Nkind = N_Delay_Alternative);
790 function Delta_Expression
791 (N : Node_Id) return Node_Id is
794 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
795 or else NT (N).Nkind = N_Delta_Constraint
796 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
798 end Delta_Expression;
800 function Digits_Expression
801 (N : Node_Id) return Node_Id is
804 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
805 or else NT (N).Nkind = N_Digits_Constraint
806 or else NT (N).Nkind = N_Floating_Point_Definition);
808 end Digits_Expression;
810 function Discr_Check_Funcs_Built
811 (N : Node_Id) return Boolean is
814 or else NT (N).Nkind = N_Full_Type_Declaration);
816 end Discr_Check_Funcs_Built;
818 function Discrete_Choices
819 (N : Node_Id) return List_Id is
822 or else NT (N).Nkind = N_Case_Expression_Alternative
823 or else NT (N).Nkind = N_Case_Statement_Alternative
824 or else NT (N).Nkind = N_Variant);
826 end Discrete_Choices;
828 function Discrete_Range
829 (N : Node_Id) return Node_Id is
832 or else NT (N).Nkind = N_Slice);
836 function Discrete_Subtype_Definition
837 (N : Node_Id) return Node_Id is
840 or else NT (N).Nkind = N_Entry_Declaration
841 or else NT (N).Nkind = N_Entry_Index_Specification
842 or else NT (N).Nkind = N_Loop_Parameter_Specification);
844 end Discrete_Subtype_Definition;
846 function Discrete_Subtype_Definitions
847 (N : Node_Id) return List_Id is
850 or else NT (N).Nkind = N_Constrained_Array_Definition);
852 end Discrete_Subtype_Definitions;
854 function Discriminant_Specifications
855 (N : Node_Id) return List_Id is
858 or else NT (N).Nkind = N_Formal_Type_Declaration
859 or else NT (N).Nkind = N_Full_Type_Declaration
860 or else NT (N).Nkind = N_Incomplete_Type_Declaration
861 or else NT (N).Nkind = N_Private_Extension_Declaration
862 or else NT (N).Nkind = N_Private_Type_Declaration
863 or else NT (N).Nkind = N_Protected_Type_Declaration
864 or else NT (N).Nkind = N_Task_Type_Declaration);
866 end Discriminant_Specifications;
868 function Discriminant_Type
869 (N : Node_Id) return Node_Id is
872 or else NT (N).Nkind = N_Discriminant_Specification);
874 end Discriminant_Type;
876 function Do_Accessibility_Check
877 (N : Node_Id) return Boolean is
880 or else NT (N).Nkind = N_Parameter_Specification);
882 end Do_Accessibility_Check;
884 function Do_Discriminant_Check
885 (N : Node_Id) return Boolean is
888 or else NT (N).Nkind = N_Selected_Component);
890 end Do_Discriminant_Check;
892 function Do_Division_Check
893 (N : Node_Id) return Boolean is
896 or else NT (N).Nkind = N_Op_Divide
897 or else NT (N).Nkind = N_Op_Mod
898 or else NT (N).Nkind = N_Op_Rem);
900 end Do_Division_Check;
902 function Do_Length_Check
903 (N : Node_Id) return Boolean is
906 or else NT (N).Nkind = N_Assignment_Statement
907 or else NT (N).Nkind = N_Op_And
908 or else NT (N).Nkind = N_Op_Or
909 or else NT (N).Nkind = N_Op_Xor
910 or else NT (N).Nkind = N_Type_Conversion);
914 function Do_Overflow_Check
915 (N : Node_Id) return Boolean is
918 or else NT (N).Nkind in N_Op
919 or else NT (N).Nkind = N_Attribute_Reference
920 or else NT (N).Nkind = N_Type_Conversion);
922 end Do_Overflow_Check;
924 function Do_Range_Check
925 (N : Node_Id) return Boolean is
928 or else NT (N).Nkind in N_Subexpr);
932 function Do_Storage_Check
933 (N : Node_Id) return Boolean is
936 or else NT (N).Nkind = N_Allocator
937 or else NT (N).Nkind = N_Subprogram_Body);
939 end Do_Storage_Check;
941 function Do_Tag_Check
942 (N : Node_Id) return Boolean is
945 or else NT (N).Nkind = N_Assignment_Statement
946 or else NT (N).Nkind = N_Extended_Return_Statement
947 or else NT (N).Nkind = N_Function_Call
948 or else NT (N).Nkind = N_Procedure_Call_Statement
949 or else NT (N).Nkind = N_Return_Statement
950 or else NT (N).Nkind = N_Type_Conversion);
954 function Elaborate_All_Desirable
955 (N : Node_Id) return Boolean is
958 or else NT (N).Nkind = N_With_Clause);
960 end Elaborate_All_Desirable;
962 function Elaborate_All_Present
963 (N : Node_Id) return Boolean is
966 or else NT (N).Nkind = N_With_Clause);
968 end Elaborate_All_Present;
970 function Elaborate_Desirable
971 (N : Node_Id) return Boolean is
974 or else NT (N).Nkind = N_With_Clause);
976 end Elaborate_Desirable;
978 function Elaborate_Present
979 (N : Node_Id) return Boolean is
982 or else NT (N).Nkind = N_With_Clause);
984 end Elaborate_Present;
986 function Elaboration_Boolean
987 (N : Node_Id) return Node_Id is
990 or else NT (N).Nkind = N_Function_Specification
991 or else NT (N).Nkind = N_Procedure_Specification);
993 end Elaboration_Boolean;
995 function Else_Actions
996 (N : Node_Id) return List_Id is
999 or else NT (N).Nkind = N_Conditional_Expression);
1003 function Else_Statements
1004 (N : Node_Id) return List_Id is
1006 pragma Assert (False
1007 or else NT (N).Nkind = N_Conditional_Entry_Call
1008 or else NT (N).Nkind = N_If_Statement
1009 or else NT (N).Nkind = N_Selective_Accept);
1011 end Else_Statements;
1013 function Elsif_Parts
1014 (N : Node_Id) return List_Id is
1016 pragma Assert (False
1017 or else NT (N).Nkind = N_If_Statement);
1021 function Enclosing_Variant
1022 (N : Node_Id) return Node_Id is
1024 pragma Assert (False
1025 or else NT (N).Nkind = N_Variant);
1027 end Enclosing_Variant;
1030 (N : Node_Id) return Node_Id is
1032 pragma Assert (False
1033 or else NT (N).Nkind = N_Enumeration_Type_Definition
1034 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1035 or else NT (N).Nkind = N_Loop_Statement
1036 or else NT (N).Nkind = N_Package_Specification
1037 or else NT (N).Nkind = N_Protected_Body
1038 or else NT (N).Nkind = N_Protected_Definition
1039 or else NT (N).Nkind = N_Record_Definition
1040 or else NT (N).Nkind = N_Task_Definition);
1045 (N : Node_Id) return Uint is
1047 pragma Assert (False
1048 or else NT (N).Nkind = N_Case_Statement
1049 or else NT (N).Nkind = N_If_Statement);
1054 (N : Node_Id) return Node_Id is
1056 pragma Assert (False
1057 or else NT (N).Nkind in N_Has_Entity
1058 or else NT (N).Nkind = N_Aspect_Specification
1059 or else NT (N).Nkind = N_Attribute_Definition_Clause
1060 or else NT (N).Nkind = N_Freeze_Entity);
1064 function Entity_Or_Associated_Node
1065 (N : Node_Id) return Node_Id is
1067 pragma Assert (False
1068 or else NT (N).Nkind in N_Has_Entity
1069 or else NT (N).Nkind = N_Freeze_Entity);
1071 end Entity_Or_Associated_Node;
1073 function Entry_Body_Formal_Part
1074 (N : Node_Id) return Node_Id is
1076 pragma Assert (False
1077 or else NT (N).Nkind = N_Entry_Body);
1079 end Entry_Body_Formal_Part;
1081 function Entry_Call_Alternative
1082 (N : Node_Id) return Node_Id is
1084 pragma Assert (False
1085 or else NT (N).Nkind = N_Conditional_Entry_Call
1086 or else NT (N).Nkind = N_Timed_Entry_Call);
1088 end Entry_Call_Alternative;
1090 function Entry_Call_Statement
1091 (N : Node_Id) return Node_Id is
1093 pragma Assert (False
1094 or else NT (N).Nkind = N_Entry_Call_Alternative);
1096 end Entry_Call_Statement;
1098 function Entry_Direct_Name
1099 (N : Node_Id) return Node_Id is
1101 pragma Assert (False
1102 or else NT (N).Nkind = N_Accept_Statement);
1104 end Entry_Direct_Name;
1106 function Entry_Index
1107 (N : Node_Id) return Node_Id is
1109 pragma Assert (False
1110 or else NT (N).Nkind = N_Accept_Statement);
1114 function Entry_Index_Specification
1115 (N : Node_Id) return Node_Id is
1117 pragma Assert (False
1118 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1120 end Entry_Index_Specification;
1123 (N : Node_Id) return Node_Id is
1125 pragma Assert (False
1126 or else NT (N).Nkind in N_Has_Etype);
1130 function Exception_Choices
1131 (N : Node_Id) return List_Id is
1133 pragma Assert (False
1134 or else NT (N).Nkind = N_Exception_Handler);
1136 end Exception_Choices;
1138 function Exception_Handlers
1139 (N : Node_Id) return List_Id is
1141 pragma Assert (False
1142 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1144 end Exception_Handlers;
1146 function Exception_Junk
1147 (N : Node_Id) return Boolean is
1149 pragma Assert (False
1150 or else NT (N).Nkind = N_Block_Statement
1151 or else NT (N).Nkind = N_Goto_Statement
1152 or else NT (N).Nkind = N_Label
1153 or else NT (N).Nkind = N_Object_Declaration
1154 or else NT (N).Nkind = N_Subtype_Declaration);
1158 function Exception_Label
1159 (N : Node_Id) return Node_Id is
1161 pragma Assert (False
1162 or else NT (N).Nkind = N_Exception_Handler
1163 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1164 or else NT (N).Nkind = N_Push_Program_Error_Label
1165 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1167 end Exception_Label;
1169 function Expansion_Delayed
1170 (N : Node_Id) return Boolean is
1172 pragma Assert (False
1173 or else NT (N).Nkind = N_Aggregate
1174 or else NT (N).Nkind = N_Extension_Aggregate);
1176 end Expansion_Delayed;
1178 function Explicit_Actual_Parameter
1179 (N : Node_Id) return Node_Id is
1181 pragma Assert (False
1182 or else NT (N).Nkind = N_Parameter_Association);
1184 end Explicit_Actual_Parameter;
1186 function Explicit_Generic_Actual_Parameter
1187 (N : Node_Id) return Node_Id is
1189 pragma Assert (False
1190 or else NT (N).Nkind = N_Generic_Association);
1192 end Explicit_Generic_Actual_Parameter;
1195 (N : Node_Id) return Node_Id is
1197 pragma Assert (False
1198 or else NT (N).Nkind = N_Allocator
1199 or else NT (N).Nkind = N_Aspect_Specification
1200 or else NT (N).Nkind = N_Assignment_Statement
1201 or else NT (N).Nkind = N_At_Clause
1202 or else NT (N).Nkind = N_Attribute_Definition_Clause
1203 or else NT (N).Nkind = N_Case_Expression
1204 or else NT (N).Nkind = N_Case_Expression_Alternative
1205 or else NT (N).Nkind = N_Case_Statement
1206 or else NT (N).Nkind = N_Code_Statement
1207 or else NT (N).Nkind = N_Component_Association
1208 or else NT (N).Nkind = N_Component_Declaration
1209 or else NT (N).Nkind = N_Delay_Relative_Statement
1210 or else NT (N).Nkind = N_Delay_Until_Statement
1211 or else NT (N).Nkind = N_Discriminant_Association
1212 or else NT (N).Nkind = N_Discriminant_Specification
1213 or else NT (N).Nkind = N_Exception_Declaration
1214 or else NT (N).Nkind = N_Expression_With_Actions
1215 or else NT (N).Nkind = N_Free_Statement
1216 or else NT (N).Nkind = N_Mod_Clause
1217 or else NT (N).Nkind = N_Modular_Type_Definition
1218 or else NT (N).Nkind = N_Number_Declaration
1219 or else NT (N).Nkind = N_Object_Declaration
1220 or else NT (N).Nkind = N_Parameter_Specification
1221 or else NT (N).Nkind = N_Parameterized_Expression
1222 or else NT (N).Nkind = N_Pragma_Argument_Association
1223 or else NT (N).Nkind = N_Qualified_Expression
1224 or else NT (N).Nkind = N_Raise_Statement
1225 or else NT (N).Nkind = N_Return_Statement
1226 or else NT (N).Nkind = N_Type_Conversion
1227 or else NT (N).Nkind = N_Unchecked_Expression
1228 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1232 function Expressions
1233 (N : Node_Id) return List_Id is
1235 pragma Assert (False
1236 or else NT (N).Nkind = N_Aggregate
1237 or else NT (N).Nkind = N_Attribute_Reference
1238 or else NT (N).Nkind = N_Conditional_Expression
1239 or else NT (N).Nkind = N_Extension_Aggregate
1240 or else NT (N).Nkind = N_Indexed_Component);
1245 (N : Node_Id) return Node_Id is
1247 pragma Assert (False
1248 or else NT (N).Nkind = N_Component_Clause);
1252 function First_Inlined_Subprogram
1253 (N : Node_Id) return Entity_Id is
1255 pragma Assert (False
1256 or else NT (N).Nkind = N_Compilation_Unit);
1258 end First_Inlined_Subprogram;
1261 (N : Node_Id) return Boolean is
1263 pragma Assert (False
1264 or else NT (N).Nkind = N_With_Clause);
1268 function First_Named_Actual
1269 (N : Node_Id) return Node_Id is
1271 pragma Assert (False
1272 or else NT (N).Nkind = N_Entry_Call_Statement
1273 or else NT (N).Nkind = N_Function_Call
1274 or else NT (N).Nkind = N_Procedure_Call_Statement);
1276 end First_Named_Actual;
1278 function First_Real_Statement
1279 (N : Node_Id) return Node_Id is
1281 pragma Assert (False
1282 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1284 end First_Real_Statement;
1286 function First_Subtype_Link
1287 (N : Node_Id) return Entity_Id is
1289 pragma Assert (False
1290 or else NT (N).Nkind = N_Freeze_Entity);
1292 end First_Subtype_Link;
1294 function Float_Truncate
1295 (N : Node_Id) return Boolean is
1297 pragma Assert (False
1298 or else NT (N).Nkind = N_Type_Conversion);
1302 function Formal_Type_Definition
1303 (N : Node_Id) return Node_Id is
1305 pragma Assert (False
1306 or else NT (N).Nkind = N_Formal_Type_Declaration);
1308 end Formal_Type_Definition;
1310 function Forwards_OK
1311 (N : Node_Id) return Boolean is
1313 pragma Assert (False
1314 or else NT (N).Nkind = N_Assignment_Statement);
1318 function From_Aspect_Specification
1319 (N : Node_Id) return Boolean is
1321 pragma Assert (False
1322 or else NT (N).Nkind = N_Attribute_Definition_Clause
1323 or else NT (N).Nkind = N_Pragma);
1325 end From_Aspect_Specification;
1327 function From_At_End
1328 (N : Node_Id) return Boolean is
1330 pragma Assert (False
1331 or else NT (N).Nkind = N_Raise_Statement);
1335 function From_At_Mod
1336 (N : Node_Id) return Boolean is
1338 pragma Assert (False
1339 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1343 function From_Default
1344 (N : Node_Id) return Boolean is
1346 pragma Assert (False
1347 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1351 function Generic_Associations
1352 (N : Node_Id) return List_Id is
1354 pragma Assert (False
1355 or else NT (N).Nkind = N_Formal_Package_Declaration
1356 or else NT (N).Nkind = N_Function_Instantiation
1357 or else NT (N).Nkind = N_Package_Instantiation
1358 or else NT (N).Nkind = N_Procedure_Instantiation);
1360 end Generic_Associations;
1362 function Generic_Formal_Declarations
1363 (N : Node_Id) return List_Id is
1365 pragma Assert (False
1366 or else NT (N).Nkind = N_Generic_Package_Declaration
1367 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1369 end Generic_Formal_Declarations;
1371 function Generic_Parent
1372 (N : Node_Id) return Node_Id is
1374 pragma Assert (False
1375 or else NT (N).Nkind = N_Function_Specification
1376 or else NT (N).Nkind = N_Package_Specification
1377 or else NT (N).Nkind = N_Procedure_Specification);
1381 function Generic_Parent_Type
1382 (N : Node_Id) return Node_Id is
1384 pragma Assert (False
1385 or else NT (N).Nkind = N_Subtype_Declaration);
1387 end Generic_Parent_Type;
1389 function Handled_Statement_Sequence
1390 (N : Node_Id) return Node_Id is
1392 pragma Assert (False
1393 or else NT (N).Nkind = N_Accept_Statement
1394 or else NT (N).Nkind = N_Block_Statement
1395 or else NT (N).Nkind = N_Entry_Body
1396 or else NT (N).Nkind = N_Extended_Return_Statement
1397 or else NT (N).Nkind = N_Package_Body
1398 or else NT (N).Nkind = N_Subprogram_Body
1399 or else NT (N).Nkind = N_Task_Body);
1401 end Handled_Statement_Sequence;
1403 function Handler_List_Entry
1404 (N : Node_Id) return Node_Id is
1406 pragma Assert (False
1407 or else NT (N).Nkind = N_Object_Declaration);
1409 end Handler_List_Entry;
1411 function Has_Created_Identifier
1412 (N : Node_Id) return Boolean is
1414 pragma Assert (False
1415 or else NT (N).Nkind = N_Block_Statement
1416 or else NT (N).Nkind = N_Loop_Statement);
1418 end Has_Created_Identifier;
1420 function Has_Dynamic_Length_Check
1421 (N : Node_Id) return Boolean is
1424 end Has_Dynamic_Length_Check;
1425 function Has_Dynamic_Range_Check
1426 (N : Node_Id) return Boolean is
1429 end Has_Dynamic_Range_Check;
1431 function Has_Init_Expression
1432 (N : Node_Id) return Boolean is
1434 pragma Assert (False
1435 or else NT (N).Nkind = N_Object_Declaration);
1437 end Has_Init_Expression;
1439 function Has_Local_Raise
1440 (N : Node_Id) return Boolean is
1442 pragma Assert (False
1443 or else NT (N).Nkind = N_Exception_Handler);
1445 end Has_Local_Raise;
1447 function Has_No_Elaboration_Code
1448 (N : Node_Id) return Boolean is
1450 pragma Assert (False
1451 or else NT (N).Nkind = N_Compilation_Unit);
1453 end Has_No_Elaboration_Code;
1455 function Has_Priority_Pragma
1456 (N : Node_Id) return Boolean is
1458 pragma Assert (False
1459 or else NT (N).Nkind = N_Protected_Definition
1460 or else NT (N).Nkind = N_Subprogram_Body
1461 or else NT (N).Nkind = N_Task_Definition);
1463 end Has_Priority_Pragma;
1465 function Has_Private_View
1466 (N : Node_Id) return Boolean is
1468 pragma Assert (False
1469 or else NT (N).Nkind in N_Op
1470 or else NT (N).Nkind = N_Character_Literal
1471 or else NT (N).Nkind = N_Expanded_Name
1472 or else NT (N).Nkind = N_Identifier
1473 or else NT (N).Nkind = N_Operator_Symbol);
1475 end Has_Private_View;
1477 function Has_Relative_Deadline_Pragma
1478 (N : Node_Id) return Boolean is
1480 pragma Assert (False
1481 or else NT (N).Nkind = N_Subprogram_Body
1482 or else NT (N).Nkind = N_Task_Definition);
1484 end Has_Relative_Deadline_Pragma;
1486 function Has_Self_Reference
1487 (N : Node_Id) return Boolean is
1489 pragma Assert (False
1490 or else NT (N).Nkind = N_Aggregate
1491 or else NT (N).Nkind = N_Extension_Aggregate);
1493 end Has_Self_Reference;
1495 function Has_Storage_Size_Pragma
1496 (N : Node_Id) return Boolean is
1498 pragma Assert (False
1499 or else NT (N).Nkind = N_Task_Definition);
1501 end Has_Storage_Size_Pragma;
1503 function Has_Task_Info_Pragma
1504 (N : Node_Id) return Boolean is
1506 pragma Assert (False
1507 or else NT (N).Nkind = N_Task_Definition);
1509 end Has_Task_Info_Pragma;
1511 function Has_Task_Name_Pragma
1512 (N : Node_Id) return Boolean is
1514 pragma Assert (False
1515 or else NT (N).Nkind = N_Task_Definition);
1517 end Has_Task_Name_Pragma;
1519 function Has_Wide_Character
1520 (N : Node_Id) return Boolean is
1522 pragma Assert (False
1523 or else NT (N).Nkind = N_String_Literal);
1525 end Has_Wide_Character;
1527 function Has_Wide_Wide_Character
1528 (N : Node_Id) return Boolean is
1530 pragma Assert (False
1531 or else NT (N).Nkind = N_String_Literal);
1533 end Has_Wide_Wide_Character;
1535 function Hidden_By_Use_Clause
1536 (N : Node_Id) return Elist_Id is
1538 pragma Assert (False
1539 or else NT (N).Nkind = N_Use_Package_Clause
1540 or else NT (N).Nkind = N_Use_Type_Clause);
1542 end Hidden_By_Use_Clause;
1545 (N : Node_Id) return Node_Id is
1547 pragma Assert (False
1548 or else NT (N).Nkind = N_Range
1549 or else NT (N).Nkind = N_Real_Range_Specification
1550 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1555 (N : Node_Id) return Node_Id is
1557 pragma Assert (False
1558 or else NT (N).Nkind = N_Aspect_Specification
1559 or else NT (N).Nkind = N_At_Clause
1560 or else NT (N).Nkind = N_Block_Statement
1561 or else NT (N).Nkind = N_Designator
1562 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1563 or else NT (N).Nkind = N_Label
1564 or else NT (N).Nkind = N_Loop_Statement
1565 or else NT (N).Nkind = N_Record_Representation_Clause
1566 or else NT (N).Nkind = N_Subprogram_Info);
1570 function Implicit_With
1571 (N : Node_Id) return Boolean is
1573 pragma Assert (False
1574 or else NT (N).Nkind = N_With_Clause);
1578 function Interface_List
1579 (N : Node_Id) return List_Id is
1581 pragma Assert (False
1582 or else NT (N).Nkind = N_Derived_Type_Definition
1583 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1584 or else NT (N).Nkind = N_Private_Extension_Declaration
1585 or else NT (N).Nkind = N_Protected_Type_Declaration
1586 or else NT (N).Nkind = N_Record_Definition
1587 or else NT (N).Nkind = N_Single_Protected_Declaration
1588 or else NT (N).Nkind = N_Single_Task_Declaration
1589 or else NT (N).Nkind = N_Task_Type_Declaration);
1593 function Interface_Present
1594 (N : Node_Id) return Boolean is
1596 pragma Assert (False
1597 or else NT (N).Nkind = N_Derived_Type_Definition
1598 or else NT (N).Nkind = N_Record_Definition);
1600 end Interface_Present;
1602 function Import_Interface_Present
1603 (N : Node_Id) return Boolean is
1605 pragma Assert (False
1606 or else NT (N).Nkind = N_Pragma);
1608 end Import_Interface_Present;
1611 (N : Node_Id) return Boolean is
1613 pragma Assert (False
1614 or else NT (N).Nkind = N_Formal_Object_Declaration
1615 or else NT (N).Nkind = N_Parameter_Specification);
1619 function Includes_Infinities
1620 (N : Node_Id) return Boolean is
1622 pragma Assert (False
1623 or else NT (N).Nkind = N_Range);
1625 end Includes_Infinities;
1627 function Inherited_Discriminant
1628 (N : Node_Id) return Boolean is
1630 pragma Assert (False
1631 or else NT (N).Nkind = N_Component_Association);
1633 end Inherited_Discriminant;
1635 function Instance_Spec
1636 (N : Node_Id) return Node_Id is
1638 pragma Assert (False
1639 or else NT (N).Nkind = N_Formal_Package_Declaration
1640 or else NT (N).Nkind = N_Function_Instantiation
1641 or else NT (N).Nkind = N_Package_Instantiation
1642 or else NT (N).Nkind = N_Procedure_Instantiation);
1647 (N : Node_Id) return Uint is
1649 pragma Assert (False
1650 or else NT (N).Nkind = N_Integer_Literal);
1654 function Is_Accessibility_Actual
1655 (N : Node_Id) return Boolean is
1657 pragma Assert (False
1658 or else NT (N).Nkind = N_Parameter_Association);
1660 end Is_Accessibility_Actual;
1662 function Is_Asynchronous_Call_Block
1663 (N : Node_Id) return Boolean is
1665 pragma Assert (False
1666 or else NT (N).Nkind = N_Block_Statement);
1668 end Is_Asynchronous_Call_Block;
1670 function Is_Component_Left_Opnd
1671 (N : Node_Id) return Boolean is
1673 pragma Assert (False
1674 or else NT (N).Nkind = N_Op_Concat);
1676 end Is_Component_Left_Opnd;
1678 function Is_Component_Right_Opnd
1679 (N : Node_Id) return Boolean is
1681 pragma Assert (False
1682 or else NT (N).Nkind = N_Op_Concat);
1684 end Is_Component_Right_Opnd;
1686 function Is_Controlling_Actual
1687 (N : Node_Id) return Boolean is
1689 pragma Assert (False
1690 or else NT (N).Nkind in N_Subexpr);
1692 end Is_Controlling_Actual;
1694 function Is_Delayed_Aspect
1695 (N : Node_Id) return Boolean is
1697 pragma Assert (False
1698 or else NT (N).Nkind = N_Attribute_Definition_Clause
1699 or else NT (N).Nkind = N_Pragma);
1701 end Is_Delayed_Aspect;
1703 function Is_Dynamic_Coextension
1704 (N : Node_Id) return Boolean is
1706 pragma Assert (False
1707 or else NT (N).Nkind = N_Allocator);
1709 end Is_Dynamic_Coextension;
1712 (N : Node_Id) return Boolean is
1714 pragma Assert (False
1715 or else NT (N).Nkind = N_Conditional_Expression);
1719 function Is_Entry_Barrier_Function
1720 (N : Node_Id) return Boolean is
1722 pragma Assert (False
1723 or else NT (N).Nkind = N_Subprogram_Body);
1725 end Is_Entry_Barrier_Function;
1727 function Is_Expanded_Build_In_Place_Call
1728 (N : Node_Id) return Boolean is
1730 pragma Assert (False
1731 or else NT (N).Nkind = N_Function_Call);
1733 end Is_Expanded_Build_In_Place_Call;
1735 function Is_Folded_In_Parser
1736 (N : Node_Id) return Boolean is
1738 pragma Assert (False
1739 or else NT (N).Nkind = N_String_Literal);
1741 end Is_Folded_In_Parser;
1743 function Is_In_Discriminant_Check
1744 (N : Node_Id) return Boolean is
1746 pragma Assert (False
1747 or else NT (N).Nkind = N_Selected_Component);
1749 end Is_In_Discriminant_Check;
1751 function Is_Machine_Number
1752 (N : Node_Id) return Boolean is
1754 pragma Assert (False
1755 or else NT (N).Nkind = N_Real_Literal);
1757 end Is_Machine_Number;
1759 function Is_Null_Loop
1760 (N : Node_Id) return Boolean is
1762 pragma Assert (False
1763 or else NT (N).Nkind = N_Loop_Statement);
1767 function Is_Overloaded
1768 (N : Node_Id) return Boolean is
1770 pragma Assert (False
1771 or else NT (N).Nkind in N_Subexpr);
1775 function Is_Power_Of_2_For_Shift
1776 (N : Node_Id) return Boolean is
1778 pragma Assert (False
1779 or else NT (N).Nkind = N_Op_Expon);
1781 end Is_Power_Of_2_For_Shift;
1783 function Is_Protected_Subprogram_Body
1784 (N : Node_Id) return Boolean is
1786 pragma Assert (False
1787 or else NT (N).Nkind = N_Subprogram_Body);
1789 end Is_Protected_Subprogram_Body;
1791 function Is_Static_Coextension
1792 (N : Node_Id) return Boolean is
1794 pragma Assert (False
1795 or else NT (N).Nkind = N_Allocator);
1797 end Is_Static_Coextension;
1799 function Is_Static_Expression
1800 (N : Node_Id) return Boolean is
1802 pragma Assert (False
1803 or else NT (N).Nkind in N_Subexpr);
1805 end Is_Static_Expression;
1807 function Is_Subprogram_Descriptor
1808 (N : Node_Id) return Boolean is
1810 pragma Assert (False
1811 or else NT (N).Nkind = N_Object_Declaration);
1813 end Is_Subprogram_Descriptor;
1815 function Is_Task_Allocation_Block
1816 (N : Node_Id) return Boolean is
1818 pragma Assert (False
1819 or else NT (N).Nkind = N_Block_Statement);
1821 end Is_Task_Allocation_Block;
1823 function Is_Task_Master
1824 (N : Node_Id) return Boolean is
1826 pragma Assert (False
1827 or else NT (N).Nkind = N_Block_Statement
1828 or else NT (N).Nkind = N_Subprogram_Body
1829 or else NT (N).Nkind = N_Task_Body);
1833 function Iteration_Scheme
1834 (N : Node_Id) return Node_Id is
1836 pragma Assert (False
1837 or else NT (N).Nkind = N_Loop_Statement);
1839 end Iteration_Scheme;
1842 (N : Node_Id) return Node_Id is
1844 pragma Assert (False
1845 or else NT (N).Nkind = N_Itype_Reference);
1849 function Kill_Range_Check
1850 (N : Node_Id) return Boolean is
1852 pragma Assert (False
1853 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1855 end Kill_Range_Check;
1857 function Label_Construct
1858 (N : Node_Id) return Node_Id is
1860 pragma Assert (False
1861 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1863 end Label_Construct;
1866 (N : Node_Id) return Node_Id is
1868 pragma Assert (False
1869 or else NT (N).Nkind = N_Component_Clause);
1874 (N : Node_Id) return Boolean is
1876 pragma Assert (False
1877 or else NT (N).Nkind = N_With_Clause);
1882 (N : Node_Id) return Node_Id is
1884 pragma Assert (False
1885 or else NT (N).Nkind = N_And_Then
1886 or else NT (N).Nkind = N_In
1887 or else NT (N).Nkind = N_Not_In
1888 or else NT (N).Nkind = N_Or_Else
1889 or else NT (N).Nkind in N_Binary_Op);
1893 function Library_Unit
1894 (N : Node_Id) return Node_Id is
1896 pragma Assert (False
1897 or else NT (N).Nkind = N_Compilation_Unit
1898 or else NT (N).Nkind = N_Package_Body_Stub
1899 or else NT (N).Nkind = N_Protected_Body_Stub
1900 or else NT (N).Nkind = N_Subprogram_Body_Stub
1901 or else NT (N).Nkind = N_Task_Body_Stub
1902 or else NT (N).Nkind = N_With_Clause);
1906 function Limited_View_Installed
1907 (N : Node_Id) return Boolean is
1909 pragma Assert (False
1910 or else NT (N).Nkind = N_Package_Specification
1911 or else NT (N).Nkind = N_With_Clause);
1913 end Limited_View_Installed;
1915 function Limited_Present
1916 (N : Node_Id) return Boolean is
1918 pragma Assert (False
1919 or else NT (N).Nkind = N_Derived_Type_Definition
1920 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1921 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1922 or else NT (N).Nkind = N_Private_Extension_Declaration
1923 or else NT (N).Nkind = N_Private_Type_Declaration
1924 or else NT (N).Nkind = N_Record_Definition
1925 or else NT (N).Nkind = N_With_Clause);
1927 end Limited_Present;
1930 (N : Node_Id) return List_Id is
1932 pragma Assert (False
1933 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1937 function Local_Raise_Not_OK
1938 (N : Node_Id) return Boolean is
1940 pragma Assert (False
1941 or else NT (N).Nkind = N_Exception_Handler);
1943 end Local_Raise_Not_OK;
1945 function Local_Raise_Statements
1946 (N : Node_Id) return Elist_Id is
1948 pragma Assert (False
1949 or else NT (N).Nkind = N_Exception_Handler);
1951 end Local_Raise_Statements;
1953 function Loop_Actions
1954 (N : Node_Id) return List_Id is
1956 pragma Assert (False
1957 or else NT (N).Nkind = N_Component_Association);
1961 function Loop_Parameter_Specification
1962 (N : Node_Id) return Node_Id is
1964 pragma Assert (False
1965 or else NT (N).Nkind = N_Iteration_Scheme);
1967 end Loop_Parameter_Specification;
1970 (N : Node_Id) return Node_Id is
1972 pragma Assert (False
1973 or else NT (N).Nkind = N_Range
1974 or else NT (N).Nkind = N_Real_Range_Specification
1975 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1980 (N : Node_Id) return Node_Id is
1982 pragma Assert (False
1983 or else NT (N).Nkind = N_Record_Representation_Clause);
1988 (N : Node_Id) return Boolean is
1990 pragma Assert (False
1991 or else NT (N).Nkind = N_Component_Declaration
1992 or else NT (N).Nkind = N_Discriminant_Specification
1993 or else NT (N).Nkind = N_Exception_Declaration
1994 or else NT (N).Nkind = N_Formal_Object_Declaration
1995 or else NT (N).Nkind = N_Number_Declaration
1996 or else NT (N).Nkind = N_Object_Declaration
1997 or else NT (N).Nkind = N_Parameter_Specification);
2001 function Must_Be_Byte_Aligned
2002 (N : Node_Id) return Boolean is
2004 pragma Assert (False
2005 or else NT (N).Nkind = N_Attribute_Reference);
2007 end Must_Be_Byte_Aligned;
2009 function Must_Not_Freeze
2010 (N : Node_Id) return Boolean is
2012 pragma Assert (False
2013 or else NT (N).Nkind = N_Subtype_Indication
2014 or else NT (N).Nkind in N_Subexpr);
2016 end Must_Not_Freeze;
2018 function Must_Not_Override
2019 (N : Node_Id) return Boolean is
2021 pragma Assert (False
2022 or else NT (N).Nkind = N_Entry_Declaration
2023 or else NT (N).Nkind = N_Function_Instantiation
2024 or else NT (N).Nkind = N_Function_Specification
2025 or else NT (N).Nkind = N_Procedure_Instantiation
2026 or else NT (N).Nkind = N_Procedure_Specification);
2028 end Must_Not_Override;
2030 function Must_Override
2031 (N : Node_Id) return Boolean is
2033 pragma Assert (False
2034 or else NT (N).Nkind = N_Entry_Declaration
2035 or else NT (N).Nkind = N_Function_Instantiation
2036 or else NT (N).Nkind = N_Function_Specification
2037 or else NT (N).Nkind = N_Procedure_Instantiation
2038 or else NT (N).Nkind = N_Procedure_Specification);
2043 (N : Node_Id) return Node_Id is
2045 pragma Assert (False
2046 or else NT (N).Nkind = N_Assignment_Statement
2047 or else NT (N).Nkind = N_Attribute_Definition_Clause
2048 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2049 or else NT (N).Nkind = N_Designator
2050 or else NT (N).Nkind = N_Entry_Call_Statement
2051 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2052 or else NT (N).Nkind = N_Exit_Statement
2053 or else NT (N).Nkind = N_Formal_Package_Declaration
2054 or else NT (N).Nkind = N_Function_Call
2055 or else NT (N).Nkind = N_Function_Instantiation
2056 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2057 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2058 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2059 or else NT (N).Nkind = N_Goto_Statement
2060 or else NT (N).Nkind = N_Object_Renaming_Declaration
2061 or else NT (N).Nkind = N_Package_Instantiation
2062 or else NT (N).Nkind = N_Package_Renaming_Declaration
2063 or else NT (N).Nkind = N_Procedure_Call_Statement
2064 or else NT (N).Nkind = N_Procedure_Instantiation
2065 or else NT (N).Nkind = N_Raise_Statement
2066 or else NT (N).Nkind = N_Requeue_Statement
2067 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2068 or else NT (N).Nkind = N_Subunit
2069 or else NT (N).Nkind = N_Variant_Part
2070 or else NT (N).Nkind = N_With_Clause);
2075 (N : Node_Id) return List_Id is
2077 pragma Assert (False
2078 or else NT (N).Nkind = N_Abort_Statement
2079 or else NT (N).Nkind = N_Use_Package_Clause);
2083 function Next_Entity
2084 (N : Node_Id) return Node_Id is
2086 pragma Assert (False
2087 or else NT (N).Nkind = N_Defining_Character_Literal
2088 or else NT (N).Nkind = N_Defining_Identifier
2089 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2093 function Next_Exit_Statement
2094 (N : Node_Id) return Node_Id is
2096 pragma Assert (False
2097 or else NT (N).Nkind = N_Exit_Statement);
2099 end Next_Exit_Statement;
2101 function Next_Implicit_With
2102 (N : Node_Id) return Node_Id is
2104 pragma Assert (False
2105 or else NT (N).Nkind = N_With_Clause);
2107 end Next_Implicit_With;
2109 function Next_Named_Actual
2110 (N : Node_Id) return Node_Id is
2112 pragma Assert (False
2113 or else NT (N).Nkind = N_Parameter_Association);
2115 end Next_Named_Actual;
2117 function Next_Pragma
2118 (N : Node_Id) return Node_Id is
2120 pragma Assert (False
2121 or else NT (N).Nkind = N_Pragma);
2125 function Next_Rep_Item
2126 (N : Node_Id) return Node_Id is
2128 pragma Assert (False
2129 or else NT (N).Nkind = N_Aspect_Specification
2130 or else NT (N).Nkind = N_Attribute_Definition_Clause
2131 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2132 or else NT (N).Nkind = N_Pragma
2133 or else NT (N).Nkind = N_Record_Representation_Clause);
2137 function Next_Use_Clause
2138 (N : Node_Id) return Node_Id is
2140 pragma Assert (False
2141 or else NT (N).Nkind = N_Use_Package_Clause
2142 or else NT (N).Nkind = N_Use_Type_Clause);
2144 end Next_Use_Clause;
2146 function No_Ctrl_Actions
2147 (N : Node_Id) return Boolean is
2149 pragma Assert (False
2150 or else NT (N).Nkind = N_Assignment_Statement);
2152 end No_Ctrl_Actions;
2154 function No_Elaboration_Check
2155 (N : Node_Id) return Boolean is
2157 pragma Assert (False
2158 or else NT (N).Nkind = N_Function_Call
2159 or else NT (N).Nkind = N_Procedure_Call_Statement);
2161 end No_Elaboration_Check;
2163 function No_Entities_Ref_In_Spec
2164 (N : Node_Id) return Boolean is
2166 pragma Assert (False
2167 or else NT (N).Nkind = N_With_Clause);
2169 end No_Entities_Ref_In_Spec;
2171 function No_Initialization
2172 (N : Node_Id) return Boolean is
2174 pragma Assert (False
2175 or else NT (N).Nkind = N_Allocator
2176 or else NT (N).Nkind = N_Object_Declaration);
2178 end No_Initialization;
2180 function No_Truncation
2181 (N : Node_Id) return Boolean is
2183 pragma Assert (False
2184 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2188 function Null_Present
2189 (N : Node_Id) return Boolean is
2191 pragma Assert (False
2192 or else NT (N).Nkind = N_Component_List
2193 or else NT (N).Nkind = N_Procedure_Specification
2194 or else NT (N).Nkind = N_Record_Definition);
2198 function Null_Exclusion_Present
2199 (N : Node_Id) return Boolean is
2201 pragma Assert (False
2202 or else NT (N).Nkind = N_Access_Definition
2203 or else NT (N).Nkind = N_Access_Function_Definition
2204 or else NT (N).Nkind = N_Access_Procedure_Definition
2205 or else NT (N).Nkind = N_Access_To_Object_Definition
2206 or else NT (N).Nkind = N_Allocator
2207 or else NT (N).Nkind = N_Component_Definition
2208 or else NT (N).Nkind = N_Derived_Type_Definition
2209 or else NT (N).Nkind = N_Discriminant_Specification
2210 or else NT (N).Nkind = N_Formal_Object_Declaration
2211 or else NT (N).Nkind = N_Function_Specification
2212 or else NT (N).Nkind = N_Object_Declaration
2213 or else NT (N).Nkind = N_Object_Renaming_Declaration
2214 or else NT (N).Nkind = N_Parameter_Specification
2215 or else NT (N).Nkind = N_Subtype_Declaration);
2217 end Null_Exclusion_Present;
2219 function Null_Exclusion_In_Return_Present
2220 (N : Node_Id) return Boolean is
2222 pragma Assert (False
2223 or else NT (N).Nkind = N_Access_Function_Definition);
2225 end Null_Exclusion_In_Return_Present;
2227 function Null_Record_Present
2228 (N : Node_Id) return Boolean is
2230 pragma Assert (False
2231 or else NT (N).Nkind = N_Aggregate
2232 or else NT (N).Nkind = N_Extension_Aggregate);
2234 end Null_Record_Present;
2236 function Object_Definition
2237 (N : Node_Id) return Node_Id is
2239 pragma Assert (False
2240 or else NT (N).Nkind = N_Object_Declaration);
2242 end Object_Definition;
2244 function Original_Discriminant
2245 (N : Node_Id) return Node_Id is
2247 pragma Assert (False
2248 or else NT (N).Nkind = N_Identifier);
2250 end Original_Discriminant;
2252 function Original_Entity
2253 (N : Node_Id) return Entity_Id is
2255 pragma Assert (False
2256 or else NT (N).Nkind = N_Integer_Literal
2257 or else NT (N).Nkind = N_Real_Literal);
2259 end Original_Entity;
2261 function Others_Discrete_Choices
2262 (N : Node_Id) return List_Id is
2264 pragma Assert (False
2265 or else NT (N).Nkind = N_Others_Choice);
2267 end Others_Discrete_Choices;
2269 function Out_Present
2270 (N : Node_Id) return Boolean is
2272 pragma Assert (False
2273 or else NT (N).Nkind = N_Formal_Object_Declaration
2274 or else NT (N).Nkind = N_Parameter_Specification);
2278 function Parameter_Associations
2279 (N : Node_Id) return List_Id is
2281 pragma Assert (False
2282 or else NT (N).Nkind = N_Entry_Call_Statement
2283 or else NT (N).Nkind = N_Function_Call
2284 or else NT (N).Nkind = N_Procedure_Call_Statement);
2286 end Parameter_Associations;
2288 function Parameter_List_Truncated
2289 (N : Node_Id) return Boolean is
2291 pragma Assert (False
2292 or else NT (N).Nkind = N_Function_Call
2293 or else NT (N).Nkind = N_Procedure_Call_Statement);
2295 end Parameter_List_Truncated;
2297 function Parameter_Specifications
2298 (N : Node_Id) return List_Id is
2300 pragma Assert (False
2301 or else NT (N).Nkind = N_Accept_Statement
2302 or else NT (N).Nkind = N_Access_Function_Definition
2303 or else NT (N).Nkind = N_Access_Procedure_Definition
2304 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2305 or else NT (N).Nkind = N_Entry_Declaration
2306 or else NT (N).Nkind = N_Function_Specification
2307 or else NT (N).Nkind = N_Procedure_Specification);
2309 end Parameter_Specifications;
2311 function Parameter_Type
2312 (N : Node_Id) return Node_Id is
2314 pragma Assert (False
2315 or else NT (N).Nkind = N_Parameter_Specification);
2319 function Parent_Spec
2320 (N : Node_Id) return Node_Id is
2322 pragma Assert (False
2323 or else NT (N).Nkind = N_Function_Instantiation
2324 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2325 or else NT (N).Nkind = N_Generic_Package_Declaration
2326 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2327 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2328 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2329 or else NT (N).Nkind = N_Package_Declaration
2330 or else NT (N).Nkind = N_Package_Instantiation
2331 or else NT (N).Nkind = N_Package_Renaming_Declaration
2332 or else NT (N).Nkind = N_Procedure_Instantiation
2333 or else NT (N).Nkind = N_Subprogram_Declaration
2334 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2339 (N : Node_Id) return Node_Id is
2341 pragma Assert (False
2342 or else NT (N).Nkind = N_Component_Clause);
2346 function Pragma_Argument_Associations
2347 (N : Node_Id) return List_Id is
2349 pragma Assert (False
2350 or else NT (N).Nkind = N_Pragma);
2352 end Pragma_Argument_Associations;
2354 function Pragma_Enabled
2355 (N : Node_Id) return Boolean is
2357 pragma Assert (False
2358 or else NT (N).Nkind = N_Pragma);
2362 function Pragma_Identifier
2363 (N : Node_Id) return Node_Id is
2365 pragma Assert (False
2366 or else NT (N).Nkind = N_Pragma);
2368 end Pragma_Identifier;
2370 function Pragmas_After
2371 (N : Node_Id) return List_Id is
2373 pragma Assert (False
2374 or else NT (N).Nkind = N_Compilation_Unit_Aux
2375 or else NT (N).Nkind = N_Terminate_Alternative);
2379 function Pragmas_Before
2380 (N : Node_Id) return List_Id is
2382 pragma Assert (False
2383 or else NT (N).Nkind = N_Accept_Alternative
2384 or else NT (N).Nkind = N_Delay_Alternative
2385 or else NT (N).Nkind = N_Entry_Call_Alternative
2386 or else NT (N).Nkind = N_Mod_Clause
2387 or else NT (N).Nkind = N_Terminate_Alternative
2388 or else NT (N).Nkind = N_Triggering_Alternative);
2393 (N : Node_Id) return Node_Id is
2395 pragma Assert (False
2396 or else NT (N).Nkind = N_Attribute_Reference
2397 or else NT (N).Nkind = N_Expanded_Name
2398 or else NT (N).Nkind = N_Explicit_Dereference
2399 or else NT (N).Nkind = N_Indexed_Component
2400 or else NT (N).Nkind = N_Reference
2401 or else NT (N).Nkind = N_Selected_Component
2402 or else NT (N).Nkind = N_Slice);
2406 function Present_Expr
2407 (N : Node_Id) return Uint is
2409 pragma Assert (False
2410 or else NT (N).Nkind = N_Variant);
2415 (N : Node_Id) return Boolean is
2417 pragma Assert (False
2418 or else NT (N).Nkind = N_Component_Declaration
2419 or else NT (N).Nkind = N_Discriminant_Specification
2420 or else NT (N).Nkind = N_Exception_Declaration
2421 or else NT (N).Nkind = N_Formal_Object_Declaration
2422 or else NT (N).Nkind = N_Number_Declaration
2423 or else NT (N).Nkind = N_Object_Declaration
2424 or else NT (N).Nkind = N_Parameter_Specification);
2428 function Print_In_Hex
2429 (N : Node_Id) return Boolean is
2431 pragma Assert (False
2432 or else NT (N).Nkind = N_Integer_Literal);
2436 function Private_Declarations
2437 (N : Node_Id) return List_Id is
2439 pragma Assert (False
2440 or else NT (N).Nkind = N_Package_Specification
2441 or else NT (N).Nkind = N_Protected_Definition
2442 or else NT (N).Nkind = N_Task_Definition);
2444 end Private_Declarations;
2446 function Private_Present
2447 (N : Node_Id) return Boolean is
2449 pragma Assert (False
2450 or else NT (N).Nkind = N_Compilation_Unit
2451 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2452 or else NT (N).Nkind = N_With_Clause);
2454 end Private_Present;
2456 function Procedure_To_Call
2457 (N : Node_Id) return Node_Id is
2459 pragma Assert (False
2460 or else NT (N).Nkind = N_Allocator
2461 or else NT (N).Nkind = N_Extended_Return_Statement
2462 or else NT (N).Nkind = N_Free_Statement
2463 or else NT (N).Nkind = N_Return_Statement);
2465 end Procedure_To_Call;
2467 function Proper_Body
2468 (N : Node_Id) return Node_Id is
2470 pragma Assert (False
2471 or else NT (N).Nkind = N_Subunit);
2475 function Protected_Definition
2476 (N : Node_Id) return Node_Id is
2478 pragma Assert (False
2479 or else NT (N).Nkind = N_Protected_Type_Declaration
2480 or else NT (N).Nkind = N_Single_Protected_Declaration);
2482 end Protected_Definition;
2484 function Protected_Present
2485 (N : Node_Id) return Boolean is
2487 pragma Assert (False
2488 or else NT (N).Nkind = N_Access_Function_Definition
2489 or else NT (N).Nkind = N_Access_Procedure_Definition
2490 or else NT (N).Nkind = N_Derived_Type_Definition
2491 or else NT (N).Nkind = N_Record_Definition);
2493 end Protected_Present;
2495 function Raises_Constraint_Error
2496 (N : Node_Id) return Boolean is
2498 pragma Assert (False
2499 or else NT (N).Nkind in N_Subexpr);
2501 end Raises_Constraint_Error;
2503 function Range_Constraint
2504 (N : Node_Id) return Node_Id is
2506 pragma Assert (False
2507 or else NT (N).Nkind = N_Delta_Constraint
2508 or else NT (N).Nkind = N_Digits_Constraint);
2510 end Range_Constraint;
2512 function Range_Expression
2513 (N : Node_Id) return Node_Id is
2515 pragma Assert (False
2516 or else NT (N).Nkind = N_Range_Constraint);
2518 end Range_Expression;
2520 function Real_Range_Specification
2521 (N : Node_Id) return Node_Id is
2523 pragma Assert (False
2524 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2525 or else NT (N).Nkind = N_Floating_Point_Definition
2526 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2528 end Real_Range_Specification;
2531 (N : Node_Id) return Ureal is
2533 pragma Assert (False
2534 or else NT (N).Nkind = N_Real_Literal);
2539 (N : Node_Id) return Uint is
2541 pragma Assert (False
2542 or else NT (N).Nkind = N_Raise_Constraint_Error
2543 or else NT (N).Nkind = N_Raise_Program_Error
2544 or else NT (N).Nkind = N_Raise_Storage_Error);
2548 function Record_Extension_Part
2549 (N : Node_Id) return Node_Id is
2551 pragma Assert (False
2552 or else NT (N).Nkind = N_Derived_Type_Definition);
2554 end Record_Extension_Part;
2556 function Redundant_Use
2557 (N : Node_Id) return Boolean is
2559 pragma Assert (False
2560 or else NT (N).Nkind = N_Attribute_Reference
2561 or else NT (N).Nkind = N_Expanded_Name
2562 or else NT (N).Nkind = N_Identifier);
2566 function Renaming_Exception
2567 (N : Node_Id) return Node_Id is
2569 pragma Assert (False
2570 or else NT (N).Nkind = N_Exception_Declaration);
2572 end Renaming_Exception;
2574 function Result_Definition
2575 (N : Node_Id) return Node_Id is
2577 pragma Assert (False
2578 or else NT (N).Nkind = N_Access_Function_Definition
2579 or else NT (N).Nkind = N_Function_Specification);
2581 end Result_Definition;
2583 function Return_Object_Declarations
2584 (N : Node_Id) return List_Id is
2586 pragma Assert (False
2587 or else NT (N).Nkind = N_Extended_Return_Statement);
2589 end Return_Object_Declarations;
2591 function Return_Statement_Entity
2592 (N : Node_Id) return Node_Id is
2594 pragma Assert (False
2595 or else NT (N).Nkind = N_Extended_Return_Statement
2596 or else NT (N).Nkind = N_Return_Statement);
2598 end Return_Statement_Entity;
2600 function Reverse_Present
2601 (N : Node_Id) return Boolean is
2603 pragma Assert (False
2604 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2606 end Reverse_Present;
2609 (N : Node_Id) return Node_Id is
2611 pragma Assert (False
2612 or else NT (N).Nkind in N_Op
2613 or else NT (N).Nkind = N_And_Then
2614 or else NT (N).Nkind = N_In
2615 or else NT (N).Nkind = N_Not_In
2616 or else NT (N).Nkind = N_Or_Else);
2620 function Rounded_Result
2621 (N : Node_Id) return Boolean is
2623 pragma Assert (False
2624 or else NT (N).Nkind = N_Op_Divide
2625 or else NT (N).Nkind = N_Op_Multiply
2626 or else NT (N).Nkind = N_Type_Conversion);
2630 function SCIL_Controlling_Tag
2631 (N : Node_Id) return Node_Id is
2633 pragma Assert (False
2634 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2636 end SCIL_Controlling_Tag;
2638 function SCIL_Entity
2639 (N : Node_Id) return Node_Id is
2641 pragma Assert (False
2642 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2643 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2644 or else NT (N).Nkind = N_SCIL_Membership_Test);
2648 function SCIL_Tag_Value
2649 (N : Node_Id) return Node_Id is
2651 pragma Assert (False
2652 or else NT (N).Nkind = N_SCIL_Membership_Test);
2656 function SCIL_Target_Prim
2657 (N : Node_Id) return Node_Id is
2659 pragma Assert (False
2660 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2662 end SCIL_Target_Prim;
2665 (N : Node_Id) return Node_Id is
2667 pragma Assert (False
2668 or else NT (N).Nkind = N_Defining_Character_Literal
2669 or else NT (N).Nkind = N_Defining_Identifier
2670 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2674 function Select_Alternatives
2675 (N : Node_Id) return List_Id is
2677 pragma Assert (False
2678 or else NT (N).Nkind = N_Selective_Accept);
2680 end Select_Alternatives;
2682 function Selector_Name
2683 (N : Node_Id) return Node_Id is
2685 pragma Assert (False
2686 or else NT (N).Nkind = N_Expanded_Name
2687 or else NT (N).Nkind = N_Generic_Association
2688 or else NT (N).Nkind = N_Parameter_Association
2689 or else NT (N).Nkind = N_Selected_Component);
2693 function Selector_Names
2694 (N : Node_Id) return List_Id is
2696 pragma Assert (False
2697 or else NT (N).Nkind = N_Discriminant_Association);
2701 function Shift_Count_OK
2702 (N : Node_Id) return Boolean is
2704 pragma Assert (False
2705 or else NT (N).Nkind = N_Op_Rotate_Left
2706 or else NT (N).Nkind = N_Op_Rotate_Right
2707 or else NT (N).Nkind = N_Op_Shift_Left
2708 or else NT (N).Nkind = N_Op_Shift_Right
2709 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2713 function Source_Type
2714 (N : Node_Id) return Entity_Id is
2716 pragma Assert (False
2717 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2721 function Specification
2722 (N : Node_Id) return Node_Id is
2724 pragma Assert (False
2725 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2726 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2727 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2728 or else NT (N).Nkind = N_Generic_Package_Declaration
2729 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2730 or else NT (N).Nkind = N_Package_Declaration
2731 or else NT (N).Nkind = N_Parameterized_Expression
2732 or else NT (N).Nkind = N_Subprogram_Body
2733 or else NT (N).Nkind = N_Subprogram_Body_Stub
2734 or else NT (N).Nkind = N_Subprogram_Declaration
2735 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2740 (N : Node_Id) return List_Id is
2742 pragma Assert (False
2743 or else NT (N).Nkind = N_Abortable_Part
2744 or else NT (N).Nkind = N_Accept_Alternative
2745 or else NT (N).Nkind = N_Case_Statement_Alternative
2746 or else NT (N).Nkind = N_Delay_Alternative
2747 or else NT (N).Nkind = N_Entry_Call_Alternative
2748 or else NT (N).Nkind = N_Exception_Handler
2749 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2750 or else NT (N).Nkind = N_Loop_Statement
2751 or else NT (N).Nkind = N_Triggering_Alternative);
2755 function Static_Processing_OK
2756 (N : Node_Id) return Boolean is
2758 pragma Assert (False
2759 or else NT (N).Nkind = N_Aggregate);
2761 end Static_Processing_OK;
2763 function Storage_Pool
2764 (N : Node_Id) return Node_Id is
2766 pragma Assert (False
2767 or else NT (N).Nkind = N_Allocator
2768 or else NT (N).Nkind = N_Extended_Return_Statement
2769 or else NT (N).Nkind = N_Free_Statement
2770 or else NT (N).Nkind = N_Return_Statement);
2775 (N : Node_Id) return String_Id is
2777 pragma Assert (False
2778 or else NT (N).Nkind = N_Operator_Symbol
2779 or else NT (N).Nkind = N_String_Literal);
2783 function Subtype_Indication
2784 (N : Node_Id) return Node_Id is
2786 pragma Assert (False
2787 or else NT (N).Nkind = N_Access_To_Object_Definition
2788 or else NT (N).Nkind = N_Component_Definition
2789 or else NT (N).Nkind = N_Derived_Type_Definition
2790 or else NT (N).Nkind = N_Private_Extension_Declaration
2791 or else NT (N).Nkind = N_Subtype_Declaration);
2793 end Subtype_Indication;
2795 function Suppress_Loop_Warnings
2796 (N : Node_Id) return Boolean is
2798 pragma Assert (False
2799 or else NT (N).Nkind = N_Loop_Statement);
2801 end Suppress_Loop_Warnings;
2803 function Subtype_Mark
2804 (N : Node_Id) return Node_Id is
2806 pragma Assert (False
2807 or else NT (N).Nkind = N_Access_Definition
2808 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2809 or else NT (N).Nkind = N_Formal_Object_Declaration
2810 or else NT (N).Nkind = N_Object_Renaming_Declaration
2811 or else NT (N).Nkind = N_Qualified_Expression
2812 or else NT (N).Nkind = N_Subtype_Indication
2813 or else NT (N).Nkind = N_Type_Conversion
2814 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2818 function Subtype_Marks
2819 (N : Node_Id) return List_Id is
2821 pragma Assert (False
2822 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2823 or else NT (N).Nkind = N_Use_Type_Clause);
2827 function Synchronized_Present
2828 (N : Node_Id) return Boolean is
2830 pragma Assert (False
2831 or else NT (N).Nkind = N_Derived_Type_Definition
2832 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2833 or else NT (N).Nkind = N_Private_Extension_Declaration
2834 or else NT (N).Nkind = N_Record_Definition);
2836 end Synchronized_Present;
2838 function Tagged_Present
2839 (N : Node_Id) return Boolean is
2841 pragma Assert (False
2842 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2843 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2844 or else NT (N).Nkind = N_Private_Type_Declaration
2845 or else NT (N).Nkind = N_Record_Definition);
2849 function Target_Type
2850 (N : Node_Id) return Entity_Id is
2852 pragma Assert (False
2853 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2857 function Task_Definition
2858 (N : Node_Id) return Node_Id is
2860 pragma Assert (False
2861 or else NT (N).Nkind = N_Single_Task_Declaration
2862 or else NT (N).Nkind = N_Task_Type_Declaration);
2864 end Task_Definition;
2866 function Task_Present
2867 (N : Node_Id) return Boolean is
2869 pragma Assert (False
2870 or else NT (N).Nkind = N_Derived_Type_Definition
2871 or else NT (N).Nkind = N_Record_Definition);
2875 function Then_Actions
2876 (N : Node_Id) return List_Id is
2878 pragma Assert (False
2879 or else NT (N).Nkind = N_Conditional_Expression);
2883 function Then_Statements
2884 (N : Node_Id) return List_Id is
2886 pragma Assert (False
2887 or else NT (N).Nkind = N_Elsif_Part
2888 or else NT (N).Nkind = N_If_Statement);
2890 end Then_Statements;
2892 function Treat_Fixed_As_Integer
2893 (N : Node_Id) return Boolean is
2895 pragma Assert (False
2896 or else NT (N).Nkind = N_Op_Divide
2897 or else NT (N).Nkind = N_Op_Mod
2898 or else NT (N).Nkind = N_Op_Multiply
2899 or else NT (N).Nkind = N_Op_Rem);
2901 end Treat_Fixed_As_Integer;
2903 function Triggering_Alternative
2904 (N : Node_Id) return Node_Id is
2906 pragma Assert (False
2907 or else NT (N).Nkind = N_Asynchronous_Select);
2909 end Triggering_Alternative;
2911 function Triggering_Statement
2912 (N : Node_Id) return Node_Id is
2914 pragma Assert (False
2915 or else NT (N).Nkind = N_Triggering_Alternative);
2917 end Triggering_Statement;
2920 (N : Node_Id) return Elist_Id is
2922 pragma Assert (False
2923 or else NT (N).Nkind = N_Freeze_Entity);
2927 function Type_Definition
2928 (N : Node_Id) return Node_Id is
2930 pragma Assert (False
2931 or else NT (N).Nkind = N_Full_Type_Declaration);
2933 end Type_Definition;
2936 (N : Node_Id) return Node_Id is
2938 pragma Assert (False
2939 or else NT (N).Nkind = N_Compilation_Unit);
2943 function Unknown_Discriminants_Present
2944 (N : Node_Id) return Boolean is
2946 pragma Assert (False
2947 or else NT (N).Nkind = N_Formal_Type_Declaration
2948 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2949 or else NT (N).Nkind = N_Private_Extension_Declaration
2950 or else NT (N).Nkind = N_Private_Type_Declaration);
2952 end Unknown_Discriminants_Present;
2954 function Unreferenced_In_Spec
2955 (N : Node_Id) return Boolean is
2957 pragma Assert (False
2958 or else NT (N).Nkind = N_With_Clause);
2960 end Unreferenced_In_Spec;
2962 function Variant_Part
2963 (N : Node_Id) return Node_Id is
2965 pragma Assert (False
2966 or else NT (N).Nkind = N_Component_List);
2971 (N : Node_Id) return List_Id is
2973 pragma Assert (False
2974 or else NT (N).Nkind = N_Variant_Part);
2978 function Visible_Declarations
2979 (N : Node_Id) return List_Id is
2981 pragma Assert (False
2982 or else NT (N).Nkind = N_Package_Specification
2983 or else NT (N).Nkind = N_Protected_Definition
2984 or else NT (N).Nkind = N_Task_Definition);
2986 end Visible_Declarations;
2988 function Was_Originally_Stub
2989 (N : Node_Id) return Boolean is
2991 pragma Assert (False
2992 or else NT (N).Nkind = N_Package_Body
2993 or else NT (N).Nkind = N_Protected_Body
2994 or else NT (N).Nkind = N_Subprogram_Body
2995 or else NT (N).Nkind = N_Task_Body);
2997 end Was_Originally_Stub;
2999 function Withed_Body
3000 (N : Node_Id) return Node_Id is
3002 pragma Assert (False
3003 or else NT (N).Nkind = N_With_Clause);
3007 function Zero_Cost_Handling
3008 (N : Node_Id) return Boolean is
3010 pragma Assert (False
3011 or else NT (N).Nkind = N_Exception_Handler
3012 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3014 end Zero_Cost_Handling;
3016 --------------------------
3017 -- Field Set Procedures --
3018 --------------------------
3020 procedure Set_ABE_Is_Certain
3021 (N : Node_Id; Val : Boolean := True) is
3023 pragma Assert (False
3024 or else NT (N).Nkind = N_Formal_Package_Declaration
3025 or else NT (N).Nkind = N_Function_Call
3026 or else NT (N).Nkind = N_Function_Instantiation
3027 or else NT (N).Nkind = N_Package_Instantiation
3028 or else NT (N).Nkind = N_Procedure_Call_Statement
3029 or else NT (N).Nkind = N_Procedure_Instantiation);
3030 Set_Flag18 (N, Val);
3031 end Set_ABE_Is_Certain;
3033 procedure Set_Abort_Present
3034 (N : Node_Id; Val : Boolean := True) is
3036 pragma Assert (False
3037 or else NT (N).Nkind = N_Requeue_Statement);
3038 Set_Flag15 (N, Val);
3039 end Set_Abort_Present;
3041 procedure Set_Abortable_Part
3042 (N : Node_Id; Val : Node_Id) is
3044 pragma Assert (False
3045 or else NT (N).Nkind = N_Asynchronous_Select);
3046 Set_Node2_With_Parent (N, Val);
3047 end Set_Abortable_Part;
3049 procedure Set_Abstract_Present
3050 (N : Node_Id; Val : Boolean := True) is
3052 pragma Assert (False
3053 or else NT (N).Nkind = N_Derived_Type_Definition
3054 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3055 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3056 or else NT (N).Nkind = N_Private_Extension_Declaration
3057 or else NT (N).Nkind = N_Private_Type_Declaration
3058 or else NT (N).Nkind = N_Record_Definition);
3060 end Set_Abstract_Present;
3062 procedure Set_Accept_Handler_Records
3063 (N : Node_Id; Val : List_Id) is
3065 pragma Assert (False
3066 or else NT (N).Nkind = N_Accept_Alternative);
3067 Set_List5 (N, Val); -- semantic field, no parent set
3068 end Set_Accept_Handler_Records;
3070 procedure Set_Accept_Statement
3071 (N : Node_Id; Val : Node_Id) is
3073 pragma Assert (False
3074 or else NT (N).Nkind = N_Accept_Alternative);
3075 Set_Node2_With_Parent (N, Val);
3076 end Set_Accept_Statement;
3078 procedure Set_Access_Definition
3079 (N : Node_Id; Val : Node_Id) is
3081 pragma Assert (False
3082 or else NT (N).Nkind = N_Component_Definition
3083 or else NT (N).Nkind = N_Formal_Object_Declaration
3084 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3085 Set_Node3_With_Parent (N, Val);
3086 end Set_Access_Definition;
3088 procedure Set_Access_To_Subprogram_Definition
3089 (N : Node_Id; Val : Node_Id) is
3091 pragma Assert (False
3092 or else NT (N).Nkind = N_Access_Definition);
3093 Set_Node3_With_Parent (N, Val);
3094 end Set_Access_To_Subprogram_Definition;
3096 procedure Set_Access_Types_To_Process
3097 (N : Node_Id; Val : Elist_Id) is
3099 pragma Assert (False
3100 or else NT (N).Nkind = N_Freeze_Entity);
3101 Set_Elist2 (N, Val); -- semantic field, no parent set
3102 end Set_Access_Types_To_Process;
3104 procedure Set_Actions
3105 (N : Node_Id; Val : List_Id) is
3107 pragma Assert (False
3108 or else NT (N).Nkind = N_And_Then
3109 or else NT (N).Nkind = N_Case_Expression_Alternative
3110 or else NT (N).Nkind = N_Compilation_Unit_Aux
3111 or else NT (N).Nkind = N_Expression_With_Actions
3112 or else NT (N).Nkind = N_Freeze_Entity
3113 or else NT (N).Nkind = N_Or_Else);
3114 Set_List1_With_Parent (N, Val);
3117 procedure Set_Activation_Chain_Entity
3118 (N : Node_Id; Val : Node_Id) is
3120 pragma Assert (False
3121 or else NT (N).Nkind = N_Block_Statement
3122 or else NT (N).Nkind = N_Entry_Body
3123 or else NT (N).Nkind = N_Generic_Package_Declaration
3124 or else NT (N).Nkind = N_Package_Declaration
3125 or else NT (N).Nkind = N_Subprogram_Body
3126 or else NT (N).Nkind = N_Task_Body);
3127 Set_Node3 (N, Val); -- semantic field, no parent set
3128 end Set_Activation_Chain_Entity;
3130 procedure Set_Acts_As_Spec
3131 (N : Node_Id; Val : Boolean := True) is
3133 pragma Assert (False
3134 or else NT (N).Nkind = N_Compilation_Unit
3135 or else NT (N).Nkind = N_Subprogram_Body);
3137 end Set_Acts_As_Spec;
3139 procedure Set_Actual_Designated_Subtype
3140 (N : Node_Id; Val : Node_Id) is
3142 pragma Assert (False
3143 or else NT (N).Nkind = N_Explicit_Dereference
3144 or else NT (N).Nkind = N_Free_Statement);
3146 end Set_Actual_Designated_Subtype;
3148 procedure Set_Address_Warning_Posted
3149 (N : Node_Id; Val : Boolean := True) is
3151 pragma Assert (False
3152 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3153 Set_Flag18 (N, Val);
3154 end Set_Address_Warning_Posted;
3156 procedure Set_Aggregate_Bounds
3157 (N : Node_Id; Val : Node_Id) is
3159 pragma Assert (False
3160 or else NT (N).Nkind = N_Aggregate);
3161 Set_Node3 (N, Val); -- semantic field, no parent set
3162 end Set_Aggregate_Bounds;
3164 procedure Set_Aliased_Present
3165 (N : Node_Id; Val : Boolean := True) is
3167 pragma Assert (False
3168 or else NT (N).Nkind = N_Component_Definition
3169 or else NT (N).Nkind = N_Object_Declaration);
3171 end Set_Aliased_Present;
3173 procedure Set_All_Others
3174 (N : Node_Id; Val : Boolean := True) is
3176 pragma Assert (False
3177 or else NT (N).Nkind = N_Others_Choice);
3178 Set_Flag11 (N, Val);
3181 procedure Set_All_Present
3182 (N : Node_Id; Val : Boolean := True) is
3184 pragma Assert (False
3185 or else NT (N).Nkind = N_Access_Definition
3186 or else NT (N).Nkind = N_Access_To_Object_Definition
3187 or else NT (N).Nkind = N_Use_Type_Clause);
3188 Set_Flag15 (N, Val);
3189 end Set_All_Present;
3191 procedure Set_Alternatives
3192 (N : Node_Id; Val : List_Id) is
3194 pragma Assert (False
3195 or else NT (N).Nkind = N_Case_Expression
3196 or else NT (N).Nkind = N_Case_Statement
3197 or else NT (N).Nkind = N_In
3198 or else NT (N).Nkind = N_Not_In);
3199 Set_List4_With_Parent (N, Val);
3200 end Set_Alternatives;
3202 procedure Set_Ancestor_Part
3203 (N : Node_Id; Val : Node_Id) is
3205 pragma Assert (False
3206 or else NT (N).Nkind = N_Extension_Aggregate);
3207 Set_Node3_With_Parent (N, Val);
3208 end Set_Ancestor_Part;
3210 procedure Set_Array_Aggregate
3211 (N : Node_Id; Val : Node_Id) is
3213 pragma Assert (False
3214 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3215 Set_Node3_With_Parent (N, Val);
3216 end Set_Array_Aggregate;
3218 procedure Set_Aspect_Cancel
3219 (N : Node_Id; Val : Boolean := True) is
3221 pragma Assert (False
3222 or else NT (N).Nkind = N_Pragma);
3223 Set_Flag11 (N, Val);
3224 end Set_Aspect_Cancel;
3226 procedure Set_Aspect_Rep_Item
3227 (N : Node_Id; Val : Node_Id) is
3229 pragma Assert (False
3230 or else NT (N).Nkind = N_Aspect_Specification);
3232 end Set_Aspect_Rep_Item;
3234 procedure Set_Assignment_OK
3235 (N : Node_Id; Val : Boolean := True) is
3237 pragma Assert (False
3238 or else NT (N).Nkind = N_Object_Declaration
3239 or else NT (N).Nkind in N_Subexpr);
3240 Set_Flag15 (N, Val);
3241 end Set_Assignment_OK;
3243 procedure Set_Associated_Node
3244 (N : Node_Id; Val : Node_Id) is
3246 pragma Assert (False
3247 or else NT (N).Nkind in N_Has_Entity
3248 or else NT (N).Nkind = N_Aggregate
3249 or else NT (N).Nkind = N_Extension_Aggregate
3250 or else NT (N).Nkind = N_Selected_Component);
3251 Set_Node4 (N, Val); -- semantic field, no parent set
3252 end Set_Associated_Node;
3254 procedure Set_At_End_Proc
3255 (N : Node_Id; Val : Node_Id) is
3257 pragma Assert (False
3258 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3260 end Set_At_End_Proc;
3262 procedure Set_Attribute_Name
3263 (N : Node_Id; Val : Name_Id) is
3265 pragma Assert (False
3266 or else NT (N).Nkind = N_Attribute_Reference);
3268 end Set_Attribute_Name;
3270 procedure Set_Aux_Decls_Node
3271 (N : Node_Id; Val : Node_Id) is
3273 pragma Assert (False
3274 or else NT (N).Nkind = N_Compilation_Unit);
3275 Set_Node5_With_Parent (N, Val);
3276 end Set_Aux_Decls_Node;
3278 procedure Set_Backwards_OK
3279 (N : Node_Id; Val : Boolean := True) is
3281 pragma Assert (False
3282 or else NT (N).Nkind = N_Assignment_Statement);
3284 end Set_Backwards_OK;
3286 procedure Set_Bad_Is_Detected
3287 (N : Node_Id; Val : Boolean := True) is
3289 pragma Assert (False
3290 or else NT (N).Nkind = N_Subprogram_Body);
3291 Set_Flag15 (N, Val);
3292 end Set_Bad_Is_Detected;
3294 procedure Set_Body_Required
3295 (N : Node_Id; Val : Boolean := True) is
3297 pragma Assert (False
3298 or else NT (N).Nkind = N_Compilation_Unit);
3299 Set_Flag13 (N, Val);
3300 end Set_Body_Required;
3302 procedure Set_Body_To_Inline
3303 (N : Node_Id; Val : Node_Id) is
3305 pragma Assert (False
3306 or else NT (N).Nkind = N_Subprogram_Declaration);
3308 end Set_Body_To_Inline;
3310 procedure Set_Box_Present
3311 (N : Node_Id; Val : Boolean := True) is
3313 pragma Assert (False
3314 or else NT (N).Nkind = N_Component_Association
3315 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3316 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3317 or else NT (N).Nkind = N_Formal_Package_Declaration
3318 or else NT (N).Nkind = N_Generic_Association);
3319 Set_Flag15 (N, Val);
3320 end Set_Box_Present;
3322 procedure Set_By_Ref
3323 (N : Node_Id; Val : Boolean := True) is
3325 pragma Assert (False
3326 or else NT (N).Nkind = N_Extended_Return_Statement
3327 or else NT (N).Nkind = N_Return_Statement);
3331 procedure Set_Char_Literal_Value
3332 (N : Node_Id; Val : Uint) is
3334 pragma Assert (False
3335 or else NT (N).Nkind = N_Character_Literal);
3337 end Set_Char_Literal_Value;
3340 (N : Node_Id; Val : Name_Id) is
3342 pragma Assert (False
3343 or else NT (N).Nkind in N_Has_Chars);
3347 procedure Set_Check_Address_Alignment
3348 (N : Node_Id; Val : Boolean := True) is
3350 pragma Assert (False
3351 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3352 Set_Flag11 (N, Val);
3353 end Set_Check_Address_Alignment;
3355 procedure Set_Choice_Parameter
3356 (N : Node_Id; Val : Node_Id) is
3358 pragma Assert (False
3359 or else NT (N).Nkind = N_Exception_Handler);
3360 Set_Node2_With_Parent (N, Val);
3361 end Set_Choice_Parameter;
3363 procedure Set_Choices
3364 (N : Node_Id; Val : List_Id) is
3366 pragma Assert (False
3367 or else NT (N).Nkind = N_Component_Association);
3368 Set_List1_With_Parent (N, Val);
3371 procedure Set_Class_Present
3372 (N : Node_Id; Val : Boolean := True) is
3374 pragma Assert (False
3375 or else NT (N).Nkind = N_Aspect_Specification);
3377 end Set_Class_Present;
3379 procedure Set_Coextensions
3380 (N : Node_Id; Val : Elist_Id) is
3382 pragma Assert (False
3383 or else NT (N).Nkind = N_Allocator);
3384 Set_Elist4 (N, Val);
3385 end Set_Coextensions;
3387 procedure Set_Comes_From_Extended_Return_Statement
3388 (N : Node_Id; Val : Boolean := True) is
3390 pragma Assert (False
3391 or else NT (N).Nkind = N_Return_Statement);
3392 Set_Flag18 (N, Val);
3393 end Set_Comes_From_Extended_Return_Statement;
3395 procedure Set_Compile_Time_Known_Aggregate
3396 (N : Node_Id; Val : Boolean := True) is
3398 pragma Assert (False
3399 or else NT (N).Nkind = N_Aggregate);
3400 Set_Flag18 (N, Val);
3401 end Set_Compile_Time_Known_Aggregate;
3403 procedure Set_Component_Associations
3404 (N : Node_Id; Val : List_Id) is
3406 pragma Assert (False
3407 or else NT (N).Nkind = N_Aggregate
3408 or else NT (N).Nkind = N_Extension_Aggregate);
3409 Set_List2_With_Parent (N, Val);
3410 end Set_Component_Associations;
3412 procedure Set_Component_Clauses
3413 (N : Node_Id; Val : List_Id) is
3415 pragma Assert (False
3416 or else NT (N).Nkind = N_Record_Representation_Clause);
3417 Set_List3_With_Parent (N, Val);
3418 end Set_Component_Clauses;
3420 procedure Set_Component_Definition
3421 (N : Node_Id; Val : Node_Id) is
3423 pragma Assert (False
3424 or else NT (N).Nkind = N_Component_Declaration
3425 or else NT (N).Nkind = N_Constrained_Array_Definition
3426 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3427 Set_Node4_With_Parent (N, Val);
3428 end Set_Component_Definition;
3430 procedure Set_Component_Items
3431 (N : Node_Id; Val : List_Id) is
3433 pragma Assert (False
3434 or else NT (N).Nkind = N_Component_List);
3435 Set_List3_With_Parent (N, Val);
3436 end Set_Component_Items;
3438 procedure Set_Component_List
3439 (N : Node_Id; Val : Node_Id) is
3441 pragma Assert (False
3442 or else NT (N).Nkind = N_Record_Definition
3443 or else NT (N).Nkind = N_Variant);
3444 Set_Node1_With_Parent (N, Val);
3445 end Set_Component_List;
3447 procedure Set_Component_Name
3448 (N : Node_Id; Val : Node_Id) is
3450 pragma Assert (False
3451 or else NT (N).Nkind = N_Component_Clause);
3452 Set_Node1_With_Parent (N, Val);
3453 end Set_Component_Name;
3455 procedure Set_Componentwise_Assignment
3456 (N : Node_Id; Val : Boolean := True) is
3458 pragma Assert (False
3459 or else NT (N).Nkind = N_Assignment_Statement);
3460 Set_Flag14 (N, Val);
3461 end Set_Componentwise_Assignment;
3463 procedure Set_Condition
3464 (N : Node_Id; Val : Node_Id) is
3466 pragma Assert (False
3467 or else NT (N).Nkind = N_Accept_Alternative
3468 or else NT (N).Nkind = N_Delay_Alternative
3469 or else NT (N).Nkind = N_Elsif_Part
3470 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3471 or else NT (N).Nkind = N_Exit_Statement
3472 or else NT (N).Nkind = N_If_Statement
3473 or else NT (N).Nkind = N_Iteration_Scheme
3474 or else NT (N).Nkind = N_Raise_Constraint_Error
3475 or else NT (N).Nkind = N_Raise_Program_Error
3476 or else NT (N).Nkind = N_Raise_Storage_Error
3477 or else NT (N).Nkind = N_Terminate_Alternative);
3478 Set_Node1_With_Parent (N, Val);
3481 procedure Set_Condition_Actions
3482 (N : Node_Id; Val : List_Id) is
3484 pragma Assert (False
3485 or else NT (N).Nkind = N_Elsif_Part
3486 or else NT (N).Nkind = N_Iteration_Scheme);
3487 Set_List3 (N, Val); -- semantic field, no parent set
3488 end Set_Condition_Actions;
3490 procedure Set_Config_Pragmas
3491 (N : Node_Id; Val : List_Id) is
3493 pragma Assert (False
3494 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3495 Set_List4_With_Parent (N, Val);
3496 end Set_Config_Pragmas;
3498 procedure Set_Constant_Present
3499 (N : Node_Id; Val : Boolean := True) is
3501 pragma Assert (False
3502 or else NT (N).Nkind = N_Access_Definition
3503 or else NT (N).Nkind = N_Access_To_Object_Definition
3504 or else NT (N).Nkind = N_Object_Declaration);
3505 Set_Flag17 (N, Val);
3506 end Set_Constant_Present;
3508 procedure Set_Constraint
3509 (N : Node_Id; Val : Node_Id) is
3511 pragma Assert (False
3512 or else NT (N).Nkind = N_Subtype_Indication);
3513 Set_Node3_With_Parent (N, Val);
3516 procedure Set_Constraints
3517 (N : Node_Id; Val : List_Id) is
3519 pragma Assert (False
3520 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3521 Set_List1_With_Parent (N, Val);
3522 end Set_Constraints;
3524 procedure Set_Context_Installed
3525 (N : Node_Id; Val : Boolean := True) is
3527 pragma Assert (False
3528 or else NT (N).Nkind = N_With_Clause);
3529 Set_Flag13 (N, Val);
3530 end Set_Context_Installed;
3532 procedure Set_Context_Items
3533 (N : Node_Id; Val : List_Id) is
3535 pragma Assert (False
3536 or else NT (N).Nkind = N_Compilation_Unit);
3537 Set_List1_With_Parent (N, Val);
3538 end Set_Context_Items;
3540 procedure Set_Context_Pending
3541 (N : Node_Id; Val : Boolean := True) is
3543 pragma Assert (False
3544 or else NT (N).Nkind = N_Compilation_Unit);
3545 Set_Flag16 (N, Val);
3546 end Set_Context_Pending;
3548 procedure Set_Controlling_Argument
3549 (N : Node_Id; Val : Node_Id) is
3551 pragma Assert (False
3552 or else NT (N).Nkind = N_Function_Call
3553 or else NT (N).Nkind = N_Procedure_Call_Statement);
3554 Set_Node1 (N, Val); -- semantic field, no parent set
3555 end Set_Controlling_Argument;
3557 procedure Set_Conversion_OK
3558 (N : Node_Id; Val : Boolean := True) is
3560 pragma Assert (False
3561 or else NT (N).Nkind = N_Type_Conversion);
3562 Set_Flag14 (N, Val);
3563 end Set_Conversion_OK;
3565 procedure Set_Corresponding_Body
3566 (N : Node_Id; Val : Node_Id) is
3568 pragma Assert (False
3569 or else NT (N).Nkind = N_Entry_Declaration
3570 or else NT (N).Nkind = N_Generic_Package_Declaration
3571 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3572 or else NT (N).Nkind = N_Package_Body_Stub
3573 or else NT (N).Nkind = N_Package_Declaration
3574 or else NT (N).Nkind = N_Protected_Body_Stub
3575 or else NT (N).Nkind = N_Protected_Type_Declaration
3576 or else NT (N).Nkind = N_Subprogram_Body_Stub
3577 or else NT (N).Nkind = N_Subprogram_Declaration
3578 or else NT (N).Nkind = N_Task_Body_Stub
3579 or else NT (N).Nkind = N_Task_Type_Declaration);
3580 Set_Node5 (N, Val); -- semantic field, no parent set
3581 end Set_Corresponding_Body;
3583 procedure Set_Corresponding_Formal_Spec
3584 (N : Node_Id; Val : Node_Id) is
3586 pragma Assert (False
3587 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3588 Set_Node3 (N, Val); -- semantic field, no parent set
3589 end Set_Corresponding_Formal_Spec;
3591 procedure Set_Corresponding_Generic_Association
3592 (N : Node_Id; Val : Node_Id) is
3594 pragma Assert (False
3595 or else NT (N).Nkind = N_Object_Declaration
3596 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3597 Set_Node5 (N, Val); -- semantic field, no parent set
3598 end Set_Corresponding_Generic_Association;
3600 procedure Set_Corresponding_Integer_Value
3601 (N : Node_Id; Val : Uint) is
3603 pragma Assert (False
3604 or else NT (N).Nkind = N_Real_Literal);
3605 Set_Uint4 (N, Val); -- semantic field, no parent set
3606 end Set_Corresponding_Integer_Value;
3608 procedure Set_Corresponding_Spec
3609 (N : Node_Id; Val : Node_Id) is
3611 pragma Assert (False
3612 or else NT (N).Nkind = N_Package_Body
3613 or else NT (N).Nkind = N_Protected_Body
3614 or else NT (N).Nkind = N_Subprogram_Body
3615 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3616 or else NT (N).Nkind = N_Task_Body
3617 or else NT (N).Nkind = N_With_Clause);
3618 Set_Node5 (N, Val); -- semantic field, no parent set
3619 end Set_Corresponding_Spec;
3621 procedure Set_Corresponding_Stub
3622 (N : Node_Id; Val : Node_Id) is
3624 pragma Assert (False
3625 or else NT (N).Nkind = N_Subunit);
3627 end Set_Corresponding_Stub;
3629 procedure Set_Dcheck_Function
3630 (N : Node_Id; Val : Entity_Id) is
3632 pragma Assert (False
3633 or else NT (N).Nkind = N_Variant);
3634 Set_Node5 (N, Val); -- semantic field, no parent set
3635 end Set_Dcheck_Function;
3637 procedure Set_Debug_Statement
3638 (N : Node_Id; Val : Node_Id) is
3640 pragma Assert (False
3641 or else NT (N).Nkind = N_Pragma);
3642 Set_Node3_With_Parent (N, Val);
3643 end Set_Debug_Statement;
3645 procedure Set_Declarations
3646 (N : Node_Id; Val : List_Id) is
3648 pragma Assert (False
3649 or else NT (N).Nkind = N_Accept_Statement
3650 or else NT (N).Nkind = N_Block_Statement
3651 or else NT (N).Nkind = N_Compilation_Unit_Aux
3652 or else NT (N).Nkind = N_Entry_Body
3653 or else NT (N).Nkind = N_Package_Body
3654 or else NT (N).Nkind = N_Protected_Body
3655 or else NT (N).Nkind = N_Subprogram_Body
3656 or else NT (N).Nkind = N_Task_Body);
3657 Set_List2_With_Parent (N, Val);
3658 end Set_Declarations;
3660 procedure Set_Default_Expression
3661 (N : Node_Id; Val : Node_Id) is
3663 pragma Assert (False
3664 or else NT (N).Nkind = N_Formal_Object_Declaration
3665 or else NT (N).Nkind = N_Parameter_Specification);
3666 Set_Node5 (N, Val); -- semantic field, no parent set
3667 end Set_Default_Expression;
3669 procedure Set_Default_Name
3670 (N : Node_Id; Val : Node_Id) is
3672 pragma Assert (False
3673 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3674 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3675 Set_Node2_With_Parent (N, Val);
3676 end Set_Default_Name;
3678 procedure Set_Defining_Identifier
3679 (N : Node_Id; Val : Entity_Id) is
3681 pragma Assert (False
3682 or else NT (N).Nkind = N_Component_Declaration
3683 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3684 or else NT (N).Nkind = N_Discriminant_Specification
3685 or else NT (N).Nkind = N_Entry_Body
3686 or else NT (N).Nkind = N_Entry_Declaration
3687 or else NT (N).Nkind = N_Entry_Index_Specification
3688 or else NT (N).Nkind = N_Exception_Declaration
3689 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3690 or else NT (N).Nkind = N_Formal_Object_Declaration
3691 or else NT (N).Nkind = N_Formal_Package_Declaration
3692 or else NT (N).Nkind = N_Formal_Type_Declaration
3693 or else NT (N).Nkind = N_Full_Type_Declaration
3694 or else NT (N).Nkind = N_Implicit_Label_Declaration
3695 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3696 or else NT (N).Nkind = N_Loop_Parameter_Specification
3697 or else NT (N).Nkind = N_Number_Declaration
3698 or else NT (N).Nkind = N_Object_Declaration
3699 or else NT (N).Nkind = N_Object_Renaming_Declaration
3700 or else NT (N).Nkind = N_Package_Body_Stub
3701 or else NT (N).Nkind = N_Parameter_Specification
3702 or else NT (N).Nkind = N_Private_Extension_Declaration
3703 or else NT (N).Nkind = N_Private_Type_Declaration
3704 or else NT (N).Nkind = N_Protected_Body
3705 or else NT (N).Nkind = N_Protected_Body_Stub
3706 or else NT (N).Nkind = N_Protected_Type_Declaration
3707 or else NT (N).Nkind = N_Single_Protected_Declaration
3708 or else NT (N).Nkind = N_Single_Task_Declaration
3709 or else NT (N).Nkind = N_Subtype_Declaration
3710 or else NT (N).Nkind = N_Task_Body
3711 or else NT (N).Nkind = N_Task_Body_Stub
3712 or else NT (N).Nkind = N_Task_Type_Declaration);
3713 Set_Node1_With_Parent (N, Val);
3714 end Set_Defining_Identifier;
3716 procedure Set_Defining_Unit_Name
3717 (N : Node_Id; Val : Node_Id) is
3719 pragma Assert (False
3720 or else NT (N).Nkind = N_Function_Instantiation
3721 or else NT (N).Nkind = N_Function_Specification
3722 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3723 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3724 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3725 or else NT (N).Nkind = N_Package_Body
3726 or else NT (N).Nkind = N_Package_Instantiation
3727 or else NT (N).Nkind = N_Package_Renaming_Declaration
3728 or else NT (N).Nkind = N_Package_Specification
3729 or else NT (N).Nkind = N_Procedure_Instantiation
3730 or else NT (N).Nkind = N_Procedure_Specification);
3731 Set_Node1_With_Parent (N, Val);
3732 end Set_Defining_Unit_Name;
3734 procedure Set_Delay_Alternative
3735 (N : Node_Id; Val : Node_Id) is
3737 pragma Assert (False
3738 or else NT (N).Nkind = N_Timed_Entry_Call);
3739 Set_Node4_With_Parent (N, Val);
3740 end Set_Delay_Alternative;
3742 procedure Set_Delay_Statement
3743 (N : Node_Id; Val : Node_Id) is
3745 pragma Assert (False
3746 or else NT (N).Nkind = N_Delay_Alternative);
3747 Set_Node2_With_Parent (N, Val);
3748 end Set_Delay_Statement;
3750 procedure Set_Delta_Expression
3751 (N : Node_Id; Val : Node_Id) is
3753 pragma Assert (False
3754 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3755 or else NT (N).Nkind = N_Delta_Constraint
3756 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3757 Set_Node3_With_Parent (N, Val);
3758 end Set_Delta_Expression;
3760 procedure Set_Digits_Expression
3761 (N : Node_Id; Val : Node_Id) is
3763 pragma Assert (False
3764 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3765 or else NT (N).Nkind = N_Digits_Constraint
3766 or else NT (N).Nkind = N_Floating_Point_Definition);
3767 Set_Node2_With_Parent (N, Val);
3768 end Set_Digits_Expression;
3770 procedure Set_Discr_Check_Funcs_Built
3771 (N : Node_Id; Val : Boolean := True) is
3773 pragma Assert (False
3774 or else NT (N).Nkind = N_Full_Type_Declaration);
3775 Set_Flag11 (N, Val);
3776 end Set_Discr_Check_Funcs_Built;
3778 procedure Set_Discrete_Choices
3779 (N : Node_Id; Val : List_Id) is
3781 pragma Assert (False
3782 or else NT (N).Nkind = N_Case_Expression_Alternative
3783 or else NT (N).Nkind = N_Case_Statement_Alternative
3784 or else NT (N).Nkind = N_Variant);
3785 Set_List4_With_Parent (N, Val);
3786 end Set_Discrete_Choices;
3788 procedure Set_Discrete_Range
3789 (N : Node_Id; Val : Node_Id) is
3791 pragma Assert (False
3792 or else NT (N).Nkind = N_Slice);
3793 Set_Node4_With_Parent (N, Val);
3794 end Set_Discrete_Range;
3796 procedure Set_Discrete_Subtype_Definition
3797 (N : Node_Id; Val : Node_Id) is
3799 pragma Assert (False
3800 or else NT (N).Nkind = N_Entry_Declaration
3801 or else NT (N).Nkind = N_Entry_Index_Specification
3802 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3803 Set_Node4_With_Parent (N, Val);
3804 end Set_Discrete_Subtype_Definition;
3806 procedure Set_Discrete_Subtype_Definitions
3807 (N : Node_Id; Val : List_Id) is
3809 pragma Assert (False
3810 or else NT (N).Nkind = N_Constrained_Array_Definition);
3811 Set_List2_With_Parent (N, Val);
3812 end Set_Discrete_Subtype_Definitions;
3814 procedure Set_Discriminant_Specifications
3815 (N : Node_Id; Val : List_Id) is
3817 pragma Assert (False
3818 or else NT (N).Nkind = N_Formal_Type_Declaration
3819 or else NT (N).Nkind = N_Full_Type_Declaration
3820 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3821 or else NT (N).Nkind = N_Private_Extension_Declaration
3822 or else NT (N).Nkind = N_Private_Type_Declaration
3823 or else NT (N).Nkind = N_Protected_Type_Declaration
3824 or else NT (N).Nkind = N_Task_Type_Declaration);
3825 Set_List4_With_Parent (N, Val);
3826 end Set_Discriminant_Specifications;
3828 procedure Set_Discriminant_Type
3829 (N : Node_Id; Val : Node_Id) is
3831 pragma Assert (False
3832 or else NT (N).Nkind = N_Discriminant_Specification);
3833 Set_Node5_With_Parent (N, Val);
3834 end Set_Discriminant_Type;
3836 procedure Set_Do_Accessibility_Check
3837 (N : Node_Id; Val : Boolean := True) is
3839 pragma Assert (False
3840 or else NT (N).Nkind = N_Parameter_Specification);
3841 Set_Flag13 (N, Val);
3842 end Set_Do_Accessibility_Check;
3844 procedure Set_Do_Discriminant_Check
3845 (N : Node_Id; Val : Boolean := True) is
3847 pragma Assert (False
3848 or else NT (N).Nkind = N_Selected_Component);
3849 Set_Flag13 (N, Val);
3850 end Set_Do_Discriminant_Check;
3852 procedure Set_Do_Division_Check
3853 (N : Node_Id; Val : Boolean := True) is
3855 pragma Assert (False
3856 or else NT (N).Nkind = N_Op_Divide
3857 or else NT (N).Nkind = N_Op_Mod
3858 or else NT (N).Nkind = N_Op_Rem);
3859 Set_Flag13 (N, Val);
3860 end Set_Do_Division_Check;
3862 procedure Set_Do_Length_Check
3863 (N : Node_Id; Val : Boolean := True) is
3865 pragma Assert (False
3866 or else NT (N).Nkind = N_Assignment_Statement
3867 or else NT (N).Nkind = N_Op_And
3868 or else NT (N).Nkind = N_Op_Or
3869 or else NT (N).Nkind = N_Op_Xor
3870 or else NT (N).Nkind = N_Type_Conversion);
3872 end Set_Do_Length_Check;
3874 procedure Set_Do_Overflow_Check
3875 (N : Node_Id; Val : Boolean := True) is
3877 pragma Assert (False
3878 or else NT (N).Nkind in N_Op
3879 or else NT (N).Nkind = N_Attribute_Reference
3880 or else NT (N).Nkind = N_Type_Conversion);
3881 Set_Flag17 (N, Val);
3882 end Set_Do_Overflow_Check;
3884 procedure Set_Do_Range_Check
3885 (N : Node_Id; Val : Boolean := True) is
3887 pragma Assert (False
3888 or else NT (N).Nkind in N_Subexpr);
3890 end Set_Do_Range_Check;
3892 procedure Set_Do_Storage_Check
3893 (N : Node_Id; Val : Boolean := True) is
3895 pragma Assert (False
3896 or else NT (N).Nkind = N_Allocator
3897 or else NT (N).Nkind = N_Subprogram_Body);
3898 Set_Flag17 (N, Val);
3899 end Set_Do_Storage_Check;
3901 procedure Set_Do_Tag_Check
3902 (N : Node_Id; Val : Boolean := True) is
3904 pragma Assert (False
3905 or else NT (N).Nkind = N_Assignment_Statement
3906 or else NT (N).Nkind = N_Extended_Return_Statement
3907 or else NT (N).Nkind = N_Function_Call
3908 or else NT (N).Nkind = N_Procedure_Call_Statement
3909 or else NT (N).Nkind = N_Return_Statement
3910 or else NT (N).Nkind = N_Type_Conversion);
3911 Set_Flag13 (N, Val);
3912 end Set_Do_Tag_Check;
3914 procedure Set_Elaborate_All_Desirable
3915 (N : Node_Id; Val : Boolean := True) is
3917 pragma Assert (False
3918 or else NT (N).Nkind = N_With_Clause);
3920 end Set_Elaborate_All_Desirable;
3922 procedure Set_Elaborate_All_Present
3923 (N : Node_Id; Val : Boolean := True) is
3925 pragma Assert (False
3926 or else NT (N).Nkind = N_With_Clause);
3927 Set_Flag14 (N, Val);
3928 end Set_Elaborate_All_Present;
3930 procedure Set_Elaborate_Desirable
3931 (N : Node_Id; Val : Boolean := True) is
3933 pragma Assert (False
3934 or else NT (N).Nkind = N_With_Clause);
3935 Set_Flag11 (N, Val);
3936 end Set_Elaborate_Desirable;
3938 procedure Set_Elaborate_Present
3939 (N : Node_Id; Val : Boolean := True) is
3941 pragma Assert (False
3942 or else NT (N).Nkind = N_With_Clause);
3944 end Set_Elaborate_Present;
3946 procedure Set_Elaboration_Boolean
3947 (N : Node_Id; Val : Node_Id) is
3949 pragma Assert (False
3950 or else NT (N).Nkind = N_Function_Specification
3951 or else NT (N).Nkind = N_Procedure_Specification);
3953 end Set_Elaboration_Boolean;
3955 procedure Set_Else_Actions
3956 (N : Node_Id; Val : List_Id) is
3958 pragma Assert (False
3959 or else NT (N).Nkind = N_Conditional_Expression);
3960 Set_List3 (N, Val); -- semantic field, no parent set
3961 end Set_Else_Actions;
3963 procedure Set_Else_Statements
3964 (N : Node_Id; Val : List_Id) is
3966 pragma Assert (False
3967 or else NT (N).Nkind = N_Conditional_Entry_Call
3968 or else NT (N).Nkind = N_If_Statement
3969 or else NT (N).Nkind = N_Selective_Accept);
3970 Set_List4_With_Parent (N, Val);
3971 end Set_Else_Statements;
3973 procedure Set_Elsif_Parts
3974 (N : Node_Id; Val : List_Id) is
3976 pragma Assert (False
3977 or else NT (N).Nkind = N_If_Statement);
3978 Set_List3_With_Parent (N, Val);
3979 end Set_Elsif_Parts;
3981 procedure Set_Enclosing_Variant
3982 (N : Node_Id; Val : Node_Id) is
3984 pragma Assert (False
3985 or else NT (N).Nkind = N_Variant);
3986 Set_Node2 (N, Val); -- semantic field, no parent set
3987 end Set_Enclosing_Variant;
3989 procedure Set_End_Label
3990 (N : Node_Id; Val : Node_Id) is
3992 pragma Assert (False
3993 or else NT (N).Nkind = N_Enumeration_Type_Definition
3994 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
3995 or else NT (N).Nkind = N_Loop_Statement
3996 or else NT (N).Nkind = N_Package_Specification
3997 or else NT (N).Nkind = N_Protected_Body
3998 or else NT (N).Nkind = N_Protected_Definition
3999 or else NT (N).Nkind = N_Record_Definition
4000 or else NT (N).Nkind = N_Task_Definition);
4001 Set_Node4_With_Parent (N, Val);
4004 procedure Set_End_Span
4005 (N : Node_Id; Val : Uint) is
4007 pragma Assert (False
4008 or else NT (N).Nkind = N_Case_Statement
4009 or else NT (N).Nkind = N_If_Statement);
4013 procedure Set_Entity
4014 (N : Node_Id; Val : Node_Id) is
4016 pragma Assert (False
4017 or else NT (N).Nkind in N_Has_Entity
4018 or else NT (N).Nkind = N_Aspect_Specification
4019 or else NT (N).Nkind = N_Attribute_Definition_Clause
4020 or else NT (N).Nkind = N_Freeze_Entity);
4021 Set_Node4 (N, Val); -- semantic field, no parent set
4024 procedure Set_Entry_Body_Formal_Part
4025 (N : Node_Id; Val : Node_Id) is
4027 pragma Assert (False
4028 or else NT (N).Nkind = N_Entry_Body);
4029 Set_Node5_With_Parent (N, Val);
4030 end Set_Entry_Body_Formal_Part;
4032 procedure Set_Entry_Call_Alternative
4033 (N : Node_Id; Val : Node_Id) is
4035 pragma Assert (False
4036 or else NT (N).Nkind = N_Conditional_Entry_Call
4037 or else NT (N).Nkind = N_Timed_Entry_Call);
4038 Set_Node1_With_Parent (N, Val);
4039 end Set_Entry_Call_Alternative;
4041 procedure Set_Entry_Call_Statement
4042 (N : Node_Id; Val : Node_Id) is
4044 pragma Assert (False
4045 or else NT (N).Nkind = N_Entry_Call_Alternative);
4046 Set_Node1_With_Parent (N, Val);
4047 end Set_Entry_Call_Statement;
4049 procedure Set_Entry_Direct_Name
4050 (N : Node_Id; Val : Node_Id) is
4052 pragma Assert (False
4053 or else NT (N).Nkind = N_Accept_Statement);
4054 Set_Node1_With_Parent (N, Val);
4055 end Set_Entry_Direct_Name;
4057 procedure Set_Entry_Index
4058 (N : Node_Id; Val : Node_Id) is
4060 pragma Assert (False
4061 or else NT (N).Nkind = N_Accept_Statement);
4062 Set_Node5_With_Parent (N, Val);
4063 end Set_Entry_Index;
4065 procedure Set_Entry_Index_Specification
4066 (N : Node_Id; Val : Node_Id) is
4068 pragma Assert (False
4069 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4070 Set_Node4_With_Parent (N, Val);
4071 end Set_Entry_Index_Specification;
4074 (N : Node_Id; Val : Node_Id) is
4076 pragma Assert (False
4077 or else NT (N).Nkind in N_Has_Etype);
4078 Set_Node5 (N, Val); -- semantic field, no parent set
4081 procedure Set_Exception_Choices
4082 (N : Node_Id; Val : List_Id) is
4084 pragma Assert (False
4085 or else NT (N).Nkind = N_Exception_Handler);
4086 Set_List4_With_Parent (N, Val);
4087 end Set_Exception_Choices;
4089 procedure Set_Exception_Handlers
4090 (N : Node_Id; Val : List_Id) is
4092 pragma Assert (False
4093 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4094 Set_List5_With_Parent (N, Val);
4095 end Set_Exception_Handlers;
4097 procedure Set_Exception_Junk
4098 (N : Node_Id; Val : Boolean := True) is
4100 pragma Assert (False
4101 or else NT (N).Nkind = N_Block_Statement
4102 or else NT (N).Nkind = N_Goto_Statement
4103 or else NT (N).Nkind = N_Label
4104 or else NT (N).Nkind = N_Object_Declaration
4105 or else NT (N).Nkind = N_Subtype_Declaration);
4107 end Set_Exception_Junk;
4109 procedure Set_Exception_Label
4110 (N : Node_Id; Val : Node_Id) is
4112 pragma Assert (False
4113 or else NT (N).Nkind = N_Exception_Handler
4114 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4115 or else NT (N).Nkind = N_Push_Program_Error_Label
4116 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4117 Set_Node5 (N, Val); -- semantic field, no parent set
4118 end Set_Exception_Label;
4120 procedure Set_Expansion_Delayed
4121 (N : Node_Id; Val : Boolean := True) is
4123 pragma Assert (False
4124 or else NT (N).Nkind = N_Aggregate
4125 or else NT (N).Nkind = N_Extension_Aggregate);
4126 Set_Flag11 (N, Val);
4127 end Set_Expansion_Delayed;
4129 procedure Set_Explicit_Actual_Parameter
4130 (N : Node_Id; Val : Node_Id) is
4132 pragma Assert (False
4133 or else NT (N).Nkind = N_Parameter_Association);
4134 Set_Node3_With_Parent (N, Val);
4135 end Set_Explicit_Actual_Parameter;
4137 procedure Set_Explicit_Generic_Actual_Parameter
4138 (N : Node_Id; Val : Node_Id) is
4140 pragma Assert (False
4141 or else NT (N).Nkind = N_Generic_Association);
4142 Set_Node1_With_Parent (N, Val);
4143 end Set_Explicit_Generic_Actual_Parameter;
4145 procedure Set_Expression
4146 (N : Node_Id; Val : Node_Id) is
4148 pragma Assert (False
4149 or else NT (N).Nkind = N_Allocator
4150 or else NT (N).Nkind = N_Aspect_Specification
4151 or else NT (N).Nkind = N_Assignment_Statement
4152 or else NT (N).Nkind = N_At_Clause
4153 or else NT (N).Nkind = N_Attribute_Definition_Clause
4154 or else NT (N).Nkind = N_Case_Expression
4155 or else NT (N).Nkind = N_Case_Expression_Alternative
4156 or else NT (N).Nkind = N_Case_Statement
4157 or else NT (N).Nkind = N_Code_Statement
4158 or else NT (N).Nkind = N_Component_Association
4159 or else NT (N).Nkind = N_Component_Declaration
4160 or else NT (N).Nkind = N_Delay_Relative_Statement
4161 or else NT (N).Nkind = N_Delay_Until_Statement
4162 or else NT (N).Nkind = N_Discriminant_Association
4163 or else NT (N).Nkind = N_Discriminant_Specification
4164 or else NT (N).Nkind = N_Exception_Declaration
4165 or else NT (N).Nkind = N_Expression_With_Actions
4166 or else NT (N).Nkind = N_Free_Statement
4167 or else NT (N).Nkind = N_Mod_Clause
4168 or else NT (N).Nkind = N_Modular_Type_Definition
4169 or else NT (N).Nkind = N_Number_Declaration
4170 or else NT (N).Nkind = N_Object_Declaration
4171 or else NT (N).Nkind = N_Parameter_Specification
4172 or else NT (N).Nkind = N_Parameterized_Expression
4173 or else NT (N).Nkind = N_Pragma_Argument_Association
4174 or else NT (N).Nkind = N_Qualified_Expression
4175 or else NT (N).Nkind = N_Raise_Statement
4176 or else NT (N).Nkind = N_Return_Statement
4177 or else NT (N).Nkind = N_Type_Conversion
4178 or else NT (N).Nkind = N_Unchecked_Expression
4179 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4180 Set_Node3_With_Parent (N, Val);
4183 procedure Set_Expressions
4184 (N : Node_Id; Val : List_Id) is
4186 pragma Assert (False
4187 or else NT (N).Nkind = N_Aggregate
4188 or else NT (N).Nkind = N_Attribute_Reference
4189 or else NT (N).Nkind = N_Conditional_Expression
4190 or else NT (N).Nkind = N_Extension_Aggregate
4191 or else NT (N).Nkind = N_Indexed_Component);
4192 Set_List1_With_Parent (N, Val);
4193 end Set_Expressions;
4195 procedure Set_First_Bit
4196 (N : Node_Id; Val : Node_Id) is
4198 pragma Assert (False
4199 or else NT (N).Nkind = N_Component_Clause);
4200 Set_Node3_With_Parent (N, Val);
4203 procedure Set_First_Inlined_Subprogram
4204 (N : Node_Id; Val : Entity_Id) is
4206 pragma Assert (False
4207 or else NT (N).Nkind = N_Compilation_Unit);
4208 Set_Node3 (N, Val); -- semantic field, no parent set
4209 end Set_First_Inlined_Subprogram;
4211 procedure Set_First_Name
4212 (N : Node_Id; Val : Boolean := True) is
4214 pragma Assert (False
4215 or else NT (N).Nkind = N_With_Clause);
4219 procedure Set_First_Named_Actual
4220 (N : Node_Id; Val : Node_Id) is
4222 pragma Assert (False
4223 or else NT (N).Nkind = N_Entry_Call_Statement
4224 or else NT (N).Nkind = N_Function_Call
4225 or else NT (N).Nkind = N_Procedure_Call_Statement);
4226 Set_Node4 (N, Val); -- semantic field, no parent set
4227 end Set_First_Named_Actual;
4229 procedure Set_First_Real_Statement
4230 (N : Node_Id; Val : Node_Id) is
4232 pragma Assert (False
4233 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4234 Set_Node2 (N, Val); -- semantic field, no parent set
4235 end Set_First_Real_Statement;
4237 procedure Set_First_Subtype_Link
4238 (N : Node_Id; Val : Entity_Id) is
4240 pragma Assert (False
4241 or else NT (N).Nkind = N_Freeze_Entity);
4242 Set_Node5 (N, Val); -- semantic field, no parent set
4243 end Set_First_Subtype_Link;
4245 procedure Set_Float_Truncate
4246 (N : Node_Id; Val : Boolean := True) is
4248 pragma Assert (False
4249 or else NT (N).Nkind = N_Type_Conversion);
4250 Set_Flag11 (N, Val);
4251 end Set_Float_Truncate;
4253 procedure Set_Formal_Type_Definition
4254 (N : Node_Id; Val : Node_Id) is
4256 pragma Assert (False
4257 or else NT (N).Nkind = N_Formal_Type_Declaration);
4258 Set_Node3_With_Parent (N, Val);
4259 end Set_Formal_Type_Definition;
4261 procedure Set_Forwards_OK
4262 (N : Node_Id; Val : Boolean := True) is
4264 pragma Assert (False
4265 or else NT (N).Nkind = N_Assignment_Statement);
4267 end Set_Forwards_OK;
4269 procedure Set_From_Aspect_Specification
4270 (N : Node_Id; Val : Boolean := True) is
4272 pragma Assert (False
4273 or else NT (N).Nkind = N_Attribute_Definition_Clause
4274 or else NT (N).Nkind = N_Pragma);
4275 Set_Flag13 (N, Val);
4276 end Set_From_Aspect_Specification;
4278 procedure Set_From_At_End
4279 (N : Node_Id; Val : Boolean := True) is
4281 pragma Assert (False
4282 or else NT (N).Nkind = N_Raise_Statement);
4284 end Set_From_At_End;
4286 procedure Set_From_At_Mod
4287 (N : Node_Id; Val : Boolean := True) is
4289 pragma Assert (False
4290 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4292 end Set_From_At_Mod;
4294 procedure Set_From_Default
4295 (N : Node_Id; Val : Boolean := True) is
4297 pragma Assert (False
4298 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4300 end Set_From_Default;
4302 procedure Set_Generic_Associations
4303 (N : Node_Id; Val : List_Id) is
4305 pragma Assert (False
4306 or else NT (N).Nkind = N_Formal_Package_Declaration
4307 or else NT (N).Nkind = N_Function_Instantiation
4308 or else NT (N).Nkind = N_Package_Instantiation
4309 or else NT (N).Nkind = N_Procedure_Instantiation);
4310 Set_List3_With_Parent (N, Val);
4311 end Set_Generic_Associations;
4313 procedure Set_Generic_Formal_Declarations
4314 (N : Node_Id; Val : List_Id) is
4316 pragma Assert (False
4317 or else NT (N).Nkind = N_Generic_Package_Declaration
4318 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4319 Set_List2_With_Parent (N, Val);
4320 end Set_Generic_Formal_Declarations;
4322 procedure Set_Generic_Parent
4323 (N : Node_Id; Val : Node_Id) is
4325 pragma Assert (False
4326 or else NT (N).Nkind = N_Function_Specification
4327 or else NT (N).Nkind = N_Package_Specification
4328 or else NT (N).Nkind = N_Procedure_Specification);
4330 end Set_Generic_Parent;
4332 procedure Set_Generic_Parent_Type
4333 (N : Node_Id; Val : Node_Id) is
4335 pragma Assert (False
4336 or else NT (N).Nkind = N_Subtype_Declaration);
4338 end Set_Generic_Parent_Type;
4340 procedure Set_Handled_Statement_Sequence
4341 (N : Node_Id; Val : Node_Id) is
4343 pragma Assert (False
4344 or else NT (N).Nkind = N_Accept_Statement
4345 or else NT (N).Nkind = N_Block_Statement
4346 or else NT (N).Nkind = N_Entry_Body
4347 or else NT (N).Nkind = N_Extended_Return_Statement
4348 or else NT (N).Nkind = N_Package_Body
4349 or else NT (N).Nkind = N_Subprogram_Body
4350 or else NT (N).Nkind = N_Task_Body);
4351 Set_Node4_With_Parent (N, Val);
4352 end Set_Handled_Statement_Sequence;
4354 procedure Set_Handler_List_Entry
4355 (N : Node_Id; Val : Node_Id) is
4357 pragma Assert (False
4358 or else NT (N).Nkind = N_Object_Declaration);
4360 end Set_Handler_List_Entry;
4362 procedure Set_Has_Created_Identifier
4363 (N : Node_Id; Val : Boolean := True) is
4365 pragma Assert (False
4366 or else NT (N).Nkind = N_Block_Statement
4367 or else NT (N).Nkind = N_Loop_Statement);
4368 Set_Flag15 (N, Val);
4369 end Set_Has_Created_Identifier;
4371 procedure Set_Has_Dynamic_Length_Check
4372 (N : Node_Id; Val : Boolean := True) is
4374 Set_Flag10 (N, Val);
4375 end Set_Has_Dynamic_Length_Check;
4377 procedure Set_Has_Dynamic_Range_Check
4378 (N : Node_Id; Val : Boolean := True) is
4380 Set_Flag12 (N, Val);
4381 end Set_Has_Dynamic_Range_Check;
4383 procedure Set_Has_Init_Expression
4384 (N : Node_Id; Val : Boolean := True) is
4386 pragma Assert (False
4387 or else NT (N).Nkind = N_Object_Declaration);
4388 Set_Flag14 (N, Val);
4389 end Set_Has_Init_Expression;
4391 procedure Set_Has_Local_Raise
4392 (N : Node_Id; Val : Boolean := True) is
4394 pragma Assert (False
4395 or else NT (N).Nkind = N_Exception_Handler);
4397 end Set_Has_Local_Raise;
4399 procedure Set_Has_No_Elaboration_Code
4400 (N : Node_Id; Val : Boolean := True) is
4402 pragma Assert (False
4403 or else NT (N).Nkind = N_Compilation_Unit);
4404 Set_Flag17 (N, Val);
4405 end Set_Has_No_Elaboration_Code;
4407 procedure Set_Has_Priority_Pragma
4408 (N : Node_Id; Val : Boolean := True) is
4410 pragma Assert (False
4411 or else NT (N).Nkind = N_Protected_Definition
4412 or else NT (N).Nkind = N_Subprogram_Body
4413 or else NT (N).Nkind = N_Task_Definition);
4415 end Set_Has_Priority_Pragma;
4417 procedure Set_Has_Private_View
4418 (N : Node_Id; Val : Boolean := True) is
4420 pragma Assert (False
4421 or else NT (N).Nkind in N_Op
4422 or else NT (N).Nkind = N_Character_Literal
4423 or else NT (N).Nkind = N_Expanded_Name
4424 or else NT (N).Nkind = N_Identifier
4425 or else NT (N).Nkind = N_Operator_Symbol);
4426 Set_Flag11 (N, Val);
4427 end Set_Has_Private_View;
4429 procedure Set_Has_Relative_Deadline_Pragma
4430 (N : Node_Id; Val : Boolean := True) is
4432 pragma Assert (False
4433 or else NT (N).Nkind = N_Subprogram_Body
4434 or else NT (N).Nkind = N_Task_Definition);
4436 end Set_Has_Relative_Deadline_Pragma;
4438 procedure Set_Has_Self_Reference
4439 (N : Node_Id; Val : Boolean := True) is
4441 pragma Assert (False
4442 or else NT (N).Nkind = N_Aggregate
4443 or else NT (N).Nkind = N_Extension_Aggregate);
4444 Set_Flag13 (N, Val);
4445 end Set_Has_Self_Reference;
4447 procedure Set_Has_Storage_Size_Pragma
4448 (N : Node_Id; Val : Boolean := True) is
4450 pragma Assert (False
4451 or else NT (N).Nkind = N_Task_Definition);
4453 end Set_Has_Storage_Size_Pragma;
4455 procedure Set_Has_Task_Info_Pragma
4456 (N : Node_Id; Val : Boolean := True) is
4458 pragma Assert (False
4459 or else NT (N).Nkind = N_Task_Definition);
4461 end Set_Has_Task_Info_Pragma;
4463 procedure Set_Has_Task_Name_Pragma
4464 (N : Node_Id; Val : Boolean := True) is
4466 pragma Assert (False
4467 or else NT (N).Nkind = N_Task_Definition);
4469 end Set_Has_Task_Name_Pragma;
4471 procedure Set_Has_Wide_Character
4472 (N : Node_Id; Val : Boolean := True) is
4474 pragma Assert (False
4475 or else NT (N).Nkind = N_String_Literal);
4476 Set_Flag11 (N, Val);
4477 end Set_Has_Wide_Character;
4479 procedure Set_Has_Wide_Wide_Character
4480 (N : Node_Id; Val : Boolean := True) is
4482 pragma Assert (False
4483 or else NT (N).Nkind = N_String_Literal);
4484 Set_Flag13 (N, Val);
4485 end Set_Has_Wide_Wide_Character;
4487 procedure Set_Hidden_By_Use_Clause
4488 (N : Node_Id; Val : Elist_Id) is
4490 pragma Assert (False
4491 or else NT (N).Nkind = N_Use_Package_Clause
4492 or else NT (N).Nkind = N_Use_Type_Clause);
4493 Set_Elist4 (N, Val);
4494 end Set_Hidden_By_Use_Clause;
4496 procedure Set_High_Bound
4497 (N : Node_Id; Val : Node_Id) is
4499 pragma Assert (False
4500 or else NT (N).Nkind = N_Range
4501 or else NT (N).Nkind = N_Real_Range_Specification
4502 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4503 Set_Node2_With_Parent (N, Val);
4506 procedure Set_Identifier
4507 (N : Node_Id; Val : Node_Id) is
4509 pragma Assert (False
4510 or else NT (N).Nkind = N_Aspect_Specification
4511 or else NT (N).Nkind = N_At_Clause
4512 or else NT (N).Nkind = N_Block_Statement
4513 or else NT (N).Nkind = N_Designator
4514 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4515 or else NT (N).Nkind = N_Label
4516 or else NT (N).Nkind = N_Loop_Statement
4517 or else NT (N).Nkind = N_Record_Representation_Clause
4518 or else NT (N).Nkind = N_Subprogram_Info);
4519 Set_Node1_With_Parent (N, Val);
4522 procedure Set_Implicit_With
4523 (N : Node_Id; Val : Boolean := True) is
4525 pragma Assert (False
4526 or else NT (N).Nkind = N_With_Clause);
4527 Set_Flag16 (N, Val);
4528 end Set_Implicit_With;
4530 procedure Set_Interface_List
4531 (N : Node_Id; Val : List_Id) is
4533 pragma Assert (False
4534 or else NT (N).Nkind = N_Derived_Type_Definition
4535 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4536 or else NT (N).Nkind = N_Private_Extension_Declaration
4537 or else NT (N).Nkind = N_Protected_Type_Declaration
4538 or else NT (N).Nkind = N_Record_Definition
4539 or else NT (N).Nkind = N_Single_Protected_Declaration
4540 or else NT (N).Nkind = N_Single_Task_Declaration
4541 or else NT (N).Nkind = N_Task_Type_Declaration);
4542 Set_List2_With_Parent (N, Val);
4543 end Set_Interface_List;
4545 procedure Set_Interface_Present
4546 (N : Node_Id; Val : Boolean := True) is
4548 pragma Assert (False
4549 or else NT (N).Nkind = N_Derived_Type_Definition
4550 or else NT (N).Nkind = N_Record_Definition);
4551 Set_Flag16 (N, Val);
4552 end Set_Interface_Present;
4554 procedure Set_Import_Interface_Present
4555 (N : Node_Id; Val : Boolean := True) is
4557 pragma Assert (False
4558 or else NT (N).Nkind = N_Pragma);
4559 Set_Flag16 (N, Val);
4560 end Set_Import_Interface_Present;
4562 procedure Set_In_Present
4563 (N : Node_Id; Val : Boolean := True) is
4565 pragma Assert (False
4566 or else NT (N).Nkind = N_Formal_Object_Declaration
4567 or else NT (N).Nkind = N_Parameter_Specification);
4568 Set_Flag15 (N, Val);
4571 procedure Set_Includes_Infinities
4572 (N : Node_Id; Val : Boolean := True) is
4574 pragma Assert (False
4575 or else NT (N).Nkind = N_Range);
4576 Set_Flag11 (N, Val);
4577 end Set_Includes_Infinities;
4579 procedure Set_Inherited_Discriminant
4580 (N : Node_Id; Val : Boolean := True) is
4582 pragma Assert (False
4583 or else NT (N).Nkind = N_Component_Association);
4584 Set_Flag13 (N, Val);
4585 end Set_Inherited_Discriminant;
4587 procedure Set_Instance_Spec
4588 (N : Node_Id; Val : Node_Id) is
4590 pragma Assert (False
4591 or else NT (N).Nkind = N_Formal_Package_Declaration
4592 or else NT (N).Nkind = N_Function_Instantiation
4593 or else NT (N).Nkind = N_Package_Instantiation
4594 or else NT (N).Nkind = N_Procedure_Instantiation);
4595 Set_Node5 (N, Val); -- semantic field, no Parent set
4596 end Set_Instance_Spec;
4598 procedure Set_Intval
4599 (N : Node_Id; Val : Uint) is
4601 pragma Assert (False
4602 or else NT (N).Nkind = N_Integer_Literal);
4606 procedure Set_Is_Accessibility_Actual
4607 (N : Node_Id; Val : Boolean := True) is
4609 pragma Assert (False
4610 or else NT (N).Nkind = N_Parameter_Association);
4611 Set_Flag13 (N, Val);
4612 end Set_Is_Accessibility_Actual;
4614 procedure Set_Is_Asynchronous_Call_Block
4615 (N : Node_Id; Val : Boolean := True) is
4617 pragma Assert (False
4618 or else NT (N).Nkind = N_Block_Statement);
4620 end Set_Is_Asynchronous_Call_Block;
4622 procedure Set_Is_Component_Left_Opnd
4623 (N : Node_Id; Val : Boolean := True) is
4625 pragma Assert (False
4626 or else NT (N).Nkind = N_Op_Concat);
4627 Set_Flag13 (N, Val);
4628 end Set_Is_Component_Left_Opnd;
4630 procedure Set_Is_Component_Right_Opnd
4631 (N : Node_Id; Val : Boolean := True) is
4633 pragma Assert (False
4634 or else NT (N).Nkind = N_Op_Concat);
4635 Set_Flag14 (N, Val);
4636 end Set_Is_Component_Right_Opnd;
4638 procedure Set_Is_Controlling_Actual
4639 (N : Node_Id; Val : Boolean := True) is
4641 pragma Assert (False
4642 or else NT (N).Nkind in N_Subexpr);
4643 Set_Flag16 (N, Val);
4644 end Set_Is_Controlling_Actual;
4646 procedure Set_Is_Delayed_Aspect
4647 (N : Node_Id; Val : Boolean := True) is
4649 pragma Assert (False
4650 or else NT (N).Nkind = N_Attribute_Definition_Clause
4651 or else NT (N).Nkind = N_Pragma);
4652 Set_Flag14 (N, Val);
4653 end Set_Is_Delayed_Aspect;
4655 procedure Set_Is_Dynamic_Coextension
4656 (N : Node_Id; Val : Boolean := True) is
4658 pragma Assert (False
4659 or else NT (N).Nkind = N_Allocator);
4660 Set_Flag18 (N, Val);
4661 end Set_Is_Dynamic_Coextension;
4663 procedure Set_Is_Elsif
4664 (N : Node_Id; Val : Boolean := True) is
4666 pragma Assert (False
4667 or else NT (N).Nkind = N_Conditional_Expression);
4668 Set_Flag13 (N, Val);
4671 procedure Set_Is_Entry_Barrier_Function
4672 (N : Node_Id; Val : Boolean := True) is
4674 pragma Assert (False
4675 or else NT (N).Nkind = N_Subprogram_Body);
4677 end Set_Is_Entry_Barrier_Function;
4679 procedure Set_Is_Expanded_Build_In_Place_Call
4680 (N : Node_Id; Val : Boolean := True) is
4682 pragma Assert (False
4683 or else NT (N).Nkind = N_Function_Call);
4684 Set_Flag11 (N, Val);
4685 end Set_Is_Expanded_Build_In_Place_Call;
4687 procedure Set_Is_Folded_In_Parser
4688 (N : Node_Id; Val : Boolean := True) is
4690 pragma Assert (False
4691 or else NT (N).Nkind = N_String_Literal);
4693 end Set_Is_Folded_In_Parser;
4695 procedure Set_Is_In_Discriminant_Check
4696 (N : Node_Id; Val : Boolean := True) is
4698 pragma Assert (False
4699 or else NT (N).Nkind = N_Selected_Component);
4700 Set_Flag11 (N, Val);
4701 end Set_Is_In_Discriminant_Check;
4703 procedure Set_Is_Machine_Number
4704 (N : Node_Id; Val : Boolean := True) is
4706 pragma Assert (False
4707 or else NT (N).Nkind = N_Real_Literal);
4708 Set_Flag11 (N, Val);
4709 end Set_Is_Machine_Number;
4711 procedure Set_Is_Null_Loop
4712 (N : Node_Id; Val : Boolean := True) is
4714 pragma Assert (False
4715 or else NT (N).Nkind = N_Loop_Statement);
4716 Set_Flag16 (N, Val);
4717 end Set_Is_Null_Loop;
4719 procedure Set_Is_Overloaded
4720 (N : Node_Id; Val : Boolean := True) is
4722 pragma Assert (False
4723 or else NT (N).Nkind in N_Subexpr);
4725 end Set_Is_Overloaded;
4727 procedure Set_Is_Power_Of_2_For_Shift
4728 (N : Node_Id; Val : Boolean := True) is
4730 pragma Assert (False
4731 or else NT (N).Nkind = N_Op_Expon);
4732 Set_Flag13 (N, Val);
4733 end Set_Is_Power_Of_2_For_Shift;
4735 procedure Set_Is_Protected_Subprogram_Body
4736 (N : Node_Id; Val : Boolean := True) is
4738 pragma Assert (False
4739 or else NT (N).Nkind = N_Subprogram_Body);
4741 end Set_Is_Protected_Subprogram_Body;
4743 procedure Set_Is_Static_Coextension
4744 (N : Node_Id; Val : Boolean := True) is
4746 pragma Assert (False
4747 or else NT (N).Nkind = N_Allocator);
4748 Set_Flag14 (N, Val);
4749 end Set_Is_Static_Coextension;
4751 procedure Set_Is_Static_Expression
4752 (N : Node_Id; Val : Boolean := True) is
4754 pragma Assert (False
4755 or else NT (N).Nkind in N_Subexpr);
4757 end Set_Is_Static_Expression;
4759 procedure Set_Is_Subprogram_Descriptor
4760 (N : Node_Id; Val : Boolean := True) is
4762 pragma Assert (False
4763 or else NT (N).Nkind = N_Object_Declaration);
4764 Set_Flag16 (N, Val);
4765 end Set_Is_Subprogram_Descriptor;
4767 procedure Set_Is_Task_Allocation_Block
4768 (N : Node_Id; Val : Boolean := True) is
4770 pragma Assert (False
4771 or else NT (N).Nkind = N_Block_Statement);
4773 end Set_Is_Task_Allocation_Block;
4775 procedure Set_Is_Task_Master
4776 (N : Node_Id; Val : Boolean := True) is
4778 pragma Assert (False
4779 or else NT (N).Nkind = N_Block_Statement
4780 or else NT (N).Nkind = N_Subprogram_Body
4781 or else NT (N).Nkind = N_Task_Body);
4783 end Set_Is_Task_Master;
4785 procedure Set_Iteration_Scheme
4786 (N : Node_Id; Val : Node_Id) is
4788 pragma Assert (False
4789 or else NT (N).Nkind = N_Loop_Statement);
4790 Set_Node2_With_Parent (N, Val);
4791 end Set_Iteration_Scheme;
4794 (N : Node_Id; Val : Entity_Id) is
4796 pragma Assert (False
4797 or else NT (N).Nkind = N_Itype_Reference);
4798 Set_Node1 (N, Val); -- no parent, semantic field
4801 procedure Set_Kill_Range_Check
4802 (N : Node_Id; Val : Boolean := True) is
4804 pragma Assert (False
4805 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4806 Set_Flag11 (N, Val);
4807 end Set_Kill_Range_Check;
4809 procedure Set_Label_Construct
4810 (N : Node_Id; Val : Node_Id) is
4812 pragma Assert (False
4813 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4814 Set_Node2 (N, Val); -- semantic field, no parent set
4815 end Set_Label_Construct;
4817 procedure Set_Last_Bit
4818 (N : Node_Id; Val : Node_Id) is
4820 pragma Assert (False
4821 or else NT (N).Nkind = N_Component_Clause);
4822 Set_Node4_With_Parent (N, Val);
4825 procedure Set_Last_Name
4826 (N : Node_Id; Val : Boolean := True) is
4828 pragma Assert (False
4829 or else NT (N).Nkind = N_With_Clause);
4833 procedure Set_Left_Opnd
4834 (N : Node_Id; Val : Node_Id) is
4836 pragma Assert (False
4837 or else NT (N).Nkind = N_And_Then
4838 or else NT (N).Nkind = N_In
4839 or else NT (N).Nkind = N_Not_In
4840 or else NT (N).Nkind = N_Or_Else
4841 or else NT (N).Nkind in N_Binary_Op);
4842 Set_Node2_With_Parent (N, Val);
4845 procedure Set_Library_Unit
4846 (N : Node_Id; Val : Node_Id) is
4848 pragma Assert (False
4849 or else NT (N).Nkind = N_Compilation_Unit
4850 or else NT (N).Nkind = N_Package_Body_Stub
4851 or else NT (N).Nkind = N_Protected_Body_Stub
4852 or else NT (N).Nkind = N_Subprogram_Body_Stub
4853 or else NT (N).Nkind = N_Task_Body_Stub
4854 or else NT (N).Nkind = N_With_Clause);
4855 Set_Node4 (N, Val); -- semantic field, no parent set
4856 end Set_Library_Unit;
4858 procedure Set_Limited_View_Installed
4859 (N : Node_Id; Val : Boolean := True) is
4861 pragma Assert (False
4862 or else NT (N).Nkind = N_Package_Specification
4863 or else NT (N).Nkind = N_With_Clause);
4864 Set_Flag18 (N, Val);
4865 end Set_Limited_View_Installed;
4867 procedure Set_Limited_Present
4868 (N : Node_Id; Val : Boolean := True) is
4870 pragma Assert (False
4871 or else NT (N).Nkind = N_Derived_Type_Definition
4872 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4873 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4874 or else NT (N).Nkind = N_Private_Extension_Declaration
4875 or else NT (N).Nkind = N_Private_Type_Declaration
4876 or else NT (N).Nkind = N_Record_Definition
4877 or else NT (N).Nkind = N_With_Clause);
4878 Set_Flag17 (N, Val);
4879 end Set_Limited_Present;
4881 procedure Set_Literals
4882 (N : Node_Id; Val : List_Id) is
4884 pragma Assert (False
4885 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4886 Set_List1_With_Parent (N, Val);
4889 procedure Set_Local_Raise_Not_OK
4890 (N : Node_Id; Val : Boolean := True) is
4892 pragma Assert (False
4893 or else NT (N).Nkind = N_Exception_Handler);
4895 end Set_Local_Raise_Not_OK;
4897 procedure Set_Local_Raise_Statements
4898 (N : Node_Id; Val : Elist_Id) is
4900 pragma Assert (False
4901 or else NT (N).Nkind = N_Exception_Handler);
4902 Set_Elist1 (N, Val);
4903 end Set_Local_Raise_Statements;
4905 procedure Set_Loop_Actions
4906 (N : Node_Id; Val : List_Id) is
4908 pragma Assert (False
4909 or else NT (N).Nkind = N_Component_Association);
4910 Set_List2 (N, Val); -- semantic field, no parent set
4911 end Set_Loop_Actions;
4913 procedure Set_Loop_Parameter_Specification
4914 (N : Node_Id; Val : Node_Id) is
4916 pragma Assert (False
4917 or else NT (N).Nkind = N_Iteration_Scheme);
4918 Set_Node4_With_Parent (N, Val);
4919 end Set_Loop_Parameter_Specification;
4921 procedure Set_Low_Bound
4922 (N : Node_Id; Val : Node_Id) is
4924 pragma Assert (False
4925 or else NT (N).Nkind = N_Range
4926 or else NT (N).Nkind = N_Real_Range_Specification
4927 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4928 Set_Node1_With_Parent (N, Val);
4931 procedure Set_Mod_Clause
4932 (N : Node_Id; Val : Node_Id) is
4934 pragma Assert (False
4935 or else NT (N).Nkind = N_Record_Representation_Clause);
4936 Set_Node2_With_Parent (N, Val);
4939 procedure Set_More_Ids
4940 (N : Node_Id; Val : Boolean := True) is
4942 pragma Assert (False
4943 or else NT (N).Nkind = N_Component_Declaration
4944 or else NT (N).Nkind = N_Discriminant_Specification
4945 or else NT (N).Nkind = N_Exception_Declaration
4946 or else NT (N).Nkind = N_Formal_Object_Declaration
4947 or else NT (N).Nkind = N_Number_Declaration
4948 or else NT (N).Nkind = N_Object_Declaration
4949 or else NT (N).Nkind = N_Parameter_Specification);
4953 procedure Set_Must_Be_Byte_Aligned
4954 (N : Node_Id; Val : Boolean := True) is
4956 pragma Assert (False
4957 or else NT (N).Nkind = N_Attribute_Reference);
4958 Set_Flag14 (N, Val);
4959 end Set_Must_Be_Byte_Aligned;
4961 procedure Set_Must_Not_Freeze
4962 (N : Node_Id; Val : Boolean := True) is
4964 pragma Assert (False
4965 or else NT (N).Nkind = N_Subtype_Indication
4966 or else NT (N).Nkind in N_Subexpr);
4968 end Set_Must_Not_Freeze;
4970 procedure Set_Must_Not_Override
4971 (N : Node_Id; Val : Boolean := True) is
4973 pragma Assert (False
4974 or else NT (N).Nkind = N_Entry_Declaration
4975 or else NT (N).Nkind = N_Function_Instantiation
4976 or else NT (N).Nkind = N_Function_Specification
4977 or else NT (N).Nkind = N_Procedure_Instantiation
4978 or else NT (N).Nkind = N_Procedure_Specification);
4979 Set_Flag15 (N, Val);
4980 end Set_Must_Not_Override;
4982 procedure Set_Must_Override
4983 (N : Node_Id; Val : Boolean := True) is
4985 pragma Assert (False
4986 or else NT (N).Nkind = N_Entry_Declaration
4987 or else NT (N).Nkind = N_Function_Instantiation
4988 or else NT (N).Nkind = N_Function_Specification
4989 or else NT (N).Nkind = N_Procedure_Instantiation
4990 or else NT (N).Nkind = N_Procedure_Specification);
4991 Set_Flag14 (N, Val);
4992 end Set_Must_Override;
4995 (N : Node_Id; Val : Node_Id) is
4997 pragma Assert (False
4998 or else NT (N).Nkind = N_Assignment_Statement
4999 or else NT (N).Nkind = N_Attribute_Definition_Clause
5000 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5001 or else NT (N).Nkind = N_Designator
5002 or else NT (N).Nkind = N_Entry_Call_Statement
5003 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5004 or else NT (N).Nkind = N_Exit_Statement
5005 or else NT (N).Nkind = N_Formal_Package_Declaration
5006 or else NT (N).Nkind = N_Function_Call
5007 or else NT (N).Nkind = N_Function_Instantiation
5008 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5009 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5010 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5011 or else NT (N).Nkind = N_Goto_Statement
5012 or else NT (N).Nkind = N_Object_Renaming_Declaration
5013 or else NT (N).Nkind = N_Package_Instantiation
5014 or else NT (N).Nkind = N_Package_Renaming_Declaration
5015 or else NT (N).Nkind = N_Procedure_Call_Statement
5016 or else NT (N).Nkind = N_Procedure_Instantiation
5017 or else NT (N).Nkind = N_Raise_Statement
5018 or else NT (N).Nkind = N_Requeue_Statement
5019 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5020 or else NT (N).Nkind = N_Subunit
5021 or else NT (N).Nkind = N_Variant_Part
5022 or else NT (N).Nkind = N_With_Clause);
5023 Set_Node2_With_Parent (N, Val);
5027 (N : Node_Id; Val : List_Id) is
5029 pragma Assert (False
5030 or else NT (N).Nkind = N_Abort_Statement
5031 or else NT (N).Nkind = N_Use_Package_Clause);
5032 Set_List2_With_Parent (N, Val);
5035 procedure Set_Next_Entity
5036 (N : Node_Id; Val : Node_Id) is
5038 pragma Assert (False
5039 or else NT (N).Nkind = N_Defining_Character_Literal
5040 or else NT (N).Nkind = N_Defining_Identifier
5041 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5042 Set_Node2 (N, Val); -- semantic field, no parent set
5043 end Set_Next_Entity;
5045 procedure Set_Next_Exit_Statement
5046 (N : Node_Id; Val : Node_Id) is
5048 pragma Assert (False
5049 or else NT (N).Nkind = N_Exit_Statement);
5050 Set_Node3 (N, Val); -- semantic field, no parent set
5051 end Set_Next_Exit_Statement;
5053 procedure Set_Next_Implicit_With
5054 (N : Node_Id; Val : Node_Id) is
5056 pragma Assert (False
5057 or else NT (N).Nkind = N_With_Clause);
5058 Set_Node3 (N, Val); -- semantic field, no parent set
5059 end Set_Next_Implicit_With;
5061 procedure Set_Next_Named_Actual
5062 (N : Node_Id; Val : Node_Id) is
5064 pragma Assert (False
5065 or else NT (N).Nkind = N_Parameter_Association);
5066 Set_Node4 (N, Val); -- semantic field, no parent set
5067 end Set_Next_Named_Actual;
5069 procedure Set_Next_Pragma
5070 (N : Node_Id; Val : Node_Id) is
5072 pragma Assert (False
5073 or else NT (N).Nkind = N_Pragma);
5074 Set_Node1 (N, Val); -- semantic field, no parent set
5075 end Set_Next_Pragma;
5077 procedure Set_Next_Rep_Item
5078 (N : Node_Id; Val : Node_Id) is
5080 pragma Assert (False
5081 or else NT (N).Nkind = N_Aspect_Specification
5082 or else NT (N).Nkind = N_Attribute_Definition_Clause
5083 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5084 or else NT (N).Nkind = N_Pragma
5085 or else NT (N).Nkind = N_Record_Representation_Clause);
5086 Set_Node5 (N, Val); -- semantic field, no parent set
5087 end Set_Next_Rep_Item;
5089 procedure Set_Next_Use_Clause
5090 (N : Node_Id; Val : Node_Id) is
5092 pragma Assert (False
5093 or else NT (N).Nkind = N_Use_Package_Clause
5094 or else NT (N).Nkind = N_Use_Type_Clause);
5095 Set_Node3 (N, Val); -- semantic field, no parent set
5096 end Set_Next_Use_Clause;
5098 procedure Set_No_Ctrl_Actions
5099 (N : Node_Id; Val : Boolean := True) is
5101 pragma Assert (False
5102 or else NT (N).Nkind = N_Assignment_Statement);
5104 end Set_No_Ctrl_Actions;
5106 procedure Set_No_Elaboration_Check
5107 (N : Node_Id; Val : Boolean := True) is
5109 pragma Assert (False
5110 or else NT (N).Nkind = N_Function_Call
5111 or else NT (N).Nkind = N_Procedure_Call_Statement);
5112 Set_Flag14 (N, Val);
5113 end Set_No_Elaboration_Check;
5115 procedure Set_No_Entities_Ref_In_Spec
5116 (N : Node_Id; Val : Boolean := True) is
5118 pragma Assert (False
5119 or else NT (N).Nkind = N_With_Clause);
5121 end Set_No_Entities_Ref_In_Spec;
5123 procedure Set_No_Initialization
5124 (N : Node_Id; Val : Boolean := True) is
5126 pragma Assert (False
5127 or else NT (N).Nkind = N_Allocator
5128 or else NT (N).Nkind = N_Object_Declaration);
5129 Set_Flag13 (N, Val);
5130 end Set_No_Initialization;
5132 procedure Set_No_Truncation
5133 (N : Node_Id; Val : Boolean := True) is
5135 pragma Assert (False
5136 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5137 Set_Flag17 (N, Val);
5138 end Set_No_Truncation;
5140 procedure Set_Null_Present
5141 (N : Node_Id; Val : Boolean := True) is
5143 pragma Assert (False
5144 or else NT (N).Nkind = N_Component_List
5145 or else NT (N).Nkind = N_Procedure_Specification
5146 or else NT (N).Nkind = N_Record_Definition);
5147 Set_Flag13 (N, Val);
5148 end Set_Null_Present;
5150 procedure Set_Null_Exclusion_Present
5151 (N : Node_Id; Val : Boolean := True) is
5153 pragma Assert (False
5154 or else NT (N).Nkind = N_Access_Definition
5155 or else NT (N).Nkind = N_Access_Function_Definition
5156 or else NT (N).Nkind = N_Access_Procedure_Definition
5157 or else NT (N).Nkind = N_Access_To_Object_Definition
5158 or else NT (N).Nkind = N_Allocator
5159 or else NT (N).Nkind = N_Component_Definition
5160 or else NT (N).Nkind = N_Derived_Type_Definition
5161 or else NT (N).Nkind = N_Discriminant_Specification
5162 or else NT (N).Nkind = N_Formal_Object_Declaration
5163 or else NT (N).Nkind = N_Function_Specification
5164 or else NT (N).Nkind = N_Object_Declaration
5165 or else NT (N).Nkind = N_Object_Renaming_Declaration
5166 or else NT (N).Nkind = N_Parameter_Specification
5167 or else NT (N).Nkind = N_Subtype_Declaration);
5168 Set_Flag11 (N, Val);
5169 end Set_Null_Exclusion_Present;
5171 procedure Set_Null_Exclusion_In_Return_Present
5172 (N : Node_Id; Val : Boolean := True) is
5174 pragma Assert (False
5175 or else NT (N).Nkind = N_Access_Function_Definition);
5176 Set_Flag14 (N, Val);
5177 end Set_Null_Exclusion_In_Return_Present;
5179 procedure Set_Null_Record_Present
5180 (N : Node_Id; Val : Boolean := True) is
5182 pragma Assert (False
5183 or else NT (N).Nkind = N_Aggregate
5184 or else NT (N).Nkind = N_Extension_Aggregate);
5185 Set_Flag17 (N, Val);
5186 end Set_Null_Record_Present;
5188 procedure Set_Object_Definition
5189 (N : Node_Id; Val : Node_Id) is
5191 pragma Assert (False
5192 or else NT (N).Nkind = N_Object_Declaration);
5193 Set_Node4_With_Parent (N, Val);
5194 end Set_Object_Definition;
5196 procedure Set_Original_Discriminant
5197 (N : Node_Id; Val : Node_Id) is
5199 pragma Assert (False
5200 or else NT (N).Nkind = N_Identifier);
5201 Set_Node2 (N, Val); -- semantic field, no parent set
5202 end Set_Original_Discriminant;
5204 procedure Set_Original_Entity
5205 (N : Node_Id; Val : Entity_Id) is
5207 pragma Assert (False
5208 or else NT (N).Nkind = N_Integer_Literal
5209 or else NT (N).Nkind = N_Real_Literal);
5210 Set_Node2 (N, Val); -- semantic field, no parent set
5211 end Set_Original_Entity;
5213 procedure Set_Others_Discrete_Choices
5214 (N : Node_Id; Val : List_Id) is
5216 pragma Assert (False
5217 or else NT (N).Nkind = N_Others_Choice);
5218 Set_List1_With_Parent (N, Val);
5219 end Set_Others_Discrete_Choices;
5221 procedure Set_Out_Present
5222 (N : Node_Id; Val : Boolean := True) is
5224 pragma Assert (False
5225 or else NT (N).Nkind = N_Formal_Object_Declaration
5226 or else NT (N).Nkind = N_Parameter_Specification);
5227 Set_Flag17 (N, Val);
5228 end Set_Out_Present;
5230 procedure Set_Parameter_Associations
5231 (N : Node_Id; Val : List_Id) is
5233 pragma Assert (False
5234 or else NT (N).Nkind = N_Entry_Call_Statement
5235 or else NT (N).Nkind = N_Function_Call
5236 or else NT (N).Nkind = N_Procedure_Call_Statement);
5237 Set_List3_With_Parent (N, Val);
5238 end Set_Parameter_Associations;
5240 procedure Set_Parameter_List_Truncated
5241 (N : Node_Id; Val : Boolean := True) is
5243 pragma Assert (False
5244 or else NT (N).Nkind = N_Function_Call
5245 or else NT (N).Nkind = N_Procedure_Call_Statement);
5246 Set_Flag17 (N, Val);
5247 end Set_Parameter_List_Truncated;
5249 procedure Set_Parameter_Specifications
5250 (N : Node_Id; Val : List_Id) is
5252 pragma Assert (False
5253 or else NT (N).Nkind = N_Accept_Statement
5254 or else NT (N).Nkind = N_Access_Function_Definition
5255 or else NT (N).Nkind = N_Access_Procedure_Definition
5256 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5257 or else NT (N).Nkind = N_Entry_Declaration
5258 or else NT (N).Nkind = N_Function_Specification
5259 or else NT (N).Nkind = N_Procedure_Specification);
5260 Set_List3_With_Parent (N, Val);
5261 end Set_Parameter_Specifications;
5263 procedure Set_Parameter_Type
5264 (N : Node_Id; Val : Node_Id) is
5266 pragma Assert (False
5267 or else NT (N).Nkind = N_Parameter_Specification);
5268 Set_Node2_With_Parent (N, Val);
5269 end Set_Parameter_Type;
5271 procedure Set_Parent_Spec
5272 (N : Node_Id; Val : Node_Id) is
5274 pragma Assert (False
5275 or else NT (N).Nkind = N_Function_Instantiation
5276 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5277 or else NT (N).Nkind = N_Generic_Package_Declaration
5278 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5279 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5280 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5281 or else NT (N).Nkind = N_Package_Declaration
5282 or else NT (N).Nkind = N_Package_Instantiation
5283 or else NT (N).Nkind = N_Package_Renaming_Declaration
5284 or else NT (N).Nkind = N_Procedure_Instantiation
5285 or else NT (N).Nkind = N_Subprogram_Declaration
5286 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5287 Set_Node4 (N, Val); -- semantic field, no parent set
5288 end Set_Parent_Spec;
5290 procedure Set_Position
5291 (N : Node_Id; Val : Node_Id) is
5293 pragma Assert (False
5294 or else NT (N).Nkind = N_Component_Clause);
5295 Set_Node2_With_Parent (N, Val);
5298 procedure Set_Pragma_Argument_Associations
5299 (N : Node_Id; Val : List_Id) is
5301 pragma Assert (False
5302 or else NT (N).Nkind = N_Pragma);
5303 Set_List2_With_Parent (N, Val);
5304 end Set_Pragma_Argument_Associations;
5306 procedure Set_Pragma_Enabled
5307 (N : Node_Id; Val : Boolean := True) is
5309 pragma Assert (False
5310 or else NT (N).Nkind = N_Pragma);
5312 end Set_Pragma_Enabled;
5314 procedure Set_Pragma_Identifier
5315 (N : Node_Id; Val : Node_Id) is
5317 pragma Assert (False
5318 or else NT (N).Nkind = N_Pragma);
5319 Set_Node4_With_Parent (N, Val);
5320 end Set_Pragma_Identifier;
5322 procedure Set_Pragmas_After
5323 (N : Node_Id; Val : List_Id) is
5325 pragma Assert (False
5326 or else NT (N).Nkind = N_Compilation_Unit_Aux
5327 or else NT (N).Nkind = N_Terminate_Alternative);
5328 Set_List5_With_Parent (N, Val);
5329 end Set_Pragmas_After;
5331 procedure Set_Pragmas_Before
5332 (N : Node_Id; Val : List_Id) is
5334 pragma Assert (False
5335 or else NT (N).Nkind = N_Accept_Alternative
5336 or else NT (N).Nkind = N_Delay_Alternative
5337 or else NT (N).Nkind = N_Entry_Call_Alternative
5338 or else NT (N).Nkind = N_Mod_Clause
5339 or else NT (N).Nkind = N_Terminate_Alternative
5340 or else NT (N).Nkind = N_Triggering_Alternative);
5341 Set_List4_With_Parent (N, Val);
5342 end Set_Pragmas_Before;
5344 procedure Set_Prefix
5345 (N : Node_Id; Val : Node_Id) is
5347 pragma Assert (False
5348 or else NT (N).Nkind = N_Attribute_Reference
5349 or else NT (N).Nkind = N_Expanded_Name
5350 or else NT (N).Nkind = N_Explicit_Dereference
5351 or else NT (N).Nkind = N_Indexed_Component
5352 or else NT (N).Nkind = N_Reference
5353 or else NT (N).Nkind = N_Selected_Component
5354 or else NT (N).Nkind = N_Slice);
5355 Set_Node3_With_Parent (N, Val);
5358 procedure Set_Present_Expr
5359 (N : Node_Id; Val : Uint) is
5361 pragma Assert (False
5362 or else NT (N).Nkind = N_Variant);
5364 end Set_Present_Expr;
5366 procedure Set_Prev_Ids
5367 (N : Node_Id; Val : Boolean := True) is
5369 pragma Assert (False
5370 or else NT (N).Nkind = N_Component_Declaration
5371 or else NT (N).Nkind = N_Discriminant_Specification
5372 or else NT (N).Nkind = N_Exception_Declaration
5373 or else NT (N).Nkind = N_Formal_Object_Declaration
5374 or else NT (N).Nkind = N_Number_Declaration
5375 or else NT (N).Nkind = N_Object_Declaration
5376 or else NT (N).Nkind = N_Parameter_Specification);
5380 procedure Set_Print_In_Hex
5381 (N : Node_Id; Val : Boolean := True) is
5383 pragma Assert (False
5384 or else NT (N).Nkind = N_Integer_Literal);
5385 Set_Flag13 (N, Val);
5386 end Set_Print_In_Hex;
5388 procedure Set_Private_Declarations
5389 (N : Node_Id; Val : List_Id) is
5391 pragma Assert (False
5392 or else NT (N).Nkind = N_Package_Specification
5393 or else NT (N).Nkind = N_Protected_Definition
5394 or else NT (N).Nkind = N_Task_Definition);
5395 Set_List3_With_Parent (N, Val);
5396 end Set_Private_Declarations;
5398 procedure Set_Private_Present
5399 (N : Node_Id; Val : Boolean := True) is
5401 pragma Assert (False
5402 or else NT (N).Nkind = N_Compilation_Unit
5403 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5404 or else NT (N).Nkind = N_With_Clause);
5405 Set_Flag15 (N, Val);
5406 end Set_Private_Present;
5408 procedure Set_Procedure_To_Call
5409 (N : Node_Id; Val : Node_Id) is
5411 pragma Assert (False
5412 or else NT (N).Nkind = N_Allocator
5413 or else NT (N).Nkind = N_Extended_Return_Statement
5414 or else NT (N).Nkind = N_Free_Statement
5415 or else NT (N).Nkind = N_Return_Statement);
5416 Set_Node2 (N, Val); -- semantic field, no parent set
5417 end Set_Procedure_To_Call;
5419 procedure Set_Proper_Body
5420 (N : Node_Id; Val : Node_Id) is
5422 pragma Assert (False
5423 or else NT (N).Nkind = N_Subunit);
5424 Set_Node1_With_Parent (N, Val);
5425 end Set_Proper_Body;
5427 procedure Set_Protected_Definition
5428 (N : Node_Id; Val : Node_Id) is
5430 pragma Assert (False
5431 or else NT (N).Nkind = N_Protected_Type_Declaration
5432 or else NT (N).Nkind = N_Single_Protected_Declaration);
5433 Set_Node3_With_Parent (N, Val);
5434 end Set_Protected_Definition;
5436 procedure Set_Protected_Present
5437 (N : Node_Id; Val : Boolean := True) is
5439 pragma Assert (False
5440 or else NT (N).Nkind = N_Access_Function_Definition
5441 or else NT (N).Nkind = N_Access_Procedure_Definition
5442 or else NT (N).Nkind = N_Derived_Type_Definition
5443 or else NT (N).Nkind = N_Record_Definition);
5445 end Set_Protected_Present;
5447 procedure Set_Raises_Constraint_Error
5448 (N : Node_Id; Val : Boolean := True) is
5450 pragma Assert (False
5451 or else NT (N).Nkind in N_Subexpr);
5453 end Set_Raises_Constraint_Error;
5455 procedure Set_Range_Constraint
5456 (N : Node_Id; Val : Node_Id) is
5458 pragma Assert (False
5459 or else NT (N).Nkind = N_Delta_Constraint
5460 or else NT (N).Nkind = N_Digits_Constraint);
5461 Set_Node4_With_Parent (N, Val);
5462 end Set_Range_Constraint;
5464 procedure Set_Range_Expression
5465 (N : Node_Id; Val : Node_Id) is
5467 pragma Assert (False
5468 or else NT (N).Nkind = N_Range_Constraint);
5469 Set_Node4_With_Parent (N, Val);
5470 end Set_Range_Expression;
5472 procedure Set_Real_Range_Specification
5473 (N : Node_Id; Val : Node_Id) is
5475 pragma Assert (False
5476 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5477 or else NT (N).Nkind = N_Floating_Point_Definition
5478 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5479 Set_Node4_With_Parent (N, Val);
5480 end Set_Real_Range_Specification;
5482 procedure Set_Realval
5483 (N : Node_Id; Val : Ureal) is
5485 pragma Assert (False
5486 or else NT (N).Nkind = N_Real_Literal);
5487 Set_Ureal3 (N, Val);
5490 procedure Set_Reason
5491 (N : Node_Id; Val : Uint) is
5493 pragma Assert (False
5494 or else NT (N).Nkind = N_Raise_Constraint_Error
5495 or else NT (N).Nkind = N_Raise_Program_Error
5496 or else NT (N).Nkind = N_Raise_Storage_Error);
5500 procedure Set_Record_Extension_Part
5501 (N : Node_Id; Val : Node_Id) is
5503 pragma Assert (False
5504 or else NT (N).Nkind = N_Derived_Type_Definition);
5505 Set_Node3_With_Parent (N, Val);
5506 end Set_Record_Extension_Part;
5508 procedure Set_Redundant_Use
5509 (N : Node_Id; Val : Boolean := True) is
5511 pragma Assert (False
5512 or else NT (N).Nkind = N_Attribute_Reference
5513 or else NT (N).Nkind = N_Expanded_Name
5514 or else NT (N).Nkind = N_Identifier);
5515 Set_Flag13 (N, Val);
5516 end Set_Redundant_Use;
5518 procedure Set_Renaming_Exception
5519 (N : Node_Id; Val : Node_Id) is
5521 pragma Assert (False
5522 or else NT (N).Nkind = N_Exception_Declaration);
5524 end Set_Renaming_Exception;
5526 procedure Set_Result_Definition
5527 (N : Node_Id; Val : Node_Id) is
5529 pragma Assert (False
5530 or else NT (N).Nkind = N_Access_Function_Definition
5531 or else NT (N).Nkind = N_Function_Specification);
5532 Set_Node4_With_Parent (N, Val);
5533 end Set_Result_Definition;
5535 procedure Set_Return_Object_Declarations
5536 (N : Node_Id; Val : List_Id) is
5538 pragma Assert (False
5539 or else NT (N).Nkind = N_Extended_Return_Statement);
5540 Set_List3_With_Parent (N, Val);
5541 end Set_Return_Object_Declarations;
5543 procedure Set_Return_Statement_Entity
5544 (N : Node_Id; Val : Node_Id) is
5546 pragma Assert (False
5547 or else NT (N).Nkind = N_Extended_Return_Statement
5548 or else NT (N).Nkind = N_Return_Statement);
5549 Set_Node5 (N, Val); -- semantic field, no parent set
5550 end Set_Return_Statement_Entity;
5552 procedure Set_Reverse_Present
5553 (N : Node_Id; Val : Boolean := True) is
5555 pragma Assert (False
5556 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5557 Set_Flag15 (N, Val);
5558 end Set_Reverse_Present;
5560 procedure Set_Right_Opnd
5561 (N : Node_Id; Val : Node_Id) is
5563 pragma Assert (False
5564 or else NT (N).Nkind in N_Op
5565 or else NT (N).Nkind = N_And_Then
5566 or else NT (N).Nkind = N_In
5567 or else NT (N).Nkind = N_Not_In
5568 or else NT (N).Nkind = N_Or_Else);
5569 Set_Node3_With_Parent (N, Val);
5572 procedure Set_Rounded_Result
5573 (N : Node_Id; Val : Boolean := True) is
5575 pragma Assert (False
5576 or else NT (N).Nkind = N_Op_Divide
5577 or else NT (N).Nkind = N_Op_Multiply
5578 or else NT (N).Nkind = N_Type_Conversion);
5579 Set_Flag18 (N, Val);
5580 end Set_Rounded_Result;
5582 procedure Set_SCIL_Controlling_Tag
5583 (N : Node_Id; Val : Node_Id) is
5585 pragma Assert (False
5586 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5587 Set_Node5 (N, Val); -- semantic field, no parent set
5588 end Set_SCIL_Controlling_Tag;
5590 procedure Set_SCIL_Entity
5591 (N : Node_Id; Val : Node_Id) is
5593 pragma Assert (False
5594 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5595 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5596 or else NT (N).Nkind = N_SCIL_Membership_Test);
5597 Set_Node4 (N, Val); -- semantic field, no parent set
5598 end Set_SCIL_Entity;
5600 procedure Set_SCIL_Tag_Value
5601 (N : Node_Id; Val : Node_Id) is
5603 pragma Assert (False
5604 or else NT (N).Nkind = N_SCIL_Membership_Test);
5605 Set_Node5 (N, Val); -- semantic field, no parent set
5606 end Set_SCIL_Tag_Value;
5608 procedure Set_SCIL_Target_Prim
5609 (N : Node_Id; Val : Node_Id) is
5611 pragma Assert (False
5612 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5613 Set_Node2 (N, Val); -- semantic field, no parent set
5614 end Set_SCIL_Target_Prim;
5617 (N : Node_Id; Val : Node_Id) is
5619 pragma Assert (False
5620 or else NT (N).Nkind = N_Defining_Character_Literal
5621 or else NT (N).Nkind = N_Defining_Identifier
5622 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5623 Set_Node3 (N, Val); -- semantic field, no parent set
5626 procedure Set_Select_Alternatives
5627 (N : Node_Id; Val : List_Id) is
5629 pragma Assert (False
5630 or else NT (N).Nkind = N_Selective_Accept);
5631 Set_List1_With_Parent (N, Val);
5632 end Set_Select_Alternatives;
5634 procedure Set_Selector_Name
5635 (N : Node_Id; Val : Node_Id) is
5637 pragma Assert (False
5638 or else NT (N).Nkind = N_Expanded_Name
5639 or else NT (N).Nkind = N_Generic_Association
5640 or else NT (N).Nkind = N_Parameter_Association
5641 or else NT (N).Nkind = N_Selected_Component);
5642 Set_Node2_With_Parent (N, Val);
5643 end Set_Selector_Name;
5645 procedure Set_Selector_Names
5646 (N : Node_Id; Val : List_Id) is
5648 pragma Assert (False
5649 or else NT (N).Nkind = N_Discriminant_Association);
5650 Set_List1_With_Parent (N, Val);
5651 end Set_Selector_Names;
5653 procedure Set_Shift_Count_OK
5654 (N : Node_Id; Val : Boolean := True) is
5656 pragma Assert (False
5657 or else NT (N).Nkind = N_Op_Rotate_Left
5658 or else NT (N).Nkind = N_Op_Rotate_Right
5659 or else NT (N).Nkind = N_Op_Shift_Left
5660 or else NT (N).Nkind = N_Op_Shift_Right
5661 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5663 end Set_Shift_Count_OK;
5665 procedure Set_Source_Type
5666 (N : Node_Id; Val : Entity_Id) is
5668 pragma Assert (False
5669 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5670 Set_Node1 (N, Val); -- semantic field, no parent set
5671 end Set_Source_Type;
5673 procedure Set_Specification
5674 (N : Node_Id; Val : Node_Id) is
5676 pragma Assert (False
5677 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5678 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5679 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5680 or else NT (N).Nkind = N_Generic_Package_Declaration
5681 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5682 or else NT (N).Nkind = N_Package_Declaration
5683 or else NT (N).Nkind = N_Parameterized_Expression
5684 or else NT (N).Nkind = N_Subprogram_Body
5685 or else NT (N).Nkind = N_Subprogram_Body_Stub
5686 or else NT (N).Nkind = N_Subprogram_Declaration
5687 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5688 Set_Node1_With_Parent (N, Val);
5689 end Set_Specification;
5691 procedure Set_Statements
5692 (N : Node_Id; Val : List_Id) is
5694 pragma Assert (False
5695 or else NT (N).Nkind = N_Abortable_Part
5696 or else NT (N).Nkind = N_Accept_Alternative
5697 or else NT (N).Nkind = N_Case_Statement_Alternative
5698 or else NT (N).Nkind = N_Delay_Alternative
5699 or else NT (N).Nkind = N_Entry_Call_Alternative
5700 or else NT (N).Nkind = N_Exception_Handler
5701 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5702 or else NT (N).Nkind = N_Loop_Statement
5703 or else NT (N).Nkind = N_Triggering_Alternative);
5704 Set_List3_With_Parent (N, Val);
5707 procedure Set_Static_Processing_OK
5708 (N : Node_Id; Val : Boolean) is
5710 pragma Assert (False
5711 or else NT (N).Nkind = N_Aggregate);
5713 end Set_Static_Processing_OK;
5715 procedure Set_Storage_Pool
5716 (N : Node_Id; Val : Node_Id) is
5718 pragma Assert (False
5719 or else NT (N).Nkind = N_Allocator
5720 or else NT (N).Nkind = N_Extended_Return_Statement
5721 or else NT (N).Nkind = N_Free_Statement
5722 or else NT (N).Nkind = N_Return_Statement);
5723 Set_Node1 (N, Val); -- semantic field, no parent set
5724 end Set_Storage_Pool;
5726 procedure Set_Strval
5727 (N : Node_Id; Val : String_Id) is
5729 pragma Assert (False
5730 or else NT (N).Nkind = N_Operator_Symbol
5731 or else NT (N).Nkind = N_String_Literal);
5735 procedure Set_Subtype_Indication
5736 (N : Node_Id; Val : Node_Id) is
5738 pragma Assert (False
5739 or else NT (N).Nkind = N_Access_To_Object_Definition
5740 or else NT (N).Nkind = N_Component_Definition
5741 or else NT (N).Nkind = N_Derived_Type_Definition
5742 or else NT (N).Nkind = N_Private_Extension_Declaration
5743 or else NT (N).Nkind = N_Subtype_Declaration);
5744 Set_Node5_With_Parent (N, Val);
5745 end Set_Subtype_Indication;
5747 procedure Set_Subtype_Mark
5748 (N : Node_Id; Val : Node_Id) is
5750 pragma Assert (False
5751 or else NT (N).Nkind = N_Access_Definition
5752 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5753 or else NT (N).Nkind = N_Formal_Object_Declaration
5754 or else NT (N).Nkind = N_Object_Renaming_Declaration
5755 or else NT (N).Nkind = N_Qualified_Expression
5756 or else NT (N).Nkind = N_Subtype_Indication
5757 or else NT (N).Nkind = N_Type_Conversion
5758 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5759 Set_Node4_With_Parent (N, Val);
5760 end Set_Subtype_Mark;
5762 procedure Set_Subtype_Marks
5763 (N : Node_Id; Val : List_Id) is
5765 pragma Assert (False
5766 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5767 or else NT (N).Nkind = N_Use_Type_Clause);
5768 Set_List2_With_Parent (N, Val);
5769 end Set_Subtype_Marks;
5771 procedure Set_Suppress_Loop_Warnings
5772 (N : Node_Id; Val : Boolean := True) is
5774 pragma Assert (False
5775 or else NT (N).Nkind = N_Loop_Statement);
5776 Set_Flag17 (N, Val);
5777 end Set_Suppress_Loop_Warnings;
5779 procedure Set_Synchronized_Present
5780 (N : Node_Id; Val : Boolean := True) is
5782 pragma Assert (False
5783 or else NT (N).Nkind = N_Derived_Type_Definition
5784 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5785 or else NT (N).Nkind = N_Private_Extension_Declaration
5786 or else NT (N).Nkind = N_Record_Definition);
5788 end Set_Synchronized_Present;
5790 procedure Set_Tagged_Present
5791 (N : Node_Id; Val : Boolean := True) is
5793 pragma Assert (False
5794 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5795 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5796 or else NT (N).Nkind = N_Private_Type_Declaration
5797 or else NT (N).Nkind = N_Record_Definition);
5798 Set_Flag15 (N, Val);
5799 end Set_Tagged_Present;
5801 procedure Set_Target_Type
5802 (N : Node_Id; Val : Entity_Id) is
5804 pragma Assert (False
5805 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5806 Set_Node2 (N, Val); -- semantic field, no parent set
5807 end Set_Target_Type;
5809 procedure Set_Task_Definition
5810 (N : Node_Id; Val : Node_Id) is
5812 pragma Assert (False
5813 or else NT (N).Nkind = N_Single_Task_Declaration
5814 or else NT (N).Nkind = N_Task_Type_Declaration);
5815 Set_Node3_With_Parent (N, Val);
5816 end Set_Task_Definition;
5818 procedure Set_Task_Present
5819 (N : Node_Id; Val : Boolean := True) is
5821 pragma Assert (False
5822 or else NT (N).Nkind = N_Derived_Type_Definition
5823 or else NT (N).Nkind = N_Record_Definition);
5825 end Set_Task_Present;
5827 procedure Set_Then_Actions
5828 (N : Node_Id; Val : List_Id) is
5830 pragma Assert (False
5831 or else NT (N).Nkind = N_Conditional_Expression);
5832 Set_List2 (N, Val); -- semantic field, no parent set
5833 end Set_Then_Actions;
5835 procedure Set_Then_Statements
5836 (N : Node_Id; Val : List_Id) is
5838 pragma Assert (False
5839 or else NT (N).Nkind = N_Elsif_Part
5840 or else NT (N).Nkind = N_If_Statement);
5841 Set_List2_With_Parent (N, Val);
5842 end Set_Then_Statements;
5844 procedure Set_Treat_Fixed_As_Integer
5845 (N : Node_Id; Val : Boolean := True) is
5847 pragma Assert (False
5848 or else NT (N).Nkind = N_Op_Divide
5849 or else NT (N).Nkind = N_Op_Mod
5850 or else NT (N).Nkind = N_Op_Multiply
5851 or else NT (N).Nkind = N_Op_Rem);
5852 Set_Flag14 (N, Val);
5853 end Set_Treat_Fixed_As_Integer;
5855 procedure Set_Triggering_Alternative
5856 (N : Node_Id; Val : Node_Id) is
5858 pragma Assert (False
5859 or else NT (N).Nkind = N_Asynchronous_Select);
5860 Set_Node1_With_Parent (N, Val);
5861 end Set_Triggering_Alternative;
5863 procedure Set_Triggering_Statement
5864 (N : Node_Id; Val : Node_Id) is
5866 pragma Assert (False
5867 or else NT (N).Nkind = N_Triggering_Alternative);
5868 Set_Node1_With_Parent (N, Val);
5869 end Set_Triggering_Statement;
5871 procedure Set_TSS_Elist
5872 (N : Node_Id; Val : Elist_Id) is
5874 pragma Assert (False
5875 or else NT (N).Nkind = N_Freeze_Entity);
5876 Set_Elist3 (N, Val); -- semantic field, no parent set
5879 procedure Set_Type_Definition
5880 (N : Node_Id; Val : Node_Id) is
5882 pragma Assert (False
5883 or else NT (N).Nkind = N_Full_Type_Declaration);
5884 Set_Node3_With_Parent (N, Val);
5885 end Set_Type_Definition;
5888 (N : Node_Id; Val : Node_Id) is
5890 pragma Assert (False
5891 or else NT (N).Nkind = N_Compilation_Unit);
5892 Set_Node2_With_Parent (N, Val);
5895 procedure Set_Unknown_Discriminants_Present
5896 (N : Node_Id; Val : Boolean := True) is
5898 pragma Assert (False
5899 or else NT (N).Nkind = N_Formal_Type_Declaration
5900 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5901 or else NT (N).Nkind = N_Private_Extension_Declaration
5902 or else NT (N).Nkind = N_Private_Type_Declaration);
5903 Set_Flag13 (N, Val);
5904 end Set_Unknown_Discriminants_Present;
5906 procedure Set_Unreferenced_In_Spec
5907 (N : Node_Id; Val : Boolean := True) is
5909 pragma Assert (False
5910 or else NT (N).Nkind = N_With_Clause);
5912 end Set_Unreferenced_In_Spec;
5914 procedure Set_Variant_Part
5915 (N : Node_Id; Val : Node_Id) is
5917 pragma Assert (False
5918 or else NT (N).Nkind = N_Component_List);
5919 Set_Node4_With_Parent (N, Val);
5920 end Set_Variant_Part;
5922 procedure Set_Variants
5923 (N : Node_Id; Val : List_Id) is
5925 pragma Assert (False
5926 or else NT (N).Nkind = N_Variant_Part);
5927 Set_List1_With_Parent (N, Val);
5930 procedure Set_Visible_Declarations
5931 (N : Node_Id; Val : List_Id) is
5933 pragma Assert (False
5934 or else NT (N).Nkind = N_Package_Specification
5935 or else NT (N).Nkind = N_Protected_Definition
5936 or else NT (N).Nkind = N_Task_Definition);
5937 Set_List2_With_Parent (N, Val);
5938 end Set_Visible_Declarations;
5940 procedure Set_Was_Originally_Stub
5941 (N : Node_Id; Val : Boolean := True) is
5943 pragma Assert (False
5944 or else NT (N).Nkind = N_Package_Body
5945 or else NT (N).Nkind = N_Protected_Body
5946 or else NT (N).Nkind = N_Subprogram_Body
5947 or else NT (N).Nkind = N_Task_Body);
5948 Set_Flag13 (N, Val);
5949 end Set_Was_Originally_Stub;
5951 procedure Set_Withed_Body
5952 (N : Node_Id; Val : Node_Id) is
5954 pragma Assert (False
5955 or else NT (N).Nkind = N_With_Clause);
5957 end Set_Withed_Body;
5959 procedure Set_Zero_Cost_Handling
5960 (N : Node_Id; Val : Boolean := True) is
5962 pragma Assert (False
5963 or else NT (N).Nkind = N_Exception_Handler
5964 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
5966 end Set_Zero_Cost_Handling;
5968 -------------------------
5969 -- Iterator Procedures --
5970 -------------------------
5972 procedure Next_Entity (N : in out Node_Id) is
5974 N := Next_Entity (N);
5977 procedure Next_Named_Actual (N : in out Node_Id) is
5979 N := Next_Named_Actual (N);
5980 end Next_Named_Actual;
5982 procedure Next_Rep_Item (N : in out Node_Id) is
5984 N := Next_Rep_Item (N);
5987 procedure Next_Use_Clause (N : in out Node_Id) is
5989 N := Next_Use_Clause (N);
5990 end Next_Use_Clause;
5996 function End_Location (N : Node_Id) return Source_Ptr is
5997 L : constant Uint := End_Span (N);
6002 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6006 --------------------
6007 -- Get_Pragma_Arg --
6008 --------------------
6010 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6012 if Nkind (Arg) = N_Pragma_Argument_Association then
6013 return Expression (Arg);
6019 ----------------------
6020 -- Set_End_Location --
6021 ----------------------
6023 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6026 UI_From_Int (Int (S) - Int (Sloc (N))));
6027 end Set_End_Location;
6036 V2 : Node_Kind) return Boolean
6039 return T = V1 or else
6047 V3 : Node_Kind) return Boolean
6050 return T = V1 or else
6060 V4 : Node_Kind) return Boolean
6063 return T = V1 or else
6075 V5 : Node_Kind) return Boolean
6078 return T = V1 or else
6092 V6 : Node_Kind) return Boolean
6095 return T = V1 or else
6111 V7 : Node_Kind) return Boolean
6114 return T = V1 or else
6132 V8 : Node_Kind) return Boolean
6135 return T = V1 or else
6155 V9 : Node_Kind) return Boolean
6158 return T = V1 or else
6173 function Pragma_Name (N : Node_Id) return Name_Id is
6175 return Chars (Pragma_Identifier (N));