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_Quantified_Expression
228 or else NT (N).Nkind = N_Use_Type_Clause);
232 function Alternatives
233 (N : Node_Id) return List_Id is
236 or else NT (N).Nkind = N_Case_Expression
237 or else NT (N).Nkind = N_Case_Statement
238 or else NT (N).Nkind = N_In
239 or else NT (N).Nkind = N_Not_In);
243 function Ancestor_Part
244 (N : Node_Id) return Node_Id is
247 or else NT (N).Nkind = N_Extension_Aggregate);
251 function Array_Aggregate
252 (N : Node_Id) return Node_Id is
255 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
259 function Aspect_Cancel
260 (N : Node_Id) return Boolean is
263 or else NT (N).Nkind = N_Pragma);
267 function Aspect_Rep_Item
268 (N : Node_Id) return Node_Id is
271 or else NT (N).Nkind = N_Aspect_Specification);
275 function Assignment_OK
276 (N : Node_Id) return Boolean is
279 or else NT (N).Nkind = N_Object_Declaration
280 or else NT (N).Nkind in N_Subexpr);
284 function Associated_Node
285 (N : Node_Id) return Node_Id is
288 or else NT (N).Nkind in N_Has_Entity
289 or else NT (N).Nkind = N_Aggregate
290 or else NT (N).Nkind = N_Extension_Aggregate
291 or else NT (N).Nkind = N_Selected_Component);
296 (N : Node_Id) return Node_Id is
299 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
303 function Attribute_Name
304 (N : Node_Id) return Name_Id is
307 or else NT (N).Nkind = N_Attribute_Reference);
311 function Aux_Decls_Node
312 (N : Node_Id) return Node_Id is
315 or else NT (N).Nkind = N_Compilation_Unit);
319 function Backwards_OK
320 (N : Node_Id) return Boolean is
323 or else NT (N).Nkind = N_Assignment_Statement);
327 function Bad_Is_Detected
328 (N : Node_Id) return Boolean is
331 or else NT (N).Nkind = N_Subprogram_Body);
335 function Body_Required
336 (N : Node_Id) return Boolean is
339 or else NT (N).Nkind = N_Compilation_Unit);
343 function Body_To_Inline
344 (N : Node_Id) return Node_Id is
347 or else NT (N).Nkind = N_Subprogram_Declaration);
352 (N : Node_Id) return Boolean is
355 or else NT (N).Nkind = N_Component_Association
356 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
357 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
358 or else NT (N).Nkind = N_Formal_Package_Declaration
359 or else NT (N).Nkind = N_Generic_Association);
364 (N : Node_Id) return Boolean is
367 or else NT (N).Nkind = N_Extended_Return_Statement
368 or else NT (N).Nkind = N_Return_Statement);
372 function Char_Literal_Value
373 (N : Node_Id) return Uint is
376 or else NT (N).Nkind = N_Character_Literal);
378 end Char_Literal_Value;
381 (N : Node_Id) return Name_Id is
384 or else NT (N).Nkind in N_Has_Chars);
388 function Check_Address_Alignment
389 (N : Node_Id) return Boolean is
392 or else NT (N).Nkind = N_Attribute_Definition_Clause);
394 end Check_Address_Alignment;
396 function Choice_Parameter
397 (N : Node_Id) return Node_Id is
400 or else NT (N).Nkind = N_Exception_Handler);
402 end Choice_Parameter;
405 (N : Node_Id) return List_Id is
408 or else NT (N).Nkind = N_Component_Association);
412 function Class_Present
413 (N : Node_Id) return Boolean is
416 or else NT (N).Nkind = N_Aspect_Specification
417 or else NT (N).Nkind = N_Pragma);
421 function Coextensions
422 (N : Node_Id) return Elist_Id is
425 or else NT (N).Nkind = N_Allocator);
429 function Comes_From_Extended_Return_Statement
430 (N : Node_Id) return Boolean is
433 or else NT (N).Nkind = N_Return_Statement);
435 end Comes_From_Extended_Return_Statement;
437 function Compile_Time_Known_Aggregate
438 (N : Node_Id) return Boolean is
441 or else NT (N).Nkind = N_Aggregate);
443 end Compile_Time_Known_Aggregate;
445 function Component_Associations
446 (N : Node_Id) return List_Id is
449 or else NT (N).Nkind = N_Aggregate
450 or else NT (N).Nkind = N_Extension_Aggregate);
452 end Component_Associations;
454 function Component_Clauses
455 (N : Node_Id) return List_Id is
458 or else NT (N).Nkind = N_Record_Representation_Clause);
460 end Component_Clauses;
462 function Component_Definition
463 (N : Node_Id) return Node_Id is
466 or else NT (N).Nkind = N_Component_Declaration
467 or else NT (N).Nkind = N_Constrained_Array_Definition
468 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
470 end Component_Definition;
472 function Component_Items
473 (N : Node_Id) return List_Id is
476 or else NT (N).Nkind = N_Component_List);
480 function Component_List
481 (N : Node_Id) return Node_Id is
484 or else NT (N).Nkind = N_Record_Definition
485 or else NT (N).Nkind = N_Variant);
489 function Component_Name
490 (N : Node_Id) return Node_Id is
493 or else NT (N).Nkind = N_Component_Clause);
497 function Componentwise_Assignment
498 (N : Node_Id) return Boolean is
501 or else NT (N).Nkind = N_Assignment_Statement);
503 end Componentwise_Assignment;
506 (N : Node_Id) return Node_Id is
509 or else NT (N).Nkind = N_Accept_Alternative
510 or else NT (N).Nkind = N_Delay_Alternative
511 or else NT (N).Nkind = N_Elsif_Part
512 or else NT (N).Nkind = N_Entry_Body_Formal_Part
513 or else NT (N).Nkind = N_Exit_Statement
514 or else NT (N).Nkind = N_If_Statement
515 or else NT (N).Nkind = N_Iteration_Scheme
516 or else NT (N).Nkind = N_Quantified_Expression
517 or else NT (N).Nkind = N_Raise_Constraint_Error
518 or else NT (N).Nkind = N_Raise_Program_Error
519 or else NT (N).Nkind = N_Raise_Storage_Error
520 or else NT (N).Nkind = N_Terminate_Alternative);
524 function Condition_Actions
525 (N : Node_Id) return List_Id is
528 or else NT (N).Nkind = N_Elsif_Part
529 or else NT (N).Nkind = N_Iteration_Scheme);
531 end Condition_Actions;
533 function Config_Pragmas
534 (N : Node_Id) return List_Id is
537 or else NT (N).Nkind = N_Compilation_Unit_Aux);
541 function Constant_Present
542 (N : Node_Id) return Boolean is
545 or else NT (N).Nkind = N_Access_Definition
546 or else NT (N).Nkind = N_Access_To_Object_Definition
547 or else NT (N).Nkind = N_Object_Declaration);
549 end Constant_Present;
552 (N : Node_Id) return Node_Id is
555 or else NT (N).Nkind = N_Subtype_Indication);
560 (N : Node_Id) return List_Id is
563 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
567 function Context_Installed
568 (N : Node_Id) return Boolean is
571 or else NT (N).Nkind = N_With_Clause);
573 end Context_Installed;
575 function Context_Items
576 (N : Node_Id) return List_Id is
579 or else NT (N).Nkind = N_Compilation_Unit);
583 function Context_Pending
584 (N : Node_Id) return Boolean is
587 or else NT (N).Nkind = N_Compilation_Unit);
591 function Controlling_Argument
592 (N : Node_Id) return Node_Id is
595 or else NT (N).Nkind = N_Function_Call
596 or else NT (N).Nkind = N_Procedure_Call_Statement);
598 end Controlling_Argument;
600 function Conversion_OK
601 (N : Node_Id) return Boolean is
604 or else NT (N).Nkind = N_Type_Conversion);
608 function Corresponding_Body
609 (N : Node_Id) return Node_Id is
612 or else NT (N).Nkind = N_Entry_Declaration
613 or else NT (N).Nkind = N_Generic_Package_Declaration
614 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
615 or else NT (N).Nkind = N_Package_Body_Stub
616 or else NT (N).Nkind = N_Package_Declaration
617 or else NT (N).Nkind = N_Protected_Body_Stub
618 or else NT (N).Nkind = N_Protected_Type_Declaration
619 or else NT (N).Nkind = N_Subprogram_Body_Stub
620 or else NT (N).Nkind = N_Subprogram_Declaration
621 or else NT (N).Nkind = N_Task_Body_Stub
622 or else NT (N).Nkind = N_Task_Type_Declaration);
624 end Corresponding_Body;
626 function Corresponding_Formal_Spec
627 (N : Node_Id) return Node_Id is
630 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
632 end Corresponding_Formal_Spec;
634 function Corresponding_Generic_Association
635 (N : Node_Id) return Node_Id is
638 or else NT (N).Nkind = N_Object_Declaration
639 or else NT (N).Nkind = N_Object_Renaming_Declaration);
641 end Corresponding_Generic_Association;
643 function Corresponding_Integer_Value
644 (N : Node_Id) return Uint is
647 or else NT (N).Nkind = N_Real_Literal);
649 end Corresponding_Integer_Value;
651 function Corresponding_Spec
652 (N : Node_Id) return Node_Id is
655 or else NT (N).Nkind = N_Package_Body
656 or else NT (N).Nkind = N_Protected_Body
657 or else NT (N).Nkind = N_Subprogram_Body
658 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
659 or else NT (N).Nkind = N_Task_Body
660 or else NT (N).Nkind = N_With_Clause);
662 end Corresponding_Spec;
664 function Corresponding_Stub
665 (N : Node_Id) return Node_Id is
668 or else NT (N).Nkind = N_Subunit);
670 end Corresponding_Stub;
672 function Dcheck_Function
673 (N : Node_Id) return Entity_Id is
676 or else NT (N).Nkind = N_Variant);
680 function Debug_Statement
681 (N : Node_Id) return Node_Id is
684 or else NT (N).Nkind = N_Pragma);
688 function Declarations
689 (N : Node_Id) return List_Id is
692 or else NT (N).Nkind = N_Accept_Statement
693 or else NT (N).Nkind = N_Block_Statement
694 or else NT (N).Nkind = N_Compilation_Unit_Aux
695 or else NT (N).Nkind = N_Entry_Body
696 or else NT (N).Nkind = N_Package_Body
697 or else NT (N).Nkind = N_Protected_Body
698 or else NT (N).Nkind = N_Subprogram_Body
699 or else NT (N).Nkind = N_Task_Body);
703 function Default_Expression
704 (N : Node_Id) return Node_Id is
707 or else NT (N).Nkind = N_Formal_Object_Declaration
708 or else NT (N).Nkind = N_Parameter_Specification);
710 end Default_Expression;
712 function Default_Storage_Pool
713 (N : Node_Id) return Node_Id is
716 or else NT (N).Nkind = N_Compilation_Unit_Aux);
718 end Default_Storage_Pool;
720 function Default_Name
721 (N : Node_Id) return Node_Id is
724 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
725 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
729 function Defining_Identifier
730 (N : Node_Id) return Entity_Id is
733 or else NT (N).Nkind = N_Component_Declaration
734 or else NT (N).Nkind = N_Defining_Program_Unit_Name
735 or else NT (N).Nkind = N_Discriminant_Specification
736 or else NT (N).Nkind = N_Entry_Body
737 or else NT (N).Nkind = N_Entry_Declaration
738 or else NT (N).Nkind = N_Entry_Index_Specification
739 or else NT (N).Nkind = N_Exception_Declaration
740 or else NT (N).Nkind = N_Exception_Renaming_Declaration
741 or else NT (N).Nkind = N_Formal_Object_Declaration
742 or else NT (N).Nkind = N_Formal_Package_Declaration
743 or else NT (N).Nkind = N_Formal_Type_Declaration
744 or else NT (N).Nkind = N_Full_Type_Declaration
745 or else NT (N).Nkind = N_Implicit_Label_Declaration
746 or else NT (N).Nkind = N_Incomplete_Type_Declaration
747 or else NT (N).Nkind = N_Loop_Parameter_Specification
748 or else NT (N).Nkind = N_Number_Declaration
749 or else NT (N).Nkind = N_Object_Declaration
750 or else NT (N).Nkind = N_Object_Renaming_Declaration
751 or else NT (N).Nkind = N_Package_Body_Stub
752 or else NT (N).Nkind = N_Parameter_Specification
753 or else NT (N).Nkind = N_Private_Extension_Declaration
754 or else NT (N).Nkind = N_Private_Type_Declaration
755 or else NT (N).Nkind = N_Protected_Body
756 or else NT (N).Nkind = N_Protected_Body_Stub
757 or else NT (N).Nkind = N_Protected_Type_Declaration
758 or else NT (N).Nkind = N_Single_Protected_Declaration
759 or else NT (N).Nkind = N_Single_Task_Declaration
760 or else NT (N).Nkind = N_Subtype_Declaration
761 or else NT (N).Nkind = N_Task_Body
762 or else NT (N).Nkind = N_Task_Body_Stub
763 or else NT (N).Nkind = N_Task_Type_Declaration);
765 end Defining_Identifier;
767 function Defining_Unit_Name
768 (N : Node_Id) return Node_Id is
771 or else NT (N).Nkind = N_Function_Instantiation
772 or else NT (N).Nkind = N_Function_Specification
773 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
774 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
775 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
776 or else NT (N).Nkind = N_Package_Body
777 or else NT (N).Nkind = N_Package_Instantiation
778 or else NT (N).Nkind = N_Package_Renaming_Declaration
779 or else NT (N).Nkind = N_Package_Specification
780 or else NT (N).Nkind = N_Procedure_Instantiation
781 or else NT (N).Nkind = N_Procedure_Specification);
783 end Defining_Unit_Name;
785 function Delay_Alternative
786 (N : Node_Id) return Node_Id is
789 or else NT (N).Nkind = N_Timed_Entry_Call);
791 end Delay_Alternative;
793 function Delay_Statement
794 (N : Node_Id) return Node_Id is
797 or else NT (N).Nkind = N_Delay_Alternative);
801 function Delta_Expression
802 (N : Node_Id) return Node_Id is
805 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
806 or else NT (N).Nkind = N_Delta_Constraint
807 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
809 end Delta_Expression;
811 function Digits_Expression
812 (N : Node_Id) return Node_Id is
815 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
816 or else NT (N).Nkind = N_Digits_Constraint
817 or else NT (N).Nkind = N_Floating_Point_Definition);
819 end Digits_Expression;
821 function Discr_Check_Funcs_Built
822 (N : Node_Id) return Boolean is
825 or else NT (N).Nkind = N_Full_Type_Declaration);
827 end Discr_Check_Funcs_Built;
829 function Discrete_Choices
830 (N : Node_Id) return List_Id is
833 or else NT (N).Nkind = N_Case_Expression_Alternative
834 or else NT (N).Nkind = N_Case_Statement_Alternative
835 or else NT (N).Nkind = N_Variant);
837 end Discrete_Choices;
839 function Discrete_Range
840 (N : Node_Id) return Node_Id is
843 or else NT (N).Nkind = N_Slice);
847 function Discrete_Subtype_Definition
848 (N : Node_Id) return Node_Id is
851 or else NT (N).Nkind = N_Entry_Declaration
852 or else NT (N).Nkind = N_Entry_Index_Specification
853 or else NT (N).Nkind = N_Loop_Parameter_Specification);
855 end Discrete_Subtype_Definition;
857 function Discrete_Subtype_Definitions
858 (N : Node_Id) return List_Id is
861 or else NT (N).Nkind = N_Constrained_Array_Definition);
863 end Discrete_Subtype_Definitions;
865 function Discriminant_Specifications
866 (N : Node_Id) return List_Id is
869 or else NT (N).Nkind = N_Formal_Type_Declaration
870 or else NT (N).Nkind = N_Full_Type_Declaration
871 or else NT (N).Nkind = N_Incomplete_Type_Declaration
872 or else NT (N).Nkind = N_Private_Extension_Declaration
873 or else NT (N).Nkind = N_Private_Type_Declaration
874 or else NT (N).Nkind = N_Protected_Type_Declaration
875 or else NT (N).Nkind = N_Task_Type_Declaration);
877 end Discriminant_Specifications;
879 function Discriminant_Type
880 (N : Node_Id) return Node_Id is
883 or else NT (N).Nkind = N_Discriminant_Specification);
885 end Discriminant_Type;
887 function Do_Accessibility_Check
888 (N : Node_Id) return Boolean is
891 or else NT (N).Nkind = N_Parameter_Specification);
893 end Do_Accessibility_Check;
895 function Do_Discriminant_Check
896 (N : Node_Id) return Boolean is
899 or else NT (N).Nkind = N_Selected_Component);
901 end Do_Discriminant_Check;
903 function Do_Division_Check
904 (N : Node_Id) return Boolean is
907 or else NT (N).Nkind = N_Op_Divide
908 or else NT (N).Nkind = N_Op_Mod
909 or else NT (N).Nkind = N_Op_Rem);
911 end Do_Division_Check;
913 function Do_Length_Check
914 (N : Node_Id) return Boolean is
917 or else NT (N).Nkind = N_Assignment_Statement
918 or else NT (N).Nkind = N_Op_And
919 or else NT (N).Nkind = N_Op_Or
920 or else NT (N).Nkind = N_Op_Xor
921 or else NT (N).Nkind = N_Type_Conversion);
925 function Do_Overflow_Check
926 (N : Node_Id) return Boolean is
929 or else NT (N).Nkind in N_Op
930 or else NT (N).Nkind = N_Attribute_Reference
931 or else NT (N).Nkind = N_Type_Conversion);
933 end Do_Overflow_Check;
935 function Do_Range_Check
936 (N : Node_Id) return Boolean is
939 or else NT (N).Nkind in N_Subexpr);
943 function Do_Storage_Check
944 (N : Node_Id) return Boolean is
947 or else NT (N).Nkind = N_Allocator
948 or else NT (N).Nkind = N_Subprogram_Body);
950 end Do_Storage_Check;
952 function Do_Tag_Check
953 (N : Node_Id) return Boolean is
956 or else NT (N).Nkind = N_Assignment_Statement
957 or else NT (N).Nkind = N_Extended_Return_Statement
958 or else NT (N).Nkind = N_Function_Call
959 or else NT (N).Nkind = N_Procedure_Call_Statement
960 or else NT (N).Nkind = N_Return_Statement
961 or else NT (N).Nkind = N_Type_Conversion);
965 function Elaborate_All_Desirable
966 (N : Node_Id) return Boolean is
969 or else NT (N).Nkind = N_With_Clause);
971 end Elaborate_All_Desirable;
973 function Elaborate_All_Present
974 (N : Node_Id) return Boolean is
977 or else NT (N).Nkind = N_With_Clause);
979 end Elaborate_All_Present;
981 function Elaborate_Desirable
982 (N : Node_Id) return Boolean is
985 or else NT (N).Nkind = N_With_Clause);
987 end Elaborate_Desirable;
989 function Elaborate_Present
990 (N : Node_Id) return Boolean is
993 or else NT (N).Nkind = N_With_Clause);
995 end Elaborate_Present;
997 function Elaboration_Boolean
998 (N : Node_Id) return Node_Id is
1000 pragma Assert (False
1001 or else NT (N).Nkind = N_Function_Specification
1002 or else NT (N).Nkind = N_Procedure_Specification);
1004 end Elaboration_Boolean;
1006 function Else_Actions
1007 (N : Node_Id) return List_Id is
1009 pragma Assert (False
1010 or else NT (N).Nkind = N_Conditional_Expression);
1014 function Else_Statements
1015 (N : Node_Id) return List_Id is
1017 pragma Assert (False
1018 or else NT (N).Nkind = N_Conditional_Entry_Call
1019 or else NT (N).Nkind = N_If_Statement
1020 or else NT (N).Nkind = N_Selective_Accept);
1022 end Else_Statements;
1024 function Elsif_Parts
1025 (N : Node_Id) return List_Id is
1027 pragma Assert (False
1028 or else NT (N).Nkind = N_If_Statement);
1032 function Enclosing_Variant
1033 (N : Node_Id) return Node_Id is
1035 pragma Assert (False
1036 or else NT (N).Nkind = N_Variant);
1038 end Enclosing_Variant;
1041 (N : Node_Id) return Node_Id is
1043 pragma Assert (False
1044 or else NT (N).Nkind = N_Enumeration_Type_Definition
1045 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1046 or else NT (N).Nkind = N_Loop_Statement
1047 or else NT (N).Nkind = N_Package_Specification
1048 or else NT (N).Nkind = N_Protected_Body
1049 or else NT (N).Nkind = N_Protected_Definition
1050 or else NT (N).Nkind = N_Record_Definition
1051 or else NT (N).Nkind = N_Task_Definition);
1056 (N : Node_Id) return Uint is
1058 pragma Assert (False
1059 or else NT (N).Nkind = N_Case_Statement
1060 or else NT (N).Nkind = N_If_Statement);
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_Aspect_Specification
1070 or else NT (N).Nkind = N_Attribute_Definition_Clause
1071 or else NT (N).Nkind = N_Freeze_Entity);
1075 function Entity_Or_Associated_Node
1076 (N : Node_Id) return Node_Id is
1078 pragma Assert (False
1079 or else NT (N).Nkind in N_Has_Entity
1080 or else NT (N).Nkind = N_Freeze_Entity);
1082 end Entity_Or_Associated_Node;
1084 function Entry_Body_Formal_Part
1085 (N : Node_Id) return Node_Id is
1087 pragma Assert (False
1088 or else NT (N).Nkind = N_Entry_Body);
1090 end Entry_Body_Formal_Part;
1092 function Entry_Call_Alternative
1093 (N : Node_Id) return Node_Id is
1095 pragma Assert (False
1096 or else NT (N).Nkind = N_Conditional_Entry_Call
1097 or else NT (N).Nkind = N_Timed_Entry_Call);
1099 end Entry_Call_Alternative;
1101 function Entry_Call_Statement
1102 (N : Node_Id) return Node_Id is
1104 pragma Assert (False
1105 or else NT (N).Nkind = N_Entry_Call_Alternative);
1107 end Entry_Call_Statement;
1109 function Entry_Direct_Name
1110 (N : Node_Id) return Node_Id is
1112 pragma Assert (False
1113 or else NT (N).Nkind = N_Accept_Statement);
1115 end Entry_Direct_Name;
1117 function Entry_Index
1118 (N : Node_Id) return Node_Id is
1120 pragma Assert (False
1121 or else NT (N).Nkind = N_Accept_Statement);
1125 function Entry_Index_Specification
1126 (N : Node_Id) return Node_Id is
1128 pragma Assert (False
1129 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1131 end Entry_Index_Specification;
1134 (N : Node_Id) return Node_Id is
1136 pragma Assert (False
1137 or else NT (N).Nkind in N_Has_Etype);
1141 function Exception_Choices
1142 (N : Node_Id) return List_Id is
1144 pragma Assert (False
1145 or else NT (N).Nkind = N_Exception_Handler);
1147 end Exception_Choices;
1149 function Exception_Handlers
1150 (N : Node_Id) return List_Id is
1152 pragma Assert (False
1153 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1155 end Exception_Handlers;
1157 function Exception_Junk
1158 (N : Node_Id) return Boolean is
1160 pragma Assert (False
1161 or else NT (N).Nkind = N_Block_Statement
1162 or else NT (N).Nkind = N_Goto_Statement
1163 or else NT (N).Nkind = N_Label
1164 or else NT (N).Nkind = N_Object_Declaration
1165 or else NT (N).Nkind = N_Subtype_Declaration);
1169 function Exception_Label
1170 (N : Node_Id) return Node_Id is
1172 pragma Assert (False
1173 or else NT (N).Nkind = N_Exception_Handler
1174 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1175 or else NT (N).Nkind = N_Push_Program_Error_Label
1176 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1178 end Exception_Label;
1180 function Expansion_Delayed
1181 (N : Node_Id) return Boolean is
1183 pragma Assert (False
1184 or else NT (N).Nkind = N_Aggregate
1185 or else NT (N).Nkind = N_Extension_Aggregate);
1187 end Expansion_Delayed;
1189 function Explicit_Actual_Parameter
1190 (N : Node_Id) return Node_Id is
1192 pragma Assert (False
1193 or else NT (N).Nkind = N_Parameter_Association);
1195 end Explicit_Actual_Parameter;
1197 function Explicit_Generic_Actual_Parameter
1198 (N : Node_Id) return Node_Id is
1200 pragma Assert (False
1201 or else NT (N).Nkind = N_Generic_Association);
1203 end Explicit_Generic_Actual_Parameter;
1206 (N : Node_Id) return Node_Id is
1208 pragma Assert (False
1209 or else NT (N).Nkind = N_Allocator
1210 or else NT (N).Nkind = N_Aspect_Specification
1211 or else NT (N).Nkind = N_Assignment_Statement
1212 or else NT (N).Nkind = N_At_Clause
1213 or else NT (N).Nkind = N_Attribute_Definition_Clause
1214 or else NT (N).Nkind = N_Case_Expression
1215 or else NT (N).Nkind = N_Case_Expression_Alternative
1216 or else NT (N).Nkind = N_Case_Statement
1217 or else NT (N).Nkind = N_Code_Statement
1218 or else NT (N).Nkind = N_Component_Association
1219 or else NT (N).Nkind = N_Component_Declaration
1220 or else NT (N).Nkind = N_Delay_Relative_Statement
1221 or else NT (N).Nkind = N_Delay_Until_Statement
1222 or else NT (N).Nkind = N_Discriminant_Association
1223 or else NT (N).Nkind = N_Discriminant_Specification
1224 or else NT (N).Nkind = N_Exception_Declaration
1225 or else NT (N).Nkind = N_Expression_With_Actions
1226 or else NT (N).Nkind = N_Free_Statement
1227 or else NT (N).Nkind = N_Mod_Clause
1228 or else NT (N).Nkind = N_Modular_Type_Definition
1229 or else NT (N).Nkind = N_Number_Declaration
1230 or else NT (N).Nkind = N_Object_Declaration
1231 or else NT (N).Nkind = N_Parameter_Specification
1232 or else NT (N).Nkind = N_Parameterized_Expression
1233 or else NT (N).Nkind = N_Pragma_Argument_Association
1234 or else NT (N).Nkind = N_Qualified_Expression
1235 or else NT (N).Nkind = N_Raise_Statement
1236 or else NT (N).Nkind = N_Return_Statement
1237 or else NT (N).Nkind = N_Type_Conversion
1238 or else NT (N).Nkind = N_Unchecked_Expression
1239 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1243 function Expressions
1244 (N : Node_Id) return List_Id is
1246 pragma Assert (False
1247 or else NT (N).Nkind = N_Aggregate
1248 or else NT (N).Nkind = N_Attribute_Reference
1249 or else NT (N).Nkind = N_Conditional_Expression
1250 or else NT (N).Nkind = N_Extension_Aggregate
1251 or else NT (N).Nkind = N_Indexed_Component);
1256 (N : Node_Id) return Node_Id is
1258 pragma Assert (False
1259 or else NT (N).Nkind = N_Component_Clause);
1263 function First_Inlined_Subprogram
1264 (N : Node_Id) return Entity_Id is
1266 pragma Assert (False
1267 or else NT (N).Nkind = N_Compilation_Unit);
1269 end First_Inlined_Subprogram;
1272 (N : Node_Id) return Boolean is
1274 pragma Assert (False
1275 or else NT (N).Nkind = N_With_Clause);
1279 function First_Named_Actual
1280 (N : Node_Id) return Node_Id is
1282 pragma Assert (False
1283 or else NT (N).Nkind = N_Entry_Call_Statement
1284 or else NT (N).Nkind = N_Function_Call
1285 or else NT (N).Nkind = N_Procedure_Call_Statement);
1287 end First_Named_Actual;
1289 function First_Real_Statement
1290 (N : Node_Id) return Node_Id is
1292 pragma Assert (False
1293 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1295 end First_Real_Statement;
1297 function First_Subtype_Link
1298 (N : Node_Id) return Entity_Id is
1300 pragma Assert (False
1301 or else NT (N).Nkind = N_Freeze_Entity);
1303 end First_Subtype_Link;
1305 function Float_Truncate
1306 (N : Node_Id) return Boolean is
1308 pragma Assert (False
1309 or else NT (N).Nkind = N_Type_Conversion);
1313 function Formal_Type_Definition
1314 (N : Node_Id) return Node_Id is
1316 pragma Assert (False
1317 or else NT (N).Nkind = N_Formal_Type_Declaration);
1319 end Formal_Type_Definition;
1321 function Forwards_OK
1322 (N : Node_Id) return Boolean is
1324 pragma Assert (False
1325 or else NT (N).Nkind = N_Assignment_Statement);
1329 function From_Aspect_Specification
1330 (N : Node_Id) return Boolean is
1332 pragma Assert (False
1333 or else NT (N).Nkind = N_Attribute_Definition_Clause
1334 or else NT (N).Nkind = N_Pragma);
1336 end From_Aspect_Specification;
1338 function From_At_End
1339 (N : Node_Id) return Boolean is
1341 pragma Assert (False
1342 or else NT (N).Nkind = N_Raise_Statement);
1346 function From_At_Mod
1347 (N : Node_Id) return Boolean is
1349 pragma Assert (False
1350 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1354 function From_Default
1355 (N : Node_Id) return Boolean is
1357 pragma Assert (False
1358 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1362 function Generic_Associations
1363 (N : Node_Id) return List_Id is
1365 pragma Assert (False
1366 or else NT (N).Nkind = N_Formal_Package_Declaration
1367 or else NT (N).Nkind = N_Function_Instantiation
1368 or else NT (N).Nkind = N_Package_Instantiation
1369 or else NT (N).Nkind = N_Procedure_Instantiation);
1371 end Generic_Associations;
1373 function Generic_Formal_Declarations
1374 (N : Node_Id) return List_Id is
1376 pragma Assert (False
1377 or else NT (N).Nkind = N_Generic_Package_Declaration
1378 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1380 end Generic_Formal_Declarations;
1382 function Generic_Parent
1383 (N : Node_Id) return Node_Id is
1385 pragma Assert (False
1386 or else NT (N).Nkind = N_Function_Specification
1387 or else NT (N).Nkind = N_Package_Specification
1388 or else NT (N).Nkind = N_Procedure_Specification);
1392 function Generic_Parent_Type
1393 (N : Node_Id) return Node_Id is
1395 pragma Assert (False
1396 or else NT (N).Nkind = N_Subtype_Declaration);
1398 end Generic_Parent_Type;
1400 function Handled_Statement_Sequence
1401 (N : Node_Id) return Node_Id is
1403 pragma Assert (False
1404 or else NT (N).Nkind = N_Accept_Statement
1405 or else NT (N).Nkind = N_Block_Statement
1406 or else NT (N).Nkind = N_Entry_Body
1407 or else NT (N).Nkind = N_Extended_Return_Statement
1408 or else NT (N).Nkind = N_Package_Body
1409 or else NT (N).Nkind = N_Subprogram_Body
1410 or else NT (N).Nkind = N_Task_Body);
1412 end Handled_Statement_Sequence;
1414 function Handler_List_Entry
1415 (N : Node_Id) return Node_Id is
1417 pragma Assert (False
1418 or else NT (N).Nkind = N_Object_Declaration);
1420 end Handler_List_Entry;
1422 function Has_Created_Identifier
1423 (N : Node_Id) return Boolean is
1425 pragma Assert (False
1426 or else NT (N).Nkind = N_Block_Statement
1427 or else NT (N).Nkind = N_Loop_Statement);
1429 end Has_Created_Identifier;
1431 function Has_Dynamic_Length_Check
1432 (N : Node_Id) return Boolean is
1435 end Has_Dynamic_Length_Check;
1436 function Has_Dynamic_Range_Check
1437 (N : Node_Id) return Boolean is
1440 end Has_Dynamic_Range_Check;
1442 function Has_Init_Expression
1443 (N : Node_Id) return Boolean is
1445 pragma Assert (False
1446 or else NT (N).Nkind = N_Object_Declaration);
1448 end Has_Init_Expression;
1450 function Has_Local_Raise
1451 (N : Node_Id) return Boolean is
1453 pragma Assert (False
1454 or else NT (N).Nkind = N_Exception_Handler);
1456 end Has_Local_Raise;
1458 function Has_No_Elaboration_Code
1459 (N : Node_Id) return Boolean is
1461 pragma Assert (False
1462 or else NT (N).Nkind = N_Compilation_Unit);
1464 end Has_No_Elaboration_Code;
1466 function Has_Pragma_CPU
1467 (N : Node_Id) return Boolean is
1469 pragma Assert (False
1470 or else NT (N).Nkind = N_Subprogram_Body
1471 or else NT (N).Nkind = N_Task_Definition);
1475 function Has_Pragma_Priority
1476 (N : Node_Id) return Boolean is
1478 pragma Assert (False
1479 or else NT (N).Nkind = N_Protected_Definition
1480 or else NT (N).Nkind = N_Subprogram_Body
1481 or else NT (N).Nkind = N_Task_Definition);
1483 end Has_Pragma_Priority;
1485 function Has_Pragma_Suppress_All
1486 (N : Node_Id) return Boolean is
1488 pragma Assert (False
1489 or else NT (N).Nkind = N_Compilation_Unit);
1491 end Has_Pragma_Suppress_All;
1493 function Has_Private_View
1494 (N : Node_Id) return Boolean is
1496 pragma Assert (False
1497 or else NT (N).Nkind in N_Op
1498 or else NT (N).Nkind = N_Character_Literal
1499 or else NT (N).Nkind = N_Expanded_Name
1500 or else NT (N).Nkind = N_Identifier
1501 or else NT (N).Nkind = N_Operator_Symbol);
1503 end Has_Private_View;
1505 function Has_Relative_Deadline_Pragma
1506 (N : Node_Id) return Boolean is
1508 pragma Assert (False
1509 or else NT (N).Nkind = N_Subprogram_Body
1510 or else NT (N).Nkind = N_Task_Definition);
1512 end Has_Relative_Deadline_Pragma;
1514 function Has_Self_Reference
1515 (N : Node_Id) return Boolean is
1517 pragma Assert (False
1518 or else NT (N).Nkind = N_Aggregate
1519 or else NT (N).Nkind = N_Extension_Aggregate);
1521 end Has_Self_Reference;
1523 function Has_Storage_Size_Pragma
1524 (N : Node_Id) return Boolean is
1526 pragma Assert (False
1527 or else NT (N).Nkind = N_Task_Definition);
1529 end Has_Storage_Size_Pragma;
1531 function Has_Task_Info_Pragma
1532 (N : Node_Id) return Boolean is
1534 pragma Assert (False
1535 or else NT (N).Nkind = N_Task_Definition);
1537 end Has_Task_Info_Pragma;
1539 function Has_Task_Name_Pragma
1540 (N : Node_Id) return Boolean is
1542 pragma Assert (False
1543 or else NT (N).Nkind = N_Task_Definition);
1545 end Has_Task_Name_Pragma;
1547 function Has_Wide_Character
1548 (N : Node_Id) return Boolean is
1550 pragma Assert (False
1551 or else NT (N).Nkind = N_String_Literal);
1553 end Has_Wide_Character;
1555 function Has_Wide_Wide_Character
1556 (N : Node_Id) return Boolean is
1558 pragma Assert (False
1559 or else NT (N).Nkind = N_String_Literal);
1561 end Has_Wide_Wide_Character;
1563 function Hidden_By_Use_Clause
1564 (N : Node_Id) return Elist_Id is
1566 pragma Assert (False
1567 or else NT (N).Nkind = N_Use_Package_Clause
1568 or else NT (N).Nkind = N_Use_Type_Clause);
1570 end Hidden_By_Use_Clause;
1573 (N : Node_Id) return Node_Id is
1575 pragma Assert (False
1576 or else NT (N).Nkind = N_Range
1577 or else NT (N).Nkind = N_Real_Range_Specification
1578 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1583 (N : Node_Id) return Node_Id is
1585 pragma Assert (False
1586 or else NT (N).Nkind = N_Aspect_Specification
1587 or else NT (N).Nkind = N_At_Clause
1588 or else NT (N).Nkind = N_Block_Statement
1589 or else NT (N).Nkind = N_Designator
1590 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1591 or else NT (N).Nkind = N_Label
1592 or else NT (N).Nkind = N_Loop_Statement
1593 or else NT (N).Nkind = N_Record_Representation_Clause
1594 or else NT (N).Nkind = N_Subprogram_Info);
1598 function Implicit_With
1599 (N : Node_Id) return Boolean is
1601 pragma Assert (False
1602 or else NT (N).Nkind = N_With_Clause);
1606 function Interface_List
1607 (N : Node_Id) return List_Id is
1609 pragma Assert (False
1610 or else NT (N).Nkind = N_Derived_Type_Definition
1611 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1612 or else NT (N).Nkind = N_Private_Extension_Declaration
1613 or else NT (N).Nkind = N_Protected_Type_Declaration
1614 or else NT (N).Nkind = N_Record_Definition
1615 or else NT (N).Nkind = N_Single_Protected_Declaration
1616 or else NT (N).Nkind = N_Single_Task_Declaration
1617 or else NT (N).Nkind = N_Task_Type_Declaration);
1621 function Interface_Present
1622 (N : Node_Id) return Boolean is
1624 pragma Assert (False
1625 or else NT (N).Nkind = N_Derived_Type_Definition
1626 or else NT (N).Nkind = N_Record_Definition);
1628 end Interface_Present;
1630 function Import_Interface_Present
1631 (N : Node_Id) return Boolean is
1633 pragma Assert (False
1634 or else NT (N).Nkind = N_Pragma);
1636 end Import_Interface_Present;
1639 (N : Node_Id) return Boolean is
1641 pragma Assert (False
1642 or else NT (N).Nkind = N_Formal_Object_Declaration
1643 or else NT (N).Nkind = N_Parameter_Specification);
1647 function Includes_Infinities
1648 (N : Node_Id) return Boolean is
1650 pragma Assert (False
1651 or else NT (N).Nkind = N_Range);
1653 end Includes_Infinities;
1655 function Inherited_Discriminant
1656 (N : Node_Id) return Boolean is
1658 pragma Assert (False
1659 or else NT (N).Nkind = N_Component_Association);
1661 end Inherited_Discriminant;
1663 function Instance_Spec
1664 (N : Node_Id) return Node_Id is
1666 pragma Assert (False
1667 or else NT (N).Nkind = N_Formal_Package_Declaration
1668 or else NT (N).Nkind = N_Function_Instantiation
1669 or else NT (N).Nkind = N_Package_Instantiation
1670 or else NT (N).Nkind = N_Procedure_Instantiation);
1675 (N : Node_Id) return Uint is
1677 pragma Assert (False
1678 or else NT (N).Nkind = N_Integer_Literal);
1682 function Is_Accessibility_Actual
1683 (N : Node_Id) return Boolean is
1685 pragma Assert (False
1686 or else NT (N).Nkind = N_Parameter_Association);
1688 end Is_Accessibility_Actual;
1690 function Is_Asynchronous_Call_Block
1691 (N : Node_Id) return Boolean is
1693 pragma Assert (False
1694 or else NT (N).Nkind = N_Block_Statement);
1696 end Is_Asynchronous_Call_Block;
1698 function Is_Component_Left_Opnd
1699 (N : Node_Id) return Boolean is
1701 pragma Assert (False
1702 or else NT (N).Nkind = N_Op_Concat);
1704 end Is_Component_Left_Opnd;
1706 function Is_Component_Right_Opnd
1707 (N : Node_Id) return Boolean is
1709 pragma Assert (False
1710 or else NT (N).Nkind = N_Op_Concat);
1712 end Is_Component_Right_Opnd;
1714 function Is_Controlling_Actual
1715 (N : Node_Id) return Boolean is
1717 pragma Assert (False
1718 or else NT (N).Nkind in N_Subexpr);
1720 end Is_Controlling_Actual;
1722 function Is_Delayed_Aspect
1723 (N : Node_Id) return Boolean is
1725 pragma Assert (False
1726 or else NT (N).Nkind = N_Attribute_Definition_Clause
1727 or else NT (N).Nkind = N_Pragma);
1729 end Is_Delayed_Aspect;
1731 function Is_Dynamic_Coextension
1732 (N : Node_Id) return Boolean is
1734 pragma Assert (False
1735 or else NT (N).Nkind = N_Allocator);
1737 end Is_Dynamic_Coextension;
1740 (N : Node_Id) return Boolean is
1742 pragma Assert (False
1743 or else NT (N).Nkind = N_Conditional_Expression);
1747 function Is_Entry_Barrier_Function
1748 (N : Node_Id) return Boolean is
1750 pragma Assert (False
1751 or else NT (N).Nkind = N_Subprogram_Body);
1753 end Is_Entry_Barrier_Function;
1755 function Is_Expanded_Build_In_Place_Call
1756 (N : Node_Id) return Boolean is
1758 pragma Assert (False
1759 or else NT (N).Nkind = N_Function_Call);
1761 end Is_Expanded_Build_In_Place_Call;
1763 function Is_Folded_In_Parser
1764 (N : Node_Id) return Boolean is
1766 pragma Assert (False
1767 or else NT (N).Nkind = N_String_Literal);
1769 end Is_Folded_In_Parser;
1771 function Is_In_Discriminant_Check
1772 (N : Node_Id) return Boolean is
1774 pragma Assert (False
1775 or else NT (N).Nkind = N_Selected_Component);
1777 end Is_In_Discriminant_Check;
1779 function Is_Machine_Number
1780 (N : Node_Id) return Boolean is
1782 pragma Assert (False
1783 or else NT (N).Nkind = N_Real_Literal);
1785 end Is_Machine_Number;
1787 function Is_Null_Loop
1788 (N : Node_Id) return Boolean is
1790 pragma Assert (False
1791 or else NT (N).Nkind = N_Loop_Statement);
1795 function Is_Overloaded
1796 (N : Node_Id) return Boolean is
1798 pragma Assert (False
1799 or else NT (N).Nkind in N_Subexpr);
1803 function Is_Power_Of_2_For_Shift
1804 (N : Node_Id) return Boolean is
1806 pragma Assert (False
1807 or else NT (N).Nkind = N_Op_Expon);
1809 end Is_Power_Of_2_For_Shift;
1811 function Is_Protected_Subprogram_Body
1812 (N : Node_Id) return Boolean is
1814 pragma Assert (False
1815 or else NT (N).Nkind = N_Subprogram_Body);
1817 end Is_Protected_Subprogram_Body;
1819 function Is_Static_Coextension
1820 (N : Node_Id) return Boolean is
1822 pragma Assert (False
1823 or else NT (N).Nkind = N_Allocator);
1825 end Is_Static_Coextension;
1827 function Is_Static_Expression
1828 (N : Node_Id) return Boolean is
1830 pragma Assert (False
1831 or else NT (N).Nkind in N_Subexpr);
1833 end Is_Static_Expression;
1835 function Is_Subprogram_Descriptor
1836 (N : Node_Id) return Boolean is
1838 pragma Assert (False
1839 or else NT (N).Nkind = N_Object_Declaration);
1841 end Is_Subprogram_Descriptor;
1843 function Is_Task_Allocation_Block
1844 (N : Node_Id) return Boolean is
1846 pragma Assert (False
1847 or else NT (N).Nkind = N_Block_Statement);
1849 end Is_Task_Allocation_Block;
1851 function Is_Task_Master
1852 (N : Node_Id) return Boolean is
1854 pragma Assert (False
1855 or else NT (N).Nkind = N_Block_Statement
1856 or else NT (N).Nkind = N_Subprogram_Body
1857 or else NT (N).Nkind = N_Task_Body);
1861 function Iteration_Scheme
1862 (N : Node_Id) return Node_Id is
1864 pragma Assert (False
1865 or else NT (N).Nkind = N_Loop_Statement);
1867 end Iteration_Scheme;
1870 (N : Node_Id) return Node_Id is
1872 pragma Assert (False
1873 or else NT (N).Nkind = N_Itype_Reference);
1877 function Kill_Range_Check
1878 (N : Node_Id) return Boolean is
1880 pragma Assert (False
1881 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1883 end Kill_Range_Check;
1885 function Label_Construct
1886 (N : Node_Id) return Node_Id is
1888 pragma Assert (False
1889 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1891 end Label_Construct;
1894 (N : Node_Id) return Node_Id is
1896 pragma Assert (False
1897 or else NT (N).Nkind = N_Component_Clause);
1902 (N : Node_Id) return Boolean is
1904 pragma Assert (False
1905 or else NT (N).Nkind = N_With_Clause);
1910 (N : Node_Id) return Node_Id is
1912 pragma Assert (False
1913 or else NT (N).Nkind = N_And_Then
1914 or else NT (N).Nkind = N_In
1915 or else NT (N).Nkind = N_Not_In
1916 or else NT (N).Nkind = N_Or_Else
1917 or else NT (N).Nkind in N_Binary_Op);
1921 function Library_Unit
1922 (N : Node_Id) return Node_Id is
1924 pragma Assert (False
1925 or else NT (N).Nkind = N_Compilation_Unit
1926 or else NT (N).Nkind = N_Package_Body_Stub
1927 or else NT (N).Nkind = N_Protected_Body_Stub
1928 or else NT (N).Nkind = N_Subprogram_Body_Stub
1929 or else NT (N).Nkind = N_Task_Body_Stub
1930 or else NT (N).Nkind = N_With_Clause);
1934 function Limited_View_Installed
1935 (N : Node_Id) return Boolean is
1937 pragma Assert (False
1938 or else NT (N).Nkind = N_Package_Specification
1939 or else NT (N).Nkind = N_With_Clause);
1941 end Limited_View_Installed;
1943 function Limited_Present
1944 (N : Node_Id) return Boolean is
1946 pragma Assert (False
1947 or else NT (N).Nkind = N_Derived_Type_Definition
1948 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1949 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1950 or else NT (N).Nkind = N_Private_Extension_Declaration
1951 or else NT (N).Nkind = N_Private_Type_Declaration
1952 or else NT (N).Nkind = N_Record_Definition
1953 or else NT (N).Nkind = N_With_Clause);
1955 end Limited_Present;
1958 (N : Node_Id) return List_Id is
1960 pragma Assert (False
1961 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1965 function Local_Raise_Not_OK
1966 (N : Node_Id) return Boolean is
1968 pragma Assert (False
1969 or else NT (N).Nkind = N_Exception_Handler);
1971 end Local_Raise_Not_OK;
1973 function Local_Raise_Statements
1974 (N : Node_Id) return Elist_Id is
1976 pragma Assert (False
1977 or else NT (N).Nkind = N_Exception_Handler);
1979 end Local_Raise_Statements;
1981 function Loop_Actions
1982 (N : Node_Id) return List_Id is
1984 pragma Assert (False
1985 or else NT (N).Nkind = N_Component_Association);
1989 function Loop_Parameter_Specification
1990 (N : Node_Id) return Node_Id is
1992 pragma Assert (False
1993 or else NT (N).Nkind = N_Iteration_Scheme
1994 or else NT (N).Nkind = N_Quantified_Expression);
1996 end Loop_Parameter_Specification;
1999 (N : Node_Id) return Node_Id is
2001 pragma Assert (False
2002 or else NT (N).Nkind = N_Range
2003 or else NT (N).Nkind = N_Real_Range_Specification
2004 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
2009 (N : Node_Id) return Node_Id is
2011 pragma Assert (False
2012 or else NT (N).Nkind = N_Record_Representation_Clause);
2017 (N : Node_Id) return Boolean is
2019 pragma Assert (False
2020 or else NT (N).Nkind = N_Component_Declaration
2021 or else NT (N).Nkind = N_Discriminant_Specification
2022 or else NT (N).Nkind = N_Exception_Declaration
2023 or else NT (N).Nkind = N_Formal_Object_Declaration
2024 or else NT (N).Nkind = N_Number_Declaration
2025 or else NT (N).Nkind = N_Object_Declaration
2026 or else NT (N).Nkind = N_Parameter_Specification);
2030 function Must_Be_Byte_Aligned
2031 (N : Node_Id) return Boolean is
2033 pragma Assert (False
2034 or else NT (N).Nkind = N_Attribute_Reference);
2036 end Must_Be_Byte_Aligned;
2038 function Must_Not_Freeze
2039 (N : Node_Id) return Boolean is
2041 pragma Assert (False
2042 or else NT (N).Nkind = N_Subtype_Indication
2043 or else NT (N).Nkind in N_Subexpr);
2045 end Must_Not_Freeze;
2047 function Must_Not_Override
2048 (N : Node_Id) return Boolean is
2050 pragma Assert (False
2051 or else NT (N).Nkind = N_Entry_Declaration
2052 or else NT (N).Nkind = N_Function_Instantiation
2053 or else NT (N).Nkind = N_Function_Specification
2054 or else NT (N).Nkind = N_Procedure_Instantiation
2055 or else NT (N).Nkind = N_Procedure_Specification);
2057 end Must_Not_Override;
2059 function Must_Override
2060 (N : Node_Id) return Boolean is
2062 pragma Assert (False
2063 or else NT (N).Nkind = N_Entry_Declaration
2064 or else NT (N).Nkind = N_Function_Instantiation
2065 or else NT (N).Nkind = N_Function_Specification
2066 or else NT (N).Nkind = N_Procedure_Instantiation
2067 or else NT (N).Nkind = N_Procedure_Specification);
2072 (N : Node_Id) return Node_Id is
2074 pragma Assert (False
2075 or else NT (N).Nkind = N_Assignment_Statement
2076 or else NT (N).Nkind = N_Attribute_Definition_Clause
2077 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2078 or else NT (N).Nkind = N_Designator
2079 or else NT (N).Nkind = N_Entry_Call_Statement
2080 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2081 or else NT (N).Nkind = N_Exit_Statement
2082 or else NT (N).Nkind = N_Formal_Package_Declaration
2083 or else NT (N).Nkind = N_Function_Call
2084 or else NT (N).Nkind = N_Function_Instantiation
2085 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2086 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2087 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2088 or else NT (N).Nkind = N_Goto_Statement
2089 or else NT (N).Nkind = N_Object_Renaming_Declaration
2090 or else NT (N).Nkind = N_Package_Instantiation
2091 or else NT (N).Nkind = N_Package_Renaming_Declaration
2092 or else NT (N).Nkind = N_Procedure_Call_Statement
2093 or else NT (N).Nkind = N_Procedure_Instantiation
2094 or else NT (N).Nkind = N_Raise_Statement
2095 or else NT (N).Nkind = N_Requeue_Statement
2096 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2097 or else NT (N).Nkind = N_Subunit
2098 or else NT (N).Nkind = N_Variant_Part
2099 or else NT (N).Nkind = N_With_Clause);
2104 (N : Node_Id) return List_Id is
2106 pragma Assert (False
2107 or else NT (N).Nkind = N_Abort_Statement
2108 or else NT (N).Nkind = N_Use_Package_Clause);
2112 function Next_Entity
2113 (N : Node_Id) return Node_Id is
2115 pragma Assert (False
2116 or else NT (N).Nkind = N_Defining_Character_Literal
2117 or else NT (N).Nkind = N_Defining_Identifier
2118 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2122 function Next_Exit_Statement
2123 (N : Node_Id) return Node_Id is
2125 pragma Assert (False
2126 or else NT (N).Nkind = N_Exit_Statement);
2128 end Next_Exit_Statement;
2130 function Next_Implicit_With
2131 (N : Node_Id) return Node_Id is
2133 pragma Assert (False
2134 or else NT (N).Nkind = N_With_Clause);
2136 end Next_Implicit_With;
2138 function Next_Named_Actual
2139 (N : Node_Id) return Node_Id is
2141 pragma Assert (False
2142 or else NT (N).Nkind = N_Parameter_Association);
2144 end Next_Named_Actual;
2146 function Next_Pragma
2147 (N : Node_Id) return Node_Id is
2149 pragma Assert (False
2150 or else NT (N).Nkind = N_Pragma);
2154 function Next_Rep_Item
2155 (N : Node_Id) return Node_Id is
2157 pragma Assert (False
2158 or else NT (N).Nkind = N_Aspect_Specification
2159 or else NT (N).Nkind = N_Attribute_Definition_Clause
2160 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2161 or else NT (N).Nkind = N_Pragma
2162 or else NT (N).Nkind = N_Record_Representation_Clause);
2166 function Next_Use_Clause
2167 (N : Node_Id) return Node_Id is
2169 pragma Assert (False
2170 or else NT (N).Nkind = N_Use_Package_Clause
2171 or else NT (N).Nkind = N_Use_Type_Clause);
2173 end Next_Use_Clause;
2175 function No_Ctrl_Actions
2176 (N : Node_Id) return Boolean is
2178 pragma Assert (False
2179 or else NT (N).Nkind = N_Assignment_Statement);
2181 end No_Ctrl_Actions;
2183 function No_Elaboration_Check
2184 (N : Node_Id) return Boolean is
2186 pragma Assert (False
2187 or else NT (N).Nkind = N_Function_Call
2188 or else NT (N).Nkind = N_Procedure_Call_Statement);
2190 end No_Elaboration_Check;
2192 function No_Entities_Ref_In_Spec
2193 (N : Node_Id) return Boolean is
2195 pragma Assert (False
2196 or else NT (N).Nkind = N_With_Clause);
2198 end No_Entities_Ref_In_Spec;
2200 function No_Initialization
2201 (N : Node_Id) return Boolean is
2203 pragma Assert (False
2204 or else NT (N).Nkind = N_Allocator
2205 or else NT (N).Nkind = N_Object_Declaration);
2207 end No_Initialization;
2209 function No_Truncation
2210 (N : Node_Id) return Boolean is
2212 pragma Assert (False
2213 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2217 function Null_Present
2218 (N : Node_Id) return Boolean is
2220 pragma Assert (False
2221 or else NT (N).Nkind = N_Component_List
2222 or else NT (N).Nkind = N_Procedure_Specification
2223 or else NT (N).Nkind = N_Record_Definition);
2227 function Null_Exclusion_Present
2228 (N : Node_Id) return Boolean is
2230 pragma Assert (False
2231 or else NT (N).Nkind = N_Access_Definition
2232 or else NT (N).Nkind = N_Access_Function_Definition
2233 or else NT (N).Nkind = N_Access_Procedure_Definition
2234 or else NT (N).Nkind = N_Access_To_Object_Definition
2235 or else NT (N).Nkind = N_Allocator
2236 or else NT (N).Nkind = N_Component_Definition
2237 or else NT (N).Nkind = N_Derived_Type_Definition
2238 or else NT (N).Nkind = N_Discriminant_Specification
2239 or else NT (N).Nkind = N_Formal_Object_Declaration
2240 or else NT (N).Nkind = N_Function_Specification
2241 or else NT (N).Nkind = N_Object_Declaration
2242 or else NT (N).Nkind = N_Object_Renaming_Declaration
2243 or else NT (N).Nkind = N_Parameter_Specification
2244 or else NT (N).Nkind = N_Subtype_Declaration);
2246 end Null_Exclusion_Present;
2248 function Null_Exclusion_In_Return_Present
2249 (N : Node_Id) return Boolean is
2251 pragma Assert (False
2252 or else NT (N).Nkind = N_Access_Function_Definition);
2254 end Null_Exclusion_In_Return_Present;
2256 function Null_Record_Present
2257 (N : Node_Id) return Boolean is
2259 pragma Assert (False
2260 or else NT (N).Nkind = N_Aggregate
2261 or else NT (N).Nkind = N_Extension_Aggregate);
2263 end Null_Record_Present;
2265 function Object_Definition
2266 (N : Node_Id) return Node_Id is
2268 pragma Assert (False
2269 or else NT (N).Nkind = N_Object_Declaration);
2271 end Object_Definition;
2273 function Original_Discriminant
2274 (N : Node_Id) return Node_Id is
2276 pragma Assert (False
2277 or else NT (N).Nkind = N_Identifier);
2279 end Original_Discriminant;
2281 function Original_Entity
2282 (N : Node_Id) return Entity_Id is
2284 pragma Assert (False
2285 or else NT (N).Nkind = N_Integer_Literal
2286 or else NT (N).Nkind = N_Real_Literal);
2288 end Original_Entity;
2290 function Others_Discrete_Choices
2291 (N : Node_Id) return List_Id is
2293 pragma Assert (False
2294 or else NT (N).Nkind = N_Others_Choice);
2296 end Others_Discrete_Choices;
2298 function Out_Present
2299 (N : Node_Id) return Boolean is
2301 pragma Assert (False
2302 or else NT (N).Nkind = N_Formal_Object_Declaration
2303 or else NT (N).Nkind = N_Parameter_Specification);
2307 function Parameter_Associations
2308 (N : Node_Id) return List_Id is
2310 pragma Assert (False
2311 or else NT (N).Nkind = N_Entry_Call_Statement
2312 or else NT (N).Nkind = N_Function_Call
2313 or else NT (N).Nkind = N_Procedure_Call_Statement);
2315 end Parameter_Associations;
2317 function Parameter_List_Truncated
2318 (N : Node_Id) return Boolean is
2320 pragma Assert (False
2321 or else NT (N).Nkind = N_Function_Call
2322 or else NT (N).Nkind = N_Procedure_Call_Statement);
2324 end Parameter_List_Truncated;
2326 function Parameter_Specifications
2327 (N : Node_Id) return List_Id is
2329 pragma Assert (False
2330 or else NT (N).Nkind = N_Accept_Statement
2331 or else NT (N).Nkind = N_Access_Function_Definition
2332 or else NT (N).Nkind = N_Access_Procedure_Definition
2333 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2334 or else NT (N).Nkind = N_Entry_Declaration
2335 or else NT (N).Nkind = N_Function_Specification
2336 or else NT (N).Nkind = N_Procedure_Specification);
2338 end Parameter_Specifications;
2340 function Parameter_Type
2341 (N : Node_Id) return Node_Id is
2343 pragma Assert (False
2344 or else NT (N).Nkind = N_Parameter_Specification);
2348 function Parent_Spec
2349 (N : Node_Id) return Node_Id is
2351 pragma Assert (False
2352 or else NT (N).Nkind = N_Function_Instantiation
2353 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2354 or else NT (N).Nkind = N_Generic_Package_Declaration
2355 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2356 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2357 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2358 or else NT (N).Nkind = N_Package_Declaration
2359 or else NT (N).Nkind = N_Package_Instantiation
2360 or else NT (N).Nkind = N_Package_Renaming_Declaration
2361 or else NT (N).Nkind = N_Procedure_Instantiation
2362 or else NT (N).Nkind = N_Subprogram_Declaration
2363 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2368 (N : Node_Id) return Node_Id is
2370 pragma Assert (False
2371 or else NT (N).Nkind = N_Component_Clause);
2375 function Pragma_Argument_Associations
2376 (N : Node_Id) return List_Id is
2378 pragma Assert (False
2379 or else NT (N).Nkind = N_Pragma);
2381 end Pragma_Argument_Associations;
2383 function Pragma_Enabled
2384 (N : Node_Id) return Boolean is
2386 pragma Assert (False
2387 or else NT (N).Nkind = N_Pragma);
2391 function Pragma_Identifier
2392 (N : Node_Id) return Node_Id is
2394 pragma Assert (False
2395 or else NT (N).Nkind = N_Pragma);
2397 end Pragma_Identifier;
2399 function Pragmas_After
2400 (N : Node_Id) return List_Id is
2402 pragma Assert (False
2403 or else NT (N).Nkind = N_Compilation_Unit_Aux
2404 or else NT (N).Nkind = N_Terminate_Alternative);
2408 function Pragmas_Before
2409 (N : Node_Id) return List_Id is
2411 pragma Assert (False
2412 or else NT (N).Nkind = N_Accept_Alternative
2413 or else NT (N).Nkind = N_Delay_Alternative
2414 or else NT (N).Nkind = N_Entry_Call_Alternative
2415 or else NT (N).Nkind = N_Mod_Clause
2416 or else NT (N).Nkind = N_Terminate_Alternative
2417 or else NT (N).Nkind = N_Triggering_Alternative);
2422 (N : Node_Id) return Node_Id is
2424 pragma Assert (False
2425 or else NT (N).Nkind = N_Attribute_Reference
2426 or else NT (N).Nkind = N_Expanded_Name
2427 or else NT (N).Nkind = N_Explicit_Dereference
2428 or else NT (N).Nkind = N_Indexed_Component
2429 or else NT (N).Nkind = N_Reference
2430 or else NT (N).Nkind = N_Selected_Component
2431 or else NT (N).Nkind = N_Slice);
2435 function Present_Expr
2436 (N : Node_Id) return Uint is
2438 pragma Assert (False
2439 or else NT (N).Nkind = N_Variant);
2444 (N : Node_Id) return Boolean is
2446 pragma Assert (False
2447 or else NT (N).Nkind = N_Component_Declaration
2448 or else NT (N).Nkind = N_Discriminant_Specification
2449 or else NT (N).Nkind = N_Exception_Declaration
2450 or else NT (N).Nkind = N_Formal_Object_Declaration
2451 or else NT (N).Nkind = N_Number_Declaration
2452 or else NT (N).Nkind = N_Object_Declaration
2453 or else NT (N).Nkind = N_Parameter_Specification);
2457 function Print_In_Hex
2458 (N : Node_Id) return Boolean is
2460 pragma Assert (False
2461 or else NT (N).Nkind = N_Integer_Literal);
2465 function Private_Declarations
2466 (N : Node_Id) return List_Id is
2468 pragma Assert (False
2469 or else NT (N).Nkind = N_Package_Specification
2470 or else NT (N).Nkind = N_Protected_Definition
2471 or else NT (N).Nkind = N_Task_Definition);
2473 end Private_Declarations;
2475 function Private_Present
2476 (N : Node_Id) return Boolean is
2478 pragma Assert (False
2479 or else NT (N).Nkind = N_Compilation_Unit
2480 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2481 or else NT (N).Nkind = N_With_Clause);
2483 end Private_Present;
2485 function Procedure_To_Call
2486 (N : Node_Id) return Node_Id is
2488 pragma Assert (False
2489 or else NT (N).Nkind = N_Allocator
2490 or else NT (N).Nkind = N_Extended_Return_Statement
2491 or else NT (N).Nkind = N_Free_Statement
2492 or else NT (N).Nkind = N_Return_Statement);
2494 end Procedure_To_Call;
2496 function Proper_Body
2497 (N : Node_Id) return Node_Id is
2499 pragma Assert (False
2500 or else NT (N).Nkind = N_Subunit);
2504 function Protected_Definition
2505 (N : Node_Id) return Node_Id is
2507 pragma Assert (False
2508 or else NT (N).Nkind = N_Protected_Type_Declaration
2509 or else NT (N).Nkind = N_Single_Protected_Declaration);
2511 end Protected_Definition;
2513 function Protected_Present
2514 (N : Node_Id) return Boolean is
2516 pragma Assert (False
2517 or else NT (N).Nkind = N_Access_Function_Definition
2518 or else NT (N).Nkind = N_Access_Procedure_Definition
2519 or else NT (N).Nkind = N_Derived_Type_Definition
2520 or else NT (N).Nkind = N_Record_Definition);
2522 end Protected_Present;
2524 function Raises_Constraint_Error
2525 (N : Node_Id) return Boolean is
2527 pragma Assert (False
2528 or else NT (N).Nkind in N_Subexpr);
2530 end Raises_Constraint_Error;
2532 function Range_Constraint
2533 (N : Node_Id) return Node_Id is
2535 pragma Assert (False
2536 or else NT (N).Nkind = N_Delta_Constraint
2537 or else NT (N).Nkind = N_Digits_Constraint);
2539 end Range_Constraint;
2541 function Range_Expression
2542 (N : Node_Id) return Node_Id is
2544 pragma Assert (False
2545 or else NT (N).Nkind = N_Range_Constraint);
2547 end Range_Expression;
2549 function Real_Range_Specification
2550 (N : Node_Id) return Node_Id is
2552 pragma Assert (False
2553 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2554 or else NT (N).Nkind = N_Floating_Point_Definition
2555 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2557 end Real_Range_Specification;
2560 (N : Node_Id) return Ureal is
2562 pragma Assert (False
2563 or else NT (N).Nkind = N_Real_Literal);
2568 (N : Node_Id) return Uint is
2570 pragma Assert (False
2571 or else NT (N).Nkind = N_Raise_Constraint_Error
2572 or else NT (N).Nkind = N_Raise_Program_Error
2573 or else NT (N).Nkind = N_Raise_Storage_Error);
2577 function Record_Extension_Part
2578 (N : Node_Id) return Node_Id is
2580 pragma Assert (False
2581 or else NT (N).Nkind = N_Derived_Type_Definition);
2583 end Record_Extension_Part;
2585 function Redundant_Use
2586 (N : Node_Id) return Boolean is
2588 pragma Assert (False
2589 or else NT (N).Nkind = N_Attribute_Reference
2590 or else NT (N).Nkind = N_Expanded_Name
2591 or else NT (N).Nkind = N_Identifier);
2595 function Renaming_Exception
2596 (N : Node_Id) return Node_Id is
2598 pragma Assert (False
2599 or else NT (N).Nkind = N_Exception_Declaration);
2601 end Renaming_Exception;
2603 function Result_Definition
2604 (N : Node_Id) return Node_Id is
2606 pragma Assert (False
2607 or else NT (N).Nkind = N_Access_Function_Definition
2608 or else NT (N).Nkind = N_Function_Specification);
2610 end Result_Definition;
2612 function Return_Object_Declarations
2613 (N : Node_Id) return List_Id is
2615 pragma Assert (False
2616 or else NT (N).Nkind = N_Extended_Return_Statement);
2618 end Return_Object_Declarations;
2620 function Return_Statement_Entity
2621 (N : Node_Id) return Node_Id is
2623 pragma Assert (False
2624 or else NT (N).Nkind = N_Extended_Return_Statement
2625 or else NT (N).Nkind = N_Return_Statement);
2627 end Return_Statement_Entity;
2629 function Reverse_Present
2630 (N : Node_Id) return Boolean is
2632 pragma Assert (False
2633 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2635 end Reverse_Present;
2638 (N : Node_Id) return Node_Id is
2640 pragma Assert (False
2641 or else NT (N).Nkind in N_Op
2642 or else NT (N).Nkind = N_And_Then
2643 or else NT (N).Nkind = N_In
2644 or else NT (N).Nkind = N_Not_In
2645 or else NT (N).Nkind = N_Or_Else);
2649 function Rounded_Result
2650 (N : Node_Id) return Boolean is
2652 pragma Assert (False
2653 or else NT (N).Nkind = N_Op_Divide
2654 or else NT (N).Nkind = N_Op_Multiply
2655 or else NT (N).Nkind = N_Type_Conversion);
2659 function SCIL_Controlling_Tag
2660 (N : Node_Id) return Node_Id is
2662 pragma Assert (False
2663 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2665 end SCIL_Controlling_Tag;
2667 function SCIL_Entity
2668 (N : Node_Id) return Node_Id is
2670 pragma Assert (False
2671 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2672 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2673 or else NT (N).Nkind = N_SCIL_Membership_Test);
2677 function SCIL_Tag_Value
2678 (N : Node_Id) return Node_Id is
2680 pragma Assert (False
2681 or else NT (N).Nkind = N_SCIL_Membership_Test);
2685 function SCIL_Target_Prim
2686 (N : Node_Id) return Node_Id is
2688 pragma Assert (False
2689 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2691 end SCIL_Target_Prim;
2694 (N : Node_Id) return Node_Id is
2696 pragma Assert (False
2697 or else NT (N).Nkind = N_Defining_Character_Literal
2698 or else NT (N).Nkind = N_Defining_Identifier
2699 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2703 function Select_Alternatives
2704 (N : Node_Id) return List_Id is
2706 pragma Assert (False
2707 or else NT (N).Nkind = N_Selective_Accept);
2709 end Select_Alternatives;
2711 function Selector_Name
2712 (N : Node_Id) return Node_Id is
2714 pragma Assert (False
2715 or else NT (N).Nkind = N_Expanded_Name
2716 or else NT (N).Nkind = N_Generic_Association
2717 or else NT (N).Nkind = N_Parameter_Association
2718 or else NT (N).Nkind = N_Selected_Component);
2722 function Selector_Names
2723 (N : Node_Id) return List_Id is
2725 pragma Assert (False
2726 or else NT (N).Nkind = N_Discriminant_Association);
2730 function Shift_Count_OK
2731 (N : Node_Id) return Boolean is
2733 pragma Assert (False
2734 or else NT (N).Nkind = N_Op_Rotate_Left
2735 or else NT (N).Nkind = N_Op_Rotate_Right
2736 or else NT (N).Nkind = N_Op_Shift_Left
2737 or else NT (N).Nkind = N_Op_Shift_Right
2738 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2742 function Source_Type
2743 (N : Node_Id) return Entity_Id is
2745 pragma Assert (False
2746 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2750 function Specification
2751 (N : Node_Id) return Node_Id is
2753 pragma Assert (False
2754 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2755 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2756 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2757 or else NT (N).Nkind = N_Generic_Package_Declaration
2758 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2759 or else NT (N).Nkind = N_Package_Declaration
2760 or else NT (N).Nkind = N_Parameterized_Expression
2761 or else NT (N).Nkind = N_Subprogram_Body
2762 or else NT (N).Nkind = N_Subprogram_Body_Stub
2763 or else NT (N).Nkind = N_Subprogram_Declaration
2764 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2769 (N : Node_Id) return Boolean is
2771 pragma Assert (False
2772 or else NT (N).Nkind = N_Aspect_Specification
2773 or else NT (N).Nkind = N_Pragma);
2778 (N : Node_Id) return List_Id is
2780 pragma Assert (False
2781 or else NT (N).Nkind = N_Abortable_Part
2782 or else NT (N).Nkind = N_Accept_Alternative
2783 or else NT (N).Nkind = N_Case_Statement_Alternative
2784 or else NT (N).Nkind = N_Delay_Alternative
2785 or else NT (N).Nkind = N_Entry_Call_Alternative
2786 or else NT (N).Nkind = N_Exception_Handler
2787 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2788 or else NT (N).Nkind = N_Loop_Statement
2789 or else NT (N).Nkind = N_Triggering_Alternative);
2793 function Static_Processing_OK
2794 (N : Node_Id) return Boolean is
2796 pragma Assert (False
2797 or else NT (N).Nkind = N_Aggregate);
2799 end Static_Processing_OK;
2801 function Storage_Pool
2802 (N : Node_Id) return Node_Id is
2804 pragma Assert (False
2805 or else NT (N).Nkind = N_Allocator
2806 or else NT (N).Nkind = N_Extended_Return_Statement
2807 or else NT (N).Nkind = N_Free_Statement
2808 or else NT (N).Nkind = N_Return_Statement);
2813 (N : Node_Id) return String_Id is
2815 pragma Assert (False
2816 or else NT (N).Nkind = N_Operator_Symbol
2817 or else NT (N).Nkind = N_String_Literal);
2821 function Subtype_Indication
2822 (N : Node_Id) return Node_Id is
2824 pragma Assert (False
2825 or else NT (N).Nkind = N_Access_To_Object_Definition
2826 or else NT (N).Nkind = N_Component_Definition
2827 or else NT (N).Nkind = N_Derived_Type_Definition
2828 or else NT (N).Nkind = N_Private_Extension_Declaration
2829 or else NT (N).Nkind = N_Subtype_Declaration);
2831 end Subtype_Indication;
2833 function Suppress_Loop_Warnings
2834 (N : Node_Id) return Boolean is
2836 pragma Assert (False
2837 or else NT (N).Nkind = N_Loop_Statement);
2839 end Suppress_Loop_Warnings;
2841 function Subtype_Mark
2842 (N : Node_Id) return Node_Id is
2844 pragma Assert (False
2845 or else NT (N).Nkind = N_Access_Definition
2846 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2847 or else NT (N).Nkind = N_Formal_Object_Declaration
2848 or else NT (N).Nkind = N_Object_Renaming_Declaration
2849 or else NT (N).Nkind = N_Qualified_Expression
2850 or else NT (N).Nkind = N_Subtype_Indication
2851 or else NT (N).Nkind = N_Type_Conversion
2852 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2856 function Subtype_Marks
2857 (N : Node_Id) return List_Id is
2859 pragma Assert (False
2860 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2861 or else NT (N).Nkind = N_Use_Type_Clause);
2865 function Synchronized_Present
2866 (N : Node_Id) return Boolean is
2868 pragma Assert (False
2869 or else NT (N).Nkind = N_Derived_Type_Definition
2870 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2871 or else NT (N).Nkind = N_Private_Extension_Declaration
2872 or else NT (N).Nkind = N_Record_Definition);
2874 end Synchronized_Present;
2876 function Tagged_Present
2877 (N : Node_Id) return Boolean is
2879 pragma Assert (False
2880 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2881 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2882 or else NT (N).Nkind = N_Private_Type_Declaration
2883 or else NT (N).Nkind = N_Record_Definition);
2887 function Target_Type
2888 (N : Node_Id) return Entity_Id is
2890 pragma Assert (False
2891 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2895 function Task_Definition
2896 (N : Node_Id) return Node_Id is
2898 pragma Assert (False
2899 or else NT (N).Nkind = N_Single_Task_Declaration
2900 or else NT (N).Nkind = N_Task_Type_Declaration);
2902 end Task_Definition;
2904 function Task_Present
2905 (N : Node_Id) return Boolean is
2907 pragma Assert (False
2908 or else NT (N).Nkind = N_Derived_Type_Definition
2909 or else NT (N).Nkind = N_Record_Definition);
2913 function Then_Actions
2914 (N : Node_Id) return List_Id is
2916 pragma Assert (False
2917 or else NT (N).Nkind = N_Conditional_Expression);
2921 function Then_Statements
2922 (N : Node_Id) return List_Id is
2924 pragma Assert (False
2925 or else NT (N).Nkind = N_Elsif_Part
2926 or else NT (N).Nkind = N_If_Statement);
2928 end Then_Statements;
2930 function Treat_Fixed_As_Integer
2931 (N : Node_Id) return Boolean is
2933 pragma Assert (False
2934 or else NT (N).Nkind = N_Op_Divide
2935 or else NT (N).Nkind = N_Op_Mod
2936 or else NT (N).Nkind = N_Op_Multiply
2937 or else NT (N).Nkind = N_Op_Rem);
2939 end Treat_Fixed_As_Integer;
2941 function Triggering_Alternative
2942 (N : Node_Id) return Node_Id is
2944 pragma Assert (False
2945 or else NT (N).Nkind = N_Asynchronous_Select);
2947 end Triggering_Alternative;
2949 function Triggering_Statement
2950 (N : Node_Id) return Node_Id is
2952 pragma Assert (False
2953 or else NT (N).Nkind = N_Triggering_Alternative);
2955 end Triggering_Statement;
2958 (N : Node_Id) return Elist_Id is
2960 pragma Assert (False
2961 or else NT (N).Nkind = N_Freeze_Entity);
2965 function Type_Definition
2966 (N : Node_Id) return Node_Id is
2968 pragma Assert (False
2969 or else NT (N).Nkind = N_Full_Type_Declaration);
2971 end Type_Definition;
2974 (N : Node_Id) return Node_Id is
2976 pragma Assert (False
2977 or else NT (N).Nkind = N_Compilation_Unit);
2981 function Unknown_Discriminants_Present
2982 (N : Node_Id) return Boolean is
2984 pragma Assert (False
2985 or else NT (N).Nkind = N_Formal_Type_Declaration
2986 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2987 or else NT (N).Nkind = N_Private_Extension_Declaration
2988 or else NT (N).Nkind = N_Private_Type_Declaration);
2990 end Unknown_Discriminants_Present;
2992 function Unreferenced_In_Spec
2993 (N : Node_Id) return Boolean is
2995 pragma Assert (False
2996 or else NT (N).Nkind = N_With_Clause);
2998 end Unreferenced_In_Spec;
3000 function Variant_Part
3001 (N : Node_Id) return Node_Id is
3003 pragma Assert (False
3004 or else NT (N).Nkind = N_Component_List);
3009 (N : Node_Id) return List_Id is
3011 pragma Assert (False
3012 or else NT (N).Nkind = N_Variant_Part);
3016 function Visible_Declarations
3017 (N : Node_Id) return List_Id is
3019 pragma Assert (False
3020 or else NT (N).Nkind = N_Package_Specification
3021 or else NT (N).Nkind = N_Protected_Definition
3022 or else NT (N).Nkind = N_Task_Definition);
3024 end Visible_Declarations;
3026 function Was_Originally_Stub
3027 (N : Node_Id) return Boolean is
3029 pragma Assert (False
3030 or else NT (N).Nkind = N_Package_Body
3031 or else NT (N).Nkind = N_Protected_Body
3032 or else NT (N).Nkind = N_Subprogram_Body
3033 or else NT (N).Nkind = N_Task_Body);
3035 end Was_Originally_Stub;
3037 function Withed_Body
3038 (N : Node_Id) return Node_Id is
3040 pragma Assert (False
3041 or else NT (N).Nkind = N_With_Clause);
3045 function Zero_Cost_Handling
3046 (N : Node_Id) return Boolean is
3048 pragma Assert (False
3049 or else NT (N).Nkind = N_Exception_Handler
3050 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3052 end Zero_Cost_Handling;
3054 --------------------------
3055 -- Field Set Procedures --
3056 --------------------------
3058 procedure Set_ABE_Is_Certain
3059 (N : Node_Id; Val : Boolean := True) is
3061 pragma Assert (False
3062 or else NT (N).Nkind = N_Formal_Package_Declaration
3063 or else NT (N).Nkind = N_Function_Call
3064 or else NT (N).Nkind = N_Function_Instantiation
3065 or else NT (N).Nkind = N_Package_Instantiation
3066 or else NT (N).Nkind = N_Procedure_Call_Statement
3067 or else NT (N).Nkind = N_Procedure_Instantiation);
3068 Set_Flag18 (N, Val);
3069 end Set_ABE_Is_Certain;
3071 procedure Set_Abort_Present
3072 (N : Node_Id; Val : Boolean := True) is
3074 pragma Assert (False
3075 or else NT (N).Nkind = N_Requeue_Statement);
3076 Set_Flag15 (N, Val);
3077 end Set_Abort_Present;
3079 procedure Set_Abortable_Part
3080 (N : Node_Id; Val : Node_Id) is
3082 pragma Assert (False
3083 or else NT (N).Nkind = N_Asynchronous_Select);
3084 Set_Node2_With_Parent (N, Val);
3085 end Set_Abortable_Part;
3087 procedure Set_Abstract_Present
3088 (N : Node_Id; Val : Boolean := True) is
3090 pragma Assert (False
3091 or else NT (N).Nkind = N_Derived_Type_Definition
3092 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3093 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3094 or else NT (N).Nkind = N_Private_Extension_Declaration
3095 or else NT (N).Nkind = N_Private_Type_Declaration
3096 or else NT (N).Nkind = N_Record_Definition);
3098 end Set_Abstract_Present;
3100 procedure Set_Accept_Handler_Records
3101 (N : Node_Id; Val : List_Id) is
3103 pragma Assert (False
3104 or else NT (N).Nkind = N_Accept_Alternative);
3105 Set_List5 (N, Val); -- semantic field, no parent set
3106 end Set_Accept_Handler_Records;
3108 procedure Set_Accept_Statement
3109 (N : Node_Id; Val : Node_Id) is
3111 pragma Assert (False
3112 or else NT (N).Nkind = N_Accept_Alternative);
3113 Set_Node2_With_Parent (N, Val);
3114 end Set_Accept_Statement;
3116 procedure Set_Access_Definition
3117 (N : Node_Id; Val : Node_Id) is
3119 pragma Assert (False
3120 or else NT (N).Nkind = N_Component_Definition
3121 or else NT (N).Nkind = N_Formal_Object_Declaration
3122 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3123 Set_Node3_With_Parent (N, Val);
3124 end Set_Access_Definition;
3126 procedure Set_Access_To_Subprogram_Definition
3127 (N : Node_Id; Val : Node_Id) is
3129 pragma Assert (False
3130 or else NT (N).Nkind = N_Access_Definition);
3131 Set_Node3_With_Parent (N, Val);
3132 end Set_Access_To_Subprogram_Definition;
3134 procedure Set_Access_Types_To_Process
3135 (N : Node_Id; Val : Elist_Id) is
3137 pragma Assert (False
3138 or else NT (N).Nkind = N_Freeze_Entity);
3139 Set_Elist2 (N, Val); -- semantic field, no parent set
3140 end Set_Access_Types_To_Process;
3142 procedure Set_Actions
3143 (N : Node_Id; Val : List_Id) is
3145 pragma Assert (False
3146 or else NT (N).Nkind = N_And_Then
3147 or else NT (N).Nkind = N_Case_Expression_Alternative
3148 or else NT (N).Nkind = N_Compilation_Unit_Aux
3149 or else NT (N).Nkind = N_Expression_With_Actions
3150 or else NT (N).Nkind = N_Freeze_Entity
3151 or else NT (N).Nkind = N_Or_Else);
3152 Set_List1_With_Parent (N, Val);
3155 procedure Set_Activation_Chain_Entity
3156 (N : Node_Id; Val : Node_Id) is
3158 pragma Assert (False
3159 or else NT (N).Nkind = N_Block_Statement
3160 or else NT (N).Nkind = N_Entry_Body
3161 or else NT (N).Nkind = N_Generic_Package_Declaration
3162 or else NT (N).Nkind = N_Package_Declaration
3163 or else NT (N).Nkind = N_Subprogram_Body
3164 or else NT (N).Nkind = N_Task_Body);
3165 Set_Node3 (N, Val); -- semantic field, no parent set
3166 end Set_Activation_Chain_Entity;
3168 procedure Set_Acts_As_Spec
3169 (N : Node_Id; Val : Boolean := True) is
3171 pragma Assert (False
3172 or else NT (N).Nkind = N_Compilation_Unit
3173 or else NT (N).Nkind = N_Subprogram_Body);
3175 end Set_Acts_As_Spec;
3177 procedure Set_Actual_Designated_Subtype
3178 (N : Node_Id; Val : Node_Id) is
3180 pragma Assert (False
3181 or else NT (N).Nkind = N_Explicit_Dereference
3182 or else NT (N).Nkind = N_Free_Statement);
3184 end Set_Actual_Designated_Subtype;
3186 procedure Set_Address_Warning_Posted
3187 (N : Node_Id; Val : Boolean := True) is
3189 pragma Assert (False
3190 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3191 Set_Flag18 (N, Val);
3192 end Set_Address_Warning_Posted;
3194 procedure Set_Aggregate_Bounds
3195 (N : Node_Id; Val : Node_Id) is
3197 pragma Assert (False
3198 or else NT (N).Nkind = N_Aggregate);
3199 Set_Node3 (N, Val); -- semantic field, no parent set
3200 end Set_Aggregate_Bounds;
3202 procedure Set_Aliased_Present
3203 (N : Node_Id; Val : Boolean := True) is
3205 pragma Assert (False
3206 or else NT (N).Nkind = N_Component_Definition
3207 or else NT (N).Nkind = N_Object_Declaration);
3209 end Set_Aliased_Present;
3211 procedure Set_All_Others
3212 (N : Node_Id; Val : Boolean := True) is
3214 pragma Assert (False
3215 or else NT (N).Nkind = N_Others_Choice);
3216 Set_Flag11 (N, Val);
3219 procedure Set_All_Present
3220 (N : Node_Id; Val : Boolean := True) is
3222 pragma Assert (False
3223 or else NT (N).Nkind = N_Access_Definition
3224 or else NT (N).Nkind = N_Access_To_Object_Definition
3225 or else NT (N).Nkind = N_Quantified_Expression
3226 or else NT (N).Nkind = N_Use_Type_Clause);
3227 Set_Flag15 (N, Val);
3228 end Set_All_Present;
3230 procedure Set_Alternatives
3231 (N : Node_Id; Val : List_Id) is
3233 pragma Assert (False
3234 or else NT (N).Nkind = N_Case_Expression
3235 or else NT (N).Nkind = N_Case_Statement
3236 or else NT (N).Nkind = N_In
3237 or else NT (N).Nkind = N_Not_In);
3238 Set_List4_With_Parent (N, Val);
3239 end Set_Alternatives;
3241 procedure Set_Ancestor_Part
3242 (N : Node_Id; Val : Node_Id) is
3244 pragma Assert (False
3245 or else NT (N).Nkind = N_Extension_Aggregate);
3246 Set_Node3_With_Parent (N, Val);
3247 end Set_Ancestor_Part;
3249 procedure Set_Array_Aggregate
3250 (N : Node_Id; Val : Node_Id) is
3252 pragma Assert (False
3253 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3254 Set_Node3_With_Parent (N, Val);
3255 end Set_Array_Aggregate;
3257 procedure Set_Aspect_Cancel
3258 (N : Node_Id; Val : Boolean := True) is
3260 pragma Assert (False
3261 or else NT (N).Nkind = N_Pragma);
3262 Set_Flag11 (N, Val);
3263 end Set_Aspect_Cancel;
3265 procedure Set_Aspect_Rep_Item
3266 (N : Node_Id; Val : Node_Id) is
3268 pragma Assert (False
3269 or else NT (N).Nkind = N_Aspect_Specification);
3271 end Set_Aspect_Rep_Item;
3273 procedure Set_Assignment_OK
3274 (N : Node_Id; Val : Boolean := True) is
3276 pragma Assert (False
3277 or else NT (N).Nkind = N_Object_Declaration
3278 or else NT (N).Nkind in N_Subexpr);
3279 Set_Flag15 (N, Val);
3280 end Set_Assignment_OK;
3282 procedure Set_Associated_Node
3283 (N : Node_Id; Val : Node_Id) is
3285 pragma Assert (False
3286 or else NT (N).Nkind in N_Has_Entity
3287 or else NT (N).Nkind = N_Aggregate
3288 or else NT (N).Nkind = N_Extension_Aggregate
3289 or else NT (N).Nkind = N_Selected_Component);
3290 Set_Node4 (N, Val); -- semantic field, no parent set
3291 end Set_Associated_Node;
3293 procedure Set_At_End_Proc
3294 (N : Node_Id; Val : Node_Id) is
3296 pragma Assert (False
3297 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3299 end Set_At_End_Proc;
3301 procedure Set_Attribute_Name
3302 (N : Node_Id; Val : Name_Id) is
3304 pragma Assert (False
3305 or else NT (N).Nkind = N_Attribute_Reference);
3307 end Set_Attribute_Name;
3309 procedure Set_Aux_Decls_Node
3310 (N : Node_Id; Val : Node_Id) is
3312 pragma Assert (False
3313 or else NT (N).Nkind = N_Compilation_Unit);
3314 Set_Node5_With_Parent (N, Val);
3315 end Set_Aux_Decls_Node;
3317 procedure Set_Backwards_OK
3318 (N : Node_Id; Val : Boolean := True) is
3320 pragma Assert (False
3321 or else NT (N).Nkind = N_Assignment_Statement);
3323 end Set_Backwards_OK;
3325 procedure Set_Bad_Is_Detected
3326 (N : Node_Id; Val : Boolean := True) is
3328 pragma Assert (False
3329 or else NT (N).Nkind = N_Subprogram_Body);
3330 Set_Flag15 (N, Val);
3331 end Set_Bad_Is_Detected;
3333 procedure Set_Body_Required
3334 (N : Node_Id; Val : Boolean := True) is
3336 pragma Assert (False
3337 or else NT (N).Nkind = N_Compilation_Unit);
3338 Set_Flag13 (N, Val);
3339 end Set_Body_Required;
3341 procedure Set_Body_To_Inline
3342 (N : Node_Id; Val : Node_Id) is
3344 pragma Assert (False
3345 or else NT (N).Nkind = N_Subprogram_Declaration);
3347 end Set_Body_To_Inline;
3349 procedure Set_Box_Present
3350 (N : Node_Id; Val : Boolean := True) is
3352 pragma Assert (False
3353 or else NT (N).Nkind = N_Component_Association
3354 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3355 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3356 or else NT (N).Nkind = N_Formal_Package_Declaration
3357 or else NT (N).Nkind = N_Generic_Association);
3358 Set_Flag15 (N, Val);
3359 end Set_Box_Present;
3361 procedure Set_By_Ref
3362 (N : Node_Id; Val : Boolean := True) is
3364 pragma Assert (False
3365 or else NT (N).Nkind = N_Extended_Return_Statement
3366 or else NT (N).Nkind = N_Return_Statement);
3370 procedure Set_Char_Literal_Value
3371 (N : Node_Id; Val : Uint) is
3373 pragma Assert (False
3374 or else NT (N).Nkind = N_Character_Literal);
3376 end Set_Char_Literal_Value;
3379 (N : Node_Id; Val : Name_Id) is
3381 pragma Assert (False
3382 or else NT (N).Nkind in N_Has_Chars);
3386 procedure Set_Check_Address_Alignment
3387 (N : Node_Id; Val : Boolean := True) is
3389 pragma Assert (False
3390 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3391 Set_Flag11 (N, Val);
3392 end Set_Check_Address_Alignment;
3394 procedure Set_Choice_Parameter
3395 (N : Node_Id; Val : Node_Id) is
3397 pragma Assert (False
3398 or else NT (N).Nkind = N_Exception_Handler);
3399 Set_Node2_With_Parent (N, Val);
3400 end Set_Choice_Parameter;
3402 procedure Set_Choices
3403 (N : Node_Id; Val : List_Id) is
3405 pragma Assert (False
3406 or else NT (N).Nkind = N_Component_Association);
3407 Set_List1_With_Parent (N, Val);
3410 procedure Set_Class_Present
3411 (N : Node_Id; Val : Boolean := True) is
3413 pragma Assert (False
3414 or else NT (N).Nkind = N_Aspect_Specification
3415 or else NT (N).Nkind = N_Pragma);
3417 end Set_Class_Present;
3419 procedure Set_Coextensions
3420 (N : Node_Id; Val : Elist_Id) is
3422 pragma Assert (False
3423 or else NT (N).Nkind = N_Allocator);
3424 Set_Elist4 (N, Val);
3425 end Set_Coextensions;
3427 procedure Set_Comes_From_Extended_Return_Statement
3428 (N : Node_Id; Val : Boolean := True) is
3430 pragma Assert (False
3431 or else NT (N).Nkind = N_Return_Statement);
3432 Set_Flag18 (N, Val);
3433 end Set_Comes_From_Extended_Return_Statement;
3435 procedure Set_Compile_Time_Known_Aggregate
3436 (N : Node_Id; Val : Boolean := True) is
3438 pragma Assert (False
3439 or else NT (N).Nkind = N_Aggregate);
3440 Set_Flag18 (N, Val);
3441 end Set_Compile_Time_Known_Aggregate;
3443 procedure Set_Component_Associations
3444 (N : Node_Id; Val : List_Id) is
3446 pragma Assert (False
3447 or else NT (N).Nkind = N_Aggregate
3448 or else NT (N).Nkind = N_Extension_Aggregate);
3449 Set_List2_With_Parent (N, Val);
3450 end Set_Component_Associations;
3452 procedure Set_Component_Clauses
3453 (N : Node_Id; Val : List_Id) is
3455 pragma Assert (False
3456 or else NT (N).Nkind = N_Record_Representation_Clause);
3457 Set_List3_With_Parent (N, Val);
3458 end Set_Component_Clauses;
3460 procedure Set_Component_Definition
3461 (N : Node_Id; Val : Node_Id) is
3463 pragma Assert (False
3464 or else NT (N).Nkind = N_Component_Declaration
3465 or else NT (N).Nkind = N_Constrained_Array_Definition
3466 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3467 Set_Node4_With_Parent (N, Val);
3468 end Set_Component_Definition;
3470 procedure Set_Component_Items
3471 (N : Node_Id; Val : List_Id) is
3473 pragma Assert (False
3474 or else NT (N).Nkind = N_Component_List);
3475 Set_List3_With_Parent (N, Val);
3476 end Set_Component_Items;
3478 procedure Set_Component_List
3479 (N : Node_Id; Val : Node_Id) is
3481 pragma Assert (False
3482 or else NT (N).Nkind = N_Record_Definition
3483 or else NT (N).Nkind = N_Variant);
3484 Set_Node1_With_Parent (N, Val);
3485 end Set_Component_List;
3487 procedure Set_Component_Name
3488 (N : Node_Id; Val : Node_Id) is
3490 pragma Assert (False
3491 or else NT (N).Nkind = N_Component_Clause);
3492 Set_Node1_With_Parent (N, Val);
3493 end Set_Component_Name;
3495 procedure Set_Componentwise_Assignment
3496 (N : Node_Id; Val : Boolean := True) is
3498 pragma Assert (False
3499 or else NT (N).Nkind = N_Assignment_Statement);
3500 Set_Flag14 (N, Val);
3501 end Set_Componentwise_Assignment;
3503 procedure Set_Condition
3504 (N : Node_Id; Val : Node_Id) is
3506 pragma Assert (False
3507 or else NT (N).Nkind = N_Accept_Alternative
3508 or else NT (N).Nkind = N_Delay_Alternative
3509 or else NT (N).Nkind = N_Elsif_Part
3510 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3511 or else NT (N).Nkind = N_Exit_Statement
3512 or else NT (N).Nkind = N_If_Statement
3513 or else NT (N).Nkind = N_Iteration_Scheme
3514 or else NT (N).Nkind = N_Quantified_Expression
3515 or else NT (N).Nkind = N_Raise_Constraint_Error
3516 or else NT (N).Nkind = N_Raise_Program_Error
3517 or else NT (N).Nkind = N_Raise_Storage_Error
3518 or else NT (N).Nkind = N_Terminate_Alternative);
3519 Set_Node1_With_Parent (N, Val);
3522 procedure Set_Condition_Actions
3523 (N : Node_Id; Val : List_Id) is
3525 pragma Assert (False
3526 or else NT (N).Nkind = N_Elsif_Part
3527 or else NT (N).Nkind = N_Iteration_Scheme);
3528 Set_List3 (N, Val); -- semantic field, no parent set
3529 end Set_Condition_Actions;
3531 procedure Set_Config_Pragmas
3532 (N : Node_Id; Val : List_Id) is
3534 pragma Assert (False
3535 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3536 Set_List4_With_Parent (N, Val);
3537 end Set_Config_Pragmas;
3539 procedure Set_Constant_Present
3540 (N : Node_Id; Val : Boolean := True) is
3542 pragma Assert (False
3543 or else NT (N).Nkind = N_Access_Definition
3544 or else NT (N).Nkind = N_Access_To_Object_Definition
3545 or else NT (N).Nkind = N_Object_Declaration);
3546 Set_Flag17 (N, Val);
3547 end Set_Constant_Present;
3549 procedure Set_Constraint
3550 (N : Node_Id; Val : Node_Id) is
3552 pragma Assert (False
3553 or else NT (N).Nkind = N_Subtype_Indication);
3554 Set_Node3_With_Parent (N, Val);
3557 procedure Set_Constraints
3558 (N : Node_Id; Val : List_Id) is
3560 pragma Assert (False
3561 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3562 Set_List1_With_Parent (N, Val);
3563 end Set_Constraints;
3565 procedure Set_Context_Installed
3566 (N : Node_Id; Val : Boolean := True) is
3568 pragma Assert (False
3569 or else NT (N).Nkind = N_With_Clause);
3570 Set_Flag13 (N, Val);
3571 end Set_Context_Installed;
3573 procedure Set_Context_Items
3574 (N : Node_Id; Val : List_Id) is
3576 pragma Assert (False
3577 or else NT (N).Nkind = N_Compilation_Unit);
3578 Set_List1_With_Parent (N, Val);
3579 end Set_Context_Items;
3581 procedure Set_Context_Pending
3582 (N : Node_Id; Val : Boolean := True) is
3584 pragma Assert (False
3585 or else NT (N).Nkind = N_Compilation_Unit);
3586 Set_Flag16 (N, Val);
3587 end Set_Context_Pending;
3589 procedure Set_Controlling_Argument
3590 (N : Node_Id; Val : Node_Id) is
3592 pragma Assert (False
3593 or else NT (N).Nkind = N_Function_Call
3594 or else NT (N).Nkind = N_Procedure_Call_Statement);
3595 Set_Node1 (N, Val); -- semantic field, no parent set
3596 end Set_Controlling_Argument;
3598 procedure Set_Conversion_OK
3599 (N : Node_Id; Val : Boolean := True) is
3601 pragma Assert (False
3602 or else NT (N).Nkind = N_Type_Conversion);
3603 Set_Flag14 (N, Val);
3604 end Set_Conversion_OK;
3606 procedure Set_Corresponding_Body
3607 (N : Node_Id; Val : Node_Id) is
3609 pragma Assert (False
3610 or else NT (N).Nkind = N_Entry_Declaration
3611 or else NT (N).Nkind = N_Generic_Package_Declaration
3612 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3613 or else NT (N).Nkind = N_Package_Body_Stub
3614 or else NT (N).Nkind = N_Package_Declaration
3615 or else NT (N).Nkind = N_Protected_Body_Stub
3616 or else NT (N).Nkind = N_Protected_Type_Declaration
3617 or else NT (N).Nkind = N_Subprogram_Body_Stub
3618 or else NT (N).Nkind = N_Subprogram_Declaration
3619 or else NT (N).Nkind = N_Task_Body_Stub
3620 or else NT (N).Nkind = N_Task_Type_Declaration);
3621 Set_Node5 (N, Val); -- semantic field, no parent set
3622 end Set_Corresponding_Body;
3624 procedure Set_Corresponding_Formal_Spec
3625 (N : Node_Id; Val : Node_Id) is
3627 pragma Assert (False
3628 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3629 Set_Node3 (N, Val); -- semantic field, no parent set
3630 end Set_Corresponding_Formal_Spec;
3632 procedure Set_Corresponding_Generic_Association
3633 (N : Node_Id; Val : Node_Id) is
3635 pragma Assert (False
3636 or else NT (N).Nkind = N_Object_Declaration
3637 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3638 Set_Node5 (N, Val); -- semantic field, no parent set
3639 end Set_Corresponding_Generic_Association;
3641 procedure Set_Corresponding_Integer_Value
3642 (N : Node_Id; Val : Uint) is
3644 pragma Assert (False
3645 or else NT (N).Nkind = N_Real_Literal);
3646 Set_Uint4 (N, Val); -- semantic field, no parent set
3647 end Set_Corresponding_Integer_Value;
3649 procedure Set_Corresponding_Spec
3650 (N : Node_Id; Val : Node_Id) is
3652 pragma Assert (False
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_Subprogram_Renaming_Declaration
3657 or else NT (N).Nkind = N_Task_Body
3658 or else NT (N).Nkind = N_With_Clause);
3659 Set_Node5 (N, Val); -- semantic field, no parent set
3660 end Set_Corresponding_Spec;
3662 procedure Set_Corresponding_Stub
3663 (N : Node_Id; Val : Node_Id) is
3665 pragma Assert (False
3666 or else NT (N).Nkind = N_Subunit);
3668 end Set_Corresponding_Stub;
3670 procedure Set_Dcheck_Function
3671 (N : Node_Id; Val : Entity_Id) is
3673 pragma Assert (False
3674 or else NT (N).Nkind = N_Variant);
3675 Set_Node5 (N, Val); -- semantic field, no parent set
3676 end Set_Dcheck_Function;
3678 procedure Set_Debug_Statement
3679 (N : Node_Id; Val : Node_Id) is
3681 pragma Assert (False
3682 or else NT (N).Nkind = N_Pragma);
3683 Set_Node3_With_Parent (N, Val);
3684 end Set_Debug_Statement;
3686 procedure Set_Declarations
3687 (N : Node_Id; Val : List_Id) is
3689 pragma Assert (False
3690 or else NT (N).Nkind = N_Accept_Statement
3691 or else NT (N).Nkind = N_Block_Statement
3692 or else NT (N).Nkind = N_Compilation_Unit_Aux
3693 or else NT (N).Nkind = N_Entry_Body
3694 or else NT (N).Nkind = N_Package_Body
3695 or else NT (N).Nkind = N_Protected_Body
3696 or else NT (N).Nkind = N_Subprogram_Body
3697 or else NT (N).Nkind = N_Task_Body);
3698 Set_List2_With_Parent (N, Val);
3699 end Set_Declarations;
3701 procedure Set_Default_Expression
3702 (N : Node_Id; Val : Node_Id) is
3704 pragma Assert (False
3705 or else NT (N).Nkind = N_Formal_Object_Declaration
3706 or else NT (N).Nkind = N_Parameter_Specification);
3707 Set_Node5 (N, Val); -- semantic field, no parent set
3708 end Set_Default_Expression;
3710 procedure Set_Default_Storage_Pool
3711 (N : Node_Id; Val : Node_Id) is
3713 pragma Assert (False
3714 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3715 Set_Node3 (N, Val); -- semantic field, no parent set
3716 end Set_Default_Storage_Pool;
3718 procedure Set_Default_Name
3719 (N : Node_Id; Val : Node_Id) is
3721 pragma Assert (False
3722 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3723 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3724 Set_Node2_With_Parent (N, Val);
3725 end Set_Default_Name;
3727 procedure Set_Defining_Identifier
3728 (N : Node_Id; Val : Entity_Id) is
3730 pragma Assert (False
3731 or else NT (N).Nkind = N_Component_Declaration
3732 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3733 or else NT (N).Nkind = N_Discriminant_Specification
3734 or else NT (N).Nkind = N_Entry_Body
3735 or else NT (N).Nkind = N_Entry_Declaration
3736 or else NT (N).Nkind = N_Entry_Index_Specification
3737 or else NT (N).Nkind = N_Exception_Declaration
3738 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3739 or else NT (N).Nkind = N_Formal_Object_Declaration
3740 or else NT (N).Nkind = N_Formal_Package_Declaration
3741 or else NT (N).Nkind = N_Formal_Type_Declaration
3742 or else NT (N).Nkind = N_Full_Type_Declaration
3743 or else NT (N).Nkind = N_Implicit_Label_Declaration
3744 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3745 or else NT (N).Nkind = N_Loop_Parameter_Specification
3746 or else NT (N).Nkind = N_Number_Declaration
3747 or else NT (N).Nkind = N_Object_Declaration
3748 or else NT (N).Nkind = N_Object_Renaming_Declaration
3749 or else NT (N).Nkind = N_Package_Body_Stub
3750 or else NT (N).Nkind = N_Parameter_Specification
3751 or else NT (N).Nkind = N_Private_Extension_Declaration
3752 or else NT (N).Nkind = N_Private_Type_Declaration
3753 or else NT (N).Nkind = N_Protected_Body
3754 or else NT (N).Nkind = N_Protected_Body_Stub
3755 or else NT (N).Nkind = N_Protected_Type_Declaration
3756 or else NT (N).Nkind = N_Single_Protected_Declaration
3757 or else NT (N).Nkind = N_Single_Task_Declaration
3758 or else NT (N).Nkind = N_Subtype_Declaration
3759 or else NT (N).Nkind = N_Task_Body
3760 or else NT (N).Nkind = N_Task_Body_Stub
3761 or else NT (N).Nkind = N_Task_Type_Declaration);
3762 Set_Node1_With_Parent (N, Val);
3763 end Set_Defining_Identifier;
3765 procedure Set_Defining_Unit_Name
3766 (N : Node_Id; Val : Node_Id) is
3768 pragma Assert (False
3769 or else NT (N).Nkind = N_Function_Instantiation
3770 or else NT (N).Nkind = N_Function_Specification
3771 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3772 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3773 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3774 or else NT (N).Nkind = N_Package_Body
3775 or else NT (N).Nkind = N_Package_Instantiation
3776 or else NT (N).Nkind = N_Package_Renaming_Declaration
3777 or else NT (N).Nkind = N_Package_Specification
3778 or else NT (N).Nkind = N_Procedure_Instantiation
3779 or else NT (N).Nkind = N_Procedure_Specification);
3780 Set_Node1_With_Parent (N, Val);
3781 end Set_Defining_Unit_Name;
3783 procedure Set_Delay_Alternative
3784 (N : Node_Id; Val : Node_Id) is
3786 pragma Assert (False
3787 or else NT (N).Nkind = N_Timed_Entry_Call);
3788 Set_Node4_With_Parent (N, Val);
3789 end Set_Delay_Alternative;
3791 procedure Set_Delay_Statement
3792 (N : Node_Id; Val : Node_Id) is
3794 pragma Assert (False
3795 or else NT (N).Nkind = N_Delay_Alternative);
3796 Set_Node2_With_Parent (N, Val);
3797 end Set_Delay_Statement;
3799 procedure Set_Delta_Expression
3800 (N : Node_Id; Val : Node_Id) is
3802 pragma Assert (False
3803 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3804 or else NT (N).Nkind = N_Delta_Constraint
3805 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3806 Set_Node3_With_Parent (N, Val);
3807 end Set_Delta_Expression;
3809 procedure Set_Digits_Expression
3810 (N : Node_Id; Val : Node_Id) is
3812 pragma Assert (False
3813 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3814 or else NT (N).Nkind = N_Digits_Constraint
3815 or else NT (N).Nkind = N_Floating_Point_Definition);
3816 Set_Node2_With_Parent (N, Val);
3817 end Set_Digits_Expression;
3819 procedure Set_Discr_Check_Funcs_Built
3820 (N : Node_Id; Val : Boolean := True) is
3822 pragma Assert (False
3823 or else NT (N).Nkind = N_Full_Type_Declaration);
3824 Set_Flag11 (N, Val);
3825 end Set_Discr_Check_Funcs_Built;
3827 procedure Set_Discrete_Choices
3828 (N : Node_Id; Val : List_Id) is
3830 pragma Assert (False
3831 or else NT (N).Nkind = N_Case_Expression_Alternative
3832 or else NT (N).Nkind = N_Case_Statement_Alternative
3833 or else NT (N).Nkind = N_Variant);
3834 Set_List4_With_Parent (N, Val);
3835 end Set_Discrete_Choices;
3837 procedure Set_Discrete_Range
3838 (N : Node_Id; Val : Node_Id) is
3840 pragma Assert (False
3841 or else NT (N).Nkind = N_Slice);
3842 Set_Node4_With_Parent (N, Val);
3843 end Set_Discrete_Range;
3845 procedure Set_Discrete_Subtype_Definition
3846 (N : Node_Id; Val : Node_Id) is
3848 pragma Assert (False
3849 or else NT (N).Nkind = N_Entry_Declaration
3850 or else NT (N).Nkind = N_Entry_Index_Specification
3851 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3852 Set_Node4_With_Parent (N, Val);
3853 end Set_Discrete_Subtype_Definition;
3855 procedure Set_Discrete_Subtype_Definitions
3856 (N : Node_Id; Val : List_Id) is
3858 pragma Assert (False
3859 or else NT (N).Nkind = N_Constrained_Array_Definition);
3860 Set_List2_With_Parent (N, Val);
3861 end Set_Discrete_Subtype_Definitions;
3863 procedure Set_Discriminant_Specifications
3864 (N : Node_Id; Val : List_Id) is
3866 pragma Assert (False
3867 or else NT (N).Nkind = N_Formal_Type_Declaration
3868 or else NT (N).Nkind = N_Full_Type_Declaration
3869 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3870 or else NT (N).Nkind = N_Private_Extension_Declaration
3871 or else NT (N).Nkind = N_Private_Type_Declaration
3872 or else NT (N).Nkind = N_Protected_Type_Declaration
3873 or else NT (N).Nkind = N_Task_Type_Declaration);
3874 Set_List4_With_Parent (N, Val);
3875 end Set_Discriminant_Specifications;
3877 procedure Set_Discriminant_Type
3878 (N : Node_Id; Val : Node_Id) is
3880 pragma Assert (False
3881 or else NT (N).Nkind = N_Discriminant_Specification);
3882 Set_Node5_With_Parent (N, Val);
3883 end Set_Discriminant_Type;
3885 procedure Set_Do_Accessibility_Check
3886 (N : Node_Id; Val : Boolean := True) is
3888 pragma Assert (False
3889 or else NT (N).Nkind = N_Parameter_Specification);
3890 Set_Flag13 (N, Val);
3891 end Set_Do_Accessibility_Check;
3893 procedure Set_Do_Discriminant_Check
3894 (N : Node_Id; Val : Boolean := True) is
3896 pragma Assert (False
3897 or else NT (N).Nkind = N_Selected_Component);
3898 Set_Flag13 (N, Val);
3899 end Set_Do_Discriminant_Check;
3901 procedure Set_Do_Division_Check
3902 (N : Node_Id; Val : Boolean := True) is
3904 pragma Assert (False
3905 or else NT (N).Nkind = N_Op_Divide
3906 or else NT (N).Nkind = N_Op_Mod
3907 or else NT (N).Nkind = N_Op_Rem);
3908 Set_Flag13 (N, Val);
3909 end Set_Do_Division_Check;
3911 procedure Set_Do_Length_Check
3912 (N : Node_Id; Val : Boolean := True) is
3914 pragma Assert (False
3915 or else NT (N).Nkind = N_Assignment_Statement
3916 or else NT (N).Nkind = N_Op_And
3917 or else NT (N).Nkind = N_Op_Or
3918 or else NT (N).Nkind = N_Op_Xor
3919 or else NT (N).Nkind = N_Type_Conversion);
3921 end Set_Do_Length_Check;
3923 procedure Set_Do_Overflow_Check
3924 (N : Node_Id; Val : Boolean := True) is
3926 pragma Assert (False
3927 or else NT (N).Nkind in N_Op
3928 or else NT (N).Nkind = N_Attribute_Reference
3929 or else NT (N).Nkind = N_Type_Conversion);
3930 Set_Flag17 (N, Val);
3931 end Set_Do_Overflow_Check;
3933 procedure Set_Do_Range_Check
3934 (N : Node_Id; Val : Boolean := True) is
3936 pragma Assert (False
3937 or else NT (N).Nkind in N_Subexpr);
3939 end Set_Do_Range_Check;
3941 procedure Set_Do_Storage_Check
3942 (N : Node_Id; Val : Boolean := True) is
3944 pragma Assert (False
3945 or else NT (N).Nkind = N_Allocator
3946 or else NT (N).Nkind = N_Subprogram_Body);
3947 Set_Flag17 (N, Val);
3948 end Set_Do_Storage_Check;
3950 procedure Set_Do_Tag_Check
3951 (N : Node_Id; Val : Boolean := True) is
3953 pragma Assert (False
3954 or else NT (N).Nkind = N_Assignment_Statement
3955 or else NT (N).Nkind = N_Extended_Return_Statement
3956 or else NT (N).Nkind = N_Function_Call
3957 or else NT (N).Nkind = N_Procedure_Call_Statement
3958 or else NT (N).Nkind = N_Return_Statement
3959 or else NT (N).Nkind = N_Type_Conversion);
3960 Set_Flag13 (N, Val);
3961 end Set_Do_Tag_Check;
3963 procedure Set_Elaborate_All_Desirable
3964 (N : Node_Id; Val : Boolean := True) is
3966 pragma Assert (False
3967 or else NT (N).Nkind = N_With_Clause);
3969 end Set_Elaborate_All_Desirable;
3971 procedure Set_Elaborate_All_Present
3972 (N : Node_Id; Val : Boolean := True) is
3974 pragma Assert (False
3975 or else NT (N).Nkind = N_With_Clause);
3976 Set_Flag14 (N, Val);
3977 end Set_Elaborate_All_Present;
3979 procedure Set_Elaborate_Desirable
3980 (N : Node_Id; Val : Boolean := True) is
3982 pragma Assert (False
3983 or else NT (N).Nkind = N_With_Clause);
3984 Set_Flag11 (N, Val);
3985 end Set_Elaborate_Desirable;
3987 procedure Set_Elaborate_Present
3988 (N : Node_Id; Val : Boolean := True) is
3990 pragma Assert (False
3991 or else NT (N).Nkind = N_With_Clause);
3993 end Set_Elaborate_Present;
3995 procedure Set_Elaboration_Boolean
3996 (N : Node_Id; Val : Node_Id) is
3998 pragma Assert (False
3999 or else NT (N).Nkind = N_Function_Specification
4000 or else NT (N).Nkind = N_Procedure_Specification);
4002 end Set_Elaboration_Boolean;
4004 procedure Set_Else_Actions
4005 (N : Node_Id; Val : List_Id) is
4007 pragma Assert (False
4008 or else NT (N).Nkind = N_Conditional_Expression);
4009 Set_List3 (N, Val); -- semantic field, no parent set
4010 end Set_Else_Actions;
4012 procedure Set_Else_Statements
4013 (N : Node_Id; Val : List_Id) is
4015 pragma Assert (False
4016 or else NT (N).Nkind = N_Conditional_Entry_Call
4017 or else NT (N).Nkind = N_If_Statement
4018 or else NT (N).Nkind = N_Selective_Accept);
4019 Set_List4_With_Parent (N, Val);
4020 end Set_Else_Statements;
4022 procedure Set_Elsif_Parts
4023 (N : Node_Id; Val : List_Id) is
4025 pragma Assert (False
4026 or else NT (N).Nkind = N_If_Statement);
4027 Set_List3_With_Parent (N, Val);
4028 end Set_Elsif_Parts;
4030 procedure Set_Enclosing_Variant
4031 (N : Node_Id; Val : Node_Id) is
4033 pragma Assert (False
4034 or else NT (N).Nkind = N_Variant);
4035 Set_Node2 (N, Val); -- semantic field, no parent set
4036 end Set_Enclosing_Variant;
4038 procedure Set_End_Label
4039 (N : Node_Id; Val : Node_Id) is
4041 pragma Assert (False
4042 or else NT (N).Nkind = N_Enumeration_Type_Definition
4043 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4044 or else NT (N).Nkind = N_Loop_Statement
4045 or else NT (N).Nkind = N_Package_Specification
4046 or else NT (N).Nkind = N_Protected_Body
4047 or else NT (N).Nkind = N_Protected_Definition
4048 or else NT (N).Nkind = N_Record_Definition
4049 or else NT (N).Nkind = N_Task_Definition);
4050 Set_Node4_With_Parent (N, Val);
4053 procedure Set_End_Span
4054 (N : Node_Id; Val : Uint) is
4056 pragma Assert (False
4057 or else NT (N).Nkind = N_Case_Statement
4058 or else NT (N).Nkind = N_If_Statement);
4062 procedure Set_Entity
4063 (N : Node_Id; Val : Node_Id) is
4065 pragma Assert (False
4066 or else NT (N).Nkind in N_Has_Entity
4067 or else NT (N).Nkind = N_Aspect_Specification
4068 or else NT (N).Nkind = N_Attribute_Definition_Clause
4069 or else NT (N).Nkind = N_Freeze_Entity);
4070 Set_Node4 (N, Val); -- semantic field, no parent set
4073 procedure Set_Entry_Body_Formal_Part
4074 (N : Node_Id; Val : Node_Id) is
4076 pragma Assert (False
4077 or else NT (N).Nkind = N_Entry_Body);
4078 Set_Node5_With_Parent (N, Val);
4079 end Set_Entry_Body_Formal_Part;
4081 procedure Set_Entry_Call_Alternative
4082 (N : Node_Id; Val : Node_Id) is
4084 pragma Assert (False
4085 or else NT (N).Nkind = N_Conditional_Entry_Call
4086 or else NT (N).Nkind = N_Timed_Entry_Call);
4087 Set_Node1_With_Parent (N, Val);
4088 end Set_Entry_Call_Alternative;
4090 procedure Set_Entry_Call_Statement
4091 (N : Node_Id; Val : Node_Id) is
4093 pragma Assert (False
4094 or else NT (N).Nkind = N_Entry_Call_Alternative);
4095 Set_Node1_With_Parent (N, Val);
4096 end Set_Entry_Call_Statement;
4098 procedure Set_Entry_Direct_Name
4099 (N : Node_Id; Val : Node_Id) is
4101 pragma Assert (False
4102 or else NT (N).Nkind = N_Accept_Statement);
4103 Set_Node1_With_Parent (N, Val);
4104 end Set_Entry_Direct_Name;
4106 procedure Set_Entry_Index
4107 (N : Node_Id; Val : Node_Id) is
4109 pragma Assert (False
4110 or else NT (N).Nkind = N_Accept_Statement);
4111 Set_Node5_With_Parent (N, Val);
4112 end Set_Entry_Index;
4114 procedure Set_Entry_Index_Specification
4115 (N : Node_Id; Val : Node_Id) is
4117 pragma Assert (False
4118 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4119 Set_Node4_With_Parent (N, Val);
4120 end Set_Entry_Index_Specification;
4123 (N : Node_Id; Val : Node_Id) is
4125 pragma Assert (False
4126 or else NT (N).Nkind in N_Has_Etype);
4127 Set_Node5 (N, Val); -- semantic field, no parent set
4130 procedure Set_Exception_Choices
4131 (N : Node_Id; Val : List_Id) is
4133 pragma Assert (False
4134 or else NT (N).Nkind = N_Exception_Handler);
4135 Set_List4_With_Parent (N, Val);
4136 end Set_Exception_Choices;
4138 procedure Set_Exception_Handlers
4139 (N : Node_Id; Val : List_Id) is
4141 pragma Assert (False
4142 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4143 Set_List5_With_Parent (N, Val);
4144 end Set_Exception_Handlers;
4146 procedure Set_Exception_Junk
4147 (N : Node_Id; Val : Boolean := True) is
4149 pragma Assert (False
4150 or else NT (N).Nkind = N_Block_Statement
4151 or else NT (N).Nkind = N_Goto_Statement
4152 or else NT (N).Nkind = N_Label
4153 or else NT (N).Nkind = N_Object_Declaration
4154 or else NT (N).Nkind = N_Subtype_Declaration);
4156 end Set_Exception_Junk;
4158 procedure Set_Exception_Label
4159 (N : Node_Id; Val : Node_Id) is
4161 pragma Assert (False
4162 or else NT (N).Nkind = N_Exception_Handler
4163 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4164 or else NT (N).Nkind = N_Push_Program_Error_Label
4165 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4166 Set_Node5 (N, Val); -- semantic field, no parent set
4167 end Set_Exception_Label;
4169 procedure Set_Expansion_Delayed
4170 (N : Node_Id; Val : Boolean := True) is
4172 pragma Assert (False
4173 or else NT (N).Nkind = N_Aggregate
4174 or else NT (N).Nkind = N_Extension_Aggregate);
4175 Set_Flag11 (N, Val);
4176 end Set_Expansion_Delayed;
4178 procedure Set_Explicit_Actual_Parameter
4179 (N : Node_Id; Val : Node_Id) is
4181 pragma Assert (False
4182 or else NT (N).Nkind = N_Parameter_Association);
4183 Set_Node3_With_Parent (N, Val);
4184 end Set_Explicit_Actual_Parameter;
4186 procedure Set_Explicit_Generic_Actual_Parameter
4187 (N : Node_Id; Val : Node_Id) is
4189 pragma Assert (False
4190 or else NT (N).Nkind = N_Generic_Association);
4191 Set_Node1_With_Parent (N, Val);
4192 end Set_Explicit_Generic_Actual_Parameter;
4194 procedure Set_Expression
4195 (N : Node_Id; Val : Node_Id) is
4197 pragma Assert (False
4198 or else NT (N).Nkind = N_Allocator
4199 or else NT (N).Nkind = N_Aspect_Specification
4200 or else NT (N).Nkind = N_Assignment_Statement
4201 or else NT (N).Nkind = N_At_Clause
4202 or else NT (N).Nkind = N_Attribute_Definition_Clause
4203 or else NT (N).Nkind = N_Case_Expression
4204 or else NT (N).Nkind = N_Case_Expression_Alternative
4205 or else NT (N).Nkind = N_Case_Statement
4206 or else NT (N).Nkind = N_Code_Statement
4207 or else NT (N).Nkind = N_Component_Association
4208 or else NT (N).Nkind = N_Component_Declaration
4209 or else NT (N).Nkind = N_Delay_Relative_Statement
4210 or else NT (N).Nkind = N_Delay_Until_Statement
4211 or else NT (N).Nkind = N_Discriminant_Association
4212 or else NT (N).Nkind = N_Discriminant_Specification
4213 or else NT (N).Nkind = N_Exception_Declaration
4214 or else NT (N).Nkind = N_Expression_With_Actions
4215 or else NT (N).Nkind = N_Free_Statement
4216 or else NT (N).Nkind = N_Mod_Clause
4217 or else NT (N).Nkind = N_Modular_Type_Definition
4218 or else NT (N).Nkind = N_Number_Declaration
4219 or else NT (N).Nkind = N_Object_Declaration
4220 or else NT (N).Nkind = N_Parameter_Specification
4221 or else NT (N).Nkind = N_Parameterized_Expression
4222 or else NT (N).Nkind = N_Pragma_Argument_Association
4223 or else NT (N).Nkind = N_Qualified_Expression
4224 or else NT (N).Nkind = N_Raise_Statement
4225 or else NT (N).Nkind = N_Return_Statement
4226 or else NT (N).Nkind = N_Type_Conversion
4227 or else NT (N).Nkind = N_Unchecked_Expression
4228 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4229 Set_Node3_With_Parent (N, Val);
4232 procedure Set_Expressions
4233 (N : Node_Id; Val : List_Id) is
4235 pragma Assert (False
4236 or else NT (N).Nkind = N_Aggregate
4237 or else NT (N).Nkind = N_Attribute_Reference
4238 or else NT (N).Nkind = N_Conditional_Expression
4239 or else NT (N).Nkind = N_Extension_Aggregate
4240 or else NT (N).Nkind = N_Indexed_Component);
4241 Set_List1_With_Parent (N, Val);
4242 end Set_Expressions;
4244 procedure Set_First_Bit
4245 (N : Node_Id; Val : Node_Id) is
4247 pragma Assert (False
4248 or else NT (N).Nkind = N_Component_Clause);
4249 Set_Node3_With_Parent (N, Val);
4252 procedure Set_First_Inlined_Subprogram
4253 (N : Node_Id; Val : Entity_Id) is
4255 pragma Assert (False
4256 or else NT (N).Nkind = N_Compilation_Unit);
4257 Set_Node3 (N, Val); -- semantic field, no parent set
4258 end Set_First_Inlined_Subprogram;
4260 procedure Set_First_Name
4261 (N : Node_Id; Val : Boolean := True) is
4263 pragma Assert (False
4264 or else NT (N).Nkind = N_With_Clause);
4268 procedure Set_First_Named_Actual
4269 (N : Node_Id; Val : Node_Id) is
4271 pragma Assert (False
4272 or else NT (N).Nkind = N_Entry_Call_Statement
4273 or else NT (N).Nkind = N_Function_Call
4274 or else NT (N).Nkind = N_Procedure_Call_Statement);
4275 Set_Node4 (N, Val); -- semantic field, no parent set
4276 end Set_First_Named_Actual;
4278 procedure Set_First_Real_Statement
4279 (N : Node_Id; Val : Node_Id) is
4281 pragma Assert (False
4282 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4283 Set_Node2 (N, Val); -- semantic field, no parent set
4284 end Set_First_Real_Statement;
4286 procedure Set_First_Subtype_Link
4287 (N : Node_Id; Val : Entity_Id) is
4289 pragma Assert (False
4290 or else NT (N).Nkind = N_Freeze_Entity);
4291 Set_Node5 (N, Val); -- semantic field, no parent set
4292 end Set_First_Subtype_Link;
4294 procedure Set_Float_Truncate
4295 (N : Node_Id; Val : Boolean := True) is
4297 pragma Assert (False
4298 or else NT (N).Nkind = N_Type_Conversion);
4299 Set_Flag11 (N, Val);
4300 end Set_Float_Truncate;
4302 procedure Set_Formal_Type_Definition
4303 (N : Node_Id; Val : Node_Id) is
4305 pragma Assert (False
4306 or else NT (N).Nkind = N_Formal_Type_Declaration);
4307 Set_Node3_With_Parent (N, Val);
4308 end Set_Formal_Type_Definition;
4310 procedure Set_Forwards_OK
4311 (N : Node_Id; Val : Boolean := True) is
4313 pragma Assert (False
4314 or else NT (N).Nkind = N_Assignment_Statement);
4316 end Set_Forwards_OK;
4318 procedure Set_From_Aspect_Specification
4319 (N : Node_Id; Val : Boolean := True) is
4321 pragma Assert (False
4322 or else NT (N).Nkind = N_Attribute_Definition_Clause
4323 or else NT (N).Nkind = N_Pragma);
4324 Set_Flag13 (N, Val);
4325 end Set_From_Aspect_Specification;
4327 procedure Set_From_At_End
4328 (N : Node_Id; Val : Boolean := True) is
4330 pragma Assert (False
4331 or else NT (N).Nkind = N_Raise_Statement);
4333 end Set_From_At_End;
4335 procedure Set_From_At_Mod
4336 (N : Node_Id; Val : Boolean := True) is
4338 pragma Assert (False
4339 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4341 end Set_From_At_Mod;
4343 procedure Set_From_Default
4344 (N : Node_Id; Val : Boolean := True) is
4346 pragma Assert (False
4347 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4349 end Set_From_Default;
4351 procedure Set_Generic_Associations
4352 (N : Node_Id; Val : List_Id) is
4354 pragma Assert (False
4355 or else NT (N).Nkind = N_Formal_Package_Declaration
4356 or else NT (N).Nkind = N_Function_Instantiation
4357 or else NT (N).Nkind = N_Package_Instantiation
4358 or else NT (N).Nkind = N_Procedure_Instantiation);
4359 Set_List3_With_Parent (N, Val);
4360 end Set_Generic_Associations;
4362 procedure Set_Generic_Formal_Declarations
4363 (N : Node_Id; Val : List_Id) is
4365 pragma Assert (False
4366 or else NT (N).Nkind = N_Generic_Package_Declaration
4367 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4368 Set_List2_With_Parent (N, Val);
4369 end Set_Generic_Formal_Declarations;
4371 procedure Set_Generic_Parent
4372 (N : Node_Id; Val : Node_Id) is
4374 pragma Assert (False
4375 or else NT (N).Nkind = N_Function_Specification
4376 or else NT (N).Nkind = N_Package_Specification
4377 or else NT (N).Nkind = N_Procedure_Specification);
4379 end Set_Generic_Parent;
4381 procedure Set_Generic_Parent_Type
4382 (N : Node_Id; Val : Node_Id) is
4384 pragma Assert (False
4385 or else NT (N).Nkind = N_Subtype_Declaration);
4387 end Set_Generic_Parent_Type;
4389 procedure Set_Handled_Statement_Sequence
4390 (N : Node_Id; Val : Node_Id) is
4392 pragma Assert (False
4393 or else NT (N).Nkind = N_Accept_Statement
4394 or else NT (N).Nkind = N_Block_Statement
4395 or else NT (N).Nkind = N_Entry_Body
4396 or else NT (N).Nkind = N_Extended_Return_Statement
4397 or else NT (N).Nkind = N_Package_Body
4398 or else NT (N).Nkind = N_Subprogram_Body
4399 or else NT (N).Nkind = N_Task_Body);
4400 Set_Node4_With_Parent (N, Val);
4401 end Set_Handled_Statement_Sequence;
4403 procedure Set_Handler_List_Entry
4404 (N : Node_Id; Val : Node_Id) is
4406 pragma Assert (False
4407 or else NT (N).Nkind = N_Object_Declaration);
4409 end Set_Handler_List_Entry;
4411 procedure Set_Has_Created_Identifier
4412 (N : Node_Id; Val : Boolean := True) is
4414 pragma Assert (False
4415 or else NT (N).Nkind = N_Block_Statement
4416 or else NT (N).Nkind = N_Loop_Statement);
4417 Set_Flag15 (N, Val);
4418 end Set_Has_Created_Identifier;
4420 procedure Set_Has_Dynamic_Length_Check
4421 (N : Node_Id; Val : Boolean := True) is
4423 Set_Flag10 (N, Val);
4424 end Set_Has_Dynamic_Length_Check;
4426 procedure Set_Has_Dynamic_Range_Check
4427 (N : Node_Id; Val : Boolean := True) is
4429 Set_Flag12 (N, Val);
4430 end Set_Has_Dynamic_Range_Check;
4432 procedure Set_Has_Init_Expression
4433 (N : Node_Id; Val : Boolean := True) is
4435 pragma Assert (False
4436 or else NT (N).Nkind = N_Object_Declaration);
4437 Set_Flag14 (N, Val);
4438 end Set_Has_Init_Expression;
4440 procedure Set_Has_Local_Raise
4441 (N : Node_Id; Val : Boolean := True) is
4443 pragma Assert (False
4444 or else NT (N).Nkind = N_Exception_Handler);
4446 end Set_Has_Local_Raise;
4448 procedure Set_Has_No_Elaboration_Code
4449 (N : Node_Id; Val : Boolean := True) is
4451 pragma Assert (False
4452 or else NT (N).Nkind = N_Compilation_Unit);
4453 Set_Flag17 (N, Val);
4454 end Set_Has_No_Elaboration_Code;
4456 procedure Set_Has_Pragma_CPU
4457 (N : Node_Id; Val : Boolean := True) is
4459 pragma Assert (False
4460 or else NT (N).Nkind = N_Subprogram_Body
4461 or else NT (N).Nkind = N_Task_Definition);
4462 Set_Flag14 (N, Val);
4463 end Set_Has_Pragma_CPU;
4465 procedure Set_Has_Pragma_Priority
4466 (N : Node_Id; Val : Boolean := True) is
4468 pragma Assert (False
4469 or else NT (N).Nkind = N_Protected_Definition
4470 or else NT (N).Nkind = N_Subprogram_Body
4471 or else NT (N).Nkind = N_Task_Definition);
4473 end Set_Has_Pragma_Priority;
4475 procedure Set_Has_Pragma_Suppress_All
4476 (N : Node_Id; Val : Boolean := True) is
4478 pragma Assert (False
4479 or else NT (N).Nkind = N_Compilation_Unit);
4480 Set_Flag14 (N, Val);
4481 end Set_Has_Pragma_Suppress_All;
4483 procedure Set_Has_Private_View
4484 (N : Node_Id; Val : Boolean := True) is
4486 pragma Assert (False
4487 or else NT (N).Nkind in N_Op
4488 or else NT (N).Nkind = N_Character_Literal
4489 or else NT (N).Nkind = N_Expanded_Name
4490 or else NT (N).Nkind = N_Identifier
4491 or else NT (N).Nkind = N_Operator_Symbol);
4492 Set_Flag11 (N, Val);
4493 end Set_Has_Private_View;
4495 procedure Set_Has_Relative_Deadline_Pragma
4496 (N : Node_Id; Val : Boolean := True) is
4498 pragma Assert (False
4499 or else NT (N).Nkind = N_Subprogram_Body
4500 or else NT (N).Nkind = N_Task_Definition);
4502 end Set_Has_Relative_Deadline_Pragma;
4504 procedure Set_Has_Self_Reference
4505 (N : Node_Id; Val : Boolean := True) is
4507 pragma Assert (False
4508 or else NT (N).Nkind = N_Aggregate
4509 or else NT (N).Nkind = N_Extension_Aggregate);
4510 Set_Flag13 (N, Val);
4511 end Set_Has_Self_Reference;
4513 procedure Set_Has_Storage_Size_Pragma
4514 (N : Node_Id; Val : Boolean := True) is
4516 pragma Assert (False
4517 or else NT (N).Nkind = N_Task_Definition);
4519 end Set_Has_Storage_Size_Pragma;
4521 procedure Set_Has_Task_Info_Pragma
4522 (N : Node_Id; Val : Boolean := True) is
4524 pragma Assert (False
4525 or else NT (N).Nkind = N_Task_Definition);
4527 end Set_Has_Task_Info_Pragma;
4529 procedure Set_Has_Task_Name_Pragma
4530 (N : Node_Id; Val : Boolean := True) is
4532 pragma Assert (False
4533 or else NT (N).Nkind = N_Task_Definition);
4535 end Set_Has_Task_Name_Pragma;
4537 procedure Set_Has_Wide_Character
4538 (N : Node_Id; Val : Boolean := True) is
4540 pragma Assert (False
4541 or else NT (N).Nkind = N_String_Literal);
4542 Set_Flag11 (N, Val);
4543 end Set_Has_Wide_Character;
4545 procedure Set_Has_Wide_Wide_Character
4546 (N : Node_Id; Val : Boolean := True) is
4548 pragma Assert (False
4549 or else NT (N).Nkind = N_String_Literal);
4550 Set_Flag13 (N, Val);
4551 end Set_Has_Wide_Wide_Character;
4553 procedure Set_Hidden_By_Use_Clause
4554 (N : Node_Id; Val : Elist_Id) is
4556 pragma Assert (False
4557 or else NT (N).Nkind = N_Use_Package_Clause
4558 or else NT (N).Nkind = N_Use_Type_Clause);
4559 Set_Elist4 (N, Val);
4560 end Set_Hidden_By_Use_Clause;
4562 procedure Set_High_Bound
4563 (N : Node_Id; Val : Node_Id) is
4565 pragma Assert (False
4566 or else NT (N).Nkind = N_Range
4567 or else NT (N).Nkind = N_Real_Range_Specification
4568 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4569 Set_Node2_With_Parent (N, Val);
4572 procedure Set_Identifier
4573 (N : Node_Id; Val : Node_Id) is
4575 pragma Assert (False
4576 or else NT (N).Nkind = N_Aspect_Specification
4577 or else NT (N).Nkind = N_At_Clause
4578 or else NT (N).Nkind = N_Block_Statement
4579 or else NT (N).Nkind = N_Designator
4580 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4581 or else NT (N).Nkind = N_Label
4582 or else NT (N).Nkind = N_Loop_Statement
4583 or else NT (N).Nkind = N_Record_Representation_Clause
4584 or else NT (N).Nkind = N_Subprogram_Info);
4585 Set_Node1_With_Parent (N, Val);
4588 procedure Set_Implicit_With
4589 (N : Node_Id; Val : Boolean := True) is
4591 pragma Assert (False
4592 or else NT (N).Nkind = N_With_Clause);
4593 Set_Flag16 (N, Val);
4594 end Set_Implicit_With;
4596 procedure Set_Interface_List
4597 (N : Node_Id; Val : List_Id) is
4599 pragma Assert (False
4600 or else NT (N).Nkind = N_Derived_Type_Definition
4601 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4602 or else NT (N).Nkind = N_Private_Extension_Declaration
4603 or else NT (N).Nkind = N_Protected_Type_Declaration
4604 or else NT (N).Nkind = N_Record_Definition
4605 or else NT (N).Nkind = N_Single_Protected_Declaration
4606 or else NT (N).Nkind = N_Single_Task_Declaration
4607 or else NT (N).Nkind = N_Task_Type_Declaration);
4608 Set_List2_With_Parent (N, Val);
4609 end Set_Interface_List;
4611 procedure Set_Interface_Present
4612 (N : Node_Id; Val : Boolean := True) is
4614 pragma Assert (False
4615 or else NT (N).Nkind = N_Derived_Type_Definition
4616 or else NT (N).Nkind = N_Record_Definition);
4617 Set_Flag16 (N, Val);
4618 end Set_Interface_Present;
4620 procedure Set_Import_Interface_Present
4621 (N : Node_Id; Val : Boolean := True) is
4623 pragma Assert (False
4624 or else NT (N).Nkind = N_Pragma);
4625 Set_Flag16 (N, Val);
4626 end Set_Import_Interface_Present;
4628 procedure Set_In_Present
4629 (N : Node_Id; Val : Boolean := True) is
4631 pragma Assert (False
4632 or else NT (N).Nkind = N_Formal_Object_Declaration
4633 or else NT (N).Nkind = N_Parameter_Specification);
4634 Set_Flag15 (N, Val);
4637 procedure Set_Includes_Infinities
4638 (N : Node_Id; Val : Boolean := True) is
4640 pragma Assert (False
4641 or else NT (N).Nkind = N_Range);
4642 Set_Flag11 (N, Val);
4643 end Set_Includes_Infinities;
4645 procedure Set_Inherited_Discriminant
4646 (N : Node_Id; Val : Boolean := True) is
4648 pragma Assert (False
4649 or else NT (N).Nkind = N_Component_Association);
4650 Set_Flag13 (N, Val);
4651 end Set_Inherited_Discriminant;
4653 procedure Set_Instance_Spec
4654 (N : Node_Id; Val : Node_Id) is
4656 pragma Assert (False
4657 or else NT (N).Nkind = N_Formal_Package_Declaration
4658 or else NT (N).Nkind = N_Function_Instantiation
4659 or else NT (N).Nkind = N_Package_Instantiation
4660 or else NT (N).Nkind = N_Procedure_Instantiation);
4661 Set_Node5 (N, Val); -- semantic field, no Parent set
4662 end Set_Instance_Spec;
4664 procedure Set_Intval
4665 (N : Node_Id; Val : Uint) is
4667 pragma Assert (False
4668 or else NT (N).Nkind = N_Integer_Literal);
4672 procedure Set_Is_Accessibility_Actual
4673 (N : Node_Id; Val : Boolean := True) is
4675 pragma Assert (False
4676 or else NT (N).Nkind = N_Parameter_Association);
4677 Set_Flag13 (N, Val);
4678 end Set_Is_Accessibility_Actual;
4680 procedure Set_Is_Asynchronous_Call_Block
4681 (N : Node_Id; Val : Boolean := True) is
4683 pragma Assert (False
4684 or else NT (N).Nkind = N_Block_Statement);
4686 end Set_Is_Asynchronous_Call_Block;
4688 procedure Set_Is_Component_Left_Opnd
4689 (N : Node_Id; Val : Boolean := True) is
4691 pragma Assert (False
4692 or else NT (N).Nkind = N_Op_Concat);
4693 Set_Flag13 (N, Val);
4694 end Set_Is_Component_Left_Opnd;
4696 procedure Set_Is_Component_Right_Opnd
4697 (N : Node_Id; Val : Boolean := True) is
4699 pragma Assert (False
4700 or else NT (N).Nkind = N_Op_Concat);
4701 Set_Flag14 (N, Val);
4702 end Set_Is_Component_Right_Opnd;
4704 procedure Set_Is_Controlling_Actual
4705 (N : Node_Id; Val : Boolean := True) is
4707 pragma Assert (False
4708 or else NT (N).Nkind in N_Subexpr);
4709 Set_Flag16 (N, Val);
4710 end Set_Is_Controlling_Actual;
4712 procedure Set_Is_Delayed_Aspect
4713 (N : Node_Id; Val : Boolean := True) is
4715 pragma Assert (False
4716 or else NT (N).Nkind = N_Attribute_Definition_Clause
4717 or else NT (N).Nkind = N_Pragma);
4718 Set_Flag14 (N, Val);
4719 end Set_Is_Delayed_Aspect;
4721 procedure Set_Is_Dynamic_Coextension
4722 (N : Node_Id; Val : Boolean := True) is
4724 pragma Assert (False
4725 or else NT (N).Nkind = N_Allocator);
4726 Set_Flag18 (N, Val);
4727 end Set_Is_Dynamic_Coextension;
4729 procedure Set_Is_Elsif
4730 (N : Node_Id; Val : Boolean := True) is
4732 pragma Assert (False
4733 or else NT (N).Nkind = N_Conditional_Expression);
4734 Set_Flag13 (N, Val);
4737 procedure Set_Is_Entry_Barrier_Function
4738 (N : Node_Id; Val : Boolean := True) is
4740 pragma Assert (False
4741 or else NT (N).Nkind = N_Subprogram_Body);
4743 end Set_Is_Entry_Barrier_Function;
4745 procedure Set_Is_Expanded_Build_In_Place_Call
4746 (N : Node_Id; Val : Boolean := True) is
4748 pragma Assert (False
4749 or else NT (N).Nkind = N_Function_Call);
4750 Set_Flag11 (N, Val);
4751 end Set_Is_Expanded_Build_In_Place_Call;
4753 procedure Set_Is_Folded_In_Parser
4754 (N : Node_Id; Val : Boolean := True) is
4756 pragma Assert (False
4757 or else NT (N).Nkind = N_String_Literal);
4759 end Set_Is_Folded_In_Parser;
4761 procedure Set_Is_In_Discriminant_Check
4762 (N : Node_Id; Val : Boolean := True) is
4764 pragma Assert (False
4765 or else NT (N).Nkind = N_Selected_Component);
4766 Set_Flag11 (N, Val);
4767 end Set_Is_In_Discriminant_Check;
4769 procedure Set_Is_Machine_Number
4770 (N : Node_Id; Val : Boolean := True) is
4772 pragma Assert (False
4773 or else NT (N).Nkind = N_Real_Literal);
4774 Set_Flag11 (N, Val);
4775 end Set_Is_Machine_Number;
4777 procedure Set_Is_Null_Loop
4778 (N : Node_Id; Val : Boolean := True) is
4780 pragma Assert (False
4781 or else NT (N).Nkind = N_Loop_Statement);
4782 Set_Flag16 (N, Val);
4783 end Set_Is_Null_Loop;
4785 procedure Set_Is_Overloaded
4786 (N : Node_Id; Val : Boolean := True) is
4788 pragma Assert (False
4789 or else NT (N).Nkind in N_Subexpr);
4791 end Set_Is_Overloaded;
4793 procedure Set_Is_Power_Of_2_For_Shift
4794 (N : Node_Id; Val : Boolean := True) is
4796 pragma Assert (False
4797 or else NT (N).Nkind = N_Op_Expon);
4798 Set_Flag13 (N, Val);
4799 end Set_Is_Power_Of_2_For_Shift;
4801 procedure Set_Is_Protected_Subprogram_Body
4802 (N : Node_Id; Val : Boolean := True) is
4804 pragma Assert (False
4805 or else NT (N).Nkind = N_Subprogram_Body);
4807 end Set_Is_Protected_Subprogram_Body;
4809 procedure Set_Is_Static_Coextension
4810 (N : Node_Id; Val : Boolean := True) is
4812 pragma Assert (False
4813 or else NT (N).Nkind = N_Allocator);
4814 Set_Flag14 (N, Val);
4815 end Set_Is_Static_Coextension;
4817 procedure Set_Is_Static_Expression
4818 (N : Node_Id; Val : Boolean := True) is
4820 pragma Assert (False
4821 or else NT (N).Nkind in N_Subexpr);
4823 end Set_Is_Static_Expression;
4825 procedure Set_Is_Subprogram_Descriptor
4826 (N : Node_Id; Val : Boolean := True) is
4828 pragma Assert (False
4829 or else NT (N).Nkind = N_Object_Declaration);
4830 Set_Flag16 (N, Val);
4831 end Set_Is_Subprogram_Descriptor;
4833 procedure Set_Is_Task_Allocation_Block
4834 (N : Node_Id; Val : Boolean := True) is
4836 pragma Assert (False
4837 or else NT (N).Nkind = N_Block_Statement);
4839 end Set_Is_Task_Allocation_Block;
4841 procedure Set_Is_Task_Master
4842 (N : Node_Id; Val : Boolean := True) is
4844 pragma Assert (False
4845 or else NT (N).Nkind = N_Block_Statement
4846 or else NT (N).Nkind = N_Subprogram_Body
4847 or else NT (N).Nkind = N_Task_Body);
4849 end Set_Is_Task_Master;
4851 procedure Set_Iteration_Scheme
4852 (N : Node_Id; Val : Node_Id) is
4854 pragma Assert (False
4855 or else NT (N).Nkind = N_Loop_Statement);
4856 Set_Node2_With_Parent (N, Val);
4857 end Set_Iteration_Scheme;
4860 (N : Node_Id; Val : Entity_Id) is
4862 pragma Assert (False
4863 or else NT (N).Nkind = N_Itype_Reference);
4864 Set_Node1 (N, Val); -- no parent, semantic field
4867 procedure Set_Kill_Range_Check
4868 (N : Node_Id; Val : Boolean := True) is
4870 pragma Assert (False
4871 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4872 Set_Flag11 (N, Val);
4873 end Set_Kill_Range_Check;
4875 procedure Set_Label_Construct
4876 (N : Node_Id; Val : Node_Id) is
4878 pragma Assert (False
4879 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4880 Set_Node2 (N, Val); -- semantic field, no parent set
4881 end Set_Label_Construct;
4883 procedure Set_Last_Bit
4884 (N : Node_Id; Val : Node_Id) is
4886 pragma Assert (False
4887 or else NT (N).Nkind = N_Component_Clause);
4888 Set_Node4_With_Parent (N, Val);
4891 procedure Set_Last_Name
4892 (N : Node_Id; Val : Boolean := True) is
4894 pragma Assert (False
4895 or else NT (N).Nkind = N_With_Clause);
4899 procedure Set_Left_Opnd
4900 (N : Node_Id; Val : Node_Id) is
4902 pragma Assert (False
4903 or else NT (N).Nkind = N_And_Then
4904 or else NT (N).Nkind = N_In
4905 or else NT (N).Nkind = N_Not_In
4906 or else NT (N).Nkind = N_Or_Else
4907 or else NT (N).Nkind in N_Binary_Op);
4908 Set_Node2_With_Parent (N, Val);
4911 procedure Set_Library_Unit
4912 (N : Node_Id; Val : Node_Id) is
4914 pragma Assert (False
4915 or else NT (N).Nkind = N_Compilation_Unit
4916 or else NT (N).Nkind = N_Package_Body_Stub
4917 or else NT (N).Nkind = N_Protected_Body_Stub
4918 or else NT (N).Nkind = N_Subprogram_Body_Stub
4919 or else NT (N).Nkind = N_Task_Body_Stub
4920 or else NT (N).Nkind = N_With_Clause);
4921 Set_Node4 (N, Val); -- semantic field, no parent set
4922 end Set_Library_Unit;
4924 procedure Set_Limited_View_Installed
4925 (N : Node_Id; Val : Boolean := True) is
4927 pragma Assert (False
4928 or else NT (N).Nkind = N_Package_Specification
4929 or else NT (N).Nkind = N_With_Clause);
4930 Set_Flag18 (N, Val);
4931 end Set_Limited_View_Installed;
4933 procedure Set_Limited_Present
4934 (N : Node_Id; Val : Boolean := True) is
4936 pragma Assert (False
4937 or else NT (N).Nkind = N_Derived_Type_Definition
4938 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4939 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4940 or else NT (N).Nkind = N_Private_Extension_Declaration
4941 or else NT (N).Nkind = N_Private_Type_Declaration
4942 or else NT (N).Nkind = N_Record_Definition
4943 or else NT (N).Nkind = N_With_Clause);
4944 Set_Flag17 (N, Val);
4945 end Set_Limited_Present;
4947 procedure Set_Literals
4948 (N : Node_Id; Val : List_Id) is
4950 pragma Assert (False
4951 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4952 Set_List1_With_Parent (N, Val);
4955 procedure Set_Local_Raise_Not_OK
4956 (N : Node_Id; Val : Boolean := True) is
4958 pragma Assert (False
4959 or else NT (N).Nkind = N_Exception_Handler);
4961 end Set_Local_Raise_Not_OK;
4963 procedure Set_Local_Raise_Statements
4964 (N : Node_Id; Val : Elist_Id) is
4966 pragma Assert (False
4967 or else NT (N).Nkind = N_Exception_Handler);
4968 Set_Elist1 (N, Val);
4969 end Set_Local_Raise_Statements;
4971 procedure Set_Loop_Actions
4972 (N : Node_Id; Val : List_Id) is
4974 pragma Assert (False
4975 or else NT (N).Nkind = N_Component_Association);
4976 Set_List2 (N, Val); -- semantic field, no parent set
4977 end Set_Loop_Actions;
4979 procedure Set_Loop_Parameter_Specification
4980 (N : Node_Id; Val : Node_Id) is
4982 pragma Assert (False
4983 or else NT (N).Nkind = N_Iteration_Scheme
4984 or else NT (N).Nkind = N_Quantified_Expression);
4985 Set_Node4_With_Parent (N, Val);
4986 end Set_Loop_Parameter_Specification;
4988 procedure Set_Low_Bound
4989 (N : Node_Id; Val : Node_Id) is
4991 pragma Assert (False
4992 or else NT (N).Nkind = N_Range
4993 or else NT (N).Nkind = N_Real_Range_Specification
4994 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4995 Set_Node1_With_Parent (N, Val);
4998 procedure Set_Mod_Clause
4999 (N : Node_Id; Val : Node_Id) is
5001 pragma Assert (False
5002 or else NT (N).Nkind = N_Record_Representation_Clause);
5003 Set_Node2_With_Parent (N, Val);
5006 procedure Set_More_Ids
5007 (N : Node_Id; Val : Boolean := True) is
5009 pragma Assert (False
5010 or else NT (N).Nkind = N_Component_Declaration
5011 or else NT (N).Nkind = N_Discriminant_Specification
5012 or else NT (N).Nkind = N_Exception_Declaration
5013 or else NT (N).Nkind = N_Formal_Object_Declaration
5014 or else NT (N).Nkind = N_Number_Declaration
5015 or else NT (N).Nkind = N_Object_Declaration
5016 or else NT (N).Nkind = N_Parameter_Specification);
5020 procedure Set_Must_Be_Byte_Aligned
5021 (N : Node_Id; Val : Boolean := True) is
5023 pragma Assert (False
5024 or else NT (N).Nkind = N_Attribute_Reference);
5025 Set_Flag14 (N, Val);
5026 end Set_Must_Be_Byte_Aligned;
5028 procedure Set_Must_Not_Freeze
5029 (N : Node_Id; Val : Boolean := True) is
5031 pragma Assert (False
5032 or else NT (N).Nkind = N_Subtype_Indication
5033 or else NT (N).Nkind in N_Subexpr);
5035 end Set_Must_Not_Freeze;
5037 procedure Set_Must_Not_Override
5038 (N : Node_Id; Val : Boolean := True) is
5040 pragma Assert (False
5041 or else NT (N).Nkind = N_Entry_Declaration
5042 or else NT (N).Nkind = N_Function_Instantiation
5043 or else NT (N).Nkind = N_Function_Specification
5044 or else NT (N).Nkind = N_Procedure_Instantiation
5045 or else NT (N).Nkind = N_Procedure_Specification);
5046 Set_Flag15 (N, Val);
5047 end Set_Must_Not_Override;
5049 procedure Set_Must_Override
5050 (N : Node_Id; Val : Boolean := True) is
5052 pragma Assert (False
5053 or else NT (N).Nkind = N_Entry_Declaration
5054 or else NT (N).Nkind = N_Function_Instantiation
5055 or else NT (N).Nkind = N_Function_Specification
5056 or else NT (N).Nkind = N_Procedure_Instantiation
5057 or else NT (N).Nkind = N_Procedure_Specification);
5058 Set_Flag14 (N, Val);
5059 end Set_Must_Override;
5062 (N : Node_Id; Val : Node_Id) is
5064 pragma Assert (False
5065 or else NT (N).Nkind = N_Assignment_Statement
5066 or else NT (N).Nkind = N_Attribute_Definition_Clause
5067 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5068 or else NT (N).Nkind = N_Designator
5069 or else NT (N).Nkind = N_Entry_Call_Statement
5070 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5071 or else NT (N).Nkind = N_Exit_Statement
5072 or else NT (N).Nkind = N_Formal_Package_Declaration
5073 or else NT (N).Nkind = N_Function_Call
5074 or else NT (N).Nkind = N_Function_Instantiation
5075 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5076 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5077 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5078 or else NT (N).Nkind = N_Goto_Statement
5079 or else NT (N).Nkind = N_Object_Renaming_Declaration
5080 or else NT (N).Nkind = N_Package_Instantiation
5081 or else NT (N).Nkind = N_Package_Renaming_Declaration
5082 or else NT (N).Nkind = N_Procedure_Call_Statement
5083 or else NT (N).Nkind = N_Procedure_Instantiation
5084 or else NT (N).Nkind = N_Raise_Statement
5085 or else NT (N).Nkind = N_Requeue_Statement
5086 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5087 or else NT (N).Nkind = N_Subunit
5088 or else NT (N).Nkind = N_Variant_Part
5089 or else NT (N).Nkind = N_With_Clause);
5090 Set_Node2_With_Parent (N, Val);
5094 (N : Node_Id; Val : List_Id) is
5096 pragma Assert (False
5097 or else NT (N).Nkind = N_Abort_Statement
5098 or else NT (N).Nkind = N_Use_Package_Clause);
5099 Set_List2_With_Parent (N, Val);
5102 procedure Set_Next_Entity
5103 (N : Node_Id; Val : Node_Id) is
5105 pragma Assert (False
5106 or else NT (N).Nkind = N_Defining_Character_Literal
5107 or else NT (N).Nkind = N_Defining_Identifier
5108 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5109 Set_Node2 (N, Val); -- semantic field, no parent set
5110 end Set_Next_Entity;
5112 procedure Set_Next_Exit_Statement
5113 (N : Node_Id; Val : Node_Id) is
5115 pragma Assert (False
5116 or else NT (N).Nkind = N_Exit_Statement);
5117 Set_Node3 (N, Val); -- semantic field, no parent set
5118 end Set_Next_Exit_Statement;
5120 procedure Set_Next_Implicit_With
5121 (N : Node_Id; Val : Node_Id) is
5123 pragma Assert (False
5124 or else NT (N).Nkind = N_With_Clause);
5125 Set_Node3 (N, Val); -- semantic field, no parent set
5126 end Set_Next_Implicit_With;
5128 procedure Set_Next_Named_Actual
5129 (N : Node_Id; Val : Node_Id) is
5131 pragma Assert (False
5132 or else NT (N).Nkind = N_Parameter_Association);
5133 Set_Node4 (N, Val); -- semantic field, no parent set
5134 end Set_Next_Named_Actual;
5136 procedure Set_Next_Pragma
5137 (N : Node_Id; Val : Node_Id) is
5139 pragma Assert (False
5140 or else NT (N).Nkind = N_Pragma);
5141 Set_Node1 (N, Val); -- semantic field, no parent set
5142 end Set_Next_Pragma;
5144 procedure Set_Next_Rep_Item
5145 (N : Node_Id; Val : Node_Id) is
5147 pragma Assert (False
5148 or else NT (N).Nkind = N_Aspect_Specification
5149 or else NT (N).Nkind = N_Attribute_Definition_Clause
5150 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5151 or else NT (N).Nkind = N_Pragma
5152 or else NT (N).Nkind = N_Record_Representation_Clause);
5153 Set_Node5 (N, Val); -- semantic field, no parent set
5154 end Set_Next_Rep_Item;
5156 procedure Set_Next_Use_Clause
5157 (N : Node_Id; Val : Node_Id) is
5159 pragma Assert (False
5160 or else NT (N).Nkind = N_Use_Package_Clause
5161 or else NT (N).Nkind = N_Use_Type_Clause);
5162 Set_Node3 (N, Val); -- semantic field, no parent set
5163 end Set_Next_Use_Clause;
5165 procedure Set_No_Ctrl_Actions
5166 (N : Node_Id; Val : Boolean := True) is
5168 pragma Assert (False
5169 or else NT (N).Nkind = N_Assignment_Statement);
5171 end Set_No_Ctrl_Actions;
5173 procedure Set_No_Elaboration_Check
5174 (N : Node_Id; Val : Boolean := True) is
5176 pragma Assert (False
5177 or else NT (N).Nkind = N_Function_Call
5178 or else NT (N).Nkind = N_Procedure_Call_Statement);
5179 Set_Flag14 (N, Val);
5180 end Set_No_Elaboration_Check;
5182 procedure Set_No_Entities_Ref_In_Spec
5183 (N : Node_Id; Val : Boolean := True) is
5185 pragma Assert (False
5186 or else NT (N).Nkind = N_With_Clause);
5188 end Set_No_Entities_Ref_In_Spec;
5190 procedure Set_No_Initialization
5191 (N : Node_Id; Val : Boolean := True) is
5193 pragma Assert (False
5194 or else NT (N).Nkind = N_Allocator
5195 or else NT (N).Nkind = N_Object_Declaration);
5196 Set_Flag13 (N, Val);
5197 end Set_No_Initialization;
5199 procedure Set_No_Truncation
5200 (N : Node_Id; Val : Boolean := True) is
5202 pragma Assert (False
5203 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5204 Set_Flag17 (N, Val);
5205 end Set_No_Truncation;
5207 procedure Set_Null_Present
5208 (N : Node_Id; Val : Boolean := True) is
5210 pragma Assert (False
5211 or else NT (N).Nkind = N_Component_List
5212 or else NT (N).Nkind = N_Procedure_Specification
5213 or else NT (N).Nkind = N_Record_Definition);
5214 Set_Flag13 (N, Val);
5215 end Set_Null_Present;
5217 procedure Set_Null_Exclusion_Present
5218 (N : Node_Id; Val : Boolean := True) is
5220 pragma Assert (False
5221 or else NT (N).Nkind = N_Access_Definition
5222 or else NT (N).Nkind = N_Access_Function_Definition
5223 or else NT (N).Nkind = N_Access_Procedure_Definition
5224 or else NT (N).Nkind = N_Access_To_Object_Definition
5225 or else NT (N).Nkind = N_Allocator
5226 or else NT (N).Nkind = N_Component_Definition
5227 or else NT (N).Nkind = N_Derived_Type_Definition
5228 or else NT (N).Nkind = N_Discriminant_Specification
5229 or else NT (N).Nkind = N_Formal_Object_Declaration
5230 or else NT (N).Nkind = N_Function_Specification
5231 or else NT (N).Nkind = N_Object_Declaration
5232 or else NT (N).Nkind = N_Object_Renaming_Declaration
5233 or else NT (N).Nkind = N_Parameter_Specification
5234 or else NT (N).Nkind = N_Subtype_Declaration);
5235 Set_Flag11 (N, Val);
5236 end Set_Null_Exclusion_Present;
5238 procedure Set_Null_Exclusion_In_Return_Present
5239 (N : Node_Id; Val : Boolean := True) is
5241 pragma Assert (False
5242 or else NT (N).Nkind = N_Access_Function_Definition);
5243 Set_Flag14 (N, Val);
5244 end Set_Null_Exclusion_In_Return_Present;
5246 procedure Set_Null_Record_Present
5247 (N : Node_Id; Val : Boolean := True) is
5249 pragma Assert (False
5250 or else NT (N).Nkind = N_Aggregate
5251 or else NT (N).Nkind = N_Extension_Aggregate);
5252 Set_Flag17 (N, Val);
5253 end Set_Null_Record_Present;
5255 procedure Set_Object_Definition
5256 (N : Node_Id; Val : Node_Id) is
5258 pragma Assert (False
5259 or else NT (N).Nkind = N_Object_Declaration);
5260 Set_Node4_With_Parent (N, Val);
5261 end Set_Object_Definition;
5263 procedure Set_Original_Discriminant
5264 (N : Node_Id; Val : Node_Id) is
5266 pragma Assert (False
5267 or else NT (N).Nkind = N_Identifier);
5268 Set_Node2 (N, Val); -- semantic field, no parent set
5269 end Set_Original_Discriminant;
5271 procedure Set_Original_Entity
5272 (N : Node_Id; Val : Entity_Id) is
5274 pragma Assert (False
5275 or else NT (N).Nkind = N_Integer_Literal
5276 or else NT (N).Nkind = N_Real_Literal);
5277 Set_Node2 (N, Val); -- semantic field, no parent set
5278 end Set_Original_Entity;
5280 procedure Set_Others_Discrete_Choices
5281 (N : Node_Id; Val : List_Id) is
5283 pragma Assert (False
5284 or else NT (N).Nkind = N_Others_Choice);
5285 Set_List1_With_Parent (N, Val);
5286 end Set_Others_Discrete_Choices;
5288 procedure Set_Out_Present
5289 (N : Node_Id; Val : Boolean := True) is
5291 pragma Assert (False
5292 or else NT (N).Nkind = N_Formal_Object_Declaration
5293 or else NT (N).Nkind = N_Parameter_Specification);
5294 Set_Flag17 (N, Val);
5295 end Set_Out_Present;
5297 procedure Set_Parameter_Associations
5298 (N : Node_Id; Val : List_Id) is
5300 pragma Assert (False
5301 or else NT (N).Nkind = N_Entry_Call_Statement
5302 or else NT (N).Nkind = N_Function_Call
5303 or else NT (N).Nkind = N_Procedure_Call_Statement);
5304 Set_List3_With_Parent (N, Val);
5305 end Set_Parameter_Associations;
5307 procedure Set_Parameter_List_Truncated
5308 (N : Node_Id; Val : Boolean := True) is
5310 pragma Assert (False
5311 or else NT (N).Nkind = N_Function_Call
5312 or else NT (N).Nkind = N_Procedure_Call_Statement);
5313 Set_Flag17 (N, Val);
5314 end Set_Parameter_List_Truncated;
5316 procedure Set_Parameter_Specifications
5317 (N : Node_Id; Val : List_Id) is
5319 pragma Assert (False
5320 or else NT (N).Nkind = N_Accept_Statement
5321 or else NT (N).Nkind = N_Access_Function_Definition
5322 or else NT (N).Nkind = N_Access_Procedure_Definition
5323 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5324 or else NT (N).Nkind = N_Entry_Declaration
5325 or else NT (N).Nkind = N_Function_Specification
5326 or else NT (N).Nkind = N_Procedure_Specification);
5327 Set_List3_With_Parent (N, Val);
5328 end Set_Parameter_Specifications;
5330 procedure Set_Parameter_Type
5331 (N : Node_Id; Val : Node_Id) is
5333 pragma Assert (False
5334 or else NT (N).Nkind = N_Parameter_Specification);
5335 Set_Node2_With_Parent (N, Val);
5336 end Set_Parameter_Type;
5338 procedure Set_Parent_Spec
5339 (N : Node_Id; Val : Node_Id) is
5341 pragma Assert (False
5342 or else NT (N).Nkind = N_Function_Instantiation
5343 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5344 or else NT (N).Nkind = N_Generic_Package_Declaration
5345 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5346 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5347 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5348 or else NT (N).Nkind = N_Package_Declaration
5349 or else NT (N).Nkind = N_Package_Instantiation
5350 or else NT (N).Nkind = N_Package_Renaming_Declaration
5351 or else NT (N).Nkind = N_Procedure_Instantiation
5352 or else NT (N).Nkind = N_Subprogram_Declaration
5353 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5354 Set_Node4 (N, Val); -- semantic field, no parent set
5355 end Set_Parent_Spec;
5357 procedure Set_Position
5358 (N : Node_Id; Val : Node_Id) is
5360 pragma Assert (False
5361 or else NT (N).Nkind = N_Component_Clause);
5362 Set_Node2_With_Parent (N, Val);
5365 procedure Set_Pragma_Argument_Associations
5366 (N : Node_Id; Val : List_Id) is
5368 pragma Assert (False
5369 or else NT (N).Nkind = N_Pragma);
5370 Set_List2_With_Parent (N, Val);
5371 end Set_Pragma_Argument_Associations;
5373 procedure Set_Pragma_Enabled
5374 (N : Node_Id; Val : Boolean := True) is
5376 pragma Assert (False
5377 or else NT (N).Nkind = N_Pragma);
5379 end Set_Pragma_Enabled;
5381 procedure Set_Pragma_Identifier
5382 (N : Node_Id; Val : Node_Id) is
5384 pragma Assert (False
5385 or else NT (N).Nkind = N_Pragma);
5386 Set_Node4_With_Parent (N, Val);
5387 end Set_Pragma_Identifier;
5389 procedure Set_Pragmas_After
5390 (N : Node_Id; Val : List_Id) is
5392 pragma Assert (False
5393 or else NT (N).Nkind = N_Compilation_Unit_Aux
5394 or else NT (N).Nkind = N_Terminate_Alternative);
5395 Set_List5_With_Parent (N, Val);
5396 end Set_Pragmas_After;
5398 procedure Set_Pragmas_Before
5399 (N : Node_Id; Val : List_Id) is
5401 pragma Assert (False
5402 or else NT (N).Nkind = N_Accept_Alternative
5403 or else NT (N).Nkind = N_Delay_Alternative
5404 or else NT (N).Nkind = N_Entry_Call_Alternative
5405 or else NT (N).Nkind = N_Mod_Clause
5406 or else NT (N).Nkind = N_Terminate_Alternative
5407 or else NT (N).Nkind = N_Triggering_Alternative);
5408 Set_List4_With_Parent (N, Val);
5409 end Set_Pragmas_Before;
5411 procedure Set_Prefix
5412 (N : Node_Id; Val : Node_Id) is
5414 pragma Assert (False
5415 or else NT (N).Nkind = N_Attribute_Reference
5416 or else NT (N).Nkind = N_Expanded_Name
5417 or else NT (N).Nkind = N_Explicit_Dereference
5418 or else NT (N).Nkind = N_Indexed_Component
5419 or else NT (N).Nkind = N_Reference
5420 or else NT (N).Nkind = N_Selected_Component
5421 or else NT (N).Nkind = N_Slice);
5422 Set_Node3_With_Parent (N, Val);
5425 procedure Set_Present_Expr
5426 (N : Node_Id; Val : Uint) is
5428 pragma Assert (False
5429 or else NT (N).Nkind = N_Variant);
5431 end Set_Present_Expr;
5433 procedure Set_Prev_Ids
5434 (N : Node_Id; Val : Boolean := True) is
5436 pragma Assert (False
5437 or else NT (N).Nkind = N_Component_Declaration
5438 or else NT (N).Nkind = N_Discriminant_Specification
5439 or else NT (N).Nkind = N_Exception_Declaration
5440 or else NT (N).Nkind = N_Formal_Object_Declaration
5441 or else NT (N).Nkind = N_Number_Declaration
5442 or else NT (N).Nkind = N_Object_Declaration
5443 or else NT (N).Nkind = N_Parameter_Specification);
5447 procedure Set_Print_In_Hex
5448 (N : Node_Id; Val : Boolean := True) is
5450 pragma Assert (False
5451 or else NT (N).Nkind = N_Integer_Literal);
5452 Set_Flag13 (N, Val);
5453 end Set_Print_In_Hex;
5455 procedure Set_Private_Declarations
5456 (N : Node_Id; Val : List_Id) is
5458 pragma Assert (False
5459 or else NT (N).Nkind = N_Package_Specification
5460 or else NT (N).Nkind = N_Protected_Definition
5461 or else NT (N).Nkind = N_Task_Definition);
5462 Set_List3_With_Parent (N, Val);
5463 end Set_Private_Declarations;
5465 procedure Set_Private_Present
5466 (N : Node_Id; Val : Boolean := True) is
5468 pragma Assert (False
5469 or else NT (N).Nkind = N_Compilation_Unit
5470 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5471 or else NT (N).Nkind = N_With_Clause);
5472 Set_Flag15 (N, Val);
5473 end Set_Private_Present;
5475 procedure Set_Procedure_To_Call
5476 (N : Node_Id; Val : Node_Id) is
5478 pragma Assert (False
5479 or else NT (N).Nkind = N_Allocator
5480 or else NT (N).Nkind = N_Extended_Return_Statement
5481 or else NT (N).Nkind = N_Free_Statement
5482 or else NT (N).Nkind = N_Return_Statement);
5483 Set_Node2 (N, Val); -- semantic field, no parent set
5484 end Set_Procedure_To_Call;
5486 procedure Set_Proper_Body
5487 (N : Node_Id; Val : Node_Id) is
5489 pragma Assert (False
5490 or else NT (N).Nkind = N_Subunit);
5491 Set_Node1_With_Parent (N, Val);
5492 end Set_Proper_Body;
5494 procedure Set_Protected_Definition
5495 (N : Node_Id; Val : Node_Id) is
5497 pragma Assert (False
5498 or else NT (N).Nkind = N_Protected_Type_Declaration
5499 or else NT (N).Nkind = N_Single_Protected_Declaration);
5500 Set_Node3_With_Parent (N, Val);
5501 end Set_Protected_Definition;
5503 procedure Set_Protected_Present
5504 (N : Node_Id; Val : Boolean := True) is
5506 pragma Assert (False
5507 or else NT (N).Nkind = N_Access_Function_Definition
5508 or else NT (N).Nkind = N_Access_Procedure_Definition
5509 or else NT (N).Nkind = N_Derived_Type_Definition
5510 or else NT (N).Nkind = N_Record_Definition);
5512 end Set_Protected_Present;
5514 procedure Set_Raises_Constraint_Error
5515 (N : Node_Id; Val : Boolean := True) is
5517 pragma Assert (False
5518 or else NT (N).Nkind in N_Subexpr);
5520 end Set_Raises_Constraint_Error;
5522 procedure Set_Range_Constraint
5523 (N : Node_Id; Val : Node_Id) is
5525 pragma Assert (False
5526 or else NT (N).Nkind = N_Delta_Constraint
5527 or else NT (N).Nkind = N_Digits_Constraint);
5528 Set_Node4_With_Parent (N, Val);
5529 end Set_Range_Constraint;
5531 procedure Set_Range_Expression
5532 (N : Node_Id; Val : Node_Id) is
5534 pragma Assert (False
5535 or else NT (N).Nkind = N_Range_Constraint);
5536 Set_Node4_With_Parent (N, Val);
5537 end Set_Range_Expression;
5539 procedure Set_Real_Range_Specification
5540 (N : Node_Id; Val : Node_Id) is
5542 pragma Assert (False
5543 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5544 or else NT (N).Nkind = N_Floating_Point_Definition
5545 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5546 Set_Node4_With_Parent (N, Val);
5547 end Set_Real_Range_Specification;
5549 procedure Set_Realval
5550 (N : Node_Id; Val : Ureal) is
5552 pragma Assert (False
5553 or else NT (N).Nkind = N_Real_Literal);
5554 Set_Ureal3 (N, Val);
5557 procedure Set_Reason
5558 (N : Node_Id; Val : Uint) is
5560 pragma Assert (False
5561 or else NT (N).Nkind = N_Raise_Constraint_Error
5562 or else NT (N).Nkind = N_Raise_Program_Error
5563 or else NT (N).Nkind = N_Raise_Storage_Error);
5567 procedure Set_Record_Extension_Part
5568 (N : Node_Id; Val : Node_Id) is
5570 pragma Assert (False
5571 or else NT (N).Nkind = N_Derived_Type_Definition);
5572 Set_Node3_With_Parent (N, Val);
5573 end Set_Record_Extension_Part;
5575 procedure Set_Redundant_Use
5576 (N : Node_Id; Val : Boolean := True) is
5578 pragma Assert (False
5579 or else NT (N).Nkind = N_Attribute_Reference
5580 or else NT (N).Nkind = N_Expanded_Name
5581 or else NT (N).Nkind = N_Identifier);
5582 Set_Flag13 (N, Val);
5583 end Set_Redundant_Use;
5585 procedure Set_Renaming_Exception
5586 (N : Node_Id; Val : Node_Id) is
5588 pragma Assert (False
5589 or else NT (N).Nkind = N_Exception_Declaration);
5591 end Set_Renaming_Exception;
5593 procedure Set_Result_Definition
5594 (N : Node_Id; Val : Node_Id) is
5596 pragma Assert (False
5597 or else NT (N).Nkind = N_Access_Function_Definition
5598 or else NT (N).Nkind = N_Function_Specification);
5599 Set_Node4_With_Parent (N, Val);
5600 end Set_Result_Definition;
5602 procedure Set_Return_Object_Declarations
5603 (N : Node_Id; Val : List_Id) is
5605 pragma Assert (False
5606 or else NT (N).Nkind = N_Extended_Return_Statement);
5607 Set_List3_With_Parent (N, Val);
5608 end Set_Return_Object_Declarations;
5610 procedure Set_Return_Statement_Entity
5611 (N : Node_Id; Val : Node_Id) is
5613 pragma Assert (False
5614 or else NT (N).Nkind = N_Extended_Return_Statement
5615 or else NT (N).Nkind = N_Return_Statement);
5616 Set_Node5 (N, Val); -- semantic field, no parent set
5617 end Set_Return_Statement_Entity;
5619 procedure Set_Reverse_Present
5620 (N : Node_Id; Val : Boolean := True) is
5622 pragma Assert (False
5623 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5624 Set_Flag15 (N, Val);
5625 end Set_Reverse_Present;
5627 procedure Set_Right_Opnd
5628 (N : Node_Id; Val : Node_Id) is
5630 pragma Assert (False
5631 or else NT (N).Nkind in N_Op
5632 or else NT (N).Nkind = N_And_Then
5633 or else NT (N).Nkind = N_In
5634 or else NT (N).Nkind = N_Not_In
5635 or else NT (N).Nkind = N_Or_Else);
5636 Set_Node3_With_Parent (N, Val);
5639 procedure Set_Rounded_Result
5640 (N : Node_Id; Val : Boolean := True) is
5642 pragma Assert (False
5643 or else NT (N).Nkind = N_Op_Divide
5644 or else NT (N).Nkind = N_Op_Multiply
5645 or else NT (N).Nkind = N_Type_Conversion);
5646 Set_Flag18 (N, Val);
5647 end Set_Rounded_Result;
5649 procedure Set_SCIL_Controlling_Tag
5650 (N : Node_Id; Val : Node_Id) is
5652 pragma Assert (False
5653 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5654 Set_Node5 (N, Val); -- semantic field, no parent set
5655 end Set_SCIL_Controlling_Tag;
5657 procedure Set_SCIL_Entity
5658 (N : Node_Id; Val : Node_Id) is
5660 pragma Assert (False
5661 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5662 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5663 or else NT (N).Nkind = N_SCIL_Membership_Test);
5664 Set_Node4 (N, Val); -- semantic field, no parent set
5665 end Set_SCIL_Entity;
5667 procedure Set_SCIL_Tag_Value
5668 (N : Node_Id; Val : Node_Id) is
5670 pragma Assert (False
5671 or else NT (N).Nkind = N_SCIL_Membership_Test);
5672 Set_Node5 (N, Val); -- semantic field, no parent set
5673 end Set_SCIL_Tag_Value;
5675 procedure Set_SCIL_Target_Prim
5676 (N : Node_Id; Val : Node_Id) is
5678 pragma Assert (False
5679 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5680 Set_Node2 (N, Val); -- semantic field, no parent set
5681 end Set_SCIL_Target_Prim;
5684 (N : Node_Id; Val : Node_Id) is
5686 pragma Assert (False
5687 or else NT (N).Nkind = N_Defining_Character_Literal
5688 or else NT (N).Nkind = N_Defining_Identifier
5689 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5690 Set_Node3 (N, Val); -- semantic field, no parent set
5693 procedure Set_Select_Alternatives
5694 (N : Node_Id; Val : List_Id) is
5696 pragma Assert (False
5697 or else NT (N).Nkind = N_Selective_Accept);
5698 Set_List1_With_Parent (N, Val);
5699 end Set_Select_Alternatives;
5701 procedure Set_Selector_Name
5702 (N : Node_Id; Val : Node_Id) is
5704 pragma Assert (False
5705 or else NT (N).Nkind = N_Expanded_Name
5706 or else NT (N).Nkind = N_Generic_Association
5707 or else NT (N).Nkind = N_Parameter_Association
5708 or else NT (N).Nkind = N_Selected_Component);
5709 Set_Node2_With_Parent (N, Val);
5710 end Set_Selector_Name;
5712 procedure Set_Selector_Names
5713 (N : Node_Id; Val : List_Id) is
5715 pragma Assert (False
5716 or else NT (N).Nkind = N_Discriminant_Association);
5717 Set_List1_With_Parent (N, Val);
5718 end Set_Selector_Names;
5720 procedure Set_Shift_Count_OK
5721 (N : Node_Id; Val : Boolean := True) is
5723 pragma Assert (False
5724 or else NT (N).Nkind = N_Op_Rotate_Left
5725 or else NT (N).Nkind = N_Op_Rotate_Right
5726 or else NT (N).Nkind = N_Op_Shift_Left
5727 or else NT (N).Nkind = N_Op_Shift_Right
5728 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5730 end Set_Shift_Count_OK;
5732 procedure Set_Source_Type
5733 (N : Node_Id; Val : Entity_Id) is
5735 pragma Assert (False
5736 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5737 Set_Node1 (N, Val); -- semantic field, no parent set
5738 end Set_Source_Type;
5740 procedure Set_Specification
5741 (N : Node_Id; Val : Node_Id) is
5743 pragma Assert (False
5744 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5745 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5746 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5747 or else NT (N).Nkind = N_Generic_Package_Declaration
5748 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5749 or else NT (N).Nkind = N_Package_Declaration
5750 or else NT (N).Nkind = N_Parameterized_Expression
5751 or else NT (N).Nkind = N_Subprogram_Body
5752 or else NT (N).Nkind = N_Subprogram_Body_Stub
5753 or else NT (N).Nkind = N_Subprogram_Declaration
5754 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5755 Set_Node1_With_Parent (N, Val);
5756 end Set_Specification;
5758 procedure Set_Split_PPC
5759 (N : Node_Id; Val : Boolean) is
5761 pragma Assert (False
5762 or else NT (N).Nkind = N_Aspect_Specification
5763 or else NT (N).Nkind = N_Pragma);
5764 Set_Flag17 (N, Val);
5767 procedure Set_Statements
5768 (N : Node_Id; Val : List_Id) is
5770 pragma Assert (False
5771 or else NT (N).Nkind = N_Abortable_Part
5772 or else NT (N).Nkind = N_Accept_Alternative
5773 or else NT (N).Nkind = N_Case_Statement_Alternative
5774 or else NT (N).Nkind = N_Delay_Alternative
5775 or else NT (N).Nkind = N_Entry_Call_Alternative
5776 or else NT (N).Nkind = N_Exception_Handler
5777 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5778 or else NT (N).Nkind = N_Loop_Statement
5779 or else NT (N).Nkind = N_Triggering_Alternative);
5780 Set_List3_With_Parent (N, Val);
5783 procedure Set_Static_Processing_OK
5784 (N : Node_Id; Val : Boolean) is
5786 pragma Assert (False
5787 or else NT (N).Nkind = N_Aggregate);
5789 end Set_Static_Processing_OK;
5791 procedure Set_Storage_Pool
5792 (N : Node_Id; Val : Node_Id) is
5794 pragma Assert (False
5795 or else NT (N).Nkind = N_Allocator
5796 or else NT (N).Nkind = N_Extended_Return_Statement
5797 or else NT (N).Nkind = N_Free_Statement
5798 or else NT (N).Nkind = N_Return_Statement);
5799 Set_Node1 (N, Val); -- semantic field, no parent set
5800 end Set_Storage_Pool;
5802 procedure Set_Strval
5803 (N : Node_Id; Val : String_Id) is
5805 pragma Assert (False
5806 or else NT (N).Nkind = N_Operator_Symbol
5807 or else NT (N).Nkind = N_String_Literal);
5811 procedure Set_Subtype_Indication
5812 (N : Node_Id; Val : Node_Id) is
5814 pragma Assert (False
5815 or else NT (N).Nkind = N_Access_To_Object_Definition
5816 or else NT (N).Nkind = N_Component_Definition
5817 or else NT (N).Nkind = N_Derived_Type_Definition
5818 or else NT (N).Nkind = N_Private_Extension_Declaration
5819 or else NT (N).Nkind = N_Subtype_Declaration);
5820 Set_Node5_With_Parent (N, Val);
5821 end Set_Subtype_Indication;
5823 procedure Set_Subtype_Mark
5824 (N : Node_Id; Val : Node_Id) is
5826 pragma Assert (False
5827 or else NT (N).Nkind = N_Access_Definition
5828 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5829 or else NT (N).Nkind = N_Formal_Object_Declaration
5830 or else NT (N).Nkind = N_Object_Renaming_Declaration
5831 or else NT (N).Nkind = N_Qualified_Expression
5832 or else NT (N).Nkind = N_Subtype_Indication
5833 or else NT (N).Nkind = N_Type_Conversion
5834 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5835 Set_Node4_With_Parent (N, Val);
5836 end Set_Subtype_Mark;
5838 procedure Set_Subtype_Marks
5839 (N : Node_Id; Val : List_Id) is
5841 pragma Assert (False
5842 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5843 or else NT (N).Nkind = N_Use_Type_Clause);
5844 Set_List2_With_Parent (N, Val);
5845 end Set_Subtype_Marks;
5847 procedure Set_Suppress_Loop_Warnings
5848 (N : Node_Id; Val : Boolean := True) is
5850 pragma Assert (False
5851 or else NT (N).Nkind = N_Loop_Statement);
5852 Set_Flag17 (N, Val);
5853 end Set_Suppress_Loop_Warnings;
5855 procedure Set_Synchronized_Present
5856 (N : Node_Id; Val : Boolean := True) is
5858 pragma Assert (False
5859 or else NT (N).Nkind = N_Derived_Type_Definition
5860 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5861 or else NT (N).Nkind = N_Private_Extension_Declaration
5862 or else NT (N).Nkind = N_Record_Definition);
5864 end Set_Synchronized_Present;
5866 procedure Set_Tagged_Present
5867 (N : Node_Id; Val : Boolean := True) is
5869 pragma Assert (False
5870 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5871 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5872 or else NT (N).Nkind = N_Private_Type_Declaration
5873 or else NT (N).Nkind = N_Record_Definition);
5874 Set_Flag15 (N, Val);
5875 end Set_Tagged_Present;
5877 procedure Set_Target_Type
5878 (N : Node_Id; Val : Entity_Id) is
5880 pragma Assert (False
5881 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5882 Set_Node2 (N, Val); -- semantic field, no parent set
5883 end Set_Target_Type;
5885 procedure Set_Task_Definition
5886 (N : Node_Id; Val : Node_Id) is
5888 pragma Assert (False
5889 or else NT (N).Nkind = N_Single_Task_Declaration
5890 or else NT (N).Nkind = N_Task_Type_Declaration);
5891 Set_Node3_With_Parent (N, Val);
5892 end Set_Task_Definition;
5894 procedure Set_Task_Present
5895 (N : Node_Id; Val : Boolean := True) is
5897 pragma Assert (False
5898 or else NT (N).Nkind = N_Derived_Type_Definition
5899 or else NT (N).Nkind = N_Record_Definition);
5901 end Set_Task_Present;
5903 procedure Set_Then_Actions
5904 (N : Node_Id; Val : List_Id) is
5906 pragma Assert (False
5907 or else NT (N).Nkind = N_Conditional_Expression);
5908 Set_List2 (N, Val); -- semantic field, no parent set
5909 end Set_Then_Actions;
5911 procedure Set_Then_Statements
5912 (N : Node_Id; Val : List_Id) is
5914 pragma Assert (False
5915 or else NT (N).Nkind = N_Elsif_Part
5916 or else NT (N).Nkind = N_If_Statement);
5917 Set_List2_With_Parent (N, Val);
5918 end Set_Then_Statements;
5920 procedure Set_Treat_Fixed_As_Integer
5921 (N : Node_Id; Val : Boolean := True) is
5923 pragma Assert (False
5924 or else NT (N).Nkind = N_Op_Divide
5925 or else NT (N).Nkind = N_Op_Mod
5926 or else NT (N).Nkind = N_Op_Multiply
5927 or else NT (N).Nkind = N_Op_Rem);
5928 Set_Flag14 (N, Val);
5929 end Set_Treat_Fixed_As_Integer;
5931 procedure Set_Triggering_Alternative
5932 (N : Node_Id; Val : Node_Id) is
5934 pragma Assert (False
5935 or else NT (N).Nkind = N_Asynchronous_Select);
5936 Set_Node1_With_Parent (N, Val);
5937 end Set_Triggering_Alternative;
5939 procedure Set_Triggering_Statement
5940 (N : Node_Id; Val : Node_Id) is
5942 pragma Assert (False
5943 or else NT (N).Nkind = N_Triggering_Alternative);
5944 Set_Node1_With_Parent (N, Val);
5945 end Set_Triggering_Statement;
5947 procedure Set_TSS_Elist
5948 (N : Node_Id; Val : Elist_Id) is
5950 pragma Assert (False
5951 or else NT (N).Nkind = N_Freeze_Entity);
5952 Set_Elist3 (N, Val); -- semantic field, no parent set
5955 procedure Set_Type_Definition
5956 (N : Node_Id; Val : Node_Id) is
5958 pragma Assert (False
5959 or else NT (N).Nkind = N_Full_Type_Declaration);
5960 Set_Node3_With_Parent (N, Val);
5961 end Set_Type_Definition;
5964 (N : Node_Id; Val : Node_Id) is
5966 pragma Assert (False
5967 or else NT (N).Nkind = N_Compilation_Unit);
5968 Set_Node2_With_Parent (N, Val);
5971 procedure Set_Unknown_Discriminants_Present
5972 (N : Node_Id; Val : Boolean := True) is
5974 pragma Assert (False
5975 or else NT (N).Nkind = N_Formal_Type_Declaration
5976 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5977 or else NT (N).Nkind = N_Private_Extension_Declaration
5978 or else NT (N).Nkind = N_Private_Type_Declaration);
5979 Set_Flag13 (N, Val);
5980 end Set_Unknown_Discriminants_Present;
5982 procedure Set_Unreferenced_In_Spec
5983 (N : Node_Id; Val : Boolean := True) is
5985 pragma Assert (False
5986 or else NT (N).Nkind = N_With_Clause);
5988 end Set_Unreferenced_In_Spec;
5990 procedure Set_Variant_Part
5991 (N : Node_Id; Val : Node_Id) is
5993 pragma Assert (False
5994 or else NT (N).Nkind = N_Component_List);
5995 Set_Node4_With_Parent (N, Val);
5996 end Set_Variant_Part;
5998 procedure Set_Variants
5999 (N : Node_Id; Val : List_Id) is
6001 pragma Assert (False
6002 or else NT (N).Nkind = N_Variant_Part);
6003 Set_List1_With_Parent (N, Val);
6006 procedure Set_Visible_Declarations
6007 (N : Node_Id; Val : List_Id) is
6009 pragma Assert (False
6010 or else NT (N).Nkind = N_Package_Specification
6011 or else NT (N).Nkind = N_Protected_Definition
6012 or else NT (N).Nkind = N_Task_Definition);
6013 Set_List2_With_Parent (N, Val);
6014 end Set_Visible_Declarations;
6016 procedure Set_Was_Originally_Stub
6017 (N : Node_Id; Val : Boolean := True) is
6019 pragma Assert (False
6020 or else NT (N).Nkind = N_Package_Body
6021 or else NT (N).Nkind = N_Protected_Body
6022 or else NT (N).Nkind = N_Subprogram_Body
6023 or else NT (N).Nkind = N_Task_Body);
6024 Set_Flag13 (N, Val);
6025 end Set_Was_Originally_Stub;
6027 procedure Set_Withed_Body
6028 (N : Node_Id; Val : Node_Id) is
6030 pragma Assert (False
6031 or else NT (N).Nkind = N_With_Clause);
6033 end Set_Withed_Body;
6035 procedure Set_Zero_Cost_Handling
6036 (N : Node_Id; Val : Boolean := True) is
6038 pragma Assert (False
6039 or else NT (N).Nkind = N_Exception_Handler
6040 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
6042 end Set_Zero_Cost_Handling;
6044 -------------------------
6045 -- Iterator Procedures --
6046 -------------------------
6048 procedure Next_Entity (N : in out Node_Id) is
6050 N := Next_Entity (N);
6053 procedure Next_Named_Actual (N : in out Node_Id) is
6055 N := Next_Named_Actual (N);
6056 end Next_Named_Actual;
6058 procedure Next_Rep_Item (N : in out Node_Id) is
6060 N := Next_Rep_Item (N);
6063 procedure Next_Use_Clause (N : in out Node_Id) is
6065 N := Next_Use_Clause (N);
6066 end Next_Use_Clause;
6072 function End_Location (N : Node_Id) return Source_Ptr is
6073 L : constant Uint := End_Span (N);
6078 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6082 --------------------
6083 -- Get_Pragma_Arg --
6084 --------------------
6086 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6088 if Nkind (Arg) = N_Pragma_Argument_Association then
6089 return Expression (Arg);
6095 ----------------------
6096 -- Set_End_Location --
6097 ----------------------
6099 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6102 UI_From_Int (Int (S) - Int (Sloc (N))));
6103 end Set_End_Location;
6112 V2 : Node_Kind) return Boolean
6115 return T = V1 or else
6123 V3 : Node_Kind) return Boolean
6126 return T = V1 or else
6136 V4 : Node_Kind) return Boolean
6139 return T = V1 or else
6151 V5 : Node_Kind) return Boolean
6154 return T = V1 or else
6168 V6 : Node_Kind) return Boolean
6171 return T = V1 or else
6187 V7 : Node_Kind) return Boolean
6190 return T = V1 or else
6208 V8 : Node_Kind) return Boolean
6211 return T = V1 or else
6231 V9 : Node_Kind) return Boolean
6234 return T = V1 or else
6249 function Pragma_Name (N : Node_Id) return Name_Id is
6251 return Chars (Pragma_Identifier (N));