1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
20 -- MA 02111-1307, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 pragma Style_Checks (All_Checks);
35 -- No subprogram ordering check, due to logical grouping
37 with Atree; use Atree;
41 use Atree.Unchecked_Access;
42 -- This package is one of the few packages which is allowed to make direct
43 -- references to tree nodes (since it is in the business of providing a
44 -- higher level of tree access which other clients are expected to use and
45 -- which implements checks).
47 use Atree_Private_Part;
48 -- The only reason that we ask for direct access to the private part of
49 -- the tree package is so that we can directly reference the Nkind field
50 -- of nodes table entries. We do this since it helps the efficiency of
51 -- the Sinfo debugging checks considerably (note that when we are checking
52 -- Nkind values, we don't need to check for a valid node reference, because
53 -- we will check that anyway when we reference the field).
55 NT : Nodes.Table_Ptr renames Nodes.Table;
56 -- A short hand abbreviation, useful for the debugging checks
58 ----------------------------
59 -- Field Access Functions --
60 ----------------------------
62 function ABE_Is_Certain
63 (N : Node_Id) return Boolean is
66 or else NT (N).Nkind = N_Formal_Package_Declaration
67 or else NT (N).Nkind = N_Function_Call
68 or else NT (N).Nkind = N_Function_Instantiation
69 or else NT (N).Nkind = N_Package_Instantiation
70 or else NT (N).Nkind = N_Procedure_Call_Statement
71 or else NT (N).Nkind = N_Procedure_Instantiation);
75 function Abort_Present
76 (N : Node_Id) return Boolean is
79 or else NT (N).Nkind = N_Requeue_Statement);
83 function Abortable_Part
84 (N : Node_Id) return Node_Id is
87 or else NT (N).Nkind = N_Asynchronous_Select);
91 function Abstract_Present
92 (N : Node_Id) return Boolean is
95 or else NT (N).Nkind = N_Derived_Type_Definition
96 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
97 or else NT (N).Nkind = N_Formal_Private_Type_Definition
98 or else NT (N).Nkind = N_Private_Extension_Declaration
99 or else NT (N).Nkind = N_Private_Type_Declaration
100 or else NT (N).Nkind = N_Record_Definition);
102 end Abstract_Present;
104 function Accept_Handler_Records
105 (N : Node_Id) return List_Id is
108 or else NT (N).Nkind = N_Accept_Alternative);
110 end Accept_Handler_Records;
112 function Accept_Statement
113 (N : Node_Id) return Node_Id is
116 or else NT (N).Nkind = N_Accept_Alternative);
118 end Accept_Statement;
120 function Access_Definition
121 (N : Node_Id) return Node_Id is
124 or else NT (N).Nkind = N_Component_Definition
125 or else NT (N).Nkind = N_Object_Renaming_Declaration);
127 end Access_Definition;
129 function Access_To_Subprogram_Definition
130 (N : Node_Id) return Node_Id is
133 or else NT (N).Nkind = N_Access_Definition);
135 end Access_To_Subprogram_Definition;
137 function Access_Types_To_Process
138 (N : Node_Id) return Elist_Id is
141 or else NT (N).Nkind = N_Freeze_Entity);
143 end Access_Types_To_Process;
146 (N : Node_Id) return List_Id is
149 or else NT (N).Nkind = N_And_Then
150 or else NT (N).Nkind = N_Compilation_Unit_Aux
151 or else NT (N).Nkind = N_Freeze_Entity
152 or else NT (N).Nkind = N_Or_Else);
156 function Activation_Chain_Entity
157 (N : Node_Id) return Node_Id is
160 or else NT (N).Nkind = N_Block_Statement
161 or else NT (N).Nkind = N_Entry_Body
162 or else NT (N).Nkind = N_Generic_Package_Declaration
163 or else NT (N).Nkind = N_Package_Declaration
164 or else NT (N).Nkind = N_Subprogram_Body
165 or else NT (N).Nkind = N_Task_Body);
167 end Activation_Chain_Entity;
169 function Acts_As_Spec
170 (N : Node_Id) return Boolean is
173 or else NT (N).Nkind = N_Compilation_Unit
174 or else NT (N).Nkind = N_Subprogram_Body);
178 function Aggregate_Bounds
179 (N : Node_Id) return Node_Id is
182 or else NT (N).Nkind = N_Aggregate);
184 end Aggregate_Bounds;
186 function Aliased_Present
187 (N : Node_Id) return Boolean is
190 or else NT (N).Nkind = N_Component_Definition
191 or else NT (N).Nkind = N_Object_Declaration);
196 (N : Node_Id) return Boolean is
199 or else NT (N).Nkind = N_Others_Choice);
204 (N : Node_Id) return Boolean is
207 or else NT (N).Nkind = N_Access_Definition
208 or else NT (N).Nkind = N_Access_To_Object_Definition);
212 function Alternatives
213 (N : Node_Id) return List_Id is
216 or else NT (N).Nkind = N_Case_Statement);
220 function Ancestor_Part
221 (N : Node_Id) return Node_Id is
224 or else NT (N).Nkind = N_Extension_Aggregate);
228 function Array_Aggregate
229 (N : Node_Id) return Node_Id is
232 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
236 function Assignment_OK
237 (N : Node_Id) return Boolean is
240 or else NT (N).Nkind = N_Object_Declaration
241 or else NT (N).Nkind in N_Subexpr);
245 function Associated_Node
246 (N : Node_Id) return Node_Id is
249 or else NT (N).Nkind in N_Has_Entity
250 or else NT (N).Nkind = N_Aggregate
251 or else NT (N).Nkind = N_Extension_Aggregate
252 or else NT (N).Nkind = N_Selected_Component);
257 (N : Node_Id) return Node_Id is
260 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
264 function Attribute_Name
265 (N : Node_Id) return Name_Id is
268 or else NT (N).Nkind = N_Attribute_Reference);
272 function Aux_Decls_Node
273 (N : Node_Id) return Node_Id is
276 or else NT (N).Nkind = N_Compilation_Unit);
280 function Backwards_OK
281 (N : Node_Id) return Boolean is
284 or else NT (N).Nkind = N_Assignment_Statement);
288 function Bad_Is_Detected
289 (N : Node_Id) return Boolean is
292 or else NT (N).Nkind = N_Subprogram_Body);
296 function Body_Required
297 (N : Node_Id) return Boolean is
300 or else NT (N).Nkind = N_Compilation_Unit);
304 function Body_To_Inline
305 (N : Node_Id) return Node_Id is
308 or else NT (N).Nkind = N_Subprogram_Declaration);
313 (N : Node_Id) return Boolean is
316 or else NT (N).Nkind = N_Component_Association
317 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
318 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
319 or else NT (N).Nkind = N_Formal_Package_Declaration);
324 (N : Node_Id) return Boolean is
327 or else NT (N).Nkind = N_Return_Statement);
331 function Char_Literal_Value
332 (N : Node_Id) return Uint is
335 or else NT (N).Nkind = N_Character_Literal);
337 end Char_Literal_Value;
340 (N : Node_Id) return Name_Id is
343 or else NT (N).Nkind in N_Has_Chars);
347 function Check_Address_Alignment
348 (N : Node_Id) return Boolean is
351 or else NT (N).Nkind = N_Attribute_Definition_Clause);
353 end Check_Address_Alignment;
355 function Choice_Parameter
356 (N : Node_Id) return Node_Id is
359 or else NT (N).Nkind = N_Exception_Handler);
361 end Choice_Parameter;
364 (N : Node_Id) return List_Id is
367 or else NT (N).Nkind = N_Component_Association);
371 function Compile_Time_Known_Aggregate
372 (N : Node_Id) return Boolean is
375 or else NT (N).Nkind = N_Aggregate);
377 end Compile_Time_Known_Aggregate;
379 function Component_Associations
380 (N : Node_Id) return List_Id is
383 or else NT (N).Nkind = N_Aggregate
384 or else NT (N).Nkind = N_Extension_Aggregate);
386 end Component_Associations;
388 function Component_Clauses
389 (N : Node_Id) return List_Id is
392 or else NT (N).Nkind = N_Record_Representation_Clause);
394 end Component_Clauses;
396 function Component_Definition
397 (N : Node_Id) return Node_Id is
400 or else NT (N).Nkind = N_Component_Declaration
401 or else NT (N).Nkind = N_Constrained_Array_Definition
402 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
404 end Component_Definition;
406 function Component_Items
407 (N : Node_Id) return List_Id is
410 or else NT (N).Nkind = N_Component_List);
414 function Component_List
415 (N : Node_Id) return Node_Id is
418 or else NT (N).Nkind = N_Record_Definition
419 or else NT (N).Nkind = N_Variant);
423 function Component_Name
424 (N : Node_Id) return Node_Id is
427 or else NT (N).Nkind = N_Component_Clause);
432 (N : Node_Id) return Node_Id is
435 or else NT (N).Nkind = N_Accept_Alternative
436 or else NT (N).Nkind = N_Delay_Alternative
437 or else NT (N).Nkind = N_Elsif_Part
438 or else NT (N).Nkind = N_Entry_Body_Formal_Part
439 or else NT (N).Nkind = N_Exit_Statement
440 or else NT (N).Nkind = N_If_Statement
441 or else NT (N).Nkind = N_Iteration_Scheme
442 or else NT (N).Nkind = N_Raise_Constraint_Error
443 or else NT (N).Nkind = N_Raise_Program_Error
444 or else NT (N).Nkind = N_Raise_Storage_Error
445 or else NT (N).Nkind = N_Terminate_Alternative);
449 function Condition_Actions
450 (N : Node_Id) return List_Id is
453 or else NT (N).Nkind = N_Elsif_Part
454 or else NT (N).Nkind = N_Iteration_Scheme);
456 end Condition_Actions;
458 function Config_Pragmas
459 (N : Node_Id) return List_Id is
462 or else NT (N).Nkind = N_Compilation_Unit_Aux);
466 function Constant_Present
467 (N : Node_Id) return Boolean is
470 or else NT (N).Nkind = N_Access_Definition
471 or else NT (N).Nkind = N_Access_To_Object_Definition
472 or else NT (N).Nkind = N_Object_Declaration);
474 end Constant_Present;
477 (N : Node_Id) return Node_Id is
480 or else NT (N).Nkind = N_Subtype_Indication);
485 (N : Node_Id) return List_Id is
488 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
492 function Context_Installed
493 (N : Node_Id) return Boolean is
496 or else NT (N).Nkind = N_With_Clause);
498 end Context_Installed;
500 function Context_Items
501 (N : Node_Id) return List_Id is
504 or else NT (N).Nkind = N_Compilation_Unit);
508 function Controlling_Argument
509 (N : Node_Id) return Node_Id is
512 or else NT (N).Nkind = N_Function_Call
513 or else NT (N).Nkind = N_Procedure_Call_Statement);
515 end Controlling_Argument;
517 function Conversion_OK
518 (N : Node_Id) return Boolean is
521 or else NT (N).Nkind = N_Type_Conversion);
525 function Corresponding_Body
526 (N : Node_Id) return Node_Id is
529 or else NT (N).Nkind = N_Entry_Declaration
530 or else NT (N).Nkind = N_Generic_Package_Declaration
531 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
532 or else NT (N).Nkind = N_Package_Body_Stub
533 or else NT (N).Nkind = N_Package_Declaration
534 or else NT (N).Nkind = N_Protected_Body_Stub
535 or else NT (N).Nkind = N_Protected_Type_Declaration
536 or else NT (N).Nkind = N_Subprogram_Body_Stub
537 or else NT (N).Nkind = N_Subprogram_Declaration
538 or else NT (N).Nkind = N_Task_Body_Stub
539 or else NT (N).Nkind = N_Task_Type_Declaration);
541 end Corresponding_Body;
543 function Corresponding_Formal_Spec
544 (N : Node_Id) return Node_Id is
547 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
549 end Corresponding_Formal_Spec;
551 function Corresponding_Generic_Association
552 (N : Node_Id) return Node_Id is
555 or else NT (N).Nkind = N_Object_Declaration
556 or else NT (N).Nkind = N_Object_Renaming_Declaration);
558 end Corresponding_Generic_Association;
560 function Corresponding_Integer_Value
561 (N : Node_Id) return Uint is
564 or else NT (N).Nkind = N_Real_Literal);
566 end Corresponding_Integer_Value;
568 function Corresponding_Spec
569 (N : Node_Id) return Node_Id is
572 or else NT (N).Nkind = N_Package_Body
573 or else NT (N).Nkind = N_Protected_Body
574 or else NT (N).Nkind = N_Subprogram_Body
575 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
576 or else NT (N).Nkind = N_Task_Body
577 or else NT (N).Nkind = N_With_Clause);
579 end Corresponding_Spec;
581 function Corresponding_Stub
582 (N : Node_Id) return Node_Id is
585 or else NT (N).Nkind = N_Subunit);
587 end Corresponding_Stub;
589 function Dcheck_Function
590 (N : Node_Id) return Entity_Id is
593 or else NT (N).Nkind = N_Variant);
597 function Debug_Statement
598 (N : Node_Id) return Node_Id is
601 or else NT (N).Nkind = N_Pragma);
605 function Declarations
606 (N : Node_Id) return List_Id is
609 or else NT (N).Nkind = N_Accept_Statement
610 or else NT (N).Nkind = N_Block_Statement
611 or else NT (N).Nkind = N_Compilation_Unit_Aux
612 or else NT (N).Nkind = N_Entry_Body
613 or else NT (N).Nkind = N_Package_Body
614 or else NT (N).Nkind = N_Protected_Body
615 or else NT (N).Nkind = N_Subprogram_Body
616 or else NT (N).Nkind = N_Task_Body);
620 function Default_Expression
621 (N : Node_Id) return Node_Id is
624 or else NT (N).Nkind = N_Parameter_Specification);
626 end Default_Expression;
628 function Default_Name
629 (N : Node_Id) return Node_Id is
632 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
633 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
637 function Defining_Identifier
638 (N : Node_Id) return Entity_Id is
641 or else NT (N).Nkind = N_Component_Declaration
642 or else NT (N).Nkind = N_Defining_Program_Unit_Name
643 or else NT (N).Nkind = N_Discriminant_Specification
644 or else NT (N).Nkind = N_Entry_Body
645 or else NT (N).Nkind = N_Entry_Declaration
646 or else NT (N).Nkind = N_Entry_Index_Specification
647 or else NT (N).Nkind = N_Exception_Declaration
648 or else NT (N).Nkind = N_Exception_Renaming_Declaration
649 or else NT (N).Nkind = N_Formal_Object_Declaration
650 or else NT (N).Nkind = N_Formal_Package_Declaration
651 or else NT (N).Nkind = N_Formal_Type_Declaration
652 or else NT (N).Nkind = N_Full_Type_Declaration
653 or else NT (N).Nkind = N_Implicit_Label_Declaration
654 or else NT (N).Nkind = N_Incomplete_Type_Declaration
655 or else NT (N).Nkind = N_Loop_Parameter_Specification
656 or else NT (N).Nkind = N_Number_Declaration
657 or else NT (N).Nkind = N_Object_Declaration
658 or else NT (N).Nkind = N_Object_Renaming_Declaration
659 or else NT (N).Nkind = N_Package_Body_Stub
660 or else NT (N).Nkind = N_Parameter_Specification
661 or else NT (N).Nkind = N_Private_Extension_Declaration
662 or else NT (N).Nkind = N_Private_Type_Declaration
663 or else NT (N).Nkind = N_Protected_Body
664 or else NT (N).Nkind = N_Protected_Body_Stub
665 or else NT (N).Nkind = N_Protected_Type_Declaration
666 or else NT (N).Nkind = N_Single_Protected_Declaration
667 or else NT (N).Nkind = N_Single_Task_Declaration
668 or else NT (N).Nkind = N_Subtype_Declaration
669 or else NT (N).Nkind = N_Task_Body
670 or else NT (N).Nkind = N_Task_Body_Stub
671 or else NT (N).Nkind = N_Task_Type_Declaration);
673 end Defining_Identifier;
675 function Defining_Unit_Name
676 (N : Node_Id) return Node_Id is
679 or else NT (N).Nkind = N_Function_Instantiation
680 or else NT (N).Nkind = N_Function_Specification
681 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
682 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
683 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
684 or else NT (N).Nkind = N_Package_Body
685 or else NT (N).Nkind = N_Package_Instantiation
686 or else NT (N).Nkind = N_Package_Renaming_Declaration
687 or else NT (N).Nkind = N_Package_Specification
688 or else NT (N).Nkind = N_Procedure_Instantiation
689 or else NT (N).Nkind = N_Procedure_Specification);
691 end Defining_Unit_Name;
693 function Delay_Alternative
694 (N : Node_Id) return Node_Id is
697 or else NT (N).Nkind = N_Timed_Entry_Call);
699 end Delay_Alternative;
701 function Delay_Finalize_Attach
702 (N : Node_Id) return Boolean is
705 or else NT (N).Nkind = N_Object_Declaration);
707 end Delay_Finalize_Attach;
709 function Delay_Statement
710 (N : Node_Id) return Node_Id is
713 or else NT (N).Nkind = N_Delay_Alternative);
717 function Delta_Expression
718 (N : Node_Id) return Node_Id is
721 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
722 or else NT (N).Nkind = N_Delta_Constraint
723 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
725 end Delta_Expression;
727 function Digits_Expression
728 (N : Node_Id) return Node_Id is
731 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
732 or else NT (N).Nkind = N_Digits_Constraint
733 or else NT (N).Nkind = N_Floating_Point_Definition);
735 end Digits_Expression;
737 function Discr_Check_Funcs_Built
738 (N : Node_Id) return Boolean is
741 or else NT (N).Nkind = N_Full_Type_Declaration);
743 end Discr_Check_Funcs_Built;
745 function Discrete_Choices
746 (N : Node_Id) return List_Id is
749 or else NT (N).Nkind = N_Case_Statement_Alternative
750 or else NT (N).Nkind = N_Variant);
752 end Discrete_Choices;
754 function Discrete_Range
755 (N : Node_Id) return Node_Id is
758 or else NT (N).Nkind = N_Slice);
762 function Discrete_Subtype_Definition
763 (N : Node_Id) return Node_Id is
766 or else NT (N).Nkind = N_Entry_Declaration
767 or else NT (N).Nkind = N_Entry_Index_Specification
768 or else NT (N).Nkind = N_Loop_Parameter_Specification);
770 end Discrete_Subtype_Definition;
772 function Discrete_Subtype_Definitions
773 (N : Node_Id) return List_Id is
776 or else NT (N).Nkind = N_Constrained_Array_Definition);
778 end Discrete_Subtype_Definitions;
780 function Discriminant_Specifications
781 (N : Node_Id) return List_Id is
784 or else NT (N).Nkind = N_Formal_Type_Declaration
785 or else NT (N).Nkind = N_Full_Type_Declaration
786 or else NT (N).Nkind = N_Incomplete_Type_Declaration
787 or else NT (N).Nkind = N_Private_Extension_Declaration
788 or else NT (N).Nkind = N_Private_Type_Declaration
789 or else NT (N).Nkind = N_Protected_Type_Declaration
790 or else NT (N).Nkind = N_Task_Type_Declaration);
792 end Discriminant_Specifications;
794 function Discriminant_Type
795 (N : Node_Id) return Node_Id is
798 or else NT (N).Nkind = N_Discriminant_Specification);
800 end Discriminant_Type;
802 function Do_Accessibility_Check
803 (N : Node_Id) return Boolean is
806 or else NT (N).Nkind = N_Parameter_Specification);
808 end Do_Accessibility_Check;
810 function Do_Discriminant_Check
811 (N : Node_Id) return Boolean is
814 or else NT (N).Nkind = N_Selected_Component);
816 end Do_Discriminant_Check;
818 function Do_Division_Check
819 (N : Node_Id) return Boolean is
822 or else NT (N).Nkind = N_Op_Divide
823 or else NT (N).Nkind = N_Op_Mod
824 or else NT (N).Nkind = N_Op_Rem);
826 end Do_Division_Check;
828 function Do_Length_Check
829 (N : Node_Id) return Boolean is
832 or else NT (N).Nkind = N_Assignment_Statement
833 or else NT (N).Nkind = N_Op_And
834 or else NT (N).Nkind = N_Op_Or
835 or else NT (N).Nkind = N_Op_Xor
836 or else NT (N).Nkind = N_Type_Conversion);
840 function Do_Overflow_Check
841 (N : Node_Id) return Boolean is
844 or else NT (N).Nkind in N_Op
845 or else NT (N).Nkind = N_Attribute_Reference
846 or else NT (N).Nkind = N_Type_Conversion);
848 end Do_Overflow_Check;
850 function Do_Range_Check
851 (N : Node_Id) return Boolean is
854 or else NT (N).Nkind in N_Subexpr);
858 function Do_Storage_Check
859 (N : Node_Id) return Boolean is
862 or else NT (N).Nkind = N_Allocator
863 or else NT (N).Nkind = N_Subprogram_Body);
865 end Do_Storage_Check;
867 function Do_Tag_Check
868 (N : Node_Id) return Boolean is
871 or else NT (N).Nkind = N_Assignment_Statement
872 or else NT (N).Nkind = N_Function_Call
873 or else NT (N).Nkind = N_Procedure_Call_Statement
874 or else NT (N).Nkind = N_Return_Statement
875 or else NT (N).Nkind = N_Type_Conversion);
879 function Elaborate_All_Present
880 (N : Node_Id) return Boolean is
883 or else NT (N).Nkind = N_With_Clause);
885 end Elaborate_All_Present;
887 function Elaborate_Present
888 (N : Node_Id) return Boolean is
891 or else NT (N).Nkind = N_With_Clause);
893 end Elaborate_Present;
895 function Elaboration_Boolean
896 (N : Node_Id) return Node_Id is
899 or else NT (N).Nkind = N_Function_Specification
900 or else NT (N).Nkind = N_Procedure_Specification);
902 end Elaboration_Boolean;
904 function Else_Actions
905 (N : Node_Id) return List_Id is
908 or else NT (N).Nkind = N_Conditional_Expression);
912 function Else_Statements
913 (N : Node_Id) return List_Id is
916 or else NT (N).Nkind = N_Conditional_Entry_Call
917 or else NT (N).Nkind = N_If_Statement
918 or else NT (N).Nkind = N_Selective_Accept);
923 (N : Node_Id) return List_Id is
926 or else NT (N).Nkind = N_If_Statement);
930 function Enclosing_Variant
931 (N : Node_Id) return Node_Id is
934 or else NT (N).Nkind = N_Variant);
936 end Enclosing_Variant;
939 (N : Node_Id) return Node_Id is
942 or else NT (N).Nkind = N_Enumeration_Type_Definition
943 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
944 or else NT (N).Nkind = N_Loop_Statement
945 or else NT (N).Nkind = N_Package_Specification
946 or else NT (N).Nkind = N_Protected_Body
947 or else NT (N).Nkind = N_Protected_Definition
948 or else NT (N).Nkind = N_Record_Definition
949 or else NT (N).Nkind = N_Task_Definition);
954 (N : Node_Id) return Uint is
957 or else NT (N).Nkind = N_Case_Statement
958 or else NT (N).Nkind = N_If_Statement);
963 (N : Node_Id) return Node_Id is
966 or else NT (N).Nkind in N_Has_Entity
967 or else NT (N).Nkind = N_Freeze_Entity);
971 function Entity_Or_Associated_Node
972 (N : Node_Id) return Node_Id is
975 or else NT (N).Nkind in N_Has_Entity
976 or else NT (N).Nkind = N_Freeze_Entity);
978 end Entity_Or_Associated_Node;
980 function Entry_Body_Formal_Part
981 (N : Node_Id) return Node_Id is
984 or else NT (N).Nkind = N_Entry_Body);
986 end Entry_Body_Formal_Part;
988 function Entry_Call_Alternative
989 (N : Node_Id) return Node_Id is
992 or else NT (N).Nkind = N_Conditional_Entry_Call
993 or else NT (N).Nkind = N_Timed_Entry_Call);
995 end Entry_Call_Alternative;
997 function Entry_Call_Statement
998 (N : Node_Id) return Node_Id is
1000 pragma Assert (False
1001 or else NT (N).Nkind = N_Entry_Call_Alternative);
1003 end Entry_Call_Statement;
1005 function Entry_Direct_Name
1006 (N : Node_Id) return Node_Id is
1008 pragma Assert (False
1009 or else NT (N).Nkind = N_Accept_Statement);
1011 end Entry_Direct_Name;
1013 function Entry_Index
1014 (N : Node_Id) return Node_Id is
1016 pragma Assert (False
1017 or else NT (N).Nkind = N_Accept_Statement);
1021 function Entry_Index_Specification
1022 (N : Node_Id) return Node_Id is
1024 pragma Assert (False
1025 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1027 end Entry_Index_Specification;
1030 (N : Node_Id) return Node_Id is
1032 pragma Assert (False
1033 or else NT (N).Nkind in N_Has_Etype);
1037 function Exception_Choices
1038 (N : Node_Id) return List_Id is
1040 pragma Assert (False
1041 or else NT (N).Nkind = N_Exception_Handler);
1043 end Exception_Choices;
1045 function Exception_Handlers
1046 (N : Node_Id) return List_Id is
1048 pragma Assert (False
1049 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1051 end Exception_Handlers;
1053 function Exception_Junk
1054 (N : Node_Id) return Boolean is
1056 pragma Assert (False
1057 or else NT (N).Nkind = N_Goto_Statement
1058 or else NT (N).Nkind = N_Label
1059 or else NT (N).Nkind = N_Object_Declaration
1060 or else NT (N).Nkind = N_Subtype_Declaration);
1064 function Expansion_Delayed
1065 (N : Node_Id) return Boolean is
1067 pragma Assert (False
1068 or else NT (N).Nkind = N_Aggregate
1069 or else NT (N).Nkind = N_Extension_Aggregate);
1071 end Expansion_Delayed;
1073 function Explicit_Actual_Parameter
1074 (N : Node_Id) return Node_Id is
1076 pragma Assert (False
1077 or else NT (N).Nkind = N_Parameter_Association);
1079 end Explicit_Actual_Parameter;
1081 function Explicit_Generic_Actual_Parameter
1082 (N : Node_Id) return Node_Id is
1084 pragma Assert (False
1085 or else NT (N).Nkind = N_Generic_Association);
1087 end Explicit_Generic_Actual_Parameter;
1090 (N : Node_Id) return Node_Id is
1092 pragma Assert (False
1093 or else NT (N).Nkind = N_Allocator
1094 or else NT (N).Nkind = N_Assignment_Statement
1095 or else NT (N).Nkind = N_At_Clause
1096 or else NT (N).Nkind = N_Attribute_Definition_Clause
1097 or else NT (N).Nkind = N_Case_Statement
1098 or else NT (N).Nkind = N_Code_Statement
1099 or else NT (N).Nkind = N_Component_Association
1100 or else NT (N).Nkind = N_Component_Declaration
1101 or else NT (N).Nkind = N_Delay_Relative_Statement
1102 or else NT (N).Nkind = N_Delay_Until_Statement
1103 or else NT (N).Nkind = N_Discriminant_Association
1104 or else NT (N).Nkind = N_Discriminant_Specification
1105 or else NT (N).Nkind = N_Exception_Declaration
1106 or else NT (N).Nkind = N_Formal_Object_Declaration
1107 or else NT (N).Nkind = N_Free_Statement
1108 or else NT (N).Nkind = N_Mod_Clause
1109 or else NT (N).Nkind = N_Modular_Type_Definition
1110 or else NT (N).Nkind = N_Number_Declaration
1111 or else NT (N).Nkind = N_Object_Declaration
1112 or else NT (N).Nkind = N_Parameter_Specification
1113 or else NT (N).Nkind = N_Pragma_Argument_Association
1114 or else NT (N).Nkind = N_Qualified_Expression
1115 or else NT (N).Nkind = N_Raise_Statement
1116 or else NT (N).Nkind = N_Return_Statement
1117 or else NT (N).Nkind = N_Type_Conversion
1118 or else NT (N).Nkind = N_Unchecked_Expression
1119 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1123 function Expressions
1124 (N : Node_Id) return List_Id is
1126 pragma Assert (False
1127 or else NT (N).Nkind = N_Aggregate
1128 or else NT (N).Nkind = N_Attribute_Reference
1129 or else NT (N).Nkind = N_Conditional_Expression
1130 or else NT (N).Nkind = N_Extension_Aggregate
1131 or else NT (N).Nkind = N_Indexed_Component);
1136 (N : Node_Id) return Node_Id is
1138 pragma Assert (False
1139 or else NT (N).Nkind = N_Component_Clause);
1143 function First_Inlined_Subprogram
1144 (N : Node_Id) return Entity_Id is
1146 pragma Assert (False
1147 or else NT (N).Nkind = N_Compilation_Unit);
1149 end First_Inlined_Subprogram;
1152 (N : Node_Id) return Boolean is
1154 pragma Assert (False
1155 or else NT (N).Nkind = N_With_Clause);
1159 function First_Named_Actual
1160 (N : Node_Id) return Node_Id is
1162 pragma Assert (False
1163 or else NT (N).Nkind = N_Entry_Call_Statement
1164 or else NT (N).Nkind = N_Function_Call
1165 or else NT (N).Nkind = N_Procedure_Call_Statement);
1167 end First_Named_Actual;
1169 function First_Real_Statement
1170 (N : Node_Id) return Node_Id is
1172 pragma Assert (False
1173 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1175 end First_Real_Statement;
1177 function First_Subtype_Link
1178 (N : Node_Id) return Entity_Id is
1180 pragma Assert (False
1181 or else NT (N).Nkind = N_Freeze_Entity);
1183 end First_Subtype_Link;
1185 function Float_Truncate
1186 (N : Node_Id) return Boolean is
1188 pragma Assert (False
1189 or else NT (N).Nkind = N_Type_Conversion);
1193 function Formal_Type_Definition
1194 (N : Node_Id) return Node_Id is
1196 pragma Assert (False
1197 or else NT (N).Nkind = N_Formal_Type_Declaration);
1199 end Formal_Type_Definition;
1201 function Forwards_OK
1202 (N : Node_Id) return Boolean is
1204 pragma Assert (False
1205 or else NT (N).Nkind = N_Assignment_Statement);
1209 function From_At_Mod
1210 (N : Node_Id) return Boolean is
1212 pragma Assert (False
1213 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1217 function From_Default
1218 (N : Node_Id) return Boolean is
1220 pragma Assert (False
1221 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1225 function Generic_Associations
1226 (N : Node_Id) return List_Id is
1228 pragma Assert (False
1229 or else NT (N).Nkind = N_Formal_Package_Declaration
1230 or else NT (N).Nkind = N_Function_Instantiation
1231 or else NT (N).Nkind = N_Package_Instantiation
1232 or else NT (N).Nkind = N_Procedure_Instantiation);
1234 end Generic_Associations;
1236 function Generic_Formal_Declarations
1237 (N : Node_Id) return List_Id is
1239 pragma Assert (False
1240 or else NT (N).Nkind = N_Generic_Package_Declaration
1241 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1243 end Generic_Formal_Declarations;
1245 function Generic_Parent
1246 (N : Node_Id) return Node_Id is
1248 pragma Assert (False
1249 or else NT (N).Nkind = N_Function_Specification
1250 or else NT (N).Nkind = N_Package_Specification
1251 or else NT (N).Nkind = N_Procedure_Specification);
1255 function Generic_Parent_Type
1256 (N : Node_Id) return Node_Id is
1258 pragma Assert (False
1259 or else NT (N).Nkind = N_Subtype_Declaration);
1261 end Generic_Parent_Type;
1263 function Handled_Statement_Sequence
1264 (N : Node_Id) return Node_Id is
1266 pragma Assert (False
1267 or else NT (N).Nkind = N_Accept_Statement
1268 or else NT (N).Nkind = N_Block_Statement
1269 or else NT (N).Nkind = N_Entry_Body
1270 or else NT (N).Nkind = N_Package_Body
1271 or else NT (N).Nkind = N_Subprogram_Body
1272 or else NT (N).Nkind = N_Task_Body);
1274 end Handled_Statement_Sequence;
1276 function Handler_List_Entry
1277 (N : Node_Id) return Node_Id is
1279 pragma Assert (False
1280 or else NT (N).Nkind = N_Object_Declaration);
1282 end Handler_List_Entry;
1284 function Has_Created_Identifier
1285 (N : Node_Id) return Boolean is
1287 pragma Assert (False
1288 or else NT (N).Nkind = N_Block_Statement
1289 or else NT (N).Nkind = N_Loop_Statement);
1291 end Has_Created_Identifier;
1293 function Has_Dynamic_Length_Check
1294 (N : Node_Id) return Boolean is
1297 end Has_Dynamic_Length_Check;
1299 function Has_Dynamic_Range_Check
1300 (N : Node_Id) return Boolean is
1303 end Has_Dynamic_Range_Check;
1305 function Has_No_Elaboration_Code
1306 (N : Node_Id) return Boolean is
1308 pragma Assert (False
1309 or else NT (N).Nkind = N_Compilation_Unit);
1311 end Has_No_Elaboration_Code;
1313 function Has_Priority_Pragma
1314 (N : Node_Id) return Boolean is
1316 pragma Assert (False
1317 or else NT (N).Nkind = N_Protected_Definition
1318 or else NT (N).Nkind = N_Subprogram_Body
1319 or else NT (N).Nkind = N_Task_Definition);
1321 end Has_Priority_Pragma;
1323 function Has_Private_View
1324 (N : Node_Id) return Boolean is
1326 pragma Assert (False
1327 or else NT (N).Nkind in N_Op
1328 or else NT (N).Nkind = N_Character_Literal
1329 or else NT (N).Nkind = N_Expanded_Name
1330 or else NT (N).Nkind = N_Identifier
1331 or else NT (N).Nkind = N_Operator_Symbol);
1333 end Has_Private_View;
1335 function Has_Storage_Size_Pragma
1336 (N : Node_Id) return Boolean is
1338 pragma Assert (False
1339 or else NT (N).Nkind = N_Task_Definition);
1341 end Has_Storage_Size_Pragma;
1343 function Has_Task_Info_Pragma
1344 (N : Node_Id) return Boolean is
1346 pragma Assert (False
1347 or else NT (N).Nkind = N_Task_Definition);
1349 end Has_Task_Info_Pragma;
1351 function Has_Task_Name_Pragma
1352 (N : Node_Id) return Boolean is
1354 pragma Assert (False
1355 or else NT (N).Nkind = N_Task_Definition);
1357 end Has_Task_Name_Pragma;
1359 function Has_Wide_Character
1360 (N : Node_Id) return Boolean is
1362 pragma Assert (False
1363 or else NT (N).Nkind = N_String_Literal);
1365 end Has_Wide_Character;
1367 function Hidden_By_Use_Clause
1368 (N : Node_Id) return Elist_Id is
1370 pragma Assert (False
1371 or else NT (N).Nkind = N_Use_Package_Clause
1372 or else NT (N).Nkind = N_Use_Type_Clause);
1374 end Hidden_By_Use_Clause;
1377 (N : Node_Id) return Node_Id is
1379 pragma Assert (False
1380 or else NT (N).Nkind = N_Range
1381 or else NT (N).Nkind = N_Real_Range_Specification
1382 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1387 (N : Node_Id) return Node_Id is
1389 pragma Assert (False
1390 or else NT (N).Nkind = N_At_Clause
1391 or else NT (N).Nkind = N_Block_Statement
1392 or else NT (N).Nkind = N_Designator
1393 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1394 or else NT (N).Nkind = N_Label
1395 or else NT (N).Nkind = N_Loop_Statement
1396 or else NT (N).Nkind = N_Record_Representation_Clause
1397 or else NT (N).Nkind = N_Subprogram_Info);
1401 function Implicit_With
1402 (N : Node_Id) return Boolean is
1404 pragma Assert (False
1405 or else NT (N).Nkind = N_With_Clause);
1409 function Interface_List
1410 (N : Node_Id) return List_Id is
1412 pragma Assert (False
1413 or else NT (N).Nkind = N_Derived_Type_Definition
1414 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1415 or else NT (N).Nkind = N_Private_Extension_Declaration
1416 or else NT (N).Nkind = N_Protected_Type_Declaration
1417 or else NT (N).Nkind = N_Record_Definition
1418 or else NT (N).Nkind = N_Single_Protected_Declaration
1419 or else NT (N).Nkind = N_Single_Task_Declaration
1420 or else NT (N).Nkind = N_Task_Type_Declaration);
1424 function Interface_Present
1425 (N : Node_Id) return Boolean is
1427 pragma Assert (False
1428 or else NT (N).Nkind = N_Derived_Type_Definition
1429 or else NT (N).Nkind = N_Record_Definition);
1431 end Interface_Present;
1434 (N : Node_Id) return Boolean is
1436 pragma Assert (False
1437 or else NT (N).Nkind = N_Formal_Object_Declaration
1438 or else NT (N).Nkind = N_Parameter_Specification);
1442 function Includes_Infinities
1443 (N : Node_Id) return Boolean is
1445 pragma Assert (False
1446 or else NT (N).Nkind = N_Range);
1448 end Includes_Infinities;
1450 function Instance_Spec
1451 (N : Node_Id) return Node_Id is
1453 pragma Assert (False
1454 or else NT (N).Nkind = N_Formal_Package_Declaration
1455 or else NT (N).Nkind = N_Function_Instantiation
1456 or else NT (N).Nkind = N_Package_Instantiation
1457 or else NT (N).Nkind = N_Procedure_Instantiation);
1462 (N : Node_Id) return Uint is
1464 pragma Assert (False
1465 or else NT (N).Nkind = N_Integer_Literal);
1469 function Is_Asynchronous_Call_Block
1470 (N : Node_Id) return Boolean is
1472 pragma Assert (False
1473 or else NT (N).Nkind = N_Block_Statement);
1475 end Is_Asynchronous_Call_Block;
1477 function Is_Component_Left_Opnd
1478 (N : Node_Id) return Boolean is
1480 pragma Assert (False
1481 or else NT (N).Nkind = N_Op_Concat);
1483 end Is_Component_Left_Opnd;
1485 function Is_Component_Right_Opnd
1486 (N : Node_Id) return Boolean is
1488 pragma Assert (False
1489 or else NT (N).Nkind = N_Op_Concat);
1491 end Is_Component_Right_Opnd;
1493 function Is_Controlling_Actual
1494 (N : Node_Id) return Boolean is
1496 pragma Assert (False
1497 or else NT (N).Nkind in N_Subexpr);
1499 end Is_Controlling_Actual;
1501 function Is_In_Discriminant_Check
1502 (N : Node_Id) return Boolean is
1504 pragma Assert (False
1505 or else NT (N).Nkind = N_Selected_Component);
1507 end Is_In_Discriminant_Check;
1509 function Is_Machine_Number
1510 (N : Node_Id) return Boolean is
1512 pragma Assert (False
1513 or else NT (N).Nkind = N_Real_Literal);
1515 end Is_Machine_Number;
1517 function Is_Null_Loop
1518 (N : Node_Id) return Boolean is
1520 pragma Assert (False
1521 or else NT (N).Nkind = N_Loop_Statement);
1525 function Is_Overloaded
1526 (N : Node_Id) return Boolean is
1528 pragma Assert (False
1529 or else NT (N).Nkind in N_Subexpr);
1533 function Is_Power_Of_2_For_Shift
1534 (N : Node_Id) return Boolean is
1536 pragma Assert (False
1537 or else NT (N).Nkind = N_Op_Expon);
1539 end Is_Power_Of_2_For_Shift;
1541 function Is_Protected_Subprogram_Body
1542 (N : Node_Id) return Boolean is
1544 pragma Assert (False
1545 or else NT (N).Nkind = N_Subprogram_Body);
1547 end Is_Protected_Subprogram_Body;
1549 function Is_Static_Expression
1550 (N : Node_Id) return Boolean is
1552 pragma Assert (False
1553 or else NT (N).Nkind in N_Subexpr);
1555 end Is_Static_Expression;
1557 function Is_Subprogram_Descriptor
1558 (N : Node_Id) return Boolean is
1560 pragma Assert (False
1561 or else NT (N).Nkind = N_Object_Declaration);
1563 end Is_Subprogram_Descriptor;
1565 function Is_Task_Allocation_Block
1566 (N : Node_Id) return Boolean is
1568 pragma Assert (False
1569 or else NT (N).Nkind = N_Block_Statement);
1571 end Is_Task_Allocation_Block;
1573 function Is_Task_Master
1574 (N : Node_Id) return Boolean is
1576 pragma Assert (False
1577 or else NT (N).Nkind = N_Block_Statement
1578 or else NT (N).Nkind = N_Subprogram_Body
1579 or else NT (N).Nkind = N_Task_Body);
1583 function Iteration_Scheme
1584 (N : Node_Id) return Node_Id is
1586 pragma Assert (False
1587 or else NT (N).Nkind = N_Loop_Statement);
1589 end Iteration_Scheme;
1592 (N : Node_Id) return Node_Id is
1594 pragma Assert (False
1595 or else NT (N).Nkind = N_Itype_Reference);
1599 function Kill_Range_Check
1600 (N : Node_Id) return Boolean is
1602 pragma Assert (False
1603 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1605 end Kill_Range_Check;
1607 function Label_Construct
1608 (N : Node_Id) return Node_Id is
1610 pragma Assert (False
1611 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1613 end Label_Construct;
1616 (N : Node_Id) return Node_Id is
1618 pragma Assert (False
1619 or else NT (N).Nkind = N_Component_Clause);
1624 (N : Node_Id) return Boolean is
1626 pragma Assert (False
1627 or else NT (N).Nkind = N_With_Clause);
1632 (N : Node_Id) return Node_Id is
1634 pragma Assert (False
1635 or else NT (N).Nkind = N_And_Then
1636 or else NT (N).Nkind = N_In
1637 or else NT (N).Nkind = N_Not_In
1638 or else NT (N).Nkind = N_Or_Else
1639 or else NT (N).Nkind in N_Binary_Op);
1643 function Library_Unit
1644 (N : Node_Id) return Node_Id is
1646 pragma Assert (False
1647 or else NT (N).Nkind = N_Compilation_Unit
1648 or else NT (N).Nkind = N_Package_Body_Stub
1649 or else NT (N).Nkind = N_Protected_Body_Stub
1650 or else NT (N).Nkind = N_Subprogram_Body_Stub
1651 or else NT (N).Nkind = N_Task_Body_Stub
1652 or else NT (N).Nkind = N_With_Clause);
1656 function Limited_View_Installed
1657 (N : Node_Id) return Boolean is
1659 pragma Assert (False
1660 or else NT (N).Nkind = N_Package_Specification
1661 or else NT (N).Nkind = N_With_Clause);
1663 end Limited_View_Installed;
1665 function Limited_Present
1666 (N : Node_Id) return Boolean is
1668 pragma Assert (False
1669 or else NT (N).Nkind = N_Derived_Type_Definition
1670 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1671 or else NT (N).Nkind = N_Private_Type_Declaration
1672 or else NT (N).Nkind = N_Record_Definition
1673 or else NT (N).Nkind = N_With_Clause);
1675 end Limited_Present;
1678 (N : Node_Id) return List_Id is
1680 pragma Assert (False
1681 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1685 function Loop_Actions
1686 (N : Node_Id) return List_Id is
1688 pragma Assert (False
1689 or else NT (N).Nkind = N_Component_Association);
1693 function Loop_Parameter_Specification
1694 (N : Node_Id) return Node_Id is
1696 pragma Assert (False
1697 or else NT (N).Nkind = N_Iteration_Scheme);
1699 end Loop_Parameter_Specification;
1702 (N : Node_Id) return Node_Id is
1704 pragma Assert (False
1705 or else NT (N).Nkind = N_Range
1706 or else NT (N).Nkind = N_Real_Range_Specification
1707 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1712 (N : Node_Id) return Node_Id is
1714 pragma Assert (False
1715 or else NT (N).Nkind = N_Record_Representation_Clause);
1720 (N : Node_Id) return Boolean is
1722 pragma Assert (False
1723 or else NT (N).Nkind = N_Component_Declaration
1724 or else NT (N).Nkind = N_Discriminant_Specification
1725 or else NT (N).Nkind = N_Exception_Declaration
1726 or else NT (N).Nkind = N_Formal_Object_Declaration
1727 or else NT (N).Nkind = N_Number_Declaration
1728 or else NT (N).Nkind = N_Object_Declaration
1729 or else NT (N).Nkind = N_Parameter_Specification);
1733 function Must_Be_Byte_Aligned
1734 (N : Node_Id) return Boolean is
1736 pragma Assert (False
1737 or else NT (N).Nkind = N_Attribute_Reference);
1739 end Must_Be_Byte_Aligned;
1741 function Must_Not_Freeze
1742 (N : Node_Id) return Boolean is
1744 pragma Assert (False
1745 or else NT (N).Nkind = N_Subtype_Indication
1746 or else NT (N).Nkind in N_Subexpr);
1748 end Must_Not_Freeze;
1750 function Must_Not_Override
1751 (N : Node_Id) return Boolean is
1753 pragma Assert (False
1754 or else NT (N).Nkind = N_Entry_Declaration
1755 or else NT (N).Nkind = N_Function_Instantiation
1756 or else NT (N).Nkind = N_Function_Specification
1757 or else NT (N).Nkind = N_Procedure_Instantiation
1758 or else NT (N).Nkind = N_Procedure_Specification);
1760 end Must_Not_Override;
1762 function Must_Override
1763 (N : Node_Id) return Boolean is
1765 pragma Assert (False
1766 or else NT (N).Nkind = N_Entry_Declaration
1767 or else NT (N).Nkind = N_Function_Instantiation
1768 or else NT (N).Nkind = N_Function_Specification
1769 or else NT (N).Nkind = N_Procedure_Instantiation
1770 or else NT (N).Nkind = N_Procedure_Specification);
1775 (N : Node_Id) return Node_Id is
1777 pragma Assert (False
1778 or else NT (N).Nkind = N_Assignment_Statement
1779 or else NT (N).Nkind = N_Attribute_Definition_Clause
1780 or else NT (N).Nkind = N_Defining_Program_Unit_Name
1781 or else NT (N).Nkind = N_Designator
1782 or else NT (N).Nkind = N_Entry_Call_Statement
1783 or else NT (N).Nkind = N_Exception_Renaming_Declaration
1784 or else NT (N).Nkind = N_Exit_Statement
1785 or else NT (N).Nkind = N_Formal_Package_Declaration
1786 or else NT (N).Nkind = N_Function_Call
1787 or else NT (N).Nkind = N_Function_Instantiation
1788 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
1789 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
1790 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
1791 or else NT (N).Nkind = N_Goto_Statement
1792 or else NT (N).Nkind = N_Object_Renaming_Declaration
1793 or else NT (N).Nkind = N_Package_Instantiation
1794 or else NT (N).Nkind = N_Package_Renaming_Declaration
1795 or else NT (N).Nkind = N_Procedure_Call_Statement
1796 or else NT (N).Nkind = N_Procedure_Instantiation
1797 or else NT (N).Nkind = N_Raise_Statement
1798 or else NT (N).Nkind = N_Requeue_Statement
1799 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
1800 or else NT (N).Nkind = N_Subunit
1801 or else NT (N).Nkind = N_Variant_Part
1802 or else NT (N).Nkind = N_With_Clause
1803 or else NT (N).Nkind = N_With_Type_Clause);
1808 (N : Node_Id) return List_Id is
1810 pragma Assert (False
1811 or else NT (N).Nkind = N_Abort_Statement
1812 or else NT (N).Nkind = N_Use_Package_Clause);
1816 function Next_Entity
1817 (N : Node_Id) return Node_Id is
1819 pragma Assert (False
1820 or else NT (N).Nkind = N_Defining_Character_Literal
1821 or else NT (N).Nkind = N_Defining_Identifier
1822 or else NT (N).Nkind = N_Defining_Operator_Symbol);
1826 function Next_Named_Actual
1827 (N : Node_Id) return Node_Id is
1829 pragma Assert (False
1830 or else NT (N).Nkind = N_Parameter_Association);
1832 end Next_Named_Actual;
1834 function Next_Rep_Item
1835 (N : Node_Id) return Node_Id is
1837 pragma Assert (False
1838 or else NT (N).Nkind = N_Attribute_Definition_Clause
1839 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1840 or else NT (N).Nkind = N_Pragma
1841 or else NT (N).Nkind = N_Record_Representation_Clause);
1845 function Next_Use_Clause
1846 (N : Node_Id) return Node_Id is
1848 pragma Assert (False
1849 or else NT (N).Nkind = N_Use_Package_Clause
1850 or else NT (N).Nkind = N_Use_Type_Clause);
1852 end Next_Use_Clause;
1854 function No_Ctrl_Actions
1855 (N : Node_Id) return Boolean is
1857 pragma Assert (False
1858 or else NT (N).Nkind = N_Assignment_Statement);
1860 end No_Ctrl_Actions;
1862 function No_Elaboration_Check
1863 (N : Node_Id) return Boolean is
1865 pragma Assert (False
1866 or else NT (N).Nkind = N_Function_Call
1867 or else NT (N).Nkind = N_Procedure_Call_Statement);
1869 end No_Elaboration_Check;
1871 function No_Entities_Ref_In_Spec
1872 (N : Node_Id) return Boolean is
1874 pragma Assert (False
1875 or else NT (N).Nkind = N_With_Clause);
1877 end No_Entities_Ref_In_Spec;
1879 function No_Initialization
1880 (N : Node_Id) return Boolean is
1882 pragma Assert (False
1883 or else NT (N).Nkind = N_Allocator
1884 or else NT (N).Nkind = N_Object_Declaration);
1886 end No_Initialization;
1888 function No_Truncation
1889 (N : Node_Id) return Boolean is
1891 pragma Assert (False
1892 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1896 function Null_Present
1897 (N : Node_Id) return Boolean is
1899 pragma Assert (False
1900 or else NT (N).Nkind = N_Component_List
1901 or else NT (N).Nkind = N_Procedure_Specification
1902 or else NT (N).Nkind = N_Record_Definition);
1906 function Null_Exclusion_Present
1907 (N : Node_Id) return Boolean is
1909 pragma Assert (False
1910 or else NT (N).Nkind = N_Access_Definition
1911 or else NT (N).Nkind = N_Access_Function_Definition
1912 or else NT (N).Nkind = N_Access_Procedure_Definition
1913 or else NT (N).Nkind = N_Access_To_Object_Definition
1914 or else NT (N).Nkind = N_Allocator
1915 or else NT (N).Nkind = N_Component_Definition
1916 or else NT (N).Nkind = N_Derived_Type_Definition
1917 or else NT (N).Nkind = N_Discriminant_Specification
1918 or else NT (N).Nkind = N_Object_Declaration
1919 or else NT (N).Nkind = N_Parameter_Specification
1920 or else NT (N).Nkind = N_Subtype_Declaration);
1922 end Null_Exclusion_Present;
1924 function Null_Record_Present
1925 (N : Node_Id) return Boolean is
1927 pragma Assert (False
1928 or else NT (N).Nkind = N_Aggregate
1929 or else NT (N).Nkind = N_Extension_Aggregate);
1931 end Null_Record_Present;
1933 function Object_Definition
1934 (N : Node_Id) return Node_Id is
1936 pragma Assert (False
1937 or else NT (N).Nkind = N_Object_Declaration);
1939 end Object_Definition;
1941 function Original_Discriminant
1942 (N : Node_Id) return Node_Id is
1944 pragma Assert (False
1945 or else NT (N).Nkind = N_Identifier);
1947 end Original_Discriminant;
1949 function Original_Entity
1950 (N : Node_Id) return Entity_Id is
1952 pragma Assert (False
1953 or else NT (N).Nkind = N_Integer_Literal
1954 or else NT (N).Nkind = N_Real_Literal);
1956 end Original_Entity;
1958 function Others_Discrete_Choices
1959 (N : Node_Id) return List_Id is
1961 pragma Assert (False
1962 or else NT (N).Nkind = N_Others_Choice);
1964 end Others_Discrete_Choices;
1966 function Out_Present
1967 (N : Node_Id) return Boolean is
1969 pragma Assert (False
1970 or else NT (N).Nkind = N_Formal_Object_Declaration
1971 or else NT (N).Nkind = N_Parameter_Specification);
1975 function Parameter_Associations
1976 (N : Node_Id) return List_Id is
1978 pragma Assert (False
1979 or else NT (N).Nkind = N_Entry_Call_Statement
1980 or else NT (N).Nkind = N_Function_Call
1981 or else NT (N).Nkind = N_Procedure_Call_Statement);
1983 end Parameter_Associations;
1985 function Parameter_List_Truncated
1986 (N : Node_Id) return Boolean is
1988 pragma Assert (False
1989 or else NT (N).Nkind = N_Function_Call
1990 or else NT (N).Nkind = N_Procedure_Call_Statement);
1992 end Parameter_List_Truncated;
1994 function Parameter_Specifications
1995 (N : Node_Id) return List_Id is
1997 pragma Assert (False
1998 or else NT (N).Nkind = N_Accept_Statement
1999 or else NT (N).Nkind = N_Access_Function_Definition
2000 or else NT (N).Nkind = N_Access_Procedure_Definition
2001 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2002 or else NT (N).Nkind = N_Entry_Declaration
2003 or else NT (N).Nkind = N_Function_Specification
2004 or else NT (N).Nkind = N_Procedure_Specification);
2006 end Parameter_Specifications;
2008 function Parameter_Type
2009 (N : Node_Id) return Node_Id is
2011 pragma Assert (False
2012 or else NT (N).Nkind = N_Parameter_Specification);
2016 function Parent_Spec
2017 (N : Node_Id) return Node_Id is
2019 pragma Assert (False
2020 or else NT (N).Nkind = N_Function_Instantiation
2021 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2022 or else NT (N).Nkind = N_Generic_Package_Declaration
2023 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2024 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2025 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2026 or else NT (N).Nkind = N_Package_Declaration
2027 or else NT (N).Nkind = N_Package_Instantiation
2028 or else NT (N).Nkind = N_Package_Renaming_Declaration
2029 or else NT (N).Nkind = N_Procedure_Instantiation
2030 or else NT (N).Nkind = N_Subprogram_Declaration
2031 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2036 (N : Node_Id) return Node_Id is
2038 pragma Assert (False
2039 or else NT (N).Nkind = N_Component_Clause);
2043 function Pragma_Argument_Associations
2044 (N : Node_Id) return List_Id is
2046 pragma Assert (False
2047 or else NT (N).Nkind = N_Pragma);
2049 end Pragma_Argument_Associations;
2051 function Pragmas_After
2052 (N : Node_Id) return List_Id is
2054 pragma Assert (False
2055 or else NT (N).Nkind = N_Compilation_Unit_Aux
2056 or else NT (N).Nkind = N_Terminate_Alternative);
2060 function Pragmas_Before
2061 (N : Node_Id) return List_Id is
2063 pragma Assert (False
2064 or else NT (N).Nkind = N_Accept_Alternative
2065 or else NT (N).Nkind = N_Delay_Alternative
2066 or else NT (N).Nkind = N_Entry_Call_Alternative
2067 or else NT (N).Nkind = N_Mod_Clause
2068 or else NT (N).Nkind = N_Terminate_Alternative
2069 or else NT (N).Nkind = N_Triggering_Alternative);
2074 (N : Node_Id) return Node_Id is
2076 pragma Assert (False
2077 or else NT (N).Nkind = N_Attribute_Reference
2078 or else NT (N).Nkind = N_Expanded_Name
2079 or else NT (N).Nkind = N_Explicit_Dereference
2080 or else NT (N).Nkind = N_Indexed_Component
2081 or else NT (N).Nkind = N_Reference
2082 or else NT (N).Nkind = N_Selected_Component
2083 or else NT (N).Nkind = N_Slice);
2087 function Present_Expr
2088 (N : Node_Id) return Uint is
2090 pragma Assert (False
2091 or else NT (N).Nkind = N_Variant);
2096 (N : Node_Id) return Boolean is
2098 pragma Assert (False
2099 or else NT (N).Nkind = N_Component_Declaration
2100 or else NT (N).Nkind = N_Discriminant_Specification
2101 or else NT (N).Nkind = N_Exception_Declaration
2102 or else NT (N).Nkind = N_Formal_Object_Declaration
2103 or else NT (N).Nkind = N_Number_Declaration
2104 or else NT (N).Nkind = N_Object_Declaration
2105 or else NT (N).Nkind = N_Parameter_Specification);
2109 function Print_In_Hex
2110 (N : Node_Id) return Boolean is
2112 pragma Assert (False
2113 or else NT (N).Nkind = N_Integer_Literal);
2117 function Private_Declarations
2118 (N : Node_Id) return List_Id is
2120 pragma Assert (False
2121 or else NT (N).Nkind = N_Package_Specification
2122 or else NT (N).Nkind = N_Protected_Definition
2123 or else NT (N).Nkind = N_Task_Definition);
2125 end Private_Declarations;
2127 function Private_Present
2128 (N : Node_Id) return Boolean is
2130 pragma Assert (False
2131 or else NT (N).Nkind = N_Compilation_Unit
2132 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2133 or else NT (N).Nkind = N_With_Clause);
2135 end Private_Present;
2137 function Procedure_To_Call
2138 (N : Node_Id) return Node_Id is
2140 pragma Assert (False
2141 or else NT (N).Nkind = N_Allocator
2142 or else NT (N).Nkind = N_Free_Statement
2143 or else NT (N).Nkind = N_Return_Statement);
2145 end Procedure_To_Call;
2147 function Proper_Body
2148 (N : Node_Id) return Node_Id is
2150 pragma Assert (False
2151 or else NT (N).Nkind = N_Subunit);
2155 function Protected_Definition
2156 (N : Node_Id) return Node_Id is
2158 pragma Assert (False
2159 or else NT (N).Nkind = N_Protected_Type_Declaration
2160 or else NT (N).Nkind = N_Single_Protected_Declaration);
2162 end Protected_Definition;
2164 function Protected_Present
2165 (N : Node_Id) return Boolean is
2167 pragma Assert (False
2168 or else NT (N).Nkind = N_Access_Function_Definition
2169 or else NT (N).Nkind = N_Access_Procedure_Definition
2170 or else NT (N).Nkind = N_Derived_Type_Definition
2171 or else NT (N).Nkind = N_Record_Definition);
2173 end Protected_Present;
2175 function Raises_Constraint_Error
2176 (N : Node_Id) return Boolean is
2178 pragma Assert (False
2179 or else NT (N).Nkind in N_Subexpr);
2181 end Raises_Constraint_Error;
2183 function Range_Constraint
2184 (N : Node_Id) return Node_Id is
2186 pragma Assert (False
2187 or else NT (N).Nkind = N_Delta_Constraint
2188 or else NT (N).Nkind = N_Digits_Constraint);
2190 end Range_Constraint;
2192 function Range_Expression
2193 (N : Node_Id) return Node_Id is
2195 pragma Assert (False
2196 or else NT (N).Nkind = N_Range_Constraint);
2198 end Range_Expression;
2200 function Real_Range_Specification
2201 (N : Node_Id) return Node_Id is
2203 pragma Assert (False
2204 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2205 or else NT (N).Nkind = N_Floating_Point_Definition
2206 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2208 end Real_Range_Specification;
2211 (N : Node_Id) return Ureal is
2213 pragma Assert (False
2214 or else NT (N).Nkind = N_Real_Literal);
2219 (N : Node_Id) return Uint is
2221 pragma Assert (False
2222 or else NT (N).Nkind = N_Raise_Constraint_Error
2223 or else NT (N).Nkind = N_Raise_Program_Error
2224 or else NT (N).Nkind = N_Raise_Storage_Error);
2228 function Record_Extension_Part
2229 (N : Node_Id) return Node_Id is
2231 pragma Assert (False
2232 or else NT (N).Nkind = N_Derived_Type_Definition);
2234 end Record_Extension_Part;
2236 function Redundant_Use
2237 (N : Node_Id) return Boolean is
2239 pragma Assert (False
2240 or else NT (N).Nkind = N_Attribute_Reference
2241 or else NT (N).Nkind = N_Expanded_Name
2242 or else NT (N).Nkind = N_Identifier);
2246 function Return_Type
2247 (N : Node_Id) return Node_Id is
2249 pragma Assert (False
2250 or else NT (N).Nkind = N_Return_Statement);
2254 function Reverse_Present
2255 (N : Node_Id) return Boolean is
2257 pragma Assert (False
2258 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2260 end Reverse_Present;
2263 (N : Node_Id) return Node_Id is
2265 pragma Assert (False
2266 or else NT (N).Nkind in N_Op
2267 or else NT (N).Nkind = N_And_Then
2268 or else NT (N).Nkind = N_In
2269 or else NT (N).Nkind = N_Not_In
2270 or else NT (N).Nkind = N_Or_Else);
2274 function Rounded_Result
2275 (N : Node_Id) return Boolean is
2277 pragma Assert (False
2278 or else NT (N).Nkind = N_Op_Divide
2279 or else NT (N).Nkind = N_Op_Multiply
2280 or else NT (N).Nkind = N_Type_Conversion);
2285 (N : Node_Id) return Node_Id is
2287 pragma Assert (False
2288 or else NT (N).Nkind = N_Defining_Character_Literal
2289 or else NT (N).Nkind = N_Defining_Identifier
2290 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2294 function Select_Alternatives
2295 (N : Node_Id) return List_Id is
2297 pragma Assert (False
2298 or else NT (N).Nkind = N_Selective_Accept);
2300 end Select_Alternatives;
2302 function Selector_Name
2303 (N : Node_Id) return Node_Id is
2305 pragma Assert (False
2306 or else NT (N).Nkind = N_Expanded_Name
2307 or else NT (N).Nkind = N_Generic_Association
2308 or else NT (N).Nkind = N_Parameter_Association
2309 or else NT (N).Nkind = N_Selected_Component);
2313 function Selector_Names
2314 (N : Node_Id) return List_Id is
2316 pragma Assert (False
2317 or else NT (N).Nkind = N_Discriminant_Association);
2321 function Shift_Count_OK
2322 (N : Node_Id) return Boolean is
2324 pragma Assert (False
2325 or else NT (N).Nkind = N_Op_Rotate_Left
2326 or else NT (N).Nkind = N_Op_Rotate_Right
2327 or else NT (N).Nkind = N_Op_Shift_Left
2328 or else NT (N).Nkind = N_Op_Shift_Right
2329 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2333 function Source_Type
2334 (N : Node_Id) return Entity_Id is
2336 pragma Assert (False
2337 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2341 function Specification
2342 (N : Node_Id) return Node_Id is
2344 pragma Assert (False
2345 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2346 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2347 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2348 or else NT (N).Nkind = N_Generic_Package_Declaration
2349 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2350 or else NT (N).Nkind = N_Package_Declaration
2351 or else NT (N).Nkind = N_Subprogram_Body
2352 or else NT (N).Nkind = N_Subprogram_Body_Stub
2353 or else NT (N).Nkind = N_Subprogram_Declaration
2354 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2359 (N : Node_Id) return List_Id is
2361 pragma Assert (False
2362 or else NT (N).Nkind = N_Abortable_Part
2363 or else NT (N).Nkind = N_Accept_Alternative
2364 or else NT (N).Nkind = N_Case_Statement_Alternative
2365 or else NT (N).Nkind = N_Delay_Alternative
2366 or else NT (N).Nkind = N_Entry_Call_Alternative
2367 or else NT (N).Nkind = N_Exception_Handler
2368 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2369 or else NT (N).Nkind = N_Loop_Statement
2370 or else NT (N).Nkind = N_Triggering_Alternative);
2374 function Static_Processing_OK
2375 (N : Node_Id) return Boolean is
2377 pragma Assert (False
2378 or else NT (N).Nkind = N_Aggregate);
2380 end Static_Processing_OK;
2382 function Storage_Pool
2383 (N : Node_Id) return Node_Id is
2385 pragma Assert (False
2386 or else NT (N).Nkind = N_Allocator
2387 or else NT (N).Nkind = N_Free_Statement
2388 or else NT (N).Nkind = N_Return_Statement);
2393 (N : Node_Id) return String_Id is
2395 pragma Assert (False
2396 or else NT (N).Nkind = N_Operator_Symbol
2397 or else NT (N).Nkind = N_String_Literal);
2401 function Subtype_Indication
2402 (N : Node_Id) return Node_Id is
2404 pragma Assert (False
2405 or else NT (N).Nkind = N_Access_To_Object_Definition
2406 or else NT (N).Nkind = N_Component_Definition
2407 or else NT (N).Nkind = N_Derived_Type_Definition
2408 or else NT (N).Nkind = N_Private_Extension_Declaration
2409 or else NT (N).Nkind = N_Subtype_Declaration);
2411 end Subtype_Indication;
2413 function Subtype_Mark
2414 (N : Node_Id) return Node_Id is
2416 pragma Assert (False
2417 or else NT (N).Nkind = N_Access_Definition
2418 or else NT (N).Nkind = N_Access_Function_Definition
2419 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2420 or else NT (N).Nkind = N_Formal_Object_Declaration
2421 or else NT (N).Nkind = N_Function_Specification
2422 or else NT (N).Nkind = N_Object_Renaming_Declaration
2423 or else NT (N).Nkind = N_Qualified_Expression
2424 or else NT (N).Nkind = N_Subtype_Indication
2425 or else NT (N).Nkind = N_Type_Conversion
2426 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2430 function Subtype_Marks
2431 (N : Node_Id) return List_Id is
2433 pragma Assert (False
2434 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2435 or else NT (N).Nkind = N_Use_Type_Clause);
2439 function Synchronized_Present
2440 (N : Node_Id) return Boolean is
2442 pragma Assert (False
2443 or else NT (N).Nkind = N_Derived_Type_Definition
2444 or else NT (N).Nkind = N_Record_Definition);
2446 end Synchronized_Present;
2448 function Tagged_Present
2449 (N : Node_Id) return Boolean is
2451 pragma Assert (False
2452 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2453 or else NT (N).Nkind = N_Private_Type_Declaration
2454 or else NT (N).Nkind = N_Record_Definition
2455 or else NT (N).Nkind = N_With_Type_Clause);
2459 function Target_Type
2460 (N : Node_Id) return Entity_Id is
2462 pragma Assert (False
2463 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2467 function Task_Definition
2468 (N : Node_Id) return Node_Id is
2470 pragma Assert (False
2471 or else NT (N).Nkind = N_Single_Task_Declaration
2472 or else NT (N).Nkind = N_Task_Type_Declaration);
2474 end Task_Definition;
2476 function Task_Present
2477 (N : Node_Id) return Boolean is
2479 pragma Assert (False
2480 or else NT (N).Nkind = N_Derived_Type_Definition
2481 or else NT (N).Nkind = N_Record_Definition);
2485 function Then_Actions
2486 (N : Node_Id) return List_Id is
2488 pragma Assert (False
2489 or else NT (N).Nkind = N_Conditional_Expression);
2493 function Then_Statements
2494 (N : Node_Id) return List_Id is
2496 pragma Assert (False
2497 or else NT (N).Nkind = N_Elsif_Part
2498 or else NT (N).Nkind = N_If_Statement);
2500 end Then_Statements;
2502 function Treat_Fixed_As_Integer
2503 (N : Node_Id) return Boolean is
2505 pragma Assert (False
2506 or else NT (N).Nkind = N_Op_Divide
2507 or else NT (N).Nkind = N_Op_Mod
2508 or else NT (N).Nkind = N_Op_Multiply
2509 or else NT (N).Nkind = N_Op_Rem);
2511 end Treat_Fixed_As_Integer;
2513 function Triggering_Alternative
2514 (N : Node_Id) return Node_Id is
2516 pragma Assert (False
2517 or else NT (N).Nkind = N_Asynchronous_Select);
2519 end Triggering_Alternative;
2521 function Triggering_Statement
2522 (N : Node_Id) return Node_Id is
2524 pragma Assert (False
2525 or else NT (N).Nkind = N_Triggering_Alternative);
2527 end Triggering_Statement;
2530 (N : Node_Id) return Elist_Id is
2532 pragma Assert (False
2533 or else NT (N).Nkind = N_Freeze_Entity);
2537 function Type_Definition
2538 (N : Node_Id) return Node_Id is
2540 pragma Assert (False
2541 or else NT (N).Nkind = N_Full_Type_Declaration);
2543 end Type_Definition;
2546 (N : Node_Id) return Node_Id is
2548 pragma Assert (False
2549 or else NT (N).Nkind = N_Compilation_Unit);
2553 function Unknown_Discriminants_Present
2554 (N : Node_Id) return Boolean is
2556 pragma Assert (False
2557 or else NT (N).Nkind = N_Formal_Type_Declaration
2558 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2559 or else NT (N).Nkind = N_Private_Extension_Declaration
2560 or else NT (N).Nkind = N_Private_Type_Declaration);
2562 end Unknown_Discriminants_Present;
2564 function Unreferenced_In_Spec
2565 (N : Node_Id) return Boolean is
2567 pragma Assert (False
2568 or else NT (N).Nkind = N_With_Clause);
2570 end Unreferenced_In_Spec;
2572 function Variant_Part
2573 (N : Node_Id) return Node_Id is
2575 pragma Assert (False
2576 or else NT (N).Nkind = N_Component_List);
2581 (N : Node_Id) return List_Id is
2583 pragma Assert (False
2584 or else NT (N).Nkind = N_Variant_Part);
2588 function Visible_Declarations
2589 (N : Node_Id) return List_Id is
2591 pragma Assert (False
2592 or else NT (N).Nkind = N_Package_Specification
2593 or else NT (N).Nkind = N_Protected_Definition
2594 or else NT (N).Nkind = N_Task_Definition);
2596 end Visible_Declarations;
2598 function Was_Originally_Stub
2599 (N : Node_Id) return Boolean is
2601 pragma Assert (False
2602 or else NT (N).Nkind = N_Package_Body
2603 or else NT (N).Nkind = N_Protected_Body
2604 or else NT (N).Nkind = N_Subprogram_Body
2605 or else NT (N).Nkind = N_Task_Body);
2607 end Was_Originally_Stub;
2609 function Zero_Cost_Handling
2610 (N : Node_Id) return Boolean is
2612 pragma Assert (False
2613 or else NT (N).Nkind = N_Exception_Handler
2614 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2616 end Zero_Cost_Handling;
2618 --------------------------
2619 -- Field Set Procedures --
2620 --------------------------
2622 procedure Set_ABE_Is_Certain
2623 (N : Node_Id; Val : Boolean := True) is
2625 pragma Assert (False
2626 or else NT (N).Nkind = N_Formal_Package_Declaration
2627 or else NT (N).Nkind = N_Function_Call
2628 or else NT (N).Nkind = N_Function_Instantiation
2629 or else NT (N).Nkind = N_Package_Instantiation
2630 or else NT (N).Nkind = N_Procedure_Call_Statement
2631 or else NT (N).Nkind = N_Procedure_Instantiation);
2632 Set_Flag18 (N, Val);
2633 end Set_ABE_Is_Certain;
2635 procedure Set_Abort_Present
2636 (N : Node_Id; Val : Boolean := True) is
2638 pragma Assert (False
2639 or else NT (N).Nkind = N_Requeue_Statement);
2640 Set_Flag15 (N, Val);
2641 end Set_Abort_Present;
2643 procedure Set_Abortable_Part
2644 (N : Node_Id; Val : Node_Id) is
2646 pragma Assert (False
2647 or else NT (N).Nkind = N_Asynchronous_Select);
2648 Set_Node2_With_Parent (N, Val);
2649 end Set_Abortable_Part;
2651 procedure Set_Abstract_Present
2652 (N : Node_Id; Val : Boolean := True) is
2654 pragma Assert (False
2655 or else NT (N).Nkind = N_Derived_Type_Definition
2656 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2657 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2658 or else NT (N).Nkind = N_Private_Extension_Declaration
2659 or else NT (N).Nkind = N_Private_Type_Declaration
2660 or else NT (N).Nkind = N_Record_Definition);
2662 end Set_Abstract_Present;
2664 procedure Set_Accept_Handler_Records
2665 (N : Node_Id; Val : List_Id) is
2667 pragma Assert (False
2668 or else NT (N).Nkind = N_Accept_Alternative);
2669 Set_List5 (N, Val); -- semantic field, no parent set
2670 end Set_Accept_Handler_Records;
2672 procedure Set_Accept_Statement
2673 (N : Node_Id; Val : Node_Id) is
2675 pragma Assert (False
2676 or else NT (N).Nkind = N_Accept_Alternative);
2677 Set_Node2_With_Parent (N, Val);
2678 end Set_Accept_Statement;
2680 procedure Set_Access_Definition
2681 (N : Node_Id; Val : Node_Id) is
2683 pragma Assert (False
2684 or else NT (N).Nkind = N_Component_Definition
2685 or else NT (N).Nkind = N_Object_Renaming_Declaration);
2686 Set_Node3_With_Parent (N, Val);
2687 end Set_Access_Definition;
2689 procedure Set_Access_To_Subprogram_Definition
2690 (N : Node_Id; Val : Node_Id) is
2692 pragma Assert (False
2693 or else NT (N).Nkind = N_Access_Definition);
2694 Set_Node3_With_Parent (N, Val);
2695 end Set_Access_To_Subprogram_Definition;
2697 procedure Set_Access_Types_To_Process
2698 (N : Node_Id; Val : Elist_Id) is
2700 pragma Assert (False
2701 or else NT (N).Nkind = N_Freeze_Entity);
2702 Set_Elist2 (N, Val); -- semantic field, no parent set
2703 end Set_Access_Types_To_Process;
2705 procedure Set_Actions
2706 (N : Node_Id; Val : List_Id) is
2708 pragma Assert (False
2709 or else NT (N).Nkind = N_And_Then
2710 or else NT (N).Nkind = N_Compilation_Unit_Aux
2711 or else NT (N).Nkind = N_Freeze_Entity
2712 or else NT (N).Nkind = N_Or_Else);
2713 Set_List1_With_Parent (N, Val);
2716 procedure Set_Activation_Chain_Entity
2717 (N : Node_Id; Val : Node_Id) is
2719 pragma Assert (False
2720 or else NT (N).Nkind = N_Block_Statement
2721 or else NT (N).Nkind = N_Entry_Body
2722 or else NT (N).Nkind = N_Generic_Package_Declaration
2723 or else NT (N).Nkind = N_Package_Declaration
2724 or else NT (N).Nkind = N_Subprogram_Body
2725 or else NT (N).Nkind = N_Task_Body);
2726 Set_Node3 (N, Val); -- semantic field, no parent set
2727 end Set_Activation_Chain_Entity;
2729 procedure Set_Acts_As_Spec
2730 (N : Node_Id; Val : Boolean := True) is
2732 pragma Assert (False
2733 or else NT (N).Nkind = N_Compilation_Unit
2734 or else NT (N).Nkind = N_Subprogram_Body);
2736 end Set_Acts_As_Spec;
2738 procedure Set_Aggregate_Bounds
2739 (N : Node_Id; Val : Node_Id) is
2741 pragma Assert (False
2742 or else NT (N).Nkind = N_Aggregate);
2743 Set_Node3 (N, Val); -- semantic field, no parent set
2744 end Set_Aggregate_Bounds;
2746 procedure Set_Aliased_Present
2747 (N : Node_Id; Val : Boolean := True) is
2749 pragma Assert (False
2750 or else NT (N).Nkind = N_Component_Definition
2751 or else NT (N).Nkind = N_Object_Declaration);
2753 end Set_Aliased_Present;
2755 procedure Set_All_Others
2756 (N : Node_Id; Val : Boolean := True) is
2758 pragma Assert (False
2759 or else NT (N).Nkind = N_Others_Choice);
2760 Set_Flag11 (N, Val);
2763 procedure Set_All_Present
2764 (N : Node_Id; Val : Boolean := True) is
2766 pragma Assert (False
2767 or else NT (N).Nkind = N_Access_Definition
2768 or else NT (N).Nkind = N_Access_To_Object_Definition);
2769 Set_Flag15 (N, Val);
2770 end Set_All_Present;
2772 procedure Set_Alternatives
2773 (N : Node_Id; Val : List_Id) is
2775 pragma Assert (False
2776 or else NT (N).Nkind = N_Case_Statement);
2777 Set_List4_With_Parent (N, Val);
2778 end Set_Alternatives;
2780 procedure Set_Ancestor_Part
2781 (N : Node_Id; Val : Node_Id) is
2783 pragma Assert (False
2784 or else NT (N).Nkind = N_Extension_Aggregate);
2785 Set_Node3_With_Parent (N, Val);
2786 end Set_Ancestor_Part;
2788 procedure Set_Array_Aggregate
2789 (N : Node_Id; Val : Node_Id) is
2791 pragma Assert (False
2792 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
2793 Set_Node3_With_Parent (N, Val);
2794 end Set_Array_Aggregate;
2796 procedure Set_Assignment_OK
2797 (N : Node_Id; Val : Boolean := True) is
2799 pragma Assert (False
2800 or else NT (N).Nkind = N_Object_Declaration
2801 or else NT (N).Nkind in N_Subexpr);
2802 Set_Flag15 (N, Val);
2803 end Set_Assignment_OK;
2805 procedure Set_Associated_Node
2806 (N : Node_Id; Val : Node_Id) is
2808 pragma Assert (False
2809 or else NT (N).Nkind in N_Has_Entity
2810 or else NT (N).Nkind = N_Aggregate
2811 or else NT (N).Nkind = N_Extension_Aggregate
2812 or else NT (N).Nkind = N_Selected_Component);
2813 Set_Node4 (N, Val); -- semantic field, no parent set
2814 end Set_Associated_Node;
2816 procedure Set_At_End_Proc
2817 (N : Node_Id; Val : Node_Id) is
2819 pragma Assert (False
2820 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2822 end Set_At_End_Proc;
2824 procedure Set_Attribute_Name
2825 (N : Node_Id; Val : Name_Id) is
2827 pragma Assert (False
2828 or else NT (N).Nkind = N_Attribute_Reference);
2830 end Set_Attribute_Name;
2832 procedure Set_Aux_Decls_Node
2833 (N : Node_Id; Val : Node_Id) is
2835 pragma Assert (False
2836 or else NT (N).Nkind = N_Compilation_Unit);
2837 Set_Node5_With_Parent (N, Val);
2838 end Set_Aux_Decls_Node;
2840 procedure Set_Backwards_OK
2841 (N : Node_Id; Val : Boolean := True) is
2843 pragma Assert (False
2844 or else NT (N).Nkind = N_Assignment_Statement);
2846 end Set_Backwards_OK;
2848 procedure Set_Bad_Is_Detected
2849 (N : Node_Id; Val : Boolean := True) is
2851 pragma Assert (False
2852 or else NT (N).Nkind = N_Subprogram_Body);
2853 Set_Flag15 (N, Val);
2854 end Set_Bad_Is_Detected;
2856 procedure Set_Body_Required
2857 (N : Node_Id; Val : Boolean := True) is
2859 pragma Assert (False
2860 or else NT (N).Nkind = N_Compilation_Unit);
2861 Set_Flag13 (N, Val);
2862 end Set_Body_Required;
2864 procedure Set_Body_To_Inline
2865 (N : Node_Id; Val : Node_Id) is
2867 pragma Assert (False
2868 or else NT (N).Nkind = N_Subprogram_Declaration);
2870 end Set_Body_To_Inline;
2872 procedure Set_Box_Present
2873 (N : Node_Id; Val : Boolean := True) is
2875 pragma Assert (False
2876 or else NT (N).Nkind = N_Component_Association
2877 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2878 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2879 or else NT (N).Nkind = N_Formal_Package_Declaration);
2880 Set_Flag15 (N, Val);
2881 end Set_Box_Present;
2883 procedure Set_By_Ref
2884 (N : Node_Id; Val : Boolean := True) is
2886 pragma Assert (False
2887 or else NT (N).Nkind = N_Return_Statement);
2891 procedure Set_Char_Literal_Value
2892 (N : Node_Id; Val : Uint) is
2894 pragma Assert (False
2895 or else NT (N).Nkind = N_Character_Literal);
2897 end Set_Char_Literal_Value;
2900 (N : Node_Id; Val : Name_Id) is
2902 pragma Assert (False
2903 or else NT (N).Nkind in N_Has_Chars);
2907 procedure Set_Check_Address_Alignment
2908 (N : Node_Id; Val : Boolean := True) is
2910 pragma Assert (False
2911 or else NT (N).Nkind = N_Attribute_Definition_Clause);
2912 Set_Flag11 (N, Val);
2913 end Set_Check_Address_Alignment;
2915 procedure Set_Choice_Parameter
2916 (N : Node_Id; Val : Node_Id) is
2918 pragma Assert (False
2919 or else NT (N).Nkind = N_Exception_Handler);
2920 Set_Node2_With_Parent (N, Val);
2921 end Set_Choice_Parameter;
2923 procedure Set_Choices
2924 (N : Node_Id; Val : List_Id) is
2926 pragma Assert (False
2927 or else NT (N).Nkind = N_Component_Association);
2928 Set_List1_With_Parent (N, Val);
2931 procedure Set_Compile_Time_Known_Aggregate
2932 (N : Node_Id; Val : Boolean := True) is
2934 pragma Assert (False
2935 or else NT (N).Nkind = N_Aggregate);
2936 Set_Flag18 (N, Val);
2937 end Set_Compile_Time_Known_Aggregate;
2939 procedure Set_Component_Associations
2940 (N : Node_Id; Val : List_Id) is
2942 pragma Assert (False
2943 or else NT (N).Nkind = N_Aggregate
2944 or else NT (N).Nkind = N_Extension_Aggregate);
2945 Set_List2_With_Parent (N, Val);
2946 end Set_Component_Associations;
2948 procedure Set_Component_Clauses
2949 (N : Node_Id; Val : List_Id) is
2951 pragma Assert (False
2952 or else NT (N).Nkind = N_Record_Representation_Clause);
2953 Set_List3_With_Parent (N, Val);
2954 end Set_Component_Clauses;
2956 procedure Set_Component_Definition
2957 (N : Node_Id; Val : Node_Id) is
2959 pragma Assert (False
2960 or else NT (N).Nkind = N_Component_Declaration
2961 or else NT (N).Nkind = N_Constrained_Array_Definition
2962 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
2963 Set_Node4_With_Parent (N, Val);
2964 end Set_Component_Definition;
2966 procedure Set_Component_Items
2967 (N : Node_Id; Val : List_Id) is
2969 pragma Assert (False
2970 or else NT (N).Nkind = N_Component_List);
2971 Set_List3_With_Parent (N, Val);
2972 end Set_Component_Items;
2974 procedure Set_Component_List
2975 (N : Node_Id; Val : Node_Id) is
2977 pragma Assert (False
2978 or else NT (N).Nkind = N_Record_Definition
2979 or else NT (N).Nkind = N_Variant);
2980 Set_Node1_With_Parent (N, Val);
2981 end Set_Component_List;
2983 procedure Set_Component_Name
2984 (N : Node_Id; Val : Node_Id) is
2986 pragma Assert (False
2987 or else NT (N).Nkind = N_Component_Clause);
2988 Set_Node1_With_Parent (N, Val);
2989 end Set_Component_Name;
2991 procedure Set_Condition
2992 (N : Node_Id; Val : Node_Id) is
2994 pragma Assert (False
2995 or else NT (N).Nkind = N_Accept_Alternative
2996 or else NT (N).Nkind = N_Delay_Alternative
2997 or else NT (N).Nkind = N_Elsif_Part
2998 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2999 or else NT (N).Nkind = N_Exit_Statement
3000 or else NT (N).Nkind = N_If_Statement
3001 or else NT (N).Nkind = N_Iteration_Scheme
3002 or else NT (N).Nkind = N_Raise_Constraint_Error
3003 or else NT (N).Nkind = N_Raise_Program_Error
3004 or else NT (N).Nkind = N_Raise_Storage_Error
3005 or else NT (N).Nkind = N_Terminate_Alternative);
3006 Set_Node1_With_Parent (N, Val);
3009 procedure Set_Condition_Actions
3010 (N : Node_Id; Val : List_Id) is
3012 pragma Assert (False
3013 or else NT (N).Nkind = N_Elsif_Part
3014 or else NT (N).Nkind = N_Iteration_Scheme);
3015 Set_List3 (N, Val); -- semantic field, no parent set
3016 end Set_Condition_Actions;
3018 procedure Set_Config_Pragmas
3019 (N : Node_Id; Val : List_Id) is
3021 pragma Assert (False
3022 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3023 Set_List4_With_Parent (N, Val);
3024 end Set_Config_Pragmas;
3026 procedure Set_Constant_Present
3027 (N : Node_Id; Val : Boolean := True) is
3029 pragma Assert (False
3030 or else NT (N).Nkind = N_Access_Definition
3031 or else NT (N).Nkind = N_Access_To_Object_Definition
3032 or else NT (N).Nkind = N_Object_Declaration);
3033 Set_Flag17 (N, Val);
3034 end Set_Constant_Present;
3036 procedure Set_Constraint
3037 (N : Node_Id; Val : Node_Id) is
3039 pragma Assert (False
3040 or else NT (N).Nkind = N_Subtype_Indication);
3041 Set_Node3_With_Parent (N, Val);
3044 procedure Set_Constraints
3045 (N : Node_Id; Val : List_Id) is
3047 pragma Assert (False
3048 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3049 Set_List1_With_Parent (N, Val);
3050 end Set_Constraints;
3052 procedure Set_Context_Installed
3053 (N : Node_Id; Val : Boolean := True) is
3055 pragma Assert (False
3056 or else NT (N).Nkind = N_With_Clause);
3057 Set_Flag13 (N, Val);
3058 end Set_Context_Installed;
3060 procedure Set_Context_Items
3061 (N : Node_Id; Val : List_Id) is
3063 pragma Assert (False
3064 or else NT (N).Nkind = N_Compilation_Unit);
3065 Set_List1_With_Parent (N, Val);
3066 end Set_Context_Items;
3068 procedure Set_Controlling_Argument
3069 (N : Node_Id; Val : Node_Id) is
3071 pragma Assert (False
3072 or else NT (N).Nkind = N_Function_Call
3073 or else NT (N).Nkind = N_Procedure_Call_Statement);
3074 Set_Node1 (N, Val); -- semantic field, no parent set
3075 end Set_Controlling_Argument;
3077 procedure Set_Conversion_OK
3078 (N : Node_Id; Val : Boolean := True) is
3080 pragma Assert (False
3081 or else NT (N).Nkind = N_Type_Conversion);
3082 Set_Flag14 (N, Val);
3083 end Set_Conversion_OK;
3085 procedure Set_Corresponding_Body
3086 (N : Node_Id; Val : Node_Id) is
3088 pragma Assert (False
3089 or else NT (N).Nkind = N_Entry_Declaration
3090 or else NT (N).Nkind = N_Generic_Package_Declaration
3091 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3092 or else NT (N).Nkind = N_Package_Body_Stub
3093 or else NT (N).Nkind = N_Package_Declaration
3094 or else NT (N).Nkind = N_Protected_Body_Stub
3095 or else NT (N).Nkind = N_Protected_Type_Declaration
3096 or else NT (N).Nkind = N_Subprogram_Body_Stub
3097 or else NT (N).Nkind = N_Subprogram_Declaration
3098 or else NT (N).Nkind = N_Task_Body_Stub
3099 or else NT (N).Nkind = N_Task_Type_Declaration);
3100 Set_Node5 (N, Val); -- semantic field, no parent set
3101 end Set_Corresponding_Body;
3103 procedure Set_Corresponding_Formal_Spec
3104 (N : Node_Id; Val : Node_Id) is
3106 pragma Assert (False
3107 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3108 Set_Node3 (N, Val); -- semantic field, no parent set
3109 end Set_Corresponding_Formal_Spec;
3111 procedure Set_Corresponding_Generic_Association
3112 (N : Node_Id; Val : Node_Id) is
3114 pragma Assert (False
3115 or else NT (N).Nkind = N_Object_Declaration
3116 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3117 Set_Node5 (N, Val); -- semantic field, no parent set
3118 end Set_Corresponding_Generic_Association;
3120 procedure Set_Corresponding_Integer_Value
3121 (N : Node_Id; Val : Uint) is
3123 pragma Assert (False
3124 or else NT (N).Nkind = N_Real_Literal);
3125 Set_Uint4 (N, Val); -- semantic field, no parent set
3126 end Set_Corresponding_Integer_Value;
3128 procedure Set_Corresponding_Spec
3129 (N : Node_Id; Val : Node_Id) is
3131 pragma Assert (False
3132 or else NT (N).Nkind = N_Package_Body
3133 or else NT (N).Nkind = N_Protected_Body
3134 or else NT (N).Nkind = N_Subprogram_Body
3135 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3136 or else NT (N).Nkind = N_Task_Body
3137 or else NT (N).Nkind = N_With_Clause);
3138 Set_Node5 (N, Val); -- semantic field, no parent set
3139 end Set_Corresponding_Spec;
3141 procedure Set_Corresponding_Stub
3142 (N : Node_Id; Val : Node_Id) is
3144 pragma Assert (False
3145 or else NT (N).Nkind = N_Subunit);
3147 end Set_Corresponding_Stub;
3149 procedure Set_Dcheck_Function
3150 (N : Node_Id; Val : Entity_Id) is
3152 pragma Assert (False
3153 or else NT (N).Nkind = N_Variant);
3154 Set_Node5 (N, Val); -- semantic field, no parent set
3155 end Set_Dcheck_Function;
3157 procedure Set_Debug_Statement
3158 (N : Node_Id; Val : Node_Id) is
3160 pragma Assert (False
3161 or else NT (N).Nkind = N_Pragma);
3162 Set_Node3_With_Parent (N, Val);
3163 end Set_Debug_Statement;
3165 procedure Set_Declarations
3166 (N : Node_Id; Val : List_Id) is
3168 pragma Assert (False
3169 or else NT (N).Nkind = N_Accept_Statement
3170 or else NT (N).Nkind = N_Block_Statement
3171 or else NT (N).Nkind = N_Compilation_Unit_Aux
3172 or else NT (N).Nkind = N_Entry_Body
3173 or else NT (N).Nkind = N_Package_Body
3174 or else NT (N).Nkind = N_Protected_Body
3175 or else NT (N).Nkind = N_Subprogram_Body
3176 or else NT (N).Nkind = N_Task_Body);
3177 Set_List2_With_Parent (N, Val);
3178 end Set_Declarations;
3180 procedure Set_Default_Expression
3181 (N : Node_Id; Val : Node_Id) is
3183 pragma Assert (False
3184 or else NT (N).Nkind = N_Parameter_Specification);
3185 Set_Node5 (N, Val); -- semantic field, no parent set
3186 end Set_Default_Expression;
3188 procedure Set_Default_Name
3189 (N : Node_Id; Val : Node_Id) is
3191 pragma Assert (False
3192 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3193 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3194 Set_Node2_With_Parent (N, Val);
3195 end Set_Default_Name;
3197 procedure Set_Defining_Identifier
3198 (N : Node_Id; Val : Entity_Id) is
3200 pragma Assert (False
3201 or else NT (N).Nkind = N_Component_Declaration
3202 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3203 or else NT (N).Nkind = N_Discriminant_Specification
3204 or else NT (N).Nkind = N_Entry_Body
3205 or else NT (N).Nkind = N_Entry_Declaration
3206 or else NT (N).Nkind = N_Entry_Index_Specification
3207 or else NT (N).Nkind = N_Exception_Declaration
3208 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3209 or else NT (N).Nkind = N_Formal_Object_Declaration
3210 or else NT (N).Nkind = N_Formal_Package_Declaration
3211 or else NT (N).Nkind = N_Formal_Type_Declaration
3212 or else NT (N).Nkind = N_Full_Type_Declaration
3213 or else NT (N).Nkind = N_Implicit_Label_Declaration
3214 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3215 or else NT (N).Nkind = N_Loop_Parameter_Specification
3216 or else NT (N).Nkind = N_Number_Declaration
3217 or else NT (N).Nkind = N_Object_Declaration
3218 or else NT (N).Nkind = N_Object_Renaming_Declaration
3219 or else NT (N).Nkind = N_Package_Body_Stub
3220 or else NT (N).Nkind = N_Parameter_Specification
3221 or else NT (N).Nkind = N_Private_Extension_Declaration
3222 or else NT (N).Nkind = N_Private_Type_Declaration
3223 or else NT (N).Nkind = N_Protected_Body
3224 or else NT (N).Nkind = N_Protected_Body_Stub
3225 or else NT (N).Nkind = N_Protected_Type_Declaration
3226 or else NT (N).Nkind = N_Single_Protected_Declaration
3227 or else NT (N).Nkind = N_Single_Task_Declaration
3228 or else NT (N).Nkind = N_Subtype_Declaration
3229 or else NT (N).Nkind = N_Task_Body
3230 or else NT (N).Nkind = N_Task_Body_Stub
3231 or else NT (N).Nkind = N_Task_Type_Declaration);
3232 Set_Node1_With_Parent (N, Val);
3233 end Set_Defining_Identifier;
3235 procedure Set_Defining_Unit_Name
3236 (N : Node_Id; Val : Node_Id) is
3238 pragma Assert (False
3239 or else NT (N).Nkind = N_Function_Instantiation
3240 or else NT (N).Nkind = N_Function_Specification
3241 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3242 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3243 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3244 or else NT (N).Nkind = N_Package_Body
3245 or else NT (N).Nkind = N_Package_Instantiation
3246 or else NT (N).Nkind = N_Package_Renaming_Declaration
3247 or else NT (N).Nkind = N_Package_Specification
3248 or else NT (N).Nkind = N_Procedure_Instantiation
3249 or else NT (N).Nkind = N_Procedure_Specification);
3250 Set_Node1_With_Parent (N, Val);
3251 end Set_Defining_Unit_Name;
3253 procedure Set_Delay_Alternative
3254 (N : Node_Id; Val : Node_Id) is
3256 pragma Assert (False
3257 or else NT (N).Nkind = N_Timed_Entry_Call);
3258 Set_Node4_With_Parent (N, Val);
3259 end Set_Delay_Alternative;
3261 procedure Set_Delay_Finalize_Attach
3262 (N : Node_Id; Val : Boolean := True) is
3264 pragma Assert (False
3265 or else NT (N).Nkind = N_Object_Declaration);
3266 Set_Flag14 (N, Val);
3267 end Set_Delay_Finalize_Attach;
3269 procedure Set_Delay_Statement
3270 (N : Node_Id; Val : Node_Id) is
3272 pragma Assert (False
3273 or else NT (N).Nkind = N_Delay_Alternative);
3274 Set_Node2_With_Parent (N, Val);
3275 end Set_Delay_Statement;
3277 procedure Set_Delta_Expression
3278 (N : Node_Id; Val : Node_Id) is
3280 pragma Assert (False
3281 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3282 or else NT (N).Nkind = N_Delta_Constraint
3283 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3284 Set_Node3_With_Parent (N, Val);
3285 end Set_Delta_Expression;
3287 procedure Set_Digits_Expression
3288 (N : Node_Id; Val : Node_Id) is
3290 pragma Assert (False
3291 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3292 or else NT (N).Nkind = N_Digits_Constraint
3293 or else NT (N).Nkind = N_Floating_Point_Definition);
3294 Set_Node2_With_Parent (N, Val);
3295 end Set_Digits_Expression;
3297 procedure Set_Discr_Check_Funcs_Built
3298 (N : Node_Id; Val : Boolean := True) is
3300 pragma Assert (False
3301 or else NT (N).Nkind = N_Full_Type_Declaration);
3302 Set_Flag11 (N, Val);
3303 end Set_Discr_Check_Funcs_Built;
3305 procedure Set_Discrete_Choices
3306 (N : Node_Id; Val : List_Id) is
3308 pragma Assert (False
3309 or else NT (N).Nkind = N_Case_Statement_Alternative
3310 or else NT (N).Nkind = N_Variant);
3311 Set_List4_With_Parent (N, Val);
3312 end Set_Discrete_Choices;
3314 procedure Set_Discrete_Range
3315 (N : Node_Id; Val : Node_Id) is
3317 pragma Assert (False
3318 or else NT (N).Nkind = N_Slice);
3319 Set_Node4_With_Parent (N, Val);
3320 end Set_Discrete_Range;
3322 procedure Set_Discrete_Subtype_Definition
3323 (N : Node_Id; Val : Node_Id) is
3325 pragma Assert (False
3326 or else NT (N).Nkind = N_Entry_Declaration
3327 or else NT (N).Nkind = N_Entry_Index_Specification
3328 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3329 Set_Node4_With_Parent (N, Val);
3330 end Set_Discrete_Subtype_Definition;
3332 procedure Set_Discrete_Subtype_Definitions
3333 (N : Node_Id; Val : List_Id) is
3335 pragma Assert (False
3336 or else NT (N).Nkind = N_Constrained_Array_Definition);
3337 Set_List2_With_Parent (N, Val);
3338 end Set_Discrete_Subtype_Definitions;
3340 procedure Set_Discriminant_Specifications
3341 (N : Node_Id; Val : List_Id) is
3343 pragma Assert (False
3344 or else NT (N).Nkind = N_Formal_Type_Declaration
3345 or else NT (N).Nkind = N_Full_Type_Declaration
3346 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3347 or else NT (N).Nkind = N_Private_Extension_Declaration
3348 or else NT (N).Nkind = N_Private_Type_Declaration
3349 or else NT (N).Nkind = N_Protected_Type_Declaration
3350 or else NT (N).Nkind = N_Task_Type_Declaration);
3351 Set_List4_With_Parent (N, Val);
3352 end Set_Discriminant_Specifications;
3354 procedure Set_Discriminant_Type
3355 (N : Node_Id; Val : Node_Id) is
3357 pragma Assert (False
3358 or else NT (N).Nkind = N_Discriminant_Specification);
3359 Set_Node5_With_Parent (N, Val);
3360 end Set_Discriminant_Type;
3362 procedure Set_Do_Accessibility_Check
3363 (N : Node_Id; Val : Boolean := True) is
3365 pragma Assert (False
3366 or else NT (N).Nkind = N_Parameter_Specification);
3367 Set_Flag13 (N, Val);
3368 end Set_Do_Accessibility_Check;
3370 procedure Set_Do_Discriminant_Check
3371 (N : Node_Id; Val : Boolean := True) is
3373 pragma Assert (False
3374 or else NT (N).Nkind = N_Selected_Component);
3375 Set_Flag13 (N, Val);
3376 end Set_Do_Discriminant_Check;
3378 procedure Set_Do_Division_Check
3379 (N : Node_Id; Val : Boolean := True) is
3381 pragma Assert (False
3382 or else NT (N).Nkind = N_Op_Divide
3383 or else NT (N).Nkind = N_Op_Mod
3384 or else NT (N).Nkind = N_Op_Rem);
3385 Set_Flag13 (N, Val);
3386 end Set_Do_Division_Check;
3388 procedure Set_Do_Length_Check
3389 (N : Node_Id; Val : Boolean := True) is
3391 pragma Assert (False
3392 or else NT (N).Nkind = N_Assignment_Statement
3393 or else NT (N).Nkind = N_Op_And
3394 or else NT (N).Nkind = N_Op_Or
3395 or else NT (N).Nkind = N_Op_Xor
3396 or else NT (N).Nkind = N_Type_Conversion);
3398 end Set_Do_Length_Check;
3400 procedure Set_Do_Overflow_Check
3401 (N : Node_Id; Val : Boolean := True) is
3403 pragma Assert (False
3404 or else NT (N).Nkind in N_Op
3405 or else NT (N).Nkind = N_Attribute_Reference
3406 or else NT (N).Nkind = N_Type_Conversion);
3407 Set_Flag17 (N, Val);
3408 end Set_Do_Overflow_Check;
3410 procedure Set_Do_Range_Check
3411 (N : Node_Id; Val : Boolean := True) is
3413 pragma Assert (False
3414 or else NT (N).Nkind in N_Subexpr);
3416 end Set_Do_Range_Check;
3418 procedure Set_Do_Storage_Check
3419 (N : Node_Id; Val : Boolean := True) is
3421 pragma Assert (False
3422 or else NT (N).Nkind = N_Allocator
3423 or else NT (N).Nkind = N_Subprogram_Body);
3424 Set_Flag17 (N, Val);
3425 end Set_Do_Storage_Check;
3427 procedure Set_Do_Tag_Check
3428 (N : Node_Id; Val : Boolean := True) is
3430 pragma Assert (False
3431 or else NT (N).Nkind = N_Assignment_Statement
3432 or else NT (N).Nkind = N_Function_Call
3433 or else NT (N).Nkind = N_Procedure_Call_Statement
3434 or else NT (N).Nkind = N_Return_Statement
3435 or else NT (N).Nkind = N_Type_Conversion);
3436 Set_Flag13 (N, Val);
3437 end Set_Do_Tag_Check;
3439 procedure Set_Elaborate_All_Present
3440 (N : Node_Id; Val : Boolean := True) is
3442 pragma Assert (False
3443 or else NT (N).Nkind = N_With_Clause);
3444 Set_Flag14 (N, Val);
3445 end Set_Elaborate_All_Present;
3447 procedure Set_Elaborate_Present
3448 (N : Node_Id; Val : Boolean := True) is
3450 pragma Assert (False
3451 or else NT (N).Nkind = N_With_Clause);
3453 end Set_Elaborate_Present;
3455 procedure Set_Elaboration_Boolean
3456 (N : Node_Id; Val : Node_Id) is
3458 pragma Assert (False
3459 or else NT (N).Nkind = N_Function_Specification
3460 or else NT (N).Nkind = N_Procedure_Specification);
3462 end Set_Elaboration_Boolean;
3464 procedure Set_Else_Actions
3465 (N : Node_Id; Val : List_Id) is
3467 pragma Assert (False
3468 or else NT (N).Nkind = N_Conditional_Expression);
3469 Set_List3 (N, Val); -- semantic field, no parent set
3470 end Set_Else_Actions;
3472 procedure Set_Else_Statements
3473 (N : Node_Id; Val : List_Id) is
3475 pragma Assert (False
3476 or else NT (N).Nkind = N_Conditional_Entry_Call
3477 or else NT (N).Nkind = N_If_Statement
3478 or else NT (N).Nkind = N_Selective_Accept);
3479 Set_List4_With_Parent (N, Val);
3480 end Set_Else_Statements;
3482 procedure Set_Elsif_Parts
3483 (N : Node_Id; Val : List_Id) is
3485 pragma Assert (False
3486 or else NT (N).Nkind = N_If_Statement);
3487 Set_List3_With_Parent (N, Val);
3488 end Set_Elsif_Parts;
3490 procedure Set_Enclosing_Variant
3491 (N : Node_Id; Val : Node_Id) is
3493 pragma Assert (False
3494 or else NT (N).Nkind = N_Variant);
3495 Set_Node2 (N, Val); -- semantic field, no parent set
3496 end Set_Enclosing_Variant;
3498 procedure Set_End_Label
3499 (N : Node_Id; Val : Node_Id) is
3501 pragma Assert (False
3502 or else NT (N).Nkind = N_Enumeration_Type_Definition
3503 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
3504 or else NT (N).Nkind = N_Loop_Statement
3505 or else NT (N).Nkind = N_Package_Specification
3506 or else NT (N).Nkind = N_Protected_Body
3507 or else NT (N).Nkind = N_Protected_Definition
3508 or else NT (N).Nkind = N_Record_Definition
3509 or else NT (N).Nkind = N_Task_Definition);
3510 Set_Node4_With_Parent (N, Val);
3513 procedure Set_End_Span
3514 (N : Node_Id; Val : Uint) is
3516 pragma Assert (False
3517 or else NT (N).Nkind = N_Case_Statement
3518 or else NT (N).Nkind = N_If_Statement);
3522 procedure Set_Entity
3523 (N : Node_Id; Val : Node_Id) is
3525 pragma Assert (False
3526 or else NT (N).Nkind in N_Has_Entity
3527 or else NT (N).Nkind = N_Freeze_Entity);
3528 Set_Node4 (N, Val); -- semantic field, no parent set
3531 procedure Set_Entry_Body_Formal_Part
3532 (N : Node_Id; Val : Node_Id) is
3534 pragma Assert (False
3535 or else NT (N).Nkind = N_Entry_Body);
3536 Set_Node5_With_Parent (N, Val);
3537 end Set_Entry_Body_Formal_Part;
3539 procedure Set_Entry_Call_Alternative
3540 (N : Node_Id; Val : Node_Id) is
3542 pragma Assert (False
3543 or else NT (N).Nkind = N_Conditional_Entry_Call
3544 or else NT (N).Nkind = N_Timed_Entry_Call);
3545 Set_Node1_With_Parent (N, Val);
3546 end Set_Entry_Call_Alternative;
3548 procedure Set_Entry_Call_Statement
3549 (N : Node_Id; Val : Node_Id) is
3551 pragma Assert (False
3552 or else NT (N).Nkind = N_Entry_Call_Alternative);
3553 Set_Node1_With_Parent (N, Val);
3554 end Set_Entry_Call_Statement;
3556 procedure Set_Entry_Direct_Name
3557 (N : Node_Id; Val : Node_Id) is
3559 pragma Assert (False
3560 or else NT (N).Nkind = N_Accept_Statement);
3561 Set_Node1_With_Parent (N, Val);
3562 end Set_Entry_Direct_Name;
3564 procedure Set_Entry_Index
3565 (N : Node_Id; Val : Node_Id) is
3567 pragma Assert (False
3568 or else NT (N).Nkind = N_Accept_Statement);
3569 Set_Node5_With_Parent (N, Val);
3570 end Set_Entry_Index;
3572 procedure Set_Entry_Index_Specification
3573 (N : Node_Id; Val : Node_Id) is
3575 pragma Assert (False
3576 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
3577 Set_Node4_With_Parent (N, Val);
3578 end Set_Entry_Index_Specification;
3581 (N : Node_Id; Val : Node_Id) is
3583 pragma Assert (False
3584 or else NT (N).Nkind in N_Has_Etype);
3585 Set_Node5 (N, Val); -- semantic field, no parent set
3588 procedure Set_Exception_Choices
3589 (N : Node_Id; Val : List_Id) is
3591 pragma Assert (False
3592 or else NT (N).Nkind = N_Exception_Handler);
3593 Set_List4_With_Parent (N, Val);
3594 end Set_Exception_Choices;
3596 procedure Set_Exception_Handlers
3597 (N : Node_Id; Val : List_Id) is
3599 pragma Assert (False
3600 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3601 Set_List5_With_Parent (N, Val);
3602 end Set_Exception_Handlers;
3604 procedure Set_Exception_Junk
3605 (N : Node_Id; Val : Boolean := True) is
3607 pragma Assert (False
3608 or else NT (N).Nkind = N_Goto_Statement
3609 or else NT (N).Nkind = N_Label
3610 or else NT (N).Nkind = N_Object_Declaration
3611 or else NT (N).Nkind = N_Subtype_Declaration);
3613 end Set_Exception_Junk;
3615 procedure Set_Expansion_Delayed
3616 (N : Node_Id; Val : Boolean := True) is
3618 pragma Assert (False
3619 or else NT (N).Nkind = N_Aggregate
3620 or else NT (N).Nkind = N_Extension_Aggregate);
3621 Set_Flag11 (N, Val);
3622 end Set_Expansion_Delayed;
3624 procedure Set_Explicit_Actual_Parameter
3625 (N : Node_Id; Val : Node_Id) is
3627 pragma Assert (False
3628 or else NT (N).Nkind = N_Parameter_Association);
3629 Set_Node3_With_Parent (N, Val);
3630 end Set_Explicit_Actual_Parameter;
3632 procedure Set_Explicit_Generic_Actual_Parameter
3633 (N : Node_Id; Val : Node_Id) is
3635 pragma Assert (False
3636 or else NT (N).Nkind = N_Generic_Association);
3637 Set_Node1_With_Parent (N, Val);
3638 end Set_Explicit_Generic_Actual_Parameter;
3640 procedure Set_Expression
3641 (N : Node_Id; Val : Node_Id) is
3643 pragma Assert (False
3644 or else NT (N).Nkind = N_Allocator
3645 or else NT (N).Nkind = N_Assignment_Statement
3646 or else NT (N).Nkind = N_At_Clause
3647 or else NT (N).Nkind = N_Attribute_Definition_Clause
3648 or else NT (N).Nkind = N_Case_Statement
3649 or else NT (N).Nkind = N_Code_Statement
3650 or else NT (N).Nkind = N_Component_Association
3651 or else NT (N).Nkind = N_Component_Declaration
3652 or else NT (N).Nkind = N_Delay_Relative_Statement
3653 or else NT (N).Nkind = N_Delay_Until_Statement
3654 or else NT (N).Nkind = N_Discriminant_Association
3655 or else NT (N).Nkind = N_Discriminant_Specification
3656 or else NT (N).Nkind = N_Exception_Declaration
3657 or else NT (N).Nkind = N_Formal_Object_Declaration
3658 or else NT (N).Nkind = N_Free_Statement
3659 or else NT (N).Nkind = N_Mod_Clause
3660 or else NT (N).Nkind = N_Modular_Type_Definition
3661 or else NT (N).Nkind = N_Number_Declaration
3662 or else NT (N).Nkind = N_Object_Declaration
3663 or else NT (N).Nkind = N_Parameter_Specification
3664 or else NT (N).Nkind = N_Pragma_Argument_Association
3665 or else NT (N).Nkind = N_Qualified_Expression
3666 or else NT (N).Nkind = N_Raise_Statement
3667 or else NT (N).Nkind = N_Return_Statement
3668 or else NT (N).Nkind = N_Type_Conversion
3669 or else NT (N).Nkind = N_Unchecked_Expression
3670 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
3671 Set_Node3_With_Parent (N, Val);
3674 procedure Set_Expressions
3675 (N : Node_Id; Val : List_Id) is
3677 pragma Assert (False
3678 or else NT (N).Nkind = N_Aggregate
3679 or else NT (N).Nkind = N_Attribute_Reference
3680 or else NT (N).Nkind = N_Conditional_Expression
3681 or else NT (N).Nkind = N_Extension_Aggregate
3682 or else NT (N).Nkind = N_Indexed_Component);
3683 Set_List1_With_Parent (N, Val);
3684 end Set_Expressions;
3686 procedure Set_First_Bit
3687 (N : Node_Id; Val : Node_Id) is
3689 pragma Assert (False
3690 or else NT (N).Nkind = N_Component_Clause);
3691 Set_Node3_With_Parent (N, Val);
3694 procedure Set_First_Inlined_Subprogram
3695 (N : Node_Id; Val : Entity_Id) is
3697 pragma Assert (False
3698 or else NT (N).Nkind = N_Compilation_Unit);
3699 Set_Node3 (N, Val); -- semantic field, no parent set
3700 end Set_First_Inlined_Subprogram;
3702 procedure Set_First_Name
3703 (N : Node_Id; Val : Boolean := True) is
3705 pragma Assert (False
3706 or else NT (N).Nkind = N_With_Clause);
3710 procedure Set_First_Named_Actual
3711 (N : Node_Id; Val : Node_Id) is
3713 pragma Assert (False
3714 or else NT (N).Nkind = N_Entry_Call_Statement
3715 or else NT (N).Nkind = N_Function_Call
3716 or else NT (N).Nkind = N_Procedure_Call_Statement);
3717 Set_Node4 (N, Val); -- semantic field, no parent set
3718 end Set_First_Named_Actual;
3720 procedure Set_First_Real_Statement
3721 (N : Node_Id; Val : Node_Id) is
3723 pragma Assert (False
3724 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3725 Set_Node2 (N, Val); -- semantic field, no parent set
3726 end Set_First_Real_Statement;
3728 procedure Set_First_Subtype_Link
3729 (N : Node_Id; Val : Entity_Id) is
3731 pragma Assert (False
3732 or else NT (N).Nkind = N_Freeze_Entity);
3733 Set_Node5 (N, Val); -- semantic field, no parent set
3734 end Set_First_Subtype_Link;
3736 procedure Set_Float_Truncate
3737 (N : Node_Id; Val : Boolean := True) is
3739 pragma Assert (False
3740 or else NT (N).Nkind = N_Type_Conversion);
3741 Set_Flag11 (N, Val);
3742 end Set_Float_Truncate;
3744 procedure Set_Formal_Type_Definition
3745 (N : Node_Id; Val : Node_Id) is
3747 pragma Assert (False
3748 or else NT (N).Nkind = N_Formal_Type_Declaration);
3749 Set_Node3_With_Parent (N, Val);
3750 end Set_Formal_Type_Definition;
3752 procedure Set_Forwards_OK
3753 (N : Node_Id; Val : Boolean := True) is
3755 pragma Assert (False
3756 or else NT (N).Nkind = N_Assignment_Statement);
3758 end Set_Forwards_OK;
3760 procedure Set_From_At_Mod
3761 (N : Node_Id; Val : Boolean := True) is
3763 pragma Assert (False
3764 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3766 end Set_From_At_Mod;
3768 procedure Set_From_Default
3769 (N : Node_Id; Val : Boolean := True) is
3771 pragma Assert (False
3772 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3774 end Set_From_Default;
3776 procedure Set_Generic_Associations
3777 (N : Node_Id; Val : List_Id) is
3779 pragma Assert (False
3780 or else NT (N).Nkind = N_Formal_Package_Declaration
3781 or else NT (N).Nkind = N_Function_Instantiation
3782 or else NT (N).Nkind = N_Package_Instantiation
3783 or else NT (N).Nkind = N_Procedure_Instantiation);
3784 Set_List3_With_Parent (N, Val);
3785 end Set_Generic_Associations;
3787 procedure Set_Generic_Formal_Declarations
3788 (N : Node_Id; Val : List_Id) is
3790 pragma Assert (False
3791 or else NT (N).Nkind = N_Generic_Package_Declaration
3792 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
3793 Set_List2_With_Parent (N, Val);
3794 end Set_Generic_Formal_Declarations;
3796 procedure Set_Generic_Parent
3797 (N : Node_Id; Val : Node_Id) is
3799 pragma Assert (False
3800 or else NT (N).Nkind = N_Function_Specification
3801 or else NT (N).Nkind = N_Package_Specification
3802 or else NT (N).Nkind = N_Procedure_Specification);
3804 end Set_Generic_Parent;
3806 procedure Set_Generic_Parent_Type
3807 (N : Node_Id; Val : Node_Id) is
3809 pragma Assert (False
3810 or else NT (N).Nkind = N_Subtype_Declaration);
3812 end Set_Generic_Parent_Type;
3814 procedure Set_Handled_Statement_Sequence
3815 (N : Node_Id; Val : Node_Id) is
3817 pragma Assert (False
3818 or else NT (N).Nkind = N_Accept_Statement
3819 or else NT (N).Nkind = N_Block_Statement
3820 or else NT (N).Nkind = N_Entry_Body
3821 or else NT (N).Nkind = N_Package_Body
3822 or else NT (N).Nkind = N_Subprogram_Body
3823 or else NT (N).Nkind = N_Task_Body);
3824 Set_Node4_With_Parent (N, Val);
3825 end Set_Handled_Statement_Sequence;
3827 procedure Set_Handler_List_Entry
3828 (N : Node_Id; Val : Node_Id) is
3830 pragma Assert (False
3831 or else NT (N).Nkind = N_Object_Declaration);
3833 end Set_Handler_List_Entry;
3835 procedure Set_Has_Created_Identifier
3836 (N : Node_Id; Val : Boolean := True) is
3838 pragma Assert (False
3839 or else NT (N).Nkind = N_Block_Statement
3840 or else NT (N).Nkind = N_Loop_Statement);
3841 Set_Flag15 (N, Val);
3842 end Set_Has_Created_Identifier;
3844 procedure Set_Has_Dynamic_Length_Check
3845 (N : Node_Id; Val : Boolean := True) is
3847 Set_Flag10 (N, Val);
3848 end Set_Has_Dynamic_Length_Check;
3850 procedure Set_Has_Dynamic_Range_Check
3851 (N : Node_Id; Val : Boolean := True) is
3853 Set_Flag12 (N, Val);
3854 end Set_Has_Dynamic_Range_Check;
3856 procedure Set_Has_No_Elaboration_Code
3857 (N : Node_Id; Val : Boolean := True) is
3859 pragma Assert (False
3860 or else NT (N).Nkind = N_Compilation_Unit);
3861 Set_Flag17 (N, Val);
3862 end Set_Has_No_Elaboration_Code;
3864 procedure Set_Has_Priority_Pragma
3865 (N : Node_Id; Val : Boolean := True) is
3867 pragma Assert (False
3868 or else NT (N).Nkind = N_Protected_Definition
3869 or else NT (N).Nkind = N_Subprogram_Body
3870 or else NT (N).Nkind = N_Task_Definition);
3872 end Set_Has_Priority_Pragma;
3874 procedure Set_Has_Private_View
3875 (N : Node_Id; Val : Boolean := True) is
3877 pragma Assert (False
3878 or else NT (N).Nkind in N_Op
3879 or else NT (N).Nkind = N_Character_Literal
3880 or else NT (N).Nkind = N_Expanded_Name
3881 or else NT (N).Nkind = N_Identifier
3882 or else NT (N).Nkind = N_Operator_Symbol);
3883 Set_Flag11 (N, Val);
3884 end Set_Has_Private_View;
3886 procedure Set_Has_Storage_Size_Pragma
3887 (N : Node_Id; Val : Boolean := True) is
3889 pragma Assert (False
3890 or else NT (N).Nkind = N_Task_Definition);
3892 end Set_Has_Storage_Size_Pragma;
3894 procedure Set_Has_Task_Info_Pragma
3895 (N : Node_Id; Val : Boolean := True) is
3897 pragma Assert (False
3898 or else NT (N).Nkind = N_Task_Definition);
3900 end Set_Has_Task_Info_Pragma;
3902 procedure Set_Has_Task_Name_Pragma
3903 (N : Node_Id; Val : Boolean := True) is
3905 pragma Assert (False
3906 or else NT (N).Nkind = N_Task_Definition);
3908 end Set_Has_Task_Name_Pragma;
3910 procedure Set_Has_Wide_Character
3911 (N : Node_Id; Val : Boolean := True) is
3913 pragma Assert (False
3914 or else NT (N).Nkind = N_String_Literal);
3915 Set_Flag11 (N, Val);
3916 end Set_Has_Wide_Character;
3918 procedure Set_Hidden_By_Use_Clause
3919 (N : Node_Id; Val : Elist_Id) is
3921 pragma Assert (False
3922 or else NT (N).Nkind = N_Use_Package_Clause
3923 or else NT (N).Nkind = N_Use_Type_Clause);
3924 Set_Elist4 (N, Val);
3925 end Set_Hidden_By_Use_Clause;
3927 procedure Set_High_Bound
3928 (N : Node_Id; Val : Node_Id) is
3930 pragma Assert (False
3931 or else NT (N).Nkind = N_Range
3932 or else NT (N).Nkind = N_Real_Range_Specification
3933 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
3934 Set_Node2_With_Parent (N, Val);
3937 procedure Set_Identifier
3938 (N : Node_Id; Val : Node_Id) is
3940 pragma Assert (False
3941 or else NT (N).Nkind = N_At_Clause
3942 or else NT (N).Nkind = N_Block_Statement
3943 or else NT (N).Nkind = N_Designator
3944 or else NT (N).Nkind = N_Enumeration_Representation_Clause
3945 or else NT (N).Nkind = N_Label
3946 or else NT (N).Nkind = N_Loop_Statement
3947 or else NT (N).Nkind = N_Record_Representation_Clause
3948 or else NT (N).Nkind = N_Subprogram_Info);
3949 Set_Node1_With_Parent (N, Val);
3952 procedure Set_Implicit_With
3953 (N : Node_Id; Val : Boolean := True) is
3955 pragma Assert (False
3956 or else NT (N).Nkind = N_With_Clause);
3957 Set_Flag16 (N, Val);
3958 end Set_Implicit_With;
3960 procedure Set_Interface_List
3961 (N : Node_Id; Val : List_Id) is
3963 pragma Assert (False
3964 or else NT (N).Nkind = N_Derived_Type_Definition
3965 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3966 or else NT (N).Nkind = N_Private_Extension_Declaration
3967 or else NT (N).Nkind = N_Protected_Type_Declaration
3968 or else NT (N).Nkind = N_Record_Definition
3969 or else NT (N).Nkind = N_Single_Protected_Declaration
3970 or else NT (N).Nkind = N_Single_Task_Declaration
3971 or else NT (N).Nkind = N_Task_Type_Declaration);
3972 Set_List2_With_Parent (N, Val);
3973 end Set_Interface_List;
3975 procedure Set_Interface_Present
3976 (N : Node_Id; Val : Boolean := True) is
3978 pragma Assert (False
3979 or else NT (N).Nkind = N_Derived_Type_Definition
3980 or else NT (N).Nkind = N_Record_Definition);
3981 Set_Flag16 (N, Val);
3982 end Set_Interface_Present;
3984 procedure Set_In_Present
3985 (N : Node_Id; Val : Boolean := True) is
3987 pragma Assert (False
3988 or else NT (N).Nkind = N_Formal_Object_Declaration
3989 or else NT (N).Nkind = N_Parameter_Specification);
3990 Set_Flag15 (N, Val);
3993 procedure Set_Includes_Infinities
3994 (N : Node_Id; Val : Boolean := True) is
3996 pragma Assert (False
3997 or else NT (N).Nkind = N_Range);
3998 Set_Flag11 (N, Val);
3999 end Set_Includes_Infinities;
4001 procedure Set_Instance_Spec
4002 (N : Node_Id; Val : Node_Id) is
4004 pragma Assert (False
4005 or else NT (N).Nkind = N_Formal_Package_Declaration
4006 or else NT (N).Nkind = N_Function_Instantiation
4007 or else NT (N).Nkind = N_Package_Instantiation
4008 or else NT (N).Nkind = N_Procedure_Instantiation);
4009 Set_Node5 (N, Val); -- semantic field, no Parent set
4010 end Set_Instance_Spec;
4012 procedure Set_Intval
4013 (N : Node_Id; Val : Uint) is
4015 pragma Assert (False
4016 or else NT (N).Nkind = N_Integer_Literal);
4020 procedure Set_Is_Asynchronous_Call_Block
4021 (N : Node_Id; Val : Boolean := True) is
4023 pragma Assert (False
4024 or else NT (N).Nkind = N_Block_Statement);
4026 end Set_Is_Asynchronous_Call_Block;
4028 procedure Set_Is_Component_Left_Opnd
4029 (N : Node_Id; Val : Boolean := True) is
4031 pragma Assert (False
4032 or else NT (N).Nkind = N_Op_Concat);
4033 Set_Flag13 (N, Val);
4034 end Set_Is_Component_Left_Opnd;
4036 procedure Set_Is_Component_Right_Opnd
4037 (N : Node_Id; Val : Boolean := True) is
4039 pragma Assert (False
4040 or else NT (N).Nkind = N_Op_Concat);
4041 Set_Flag14 (N, Val);
4042 end Set_Is_Component_Right_Opnd;
4044 procedure Set_Is_Controlling_Actual
4045 (N : Node_Id; Val : Boolean := True) is
4047 pragma Assert (False
4048 or else NT (N).Nkind in N_Subexpr);
4049 Set_Flag16 (N, Val);
4050 end Set_Is_Controlling_Actual;
4052 procedure Set_Is_In_Discriminant_Check
4053 (N : Node_Id; Val : Boolean := True) is
4055 pragma Assert (False
4056 or else NT (N).Nkind = N_Selected_Component);
4057 Set_Flag11 (N, Val);
4058 end Set_Is_In_Discriminant_Check;
4060 procedure Set_Is_Machine_Number
4061 (N : Node_Id; Val : Boolean := True) is
4063 pragma Assert (False
4064 or else NT (N).Nkind = N_Real_Literal);
4065 Set_Flag11 (N, Val);
4066 end Set_Is_Machine_Number;
4068 procedure Set_Is_Null_Loop
4069 (N : Node_Id; Val : Boolean := True) is
4071 pragma Assert (False
4072 or else NT (N).Nkind = N_Loop_Statement);
4073 Set_Flag16 (N, Val);
4074 end Set_Is_Null_Loop;
4076 procedure Set_Is_Overloaded
4077 (N : Node_Id; Val : Boolean := True) is
4079 pragma Assert (False
4080 or else NT (N).Nkind in N_Subexpr);
4082 end Set_Is_Overloaded;
4084 procedure Set_Is_Power_Of_2_For_Shift
4085 (N : Node_Id; Val : Boolean := True) is
4087 pragma Assert (False
4088 or else NT (N).Nkind = N_Op_Expon);
4089 Set_Flag13 (N, Val);
4090 end Set_Is_Power_Of_2_For_Shift;
4092 procedure Set_Is_Protected_Subprogram_Body
4093 (N : Node_Id; Val : Boolean := True) is
4095 pragma Assert (False
4096 or else NT (N).Nkind = N_Subprogram_Body);
4098 end Set_Is_Protected_Subprogram_Body;
4100 procedure Set_Is_Static_Expression
4101 (N : Node_Id; Val : Boolean := True) is
4103 pragma Assert (False
4104 or else NT (N).Nkind in N_Subexpr);
4106 end Set_Is_Static_Expression;
4108 procedure Set_Is_Subprogram_Descriptor
4109 (N : Node_Id; Val : Boolean := True) is
4111 pragma Assert (False
4112 or else NT (N).Nkind = N_Object_Declaration);
4113 Set_Flag16 (N, Val);
4114 end Set_Is_Subprogram_Descriptor;
4116 procedure Set_Is_Task_Allocation_Block
4117 (N : Node_Id; Val : Boolean := True) is
4119 pragma Assert (False
4120 or else NT (N).Nkind = N_Block_Statement);
4122 end Set_Is_Task_Allocation_Block;
4124 procedure Set_Is_Task_Master
4125 (N : Node_Id; Val : Boolean := True) is
4127 pragma Assert (False
4128 or else NT (N).Nkind = N_Block_Statement
4129 or else NT (N).Nkind = N_Subprogram_Body
4130 or else NT (N).Nkind = N_Task_Body);
4132 end Set_Is_Task_Master;
4134 procedure Set_Iteration_Scheme
4135 (N : Node_Id; Val : Node_Id) is
4137 pragma Assert (False
4138 or else NT (N).Nkind = N_Loop_Statement);
4139 Set_Node2_With_Parent (N, Val);
4140 end Set_Iteration_Scheme;
4143 (N : Node_Id; Val : Entity_Id) is
4145 pragma Assert (False
4146 or else NT (N).Nkind = N_Itype_Reference);
4147 Set_Node1 (N, Val); -- no parent, semantic field
4150 procedure Set_Kill_Range_Check
4151 (N : Node_Id; Val : Boolean := True) is
4153 pragma Assert (False
4154 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4155 Set_Flag11 (N, Val);
4156 end Set_Kill_Range_Check;
4158 procedure Set_Label_Construct
4159 (N : Node_Id; Val : Node_Id) is
4161 pragma Assert (False
4162 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4163 Set_Node2 (N, Val); -- semantic field, no parent set
4164 end Set_Label_Construct;
4166 procedure Set_Last_Bit
4167 (N : Node_Id; Val : Node_Id) is
4169 pragma Assert (False
4170 or else NT (N).Nkind = N_Component_Clause);
4171 Set_Node4_With_Parent (N, Val);
4174 procedure Set_Last_Name
4175 (N : Node_Id; Val : Boolean := True) is
4177 pragma Assert (False
4178 or else NT (N).Nkind = N_With_Clause);
4182 procedure Set_Left_Opnd
4183 (N : Node_Id; Val : Node_Id) is
4185 pragma Assert (False
4186 or else NT (N).Nkind = N_And_Then
4187 or else NT (N).Nkind = N_In
4188 or else NT (N).Nkind = N_Not_In
4189 or else NT (N).Nkind = N_Or_Else
4190 or else NT (N).Nkind in N_Binary_Op);
4191 Set_Node2_With_Parent (N, Val);
4194 procedure Set_Library_Unit
4195 (N : Node_Id; Val : Node_Id) is
4197 pragma Assert (False
4198 or else NT (N).Nkind = N_Compilation_Unit
4199 or else NT (N).Nkind = N_Package_Body_Stub
4200 or else NT (N).Nkind = N_Protected_Body_Stub
4201 or else NT (N).Nkind = N_Subprogram_Body_Stub
4202 or else NT (N).Nkind = N_Task_Body_Stub
4203 or else NT (N).Nkind = N_With_Clause);
4204 Set_Node4 (N, Val); -- semantic field, no parent set
4205 end Set_Library_Unit;
4207 procedure Set_Limited_View_Installed
4208 (N : Node_Id; Val : Boolean := True) is
4210 pragma Assert (False
4211 or else NT (N).Nkind = N_Package_Specification
4212 or else NT (N).Nkind = N_With_Clause);
4213 Set_Flag18 (N, Val);
4214 end Set_Limited_View_Installed;
4216 procedure Set_Limited_Present
4217 (N : Node_Id; Val : Boolean := True) is
4219 pragma Assert (False
4220 or else NT (N).Nkind = N_Derived_Type_Definition
4221 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4222 or else NT (N).Nkind = N_Private_Type_Declaration
4223 or else NT (N).Nkind = N_Record_Definition
4224 or else NT (N).Nkind = N_With_Clause);
4225 Set_Flag17 (N, Val);
4226 end Set_Limited_Present;
4228 procedure Set_Literals
4229 (N : Node_Id; Val : List_Id) is
4231 pragma Assert (False
4232 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4233 Set_List1_With_Parent (N, Val);
4236 procedure Set_Loop_Actions
4237 (N : Node_Id; Val : List_Id) is
4239 pragma Assert (False
4240 or else NT (N).Nkind = N_Component_Association);
4241 Set_List2 (N, Val); -- semantic field, no parent set
4242 end Set_Loop_Actions;
4244 procedure Set_Loop_Parameter_Specification
4245 (N : Node_Id; Val : Node_Id) is
4247 pragma Assert (False
4248 or else NT (N).Nkind = N_Iteration_Scheme);
4249 Set_Node4_With_Parent (N, Val);
4250 end Set_Loop_Parameter_Specification;
4252 procedure Set_Low_Bound
4253 (N : Node_Id; Val : Node_Id) is
4255 pragma Assert (False
4256 or else NT (N).Nkind = N_Range
4257 or else NT (N).Nkind = N_Real_Range_Specification
4258 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4259 Set_Node1_With_Parent (N, Val);
4262 procedure Set_Mod_Clause
4263 (N : Node_Id; Val : Node_Id) is
4265 pragma Assert (False
4266 or else NT (N).Nkind = N_Record_Representation_Clause);
4267 Set_Node2_With_Parent (N, Val);
4270 procedure Set_More_Ids
4271 (N : Node_Id; Val : Boolean := True) is
4273 pragma Assert (False
4274 or else NT (N).Nkind = N_Component_Declaration
4275 or else NT (N).Nkind = N_Discriminant_Specification
4276 or else NT (N).Nkind = N_Exception_Declaration
4277 or else NT (N).Nkind = N_Formal_Object_Declaration
4278 or else NT (N).Nkind = N_Number_Declaration
4279 or else NT (N).Nkind = N_Object_Declaration
4280 or else NT (N).Nkind = N_Parameter_Specification);
4284 procedure Set_Must_Be_Byte_Aligned
4285 (N : Node_Id; Val : Boolean := True) is
4287 pragma Assert (False
4288 or else NT (N).Nkind = N_Attribute_Reference);
4289 Set_Flag14 (N, Val);
4290 end Set_Must_Be_Byte_Aligned;
4292 procedure Set_Must_Not_Freeze
4293 (N : Node_Id; Val : Boolean := True) is
4295 pragma Assert (False
4296 or else NT (N).Nkind = N_Subtype_Indication
4297 or else NT (N).Nkind in N_Subexpr);
4299 end Set_Must_Not_Freeze;
4301 procedure Set_Must_Not_Override
4302 (N : Node_Id; Val : Boolean := True) is
4304 pragma Assert (False
4305 or else NT (N).Nkind = N_Entry_Declaration
4306 or else NT (N).Nkind = N_Function_Instantiation
4307 or else NT (N).Nkind = N_Function_Specification
4308 or else NT (N).Nkind = N_Procedure_Instantiation
4309 or else NT (N).Nkind = N_Procedure_Specification);
4310 Set_Flag15 (N, Val);
4311 end Set_Must_Not_Override;
4313 procedure Set_Must_Override
4314 (N : Node_Id; Val : Boolean := True) is
4316 pragma Assert (False
4317 or else NT (N).Nkind = N_Entry_Declaration
4318 or else NT (N).Nkind = N_Function_Instantiation
4319 or else NT (N).Nkind = N_Function_Specification
4320 or else NT (N).Nkind = N_Procedure_Instantiation
4321 or else NT (N).Nkind = N_Procedure_Specification);
4322 Set_Flag14 (N, Val);
4323 end Set_Must_Override;
4326 (N : Node_Id; Val : Node_Id) is
4328 pragma Assert (False
4329 or else NT (N).Nkind = N_Assignment_Statement
4330 or else NT (N).Nkind = N_Attribute_Definition_Clause
4331 or else NT (N).Nkind = N_Defining_Program_Unit_Name
4332 or else NT (N).Nkind = N_Designator
4333 or else NT (N).Nkind = N_Entry_Call_Statement
4334 or else NT (N).Nkind = N_Exception_Renaming_Declaration
4335 or else NT (N).Nkind = N_Exit_Statement
4336 or else NT (N).Nkind = N_Formal_Package_Declaration
4337 or else NT (N).Nkind = N_Function_Call
4338 or else NT (N).Nkind = N_Function_Instantiation
4339 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4340 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4341 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4342 or else NT (N).Nkind = N_Goto_Statement
4343 or else NT (N).Nkind = N_Object_Renaming_Declaration
4344 or else NT (N).Nkind = N_Package_Instantiation
4345 or else NT (N).Nkind = N_Package_Renaming_Declaration
4346 or else NT (N).Nkind = N_Procedure_Call_Statement
4347 or else NT (N).Nkind = N_Procedure_Instantiation
4348 or else NT (N).Nkind = N_Raise_Statement
4349 or else NT (N).Nkind = N_Requeue_Statement
4350 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
4351 or else NT (N).Nkind = N_Subunit
4352 or else NT (N).Nkind = N_Variant_Part
4353 or else NT (N).Nkind = N_With_Clause
4354 or else NT (N).Nkind = N_With_Type_Clause);
4355 Set_Node2_With_Parent (N, Val);
4359 (N : Node_Id; Val : List_Id) is
4361 pragma Assert (False
4362 or else NT (N).Nkind = N_Abort_Statement
4363 or else NT (N).Nkind = N_Use_Package_Clause);
4364 Set_List2_With_Parent (N, Val);
4367 procedure Set_Next_Entity
4368 (N : Node_Id; Val : Node_Id) is
4370 pragma Assert (False
4371 or else NT (N).Nkind = N_Defining_Character_Literal
4372 or else NT (N).Nkind = N_Defining_Identifier
4373 or else NT (N).Nkind = N_Defining_Operator_Symbol);
4374 Set_Node2 (N, Val); -- semantic field, no parent set
4375 end Set_Next_Entity;
4377 procedure Set_Next_Named_Actual
4378 (N : Node_Id; Val : Node_Id) is
4380 pragma Assert (False
4381 or else NT (N).Nkind = N_Parameter_Association);
4382 Set_Node4 (N, Val); -- semantic field, no parent set
4383 end Set_Next_Named_Actual;
4385 procedure Set_Next_Rep_Item
4386 (N : Node_Id; Val : Node_Id) is
4388 pragma Assert (False
4389 or else NT (N).Nkind = N_Attribute_Definition_Clause
4390 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4391 or else NT (N).Nkind = N_Pragma
4392 or else NT (N).Nkind = N_Record_Representation_Clause);
4393 Set_Node4 (N, Val); -- semantic field, no parent set
4394 end Set_Next_Rep_Item;
4396 procedure Set_Next_Use_Clause
4397 (N : Node_Id; Val : Node_Id) is
4399 pragma Assert (False
4400 or else NT (N).Nkind = N_Use_Package_Clause
4401 or else NT (N).Nkind = N_Use_Type_Clause);
4402 Set_Node3 (N, Val); -- semantic field, no parent set
4403 end Set_Next_Use_Clause;
4405 procedure Set_No_Ctrl_Actions
4406 (N : Node_Id; Val : Boolean := True) is
4408 pragma Assert (False
4409 or else NT (N).Nkind = N_Assignment_Statement);
4411 end Set_No_Ctrl_Actions;
4413 procedure Set_No_Elaboration_Check
4414 (N : Node_Id; Val : Boolean := True) is
4416 pragma Assert (False
4417 or else NT (N).Nkind = N_Function_Call
4418 or else NT (N).Nkind = N_Procedure_Call_Statement);
4419 Set_Flag14 (N, Val);
4420 end Set_No_Elaboration_Check;
4422 procedure Set_No_Entities_Ref_In_Spec
4423 (N : Node_Id; Val : Boolean := True) is
4425 pragma Assert (False
4426 or else NT (N).Nkind = N_With_Clause);
4428 end Set_No_Entities_Ref_In_Spec;
4430 procedure Set_No_Initialization
4431 (N : Node_Id; Val : Boolean := True) is
4433 pragma Assert (False
4434 or else NT (N).Nkind = N_Allocator
4435 or else NT (N).Nkind = N_Object_Declaration);
4436 Set_Flag13 (N, Val);
4437 end Set_No_Initialization;
4439 procedure Set_No_Truncation
4440 (N : Node_Id; Val : Boolean := True) is
4442 pragma Assert (False
4443 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4444 Set_Flag17 (N, Val);
4445 end Set_No_Truncation;
4447 procedure Set_Null_Present
4448 (N : Node_Id; Val : Boolean := True) is
4450 pragma Assert (False
4451 or else NT (N).Nkind = N_Component_List
4452 or else NT (N).Nkind = N_Procedure_Specification
4453 or else NT (N).Nkind = N_Record_Definition);
4454 Set_Flag13 (N, Val);
4455 end Set_Null_Present;
4457 procedure Set_Null_Exclusion_Present
4458 (N : Node_Id; Val : Boolean := True) is
4460 pragma Assert (False
4461 or else NT (N).Nkind = N_Access_Definition
4462 or else NT (N).Nkind = N_Access_Function_Definition
4463 or else NT (N).Nkind = N_Access_Procedure_Definition
4464 or else NT (N).Nkind = N_Access_To_Object_Definition
4465 or else NT (N).Nkind = N_Allocator
4466 or else NT (N).Nkind = N_Component_Definition
4467 or else NT (N).Nkind = N_Derived_Type_Definition
4468 or else NT (N).Nkind = N_Discriminant_Specification
4469 or else NT (N).Nkind = N_Object_Declaration
4470 or else NT (N).Nkind = N_Parameter_Specification
4471 or else NT (N).Nkind = N_Subtype_Declaration);
4472 Set_Flag11 (N, Val);
4473 end Set_Null_Exclusion_Present;
4475 procedure Set_Null_Record_Present
4476 (N : Node_Id; Val : Boolean := True) is
4478 pragma Assert (False
4479 or else NT (N).Nkind = N_Aggregate
4480 or else NT (N).Nkind = N_Extension_Aggregate);
4481 Set_Flag17 (N, Val);
4482 end Set_Null_Record_Present;
4484 procedure Set_Object_Definition
4485 (N : Node_Id; Val : Node_Id) is
4487 pragma Assert (False
4488 or else NT (N).Nkind = N_Object_Declaration);
4489 Set_Node4_With_Parent (N, Val);
4490 end Set_Object_Definition;
4492 procedure Set_Original_Discriminant
4493 (N : Node_Id; Val : Node_Id) is
4495 pragma Assert (False
4496 or else NT (N).Nkind = N_Identifier);
4497 Set_Node2 (N, Val); -- semantic field, no parent set
4498 end Set_Original_Discriminant;
4500 procedure Set_Original_Entity
4501 (N : Node_Id; Val : Entity_Id) is
4503 pragma Assert (False
4504 or else NT (N).Nkind = N_Integer_Literal
4505 or else NT (N).Nkind = N_Real_Literal);
4506 Set_Node2 (N, Val); -- semantic field, no parent set
4507 end Set_Original_Entity;
4509 procedure Set_Others_Discrete_Choices
4510 (N : Node_Id; Val : List_Id) is
4512 pragma Assert (False
4513 or else NT (N).Nkind = N_Others_Choice);
4514 Set_List1_With_Parent (N, Val);
4515 end Set_Others_Discrete_Choices;
4517 procedure Set_Out_Present
4518 (N : Node_Id; Val : Boolean := True) is
4520 pragma Assert (False
4521 or else NT (N).Nkind = N_Formal_Object_Declaration
4522 or else NT (N).Nkind = N_Parameter_Specification);
4523 Set_Flag17 (N, Val);
4524 end Set_Out_Present;
4526 procedure Set_Parameter_Associations
4527 (N : Node_Id; Val : List_Id) is
4529 pragma Assert (False
4530 or else NT (N).Nkind = N_Entry_Call_Statement
4531 or else NT (N).Nkind = N_Function_Call
4532 or else NT (N).Nkind = N_Procedure_Call_Statement);
4533 Set_List3_With_Parent (N, Val);
4534 end Set_Parameter_Associations;
4536 procedure Set_Parameter_List_Truncated
4537 (N : Node_Id; Val : Boolean := True) is
4539 pragma Assert (False
4540 or else NT (N).Nkind = N_Function_Call
4541 or else NT (N).Nkind = N_Procedure_Call_Statement);
4542 Set_Flag17 (N, Val);
4543 end Set_Parameter_List_Truncated;
4545 procedure Set_Parameter_Specifications
4546 (N : Node_Id; Val : List_Id) is
4548 pragma Assert (False
4549 or else NT (N).Nkind = N_Accept_Statement
4550 or else NT (N).Nkind = N_Access_Function_Definition
4551 or else NT (N).Nkind = N_Access_Procedure_Definition
4552 or else NT (N).Nkind = N_Entry_Body_Formal_Part
4553 or else NT (N).Nkind = N_Entry_Declaration
4554 or else NT (N).Nkind = N_Function_Specification
4555 or else NT (N).Nkind = N_Procedure_Specification);
4556 Set_List3_With_Parent (N, Val);
4557 end Set_Parameter_Specifications;
4559 procedure Set_Parameter_Type
4560 (N : Node_Id; Val : Node_Id) is
4562 pragma Assert (False
4563 or else NT (N).Nkind = N_Parameter_Specification);
4564 Set_Node2_With_Parent (N, Val);
4565 end Set_Parameter_Type;
4567 procedure Set_Parent_Spec
4568 (N : Node_Id; Val : Node_Id) is
4570 pragma Assert (False
4571 or else NT (N).Nkind = N_Function_Instantiation
4572 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4573 or else NT (N).Nkind = N_Generic_Package_Declaration
4574 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4575 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4576 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
4577 or else NT (N).Nkind = N_Package_Declaration
4578 or else NT (N).Nkind = N_Package_Instantiation
4579 or else NT (N).Nkind = N_Package_Renaming_Declaration
4580 or else NT (N).Nkind = N_Procedure_Instantiation
4581 or else NT (N).Nkind = N_Subprogram_Declaration
4582 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4583 Set_Node4 (N, Val); -- semantic field, no parent set
4584 end Set_Parent_Spec;
4586 procedure Set_Position
4587 (N : Node_Id; Val : Node_Id) is
4589 pragma Assert (False
4590 or else NT (N).Nkind = N_Component_Clause);
4591 Set_Node2_With_Parent (N, Val);
4594 procedure Set_Pragma_Argument_Associations
4595 (N : Node_Id; Val : List_Id) is
4597 pragma Assert (False
4598 or else NT (N).Nkind = N_Pragma);
4599 Set_List2_With_Parent (N, Val);
4600 end Set_Pragma_Argument_Associations;
4602 procedure Set_Pragmas_After
4603 (N : Node_Id; Val : List_Id) is
4605 pragma Assert (False
4606 or else NT (N).Nkind = N_Compilation_Unit_Aux
4607 or else NT (N).Nkind = N_Terminate_Alternative);
4608 Set_List5_With_Parent (N, Val);
4609 end Set_Pragmas_After;
4611 procedure Set_Pragmas_Before
4612 (N : Node_Id; Val : List_Id) is
4614 pragma Assert (False
4615 or else NT (N).Nkind = N_Accept_Alternative
4616 or else NT (N).Nkind = N_Delay_Alternative
4617 or else NT (N).Nkind = N_Entry_Call_Alternative
4618 or else NT (N).Nkind = N_Mod_Clause
4619 or else NT (N).Nkind = N_Terminate_Alternative
4620 or else NT (N).Nkind = N_Triggering_Alternative);
4621 Set_List4_With_Parent (N, Val);
4622 end Set_Pragmas_Before;
4624 procedure Set_Prefix
4625 (N : Node_Id; Val : Node_Id) is
4627 pragma Assert (False
4628 or else NT (N).Nkind = N_Attribute_Reference
4629 or else NT (N).Nkind = N_Expanded_Name
4630 or else NT (N).Nkind = N_Explicit_Dereference
4631 or else NT (N).Nkind = N_Indexed_Component
4632 or else NT (N).Nkind = N_Reference
4633 or else NT (N).Nkind = N_Selected_Component
4634 or else NT (N).Nkind = N_Slice);
4635 Set_Node3_With_Parent (N, Val);
4638 procedure Set_Present_Expr
4639 (N : Node_Id; Val : Uint) is
4641 pragma Assert (False
4642 or else NT (N).Nkind = N_Variant);
4644 end Set_Present_Expr;
4646 procedure Set_Prev_Ids
4647 (N : Node_Id; Val : Boolean := True) is
4649 pragma Assert (False
4650 or else NT (N).Nkind = N_Component_Declaration
4651 or else NT (N).Nkind = N_Discriminant_Specification
4652 or else NT (N).Nkind = N_Exception_Declaration
4653 or else NT (N).Nkind = N_Formal_Object_Declaration
4654 or else NT (N).Nkind = N_Number_Declaration
4655 or else NT (N).Nkind = N_Object_Declaration
4656 or else NT (N).Nkind = N_Parameter_Specification);
4660 procedure Set_Print_In_Hex
4661 (N : Node_Id; Val : Boolean := True) is
4663 pragma Assert (False
4664 or else NT (N).Nkind = N_Integer_Literal);
4665 Set_Flag13 (N, Val);
4666 end Set_Print_In_Hex;
4668 procedure Set_Private_Declarations
4669 (N : Node_Id; Val : List_Id) is
4671 pragma Assert (False
4672 or else NT (N).Nkind = N_Package_Specification
4673 or else NT (N).Nkind = N_Protected_Definition
4674 or else NT (N).Nkind = N_Task_Definition);
4675 Set_List3_With_Parent (N, Val);
4676 end Set_Private_Declarations;
4678 procedure Set_Private_Present
4679 (N : Node_Id; Val : Boolean := True) is
4681 pragma Assert (False
4682 or else NT (N).Nkind = N_Compilation_Unit
4683 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4684 or else NT (N).Nkind = N_With_Clause);
4685 Set_Flag15 (N, Val);
4686 end Set_Private_Present;
4688 procedure Set_Procedure_To_Call
4689 (N : Node_Id; Val : Node_Id) is
4691 pragma Assert (False
4692 or else NT (N).Nkind = N_Allocator
4693 or else NT (N).Nkind = N_Free_Statement
4694 or else NT (N).Nkind = N_Return_Statement);
4695 Set_Node4 (N, Val); -- semantic field, no parent set
4696 end Set_Procedure_To_Call;
4698 procedure Set_Proper_Body
4699 (N : Node_Id; Val : Node_Id) is
4701 pragma Assert (False
4702 or else NT (N).Nkind = N_Subunit);
4703 Set_Node1_With_Parent (N, Val);
4704 end Set_Proper_Body;
4706 procedure Set_Protected_Definition
4707 (N : Node_Id; Val : Node_Id) is
4709 pragma Assert (False
4710 or else NT (N).Nkind = N_Protected_Type_Declaration
4711 or else NT (N).Nkind = N_Single_Protected_Declaration);
4712 Set_Node3_With_Parent (N, Val);
4713 end Set_Protected_Definition;
4715 procedure Set_Protected_Present
4716 (N : Node_Id; Val : Boolean := True) is
4718 pragma Assert (False
4719 or else NT (N).Nkind = N_Access_Function_Definition
4720 or else NT (N).Nkind = N_Access_Procedure_Definition
4721 or else NT (N).Nkind = N_Derived_Type_Definition
4722 or else NT (N).Nkind = N_Record_Definition);
4724 end Set_Protected_Present;
4726 procedure Set_Raises_Constraint_Error
4727 (N : Node_Id; Val : Boolean := True) is
4729 pragma Assert (False
4730 or else NT (N).Nkind in N_Subexpr);
4732 end Set_Raises_Constraint_Error;
4734 procedure Set_Range_Constraint
4735 (N : Node_Id; Val : Node_Id) is
4737 pragma Assert (False
4738 or else NT (N).Nkind = N_Delta_Constraint
4739 or else NT (N).Nkind = N_Digits_Constraint);
4740 Set_Node4_With_Parent (N, Val);
4741 end Set_Range_Constraint;
4743 procedure Set_Range_Expression
4744 (N : Node_Id; Val : Node_Id) is
4746 pragma Assert (False
4747 or else NT (N).Nkind = N_Range_Constraint);
4748 Set_Node4_With_Parent (N, Val);
4749 end Set_Range_Expression;
4751 procedure Set_Real_Range_Specification
4752 (N : Node_Id; Val : Node_Id) is
4754 pragma Assert (False
4755 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4756 or else NT (N).Nkind = N_Floating_Point_Definition
4757 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
4758 Set_Node4_With_Parent (N, Val);
4759 end Set_Real_Range_Specification;
4761 procedure Set_Realval
4762 (N : Node_Id; Val : Ureal) is
4764 pragma Assert (False
4765 or else NT (N).Nkind = N_Real_Literal);
4766 Set_Ureal3 (N, Val);
4769 procedure Set_Reason
4770 (N : Node_Id; Val : Uint) is
4772 pragma Assert (False
4773 or else NT (N).Nkind = N_Raise_Constraint_Error
4774 or else NT (N).Nkind = N_Raise_Program_Error
4775 or else NT (N).Nkind = N_Raise_Storage_Error);
4779 procedure Set_Record_Extension_Part
4780 (N : Node_Id; Val : Node_Id) is
4782 pragma Assert (False
4783 or else NT (N).Nkind = N_Derived_Type_Definition);
4784 Set_Node3_With_Parent (N, Val);
4785 end Set_Record_Extension_Part;
4787 procedure Set_Redundant_Use
4788 (N : Node_Id; Val : Boolean := True) is
4790 pragma Assert (False
4791 or else NT (N).Nkind = N_Attribute_Reference
4792 or else NT (N).Nkind = N_Expanded_Name
4793 or else NT (N).Nkind = N_Identifier);
4794 Set_Flag13 (N, Val);
4795 end Set_Redundant_Use;
4797 procedure Set_Return_Type
4798 (N : Node_Id; Val : Node_Id) is
4800 pragma Assert (False
4801 or else NT (N).Nkind = N_Return_Statement);
4802 Set_Node2 (N, Val); -- semantic field, no parent set
4803 end Set_Return_Type;
4805 procedure Set_Reverse_Present
4806 (N : Node_Id; Val : Boolean := True) is
4808 pragma Assert (False
4809 or else NT (N).Nkind = N_Loop_Parameter_Specification);
4810 Set_Flag15 (N, Val);
4811 end Set_Reverse_Present;
4813 procedure Set_Right_Opnd
4814 (N : Node_Id; Val : Node_Id) is
4816 pragma Assert (False
4817 or else NT (N).Nkind in N_Op
4818 or else NT (N).Nkind = N_And_Then
4819 or else NT (N).Nkind = N_In
4820 or else NT (N).Nkind = N_Not_In
4821 or else NT (N).Nkind = N_Or_Else);
4822 Set_Node3_With_Parent (N, Val);
4825 procedure Set_Rounded_Result
4826 (N : Node_Id; Val : Boolean := True) is
4828 pragma Assert (False
4829 or else NT (N).Nkind = N_Op_Divide
4830 or else NT (N).Nkind = N_Op_Multiply
4831 or else NT (N).Nkind = N_Type_Conversion);
4832 Set_Flag18 (N, Val);
4833 end Set_Rounded_Result;
4836 (N : Node_Id; Val : Node_Id) is
4838 pragma Assert (False
4839 or else NT (N).Nkind = N_Defining_Character_Literal
4840 or else NT (N).Nkind = N_Defining_Identifier
4841 or else NT (N).Nkind = N_Defining_Operator_Symbol);
4842 Set_Node3 (N, Val); -- semantic field, no parent set
4845 procedure Set_Select_Alternatives
4846 (N : Node_Id; Val : List_Id) is
4848 pragma Assert (False
4849 or else NT (N).Nkind = N_Selective_Accept);
4850 Set_List1_With_Parent (N, Val);
4851 end Set_Select_Alternatives;
4853 procedure Set_Selector_Name
4854 (N : Node_Id; Val : Node_Id) is
4856 pragma Assert (False
4857 or else NT (N).Nkind = N_Expanded_Name
4858 or else NT (N).Nkind = N_Generic_Association
4859 or else NT (N).Nkind = N_Parameter_Association
4860 or else NT (N).Nkind = N_Selected_Component);
4861 Set_Node2_With_Parent (N, Val);
4862 end Set_Selector_Name;
4864 procedure Set_Selector_Names
4865 (N : Node_Id; Val : List_Id) is
4867 pragma Assert (False
4868 or else NT (N).Nkind = N_Discriminant_Association);
4869 Set_List1_With_Parent (N, Val);
4870 end Set_Selector_Names;
4872 procedure Set_Shift_Count_OK
4873 (N : Node_Id; Val : Boolean := True) is
4875 pragma Assert (False
4876 or else NT (N).Nkind = N_Op_Rotate_Left
4877 or else NT (N).Nkind = N_Op_Rotate_Right
4878 or else NT (N).Nkind = N_Op_Shift_Left
4879 or else NT (N).Nkind = N_Op_Shift_Right
4880 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
4882 end Set_Shift_Count_OK;
4884 procedure Set_Source_Type
4885 (N : Node_Id; Val : Entity_Id) is
4887 pragma Assert (False
4888 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
4889 Set_Node1 (N, Val); -- semantic field, no parent set
4890 end Set_Source_Type;
4892 procedure Set_Specification
4893 (N : Node_Id; Val : Node_Id) is
4895 pragma Assert (False
4896 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
4897 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
4898 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
4899 or else NT (N).Nkind = N_Generic_Package_Declaration
4900 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
4901 or else NT (N).Nkind = N_Package_Declaration
4902 or else NT (N).Nkind = N_Subprogram_Body
4903 or else NT (N).Nkind = N_Subprogram_Body_Stub
4904 or else NT (N).Nkind = N_Subprogram_Declaration
4905 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4906 Set_Node1_With_Parent (N, Val);
4907 end Set_Specification;
4909 procedure Set_Statements
4910 (N : Node_Id; Val : List_Id) is
4912 pragma Assert (False
4913 or else NT (N).Nkind = N_Abortable_Part
4914 or else NT (N).Nkind = N_Accept_Alternative
4915 or else NT (N).Nkind = N_Case_Statement_Alternative
4916 or else NT (N).Nkind = N_Delay_Alternative
4917 or else NT (N).Nkind = N_Entry_Call_Alternative
4918 or else NT (N).Nkind = N_Exception_Handler
4919 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4920 or else NT (N).Nkind = N_Loop_Statement
4921 or else NT (N).Nkind = N_Triggering_Alternative);
4922 Set_List3_With_Parent (N, Val);
4925 procedure Set_Static_Processing_OK
4926 (N : Node_Id; Val : Boolean) is
4928 pragma Assert (False
4929 or else NT (N).Nkind = N_Aggregate);
4931 end Set_Static_Processing_OK;
4933 procedure Set_Storage_Pool
4934 (N : Node_Id; Val : Node_Id) is
4936 pragma Assert (False
4937 or else NT (N).Nkind = N_Allocator
4938 or else NT (N).Nkind = N_Free_Statement
4939 or else NT (N).Nkind = N_Return_Statement);
4940 Set_Node1 (N, Val); -- semantic field, no parent set
4941 end Set_Storage_Pool;
4943 procedure Set_Strval
4944 (N : Node_Id; Val : String_Id) is
4946 pragma Assert (False
4947 or else NT (N).Nkind = N_Operator_Symbol
4948 or else NT (N).Nkind = N_String_Literal);
4952 procedure Set_Subtype_Indication
4953 (N : Node_Id; Val : Node_Id) is
4955 pragma Assert (False
4956 or else NT (N).Nkind = N_Access_To_Object_Definition
4957 or else NT (N).Nkind = N_Component_Definition
4958 or else NT (N).Nkind = N_Derived_Type_Definition
4959 or else NT (N).Nkind = N_Private_Extension_Declaration
4960 or else NT (N).Nkind = N_Subtype_Declaration);
4961 Set_Node5_With_Parent (N, Val);
4962 end Set_Subtype_Indication;
4964 procedure Set_Subtype_Mark
4965 (N : Node_Id; Val : Node_Id) is
4967 pragma Assert (False
4968 or else NT (N).Nkind = N_Access_Definition
4969 or else NT (N).Nkind = N_Access_Function_Definition
4970 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4971 or else NT (N).Nkind = N_Formal_Object_Declaration
4972 or else NT (N).Nkind = N_Function_Specification
4973 or else NT (N).Nkind = N_Object_Renaming_Declaration
4974 or else NT (N).Nkind = N_Qualified_Expression
4975 or else NT (N).Nkind = N_Subtype_Indication
4976 or else NT (N).Nkind = N_Type_Conversion
4977 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4978 Set_Node4_With_Parent (N, Val);
4979 end Set_Subtype_Mark;
4981 procedure Set_Subtype_Marks
4982 (N : Node_Id; Val : List_Id) is
4984 pragma Assert (False
4985 or else NT (N).Nkind = N_Unconstrained_Array_Definition
4986 or else NT (N).Nkind = N_Use_Type_Clause);
4987 Set_List2_With_Parent (N, Val);
4988 end Set_Subtype_Marks;
4990 procedure Set_Synchronized_Present
4991 (N : Node_Id; Val : Boolean := True) is
4993 pragma Assert (False
4994 or else NT (N).Nkind = N_Derived_Type_Definition
4995 or else NT (N).Nkind = N_Record_Definition);
4997 end Set_Synchronized_Present;
4999 procedure Set_Tagged_Present
5000 (N : Node_Id; Val : Boolean := True) is
5002 pragma Assert (False
5003 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5004 or else NT (N).Nkind = N_Private_Type_Declaration
5005 or else NT (N).Nkind = N_Record_Definition
5006 or else NT (N).Nkind = N_With_Type_Clause);
5007 Set_Flag15 (N, Val);
5008 end Set_Tagged_Present;
5010 procedure Set_Target_Type
5011 (N : Node_Id; Val : Entity_Id) is
5013 pragma Assert (False
5014 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5015 Set_Node2 (N, Val); -- semantic field, no parent set
5016 end Set_Target_Type;
5018 procedure Set_Task_Definition
5019 (N : Node_Id; Val : Node_Id) is
5021 pragma Assert (False
5022 or else NT (N).Nkind = N_Single_Task_Declaration
5023 or else NT (N).Nkind = N_Task_Type_Declaration);
5024 Set_Node3_With_Parent (N, Val);
5025 end Set_Task_Definition;
5027 procedure Set_Task_Present
5028 (N : Node_Id; Val : Boolean := True) is
5030 pragma Assert (False
5031 or else NT (N).Nkind = N_Derived_Type_Definition
5032 or else NT (N).Nkind = N_Record_Definition);
5034 end Set_Task_Present;
5036 procedure Set_Then_Actions
5037 (N : Node_Id; Val : List_Id) is
5039 pragma Assert (False
5040 or else NT (N).Nkind = N_Conditional_Expression);
5041 Set_List2 (N, Val); -- semantic field, no parent set
5042 end Set_Then_Actions;
5044 procedure Set_Then_Statements
5045 (N : Node_Id; Val : List_Id) is
5047 pragma Assert (False
5048 or else NT (N).Nkind = N_Elsif_Part
5049 or else NT (N).Nkind = N_If_Statement);
5050 Set_List2_With_Parent (N, Val);
5051 end Set_Then_Statements;
5053 procedure Set_Treat_Fixed_As_Integer
5054 (N : Node_Id; Val : Boolean := True) is
5056 pragma Assert (False
5057 or else NT (N).Nkind = N_Op_Divide
5058 or else NT (N).Nkind = N_Op_Mod
5059 or else NT (N).Nkind = N_Op_Multiply
5060 or else NT (N).Nkind = N_Op_Rem);
5061 Set_Flag14 (N, Val);
5062 end Set_Treat_Fixed_As_Integer;
5064 procedure Set_Triggering_Alternative
5065 (N : Node_Id; Val : Node_Id) is
5067 pragma Assert (False
5068 or else NT (N).Nkind = N_Asynchronous_Select);
5069 Set_Node1_With_Parent (N, Val);
5070 end Set_Triggering_Alternative;
5072 procedure Set_Triggering_Statement
5073 (N : Node_Id; Val : Node_Id) is
5075 pragma Assert (False
5076 or else NT (N).Nkind = N_Triggering_Alternative);
5077 Set_Node1_With_Parent (N, Val);
5078 end Set_Triggering_Statement;
5080 procedure Set_TSS_Elist
5081 (N : Node_Id; Val : Elist_Id) is
5083 pragma Assert (False
5084 or else NT (N).Nkind = N_Freeze_Entity);
5085 Set_Elist3 (N, Val); -- semantic field, no parent set
5088 procedure Set_Type_Definition
5089 (N : Node_Id; Val : Node_Id) is
5091 pragma Assert (False
5092 or else NT (N).Nkind = N_Full_Type_Declaration);
5093 Set_Node3_With_Parent (N, Val);
5094 end Set_Type_Definition;
5097 (N : Node_Id; Val : Node_Id) is
5099 pragma Assert (False
5100 or else NT (N).Nkind = N_Compilation_Unit);
5101 Set_Node2_With_Parent (N, Val);
5104 procedure Set_Unknown_Discriminants_Present
5105 (N : Node_Id; Val : Boolean := True) is
5107 pragma Assert (False
5108 or else NT (N).Nkind = N_Formal_Type_Declaration
5109 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5110 or else NT (N).Nkind = N_Private_Extension_Declaration
5111 or else NT (N).Nkind = N_Private_Type_Declaration);
5112 Set_Flag13 (N, Val);
5113 end Set_Unknown_Discriminants_Present;
5115 procedure Set_Unreferenced_In_Spec
5116 (N : Node_Id; Val : Boolean := True) is
5118 pragma Assert (False
5119 or else NT (N).Nkind = N_With_Clause);
5121 end Set_Unreferenced_In_Spec;
5123 procedure Set_Variant_Part
5124 (N : Node_Id; Val : Node_Id) is
5126 pragma Assert (False
5127 or else NT (N).Nkind = N_Component_List);
5128 Set_Node4_With_Parent (N, Val);
5129 end Set_Variant_Part;
5131 procedure Set_Variants
5132 (N : Node_Id; Val : List_Id) is
5134 pragma Assert (False
5135 or else NT (N).Nkind = N_Variant_Part);
5136 Set_List1_With_Parent (N, Val);
5139 procedure Set_Visible_Declarations
5140 (N : Node_Id; Val : List_Id) is
5142 pragma Assert (False
5143 or else NT (N).Nkind = N_Package_Specification
5144 or else NT (N).Nkind = N_Protected_Definition
5145 or else NT (N).Nkind = N_Task_Definition);
5146 Set_List2_With_Parent (N, Val);
5147 end Set_Visible_Declarations;
5149 procedure Set_Was_Originally_Stub
5150 (N : Node_Id; Val : Boolean := True) is
5152 pragma Assert (False
5153 or else NT (N).Nkind = N_Package_Body
5154 or else NT (N).Nkind = N_Protected_Body
5155 or else NT (N).Nkind = N_Subprogram_Body
5156 or else NT (N).Nkind = N_Task_Body);
5157 Set_Flag13 (N, Val);
5158 end Set_Was_Originally_Stub;
5160 procedure Set_Zero_Cost_Handling
5161 (N : Node_Id; Val : Boolean := True) is
5163 pragma Assert (False
5164 or else NT (N).Nkind = N_Exception_Handler
5165 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
5167 end Set_Zero_Cost_Handling;
5169 -------------------------
5170 -- Iterator Procedures --
5171 -------------------------
5173 procedure Next_Entity (N : in out Node_Id) is
5175 N := Next_Entity (N);
5178 procedure Next_Named_Actual (N : in out Node_Id) is
5180 N := Next_Named_Actual (N);
5181 end Next_Named_Actual;
5183 procedure Next_Rep_Item (N : in out Node_Id) is
5185 N := Next_Rep_Item (N);
5188 procedure Next_Use_Clause (N : in out Node_Id) is
5190 N := Next_Use_Clause (N);
5191 end Next_Use_Clause;
5197 function End_Location (N : Node_Id) return Source_Ptr is
5198 L : constant Uint := End_Span (N);
5204 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
5208 ----------------------
5209 -- Set_End_Location --
5210 ----------------------
5212 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
5215 UI_From_Int (Int (S) - Int (Sloc (N))));
5216 end Set_End_Location;