1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks
(All_Checks
);
33 -- No subprogram ordering check, due to logical grouping
35 with Atree
; use Atree
;
39 use Atree
.Unchecked_Access
;
40 -- This package is one of the few packages which is allowed to make direct
41 -- references to tree nodes (since it is in the business of providing a
42 -- higher level of tree access which other clients are expected to use and
43 -- which implements checks).
45 use Atree_Private_Part
;
46 -- The only reason that we ask for direct access to the private part of
47 -- the tree package is so that we can directly reference the Nkind field
48 -- of nodes table entries. We do this since it helps the efficiency of
49 -- the Sinfo debugging checks considerably (note that when we are checking
50 -- Nkind values, we don't need to check for a valid node reference, because
51 -- we will check that anyway when we reference the field).
53 NT
: Nodes
.Table_Ptr
renames Nodes
.Table
;
54 -- A short hand abbreviation, useful for the debugging checks
56 ----------------------------
57 -- Field Access Functions --
58 ----------------------------
60 -- Note: The use of Assert (False or else ...) is just a device to allow
61 -- uniform format of the conditions following this. Note that csinfo
62 -- expects this uniform format.
64 function ABE_Is_Certain
65 (N
: Node_Id
) return Boolean is
68 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
69 or else NT
(N
).Nkind
= N_Function_Call
70 or else NT
(N
).Nkind
= N_Function_Instantiation
71 or else NT
(N
).Nkind
= N_Package_Instantiation
72 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
73 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
77 function Abort_Present
78 (N
: Node_Id
) return Boolean is
81 or else NT
(N
).Nkind
= N_Requeue_Statement
);
85 function Abortable_Part
86 (N
: Node_Id
) return Node_Id
is
89 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
93 function Abstract_Present
94 (N
: Node_Id
) return Boolean is
97 or else NT
(N
).Nkind
= N_Derived_Type_Definition
98 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
99 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
100 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
101 or else NT
(N
).Nkind
= N_Private_Type_Declaration
102 or else NT
(N
).Nkind
= N_Record_Definition
);
104 end Abstract_Present
;
106 function Accept_Handler_Records
107 (N
: Node_Id
) return List_Id
is
110 or else NT
(N
).Nkind
= N_Accept_Alternative
);
112 end Accept_Handler_Records
;
114 function Accept_Statement
115 (N
: Node_Id
) return Node_Id
is
118 or else NT
(N
).Nkind
= N_Accept_Alternative
);
120 end Accept_Statement
;
122 function Access_Definition
123 (N
: Node_Id
) return Node_Id
is
126 or else NT
(N
).Nkind
= N_Component_Definition
127 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
128 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
130 end Access_Definition
;
132 function Access_To_Subprogram_Definition
133 (N
: Node_Id
) return Node_Id
is
136 or else NT
(N
).Nkind
= N_Access_Definition
);
138 end Access_To_Subprogram_Definition
;
140 function Access_Types_To_Process
141 (N
: Node_Id
) return Elist_Id
is
144 or else NT
(N
).Nkind
= N_Freeze_Entity
);
146 end Access_Types_To_Process
;
149 (N
: Node_Id
) return List_Id
is
152 or else NT
(N
).Nkind
= N_And_Then
153 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
154 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
155 or else NT
(N
).Nkind
= N_Compound_Statement
156 or else NT
(N
).Nkind
= N_Expression_With_Actions
157 or else NT
(N
).Nkind
= N_Freeze_Entity
158 or else NT
(N
).Nkind
= N_Or_Else
);
162 function Activation_Chain_Entity
163 (N
: Node_Id
) return Node_Id
is
166 or else NT
(N
).Nkind
= N_Block_Statement
167 or else NT
(N
).Nkind
= N_Entry_Body
168 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
169 or else NT
(N
).Nkind
= N_Package_Declaration
170 or else NT
(N
).Nkind
= N_Subprogram_Body
171 or else NT
(N
).Nkind
= N_Task_Body
);
173 end Activation_Chain_Entity
;
175 function Acts_As_Spec
176 (N
: Node_Id
) return Boolean is
179 or else NT
(N
).Nkind
= N_Compilation_Unit
180 or else NT
(N
).Nkind
= N_Subprogram_Body
);
184 function Actual_Designated_Subtype
185 (N
: Node_Id
) return Node_Id
is
188 or else NT
(N
).Nkind
= N_Explicit_Dereference
189 or else NT
(N
).Nkind
= N_Free_Statement
);
191 end Actual_Designated_Subtype
;
193 function Address_Warning_Posted
194 (N
: Node_Id
) return Boolean is
197 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
199 end Address_Warning_Posted
;
201 function Aggregate_Bounds
202 (N
: Node_Id
) return Node_Id
is
205 or else NT
(N
).Nkind
= N_Aggregate
);
207 end Aggregate_Bounds
;
209 function Aliased_Present
210 (N
: Node_Id
) return Boolean is
213 or else NT
(N
).Nkind
= N_Component_Definition
214 or else NT
(N
).Nkind
= N_Object_Declaration
215 or else NT
(N
).Nkind
= N_Parameter_Specification
);
220 (N
: Node_Id
) return Boolean is
223 or else NT
(N
).Nkind
= N_Others_Choice
);
228 (N
: Node_Id
) return Boolean is
231 or else NT
(N
).Nkind
= N_Access_Definition
232 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
233 or else NT
(N
).Nkind
= N_Quantified_Expression
234 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
238 function Alternatives
239 (N
: Node_Id
) return List_Id
is
242 or else NT
(N
).Nkind
= N_Case_Expression
243 or else NT
(N
).Nkind
= N_Case_Statement
244 or else NT
(N
).Nkind
= N_In
245 or else NT
(N
).Nkind
= N_Not_In
);
249 function Ancestor_Part
250 (N
: Node_Id
) return Node_Id
is
253 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
257 function Atomic_Sync_Required
258 (N
: Node_Id
) return Boolean is
261 or else NT
(N
).Nkind
= N_Expanded_Name
262 or else NT
(N
).Nkind
= N_Explicit_Dereference
263 or else NT
(N
).Nkind
= N_Identifier
264 or else NT
(N
).Nkind
= N_Indexed_Component
265 or else NT
(N
).Nkind
= N_Selected_Component
);
267 end Atomic_Sync_Required
;
269 function Array_Aggregate
270 (N
: Node_Id
) return Node_Id
is
273 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
);
277 function Aspect_Rep_Item
278 (N
: Node_Id
) return Node_Id
is
281 or else NT
(N
).Nkind
= N_Aspect_Specification
);
285 function Assignment_OK
286 (N
: Node_Id
) return Boolean is
289 or else NT
(N
).Nkind
= N_Object_Declaration
290 or else NT
(N
).Nkind
in N_Subexpr
);
294 function Associated_Node
295 (N
: Node_Id
) return Node_Id
is
298 or else NT
(N
).Nkind
in N_Has_Entity
299 or else NT
(N
).Nkind
= N_Aggregate
300 or else NT
(N
).Nkind
= N_Extension_Aggregate
301 or else NT
(N
).Nkind
= N_Selected_Component
);
306 (N
: Node_Id
) return Node_Id
is
309 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
313 function Attribute_Name
314 (N
: Node_Id
) return Name_Id
is
317 or else NT
(N
).Nkind
= N_Attribute_Reference
);
321 function Aux_Decls_Node
322 (N
: Node_Id
) return Node_Id
is
325 or else NT
(N
).Nkind
= N_Compilation_Unit
);
329 function Backwards_OK
330 (N
: Node_Id
) return Boolean is
333 or else NT
(N
).Nkind
= N_Assignment_Statement
);
337 function Bad_Is_Detected
338 (N
: Node_Id
) return Boolean is
341 or else NT
(N
).Nkind
= N_Subprogram_Body
);
345 function Body_Required
346 (N
: Node_Id
) return Boolean is
349 or else NT
(N
).Nkind
= N_Compilation_Unit
);
353 function Body_To_Inline
354 (N
: Node_Id
) return Node_Id
is
357 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
362 (N
: Node_Id
) return Boolean is
365 or else NT
(N
).Nkind
= N_Component_Association
366 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
367 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
368 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
369 or else NT
(N
).Nkind
= N_Generic_Association
);
374 (N
: Node_Id
) return Boolean is
377 or else NT
(N
).Nkind
= N_Extended_Return_Statement
378 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
382 function Char_Literal_Value
383 (N
: Node_Id
) return Uint
is
386 or else NT
(N
).Nkind
= N_Character_Literal
);
388 end Char_Literal_Value
;
391 (N
: Node_Id
) return Name_Id
is
394 or else NT
(N
).Nkind
in N_Has_Chars
);
398 function Check_Address_Alignment
399 (N
: Node_Id
) return Boolean is
402 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
404 end Check_Address_Alignment
;
406 function Choice_Parameter
407 (N
: Node_Id
) return Node_Id
is
410 or else NT
(N
).Nkind
= N_Exception_Handler
);
412 end Choice_Parameter
;
415 (N
: Node_Id
) return List_Id
is
418 or else NT
(N
).Nkind
= N_Component_Association
);
422 function Class_Present
423 (N
: Node_Id
) return Boolean is
426 or else NT
(N
).Nkind
= N_Aspect_Specification
427 or else NT
(N
).Nkind
= N_Pragma
);
431 function Classifications
432 (N
: Node_Id
) return Node_Id
is
435 or else NT
(N
).Nkind
= N_Contract
);
439 function Cleanup_Actions
440 (N
: Node_Id
) return List_Id
is
443 or else NT
(N
).Nkind
= N_Block_Statement
);
447 function Comes_From_Extended_Return_Statement
448 (N
: Node_Id
) return Boolean is
451 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
453 end Comes_From_Extended_Return_Statement
;
455 function Compile_Time_Known_Aggregate
456 (N
: Node_Id
) return Boolean is
459 or else NT
(N
).Nkind
= N_Aggregate
);
461 end Compile_Time_Known_Aggregate
;
463 function Component_Associations
464 (N
: Node_Id
) return List_Id
is
467 or else NT
(N
).Nkind
= N_Aggregate
468 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
470 end Component_Associations
;
472 function Component_Clauses
473 (N
: Node_Id
) return List_Id
is
476 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
478 end Component_Clauses
;
480 function Component_Definition
481 (N
: Node_Id
) return Node_Id
is
484 or else NT
(N
).Nkind
= N_Component_Declaration
485 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
486 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
);
488 end Component_Definition
;
490 function Component_Items
491 (N
: Node_Id
) return List_Id
is
494 or else NT
(N
).Nkind
= N_Component_List
);
498 function Component_List
499 (N
: Node_Id
) return Node_Id
is
502 or else NT
(N
).Nkind
= N_Record_Definition
503 or else NT
(N
).Nkind
= N_Variant
);
507 function Component_Name
508 (N
: Node_Id
) return Node_Id
is
511 or else NT
(N
).Nkind
= N_Component_Clause
);
515 function Componentwise_Assignment
516 (N
: Node_Id
) return Boolean is
519 or else NT
(N
).Nkind
= N_Assignment_Statement
);
521 end Componentwise_Assignment
;
524 (N
: Node_Id
) return Node_Id
is
527 or else NT
(N
).Nkind
= N_Accept_Alternative
528 or else NT
(N
).Nkind
= N_Delay_Alternative
529 or else NT
(N
).Nkind
= N_Elsif_Part
530 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
531 or else NT
(N
).Nkind
= N_Exit_Statement
532 or else NT
(N
).Nkind
= N_If_Statement
533 or else NT
(N
).Nkind
= N_Iteration_Scheme
534 or else NT
(N
).Nkind
= N_Quantified_Expression
535 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
536 or else NT
(N
).Nkind
= N_Raise_Program_Error
537 or else NT
(N
).Nkind
= N_Raise_Storage_Error
538 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
542 function Condition_Actions
543 (N
: Node_Id
) return List_Id
is
546 or else NT
(N
).Nkind
= N_Elsif_Part
547 or else NT
(N
).Nkind
= N_Iteration_Scheme
);
549 end Condition_Actions
;
551 function Config_Pragmas
552 (N
: Node_Id
) return List_Id
is
555 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
559 function Constant_Present
560 (N
: Node_Id
) return Boolean is
563 or else NT
(N
).Nkind
= N_Access_Definition
564 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
565 or else NT
(N
).Nkind
= N_Object_Declaration
);
567 end Constant_Present
;
570 (N
: Node_Id
) return Node_Id
is
573 or else NT
(N
).Nkind
= N_Subtype_Indication
);
578 (N
: Node_Id
) return List_Id
is
581 or else NT
(N
).Nkind
= N_Index_Or_Discriminant_Constraint
);
585 function Context_Installed
586 (N
: Node_Id
) return Boolean is
589 or else NT
(N
).Nkind
= N_With_Clause
);
591 end Context_Installed
;
593 function Context_Items
594 (N
: Node_Id
) return List_Id
is
597 or else NT
(N
).Nkind
= N_Compilation_Unit
);
601 function Context_Pending
602 (N
: Node_Id
) return Boolean is
605 or else NT
(N
).Nkind
= N_Compilation_Unit
);
609 function Contract_Test_Cases
610 (N
: Node_Id
) return Node_Id
is
613 or else NT
(N
).Nkind
= N_Contract
);
615 end Contract_Test_Cases
;
617 function Controlling_Argument
618 (N
: Node_Id
) return Node_Id
is
621 or else NT
(N
).Nkind
= N_Function_Call
622 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
624 end Controlling_Argument
;
626 function Conversion_OK
627 (N
: Node_Id
) return Boolean is
630 or else NT
(N
).Nkind
= N_Type_Conversion
);
634 function Convert_To_Return_False
635 (N
: Node_Id
) return Boolean is
638 or else NT
(N
).Nkind
= N_Raise_Expression
);
640 end Convert_To_Return_False
;
642 function Corresponding_Aspect
643 (N
: Node_Id
) return Node_Id
is
646 or else NT
(N
).Nkind
= N_Pragma
);
648 end Corresponding_Aspect
;
650 function Corresponding_Body
651 (N
: Node_Id
) return Node_Id
is
654 or else NT
(N
).Nkind
= N_Entry_Declaration
655 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
656 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
657 or else NT
(N
).Nkind
= N_Package_Body_Stub
658 or else NT
(N
).Nkind
= N_Package_Declaration
659 or else NT
(N
).Nkind
= N_Protected_Body_Stub
660 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
661 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
662 or else NT
(N
).Nkind
= N_Subprogram_Declaration
663 or else NT
(N
).Nkind
= N_Task_Body_Stub
664 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
666 end Corresponding_Body
;
668 function Corresponding_Formal_Spec
669 (N
: Node_Id
) return Node_Id
is
672 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
674 end Corresponding_Formal_Spec
;
676 function Corresponding_Generic_Association
677 (N
: Node_Id
) return Node_Id
is
680 or else NT
(N
).Nkind
= N_Object_Declaration
681 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
683 end Corresponding_Generic_Association
;
685 function Corresponding_Integer_Value
686 (N
: Node_Id
) return Uint
is
689 or else NT
(N
).Nkind
= N_Real_Literal
);
691 end Corresponding_Integer_Value
;
693 function Corresponding_Spec
694 (N
: Node_Id
) return Entity_Id
is
697 or else NT
(N
).Nkind
= N_Expression_Function
698 or else NT
(N
).Nkind
= N_Package_Body
699 or else NT
(N
).Nkind
= N_Protected_Body
700 or else NT
(N
).Nkind
= N_Subprogram_Body
701 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
702 or else NT
(N
).Nkind
= N_Task_Body
703 or else NT
(N
).Nkind
= N_With_Clause
);
705 end Corresponding_Spec
;
707 function Corresponding_Spec_Of_Stub
708 (N
: Node_Id
) return Entity_Id
is
711 or else NT
(N
).Nkind
= N_Package_Body_Stub
712 or else NT
(N
).Nkind
= N_Protected_Body_Stub
713 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
714 or else NT
(N
).Nkind
= N_Task_Body_Stub
);
716 end Corresponding_Spec_Of_Stub
;
718 function Corresponding_Stub
719 (N
: Node_Id
) return Node_Id
is
722 or else NT
(N
).Nkind
= N_Subunit
);
724 end Corresponding_Stub
;
726 function Dcheck_Function
727 (N
: Node_Id
) return Entity_Id
is
730 or else NT
(N
).Nkind
= N_Variant
);
734 function Declarations
735 (N
: Node_Id
) return List_Id
is
738 or else NT
(N
).Nkind
= N_Accept_Statement
739 or else NT
(N
).Nkind
= N_Block_Statement
740 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
741 or else NT
(N
).Nkind
= N_Entry_Body
742 or else NT
(N
).Nkind
= N_Package_Body
743 or else NT
(N
).Nkind
= N_Protected_Body
744 or else NT
(N
).Nkind
= N_Subprogram_Body
745 or else NT
(N
).Nkind
= N_Task_Body
);
749 function Default_Expression
750 (N
: Node_Id
) return Node_Id
is
753 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
754 or else NT
(N
).Nkind
= N_Parameter_Specification
);
756 end Default_Expression
;
758 function Default_Storage_Pool
759 (N
: Node_Id
) return Node_Id
is
762 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
764 end Default_Storage_Pool
;
766 function Default_Name
767 (N
: Node_Id
) return Node_Id
is
770 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
771 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
);
775 function Defining_Identifier
776 (N
: Node_Id
) return Entity_Id
is
779 or else NT
(N
).Nkind
= N_Component_Declaration
780 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
781 or else NT
(N
).Nkind
= N_Discriminant_Specification
782 or else NT
(N
).Nkind
= N_Entry_Body
783 or else NT
(N
).Nkind
= N_Entry_Declaration
784 or else NT
(N
).Nkind
= N_Entry_Index_Specification
785 or else NT
(N
).Nkind
= N_Exception_Declaration
786 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
787 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
788 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
789 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
790 or else NT
(N
).Nkind
= N_Full_Type_Declaration
791 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
792 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
793 or else NT
(N
).Nkind
= N_Iterator_Specification
794 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
795 or else NT
(N
).Nkind
= N_Number_Declaration
796 or else NT
(N
).Nkind
= N_Object_Declaration
797 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
798 or else NT
(N
).Nkind
= N_Package_Body_Stub
799 or else NT
(N
).Nkind
= N_Parameter_Specification
800 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
801 or else NT
(N
).Nkind
= N_Private_Type_Declaration
802 or else NT
(N
).Nkind
= N_Protected_Body
803 or else NT
(N
).Nkind
= N_Protected_Body_Stub
804 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
805 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
806 or else NT
(N
).Nkind
= N_Single_Task_Declaration
807 or else NT
(N
).Nkind
= N_Subtype_Declaration
808 or else NT
(N
).Nkind
= N_Task_Body
809 or else NT
(N
).Nkind
= N_Task_Body_Stub
810 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
812 end Defining_Identifier
;
814 function Defining_Unit_Name
815 (N
: Node_Id
) return Node_Id
is
818 or else NT
(N
).Nkind
= N_Function_Instantiation
819 or else NT
(N
).Nkind
= N_Function_Specification
820 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
821 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
822 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
823 or else NT
(N
).Nkind
= N_Package_Body
824 or else NT
(N
).Nkind
= N_Package_Instantiation
825 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
826 or else NT
(N
).Nkind
= N_Package_Specification
827 or else NT
(N
).Nkind
= N_Procedure_Instantiation
828 or else NT
(N
).Nkind
= N_Procedure_Specification
);
830 end Defining_Unit_Name
;
832 function Delay_Alternative
833 (N
: Node_Id
) return Node_Id
is
836 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
838 end Delay_Alternative
;
840 function Delay_Statement
841 (N
: Node_Id
) return Node_Id
is
844 or else NT
(N
).Nkind
= N_Delay_Alternative
);
848 function Delta_Expression
849 (N
: Node_Id
) return Node_Id
is
852 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
853 or else NT
(N
).Nkind
= N_Delta_Constraint
854 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
856 end Delta_Expression
;
858 function Digits_Expression
859 (N
: Node_Id
) return Node_Id
is
862 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
863 or else NT
(N
).Nkind
= N_Digits_Constraint
864 or else NT
(N
).Nkind
= N_Floating_Point_Definition
);
866 end Digits_Expression
;
868 function Discr_Check_Funcs_Built
869 (N
: Node_Id
) return Boolean is
872 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
874 end Discr_Check_Funcs_Built
;
876 function Discrete_Choices
877 (N
: Node_Id
) return List_Id
is
880 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
881 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
882 or else NT
(N
).Nkind
= N_Variant
);
884 end Discrete_Choices
;
886 function Discrete_Range
887 (N
: Node_Id
) return Node_Id
is
890 or else NT
(N
).Nkind
= N_Slice
);
894 function Discrete_Subtype_Definition
895 (N
: Node_Id
) return Node_Id
is
898 or else NT
(N
).Nkind
= N_Entry_Declaration
899 or else NT
(N
).Nkind
= N_Entry_Index_Specification
900 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
902 end Discrete_Subtype_Definition
;
904 function Discrete_Subtype_Definitions
905 (N
: Node_Id
) return List_Id
is
908 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
);
910 end Discrete_Subtype_Definitions
;
912 function Discriminant_Specifications
913 (N
: Node_Id
) return List_Id
is
916 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
917 or else NT
(N
).Nkind
= N_Full_Type_Declaration
918 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
919 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
920 or else NT
(N
).Nkind
= N_Private_Type_Declaration
921 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
922 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
924 end Discriminant_Specifications
;
926 function Discriminant_Type
927 (N
: Node_Id
) return Node_Id
is
930 or else NT
(N
).Nkind
= N_Discriminant_Specification
);
932 end Discriminant_Type
;
934 function Do_Accessibility_Check
935 (N
: Node_Id
) return Boolean is
938 or else NT
(N
).Nkind
= N_Parameter_Specification
);
940 end Do_Accessibility_Check
;
942 function Do_Discriminant_Check
943 (N
: Node_Id
) return Boolean is
946 or else NT
(N
).Nkind
= N_Assignment_Statement
947 or else NT
(N
).Nkind
= N_Selected_Component
948 or else NT
(N
).Nkind
= N_Type_Conversion
);
950 end Do_Discriminant_Check
;
952 function Do_Division_Check
953 (N
: Node_Id
) return Boolean is
956 or else NT
(N
).Nkind
= N_Op_Divide
957 or else NT
(N
).Nkind
= N_Op_Mod
958 or else NT
(N
).Nkind
= N_Op_Rem
);
960 end Do_Division_Check
;
962 function Do_Length_Check
963 (N
: Node_Id
) return Boolean is
966 or else NT
(N
).Nkind
= N_Assignment_Statement
967 or else NT
(N
).Nkind
= N_Op_And
968 or else NT
(N
).Nkind
= N_Op_Or
969 or else NT
(N
).Nkind
= N_Op_Xor
970 or else NT
(N
).Nkind
= N_Type_Conversion
);
974 function Do_Overflow_Check
975 (N
: Node_Id
) return Boolean is
978 or else NT
(N
).Nkind
in N_Op
979 or else NT
(N
).Nkind
= N_Attribute_Reference
980 or else NT
(N
).Nkind
= N_Case_Expression
981 or else NT
(N
).Nkind
= N_If_Expression
982 or else NT
(N
).Nkind
= N_Type_Conversion
);
984 end Do_Overflow_Check
;
986 function Do_Range_Check
987 (N
: Node_Id
) return Boolean is
990 or else NT
(N
).Nkind
in N_Subexpr
);
994 function Do_Storage_Check
995 (N
: Node_Id
) return Boolean is
998 or else NT
(N
).Nkind
= N_Allocator
999 or else NT
(N
).Nkind
= N_Subprogram_Body
);
1001 end Do_Storage_Check
;
1003 function Do_Tag_Check
1004 (N
: Node_Id
) return Boolean is
1006 pragma Assert
(False
1007 or else NT
(N
).Nkind
= N_Assignment_Statement
1008 or else NT
(N
).Nkind
= N_Extended_Return_Statement
1009 or else NT
(N
).Nkind
= N_Function_Call
1010 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
1011 or else NT
(N
).Nkind
= N_Simple_Return_Statement
1012 or else NT
(N
).Nkind
= N_Type_Conversion
);
1016 function Elaborate_All_Desirable
1017 (N
: Node_Id
) return Boolean is
1019 pragma Assert
(False
1020 or else NT
(N
).Nkind
= N_With_Clause
);
1022 end Elaborate_All_Desirable
;
1024 function Elaborate_All_Present
1025 (N
: Node_Id
) return Boolean is
1027 pragma Assert
(False
1028 or else NT
(N
).Nkind
= N_With_Clause
);
1030 end Elaborate_All_Present
;
1032 function Elaborate_Desirable
1033 (N
: Node_Id
) return Boolean is
1035 pragma Assert
(False
1036 or else NT
(N
).Nkind
= N_With_Clause
);
1038 end Elaborate_Desirable
;
1040 function Elaborate_Present
1041 (N
: Node_Id
) return Boolean is
1043 pragma Assert
(False
1044 or else NT
(N
).Nkind
= N_With_Clause
);
1046 end Elaborate_Present
;
1048 function Else_Actions
1049 (N
: Node_Id
) return List_Id
is
1051 pragma Assert
(False
1052 or else NT
(N
).Nkind
= N_If_Expression
);
1056 function Else_Statements
1057 (N
: Node_Id
) return List_Id
is
1059 pragma Assert
(False
1060 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
1061 or else NT
(N
).Nkind
= N_If_Statement
1062 or else NT
(N
).Nkind
= N_Selective_Accept
);
1064 end Else_Statements
;
1066 function Elsif_Parts
1067 (N
: Node_Id
) return List_Id
is
1069 pragma Assert
(False
1070 or else NT
(N
).Nkind
= N_If_Statement
);
1074 function Enclosing_Variant
1075 (N
: Node_Id
) return Node_Id
is
1077 pragma Assert
(False
1078 or else NT
(N
).Nkind
= N_Variant
);
1080 end Enclosing_Variant
;
1083 (N
: Node_Id
) return Node_Id
is
1085 pragma Assert
(False
1086 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
1087 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
1088 or else NT
(N
).Nkind
= N_Loop_Statement
1089 or else NT
(N
).Nkind
= N_Package_Specification
1090 or else NT
(N
).Nkind
= N_Protected_Body
1091 or else NT
(N
).Nkind
= N_Protected_Definition
1092 or else NT
(N
).Nkind
= N_Record_Definition
1093 or else NT
(N
).Nkind
= N_Task_Definition
);
1098 (N
: Node_Id
) return Uint
is
1100 pragma Assert
(False
1101 or else NT
(N
).Nkind
= N_Case_Statement
1102 or else NT
(N
).Nkind
= N_If_Statement
);
1107 (N
: Node_Id
) return Node_Id
is
1109 pragma Assert
(False
1110 or else NT
(N
).Nkind
in N_Has_Entity
1111 or else NT
(N
).Nkind
= N_Aspect_Specification
1112 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1113 or else NT
(N
).Nkind
= N_Freeze_Entity
1114 or else NT
(N
).Nkind
= N_Freeze_Generic_Entity
);
1118 function Entity_Or_Associated_Node
1119 (N
: Node_Id
) return Node_Id
is
1121 pragma Assert
(False
1122 or else NT
(N
).Nkind
in N_Has_Entity
1123 or else NT
(N
).Nkind
= N_Freeze_Entity
);
1125 end Entity_Or_Associated_Node
;
1127 function Entry_Body_Formal_Part
1128 (N
: Node_Id
) return Node_Id
is
1130 pragma Assert
(False
1131 or else NT
(N
).Nkind
= N_Entry_Body
);
1133 end Entry_Body_Formal_Part
;
1135 function Entry_Call_Alternative
1136 (N
: Node_Id
) return Node_Id
is
1138 pragma Assert
(False
1139 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
1140 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
1142 end Entry_Call_Alternative
;
1144 function Entry_Call_Statement
1145 (N
: Node_Id
) return Node_Id
is
1147 pragma Assert
(False
1148 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
);
1150 end Entry_Call_Statement
;
1152 function Entry_Direct_Name
1153 (N
: Node_Id
) return Node_Id
is
1155 pragma Assert
(False
1156 or else NT
(N
).Nkind
= N_Accept_Statement
);
1158 end Entry_Direct_Name
;
1160 function Entry_Index
1161 (N
: Node_Id
) return Node_Id
is
1163 pragma Assert
(False
1164 or else NT
(N
).Nkind
= N_Accept_Statement
);
1168 function Entry_Index_Specification
1169 (N
: Node_Id
) return Node_Id
is
1171 pragma Assert
(False
1172 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
);
1174 end Entry_Index_Specification
;
1177 (N
: Node_Id
) return Node_Id
is
1179 pragma Assert
(False
1180 or else NT
(N
).Nkind
in N_Has_Etype
);
1184 function Exception_Choices
1185 (N
: Node_Id
) return List_Id
is
1187 pragma Assert
(False
1188 or else NT
(N
).Nkind
= N_Exception_Handler
);
1190 end Exception_Choices
;
1192 function Exception_Handlers
1193 (N
: Node_Id
) return List_Id
is
1195 pragma Assert
(False
1196 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
1198 end Exception_Handlers
;
1200 function Exception_Junk
1201 (N
: Node_Id
) return Boolean is
1203 pragma Assert
(False
1204 or else NT
(N
).Nkind
= N_Block_Statement
1205 or else NT
(N
).Nkind
= N_Goto_Statement
1206 or else NT
(N
).Nkind
= N_Label
1207 or else NT
(N
).Nkind
= N_Object_Declaration
1208 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
1212 function Exception_Label
1213 (N
: Node_Id
) return Node_Id
is
1215 pragma Assert
(False
1216 or else NT
(N
).Nkind
= N_Exception_Handler
1217 or else NT
(N
).Nkind
= N_Push_Constraint_Error_Label
1218 or else NT
(N
).Nkind
= N_Push_Program_Error_Label
1219 or else NT
(N
).Nkind
= N_Push_Storage_Error_Label
);
1221 end Exception_Label
;
1223 function Expansion_Delayed
1224 (N
: Node_Id
) return Boolean is
1226 pragma Assert
(False
1227 or else NT
(N
).Nkind
= N_Aggregate
1228 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
1230 end Expansion_Delayed
;
1232 function Explicit_Actual_Parameter
1233 (N
: Node_Id
) return Node_Id
is
1235 pragma Assert
(False
1236 or else NT
(N
).Nkind
= N_Parameter_Association
);
1238 end Explicit_Actual_Parameter
;
1240 function Explicit_Generic_Actual_Parameter
1241 (N
: Node_Id
) return Node_Id
is
1243 pragma Assert
(False
1244 or else NT
(N
).Nkind
= N_Generic_Association
);
1246 end Explicit_Generic_Actual_Parameter
;
1249 (N
: Node_Id
) return Node_Id
is
1251 pragma Assert
(False
1252 or else NT
(N
).Nkind
= N_Allocator
1253 or else NT
(N
).Nkind
= N_Aspect_Specification
1254 or else NT
(N
).Nkind
= N_Assignment_Statement
1255 or else NT
(N
).Nkind
= N_At_Clause
1256 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1257 or else NT
(N
).Nkind
= N_Case_Expression
1258 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
1259 or else NT
(N
).Nkind
= N_Case_Statement
1260 or else NT
(N
).Nkind
= N_Code_Statement
1261 or else NT
(N
).Nkind
= N_Component_Association
1262 or else NT
(N
).Nkind
= N_Component_Declaration
1263 or else NT
(N
).Nkind
= N_Delay_Relative_Statement
1264 or else NT
(N
).Nkind
= N_Delay_Until_Statement
1265 or else NT
(N
).Nkind
= N_Discriminant_Association
1266 or else NT
(N
).Nkind
= N_Discriminant_Specification
1267 or else NT
(N
).Nkind
= N_Exception_Declaration
1268 or else NT
(N
).Nkind
= N_Expression_Function
1269 or else NT
(N
).Nkind
= N_Expression_With_Actions
1270 or else NT
(N
).Nkind
= N_Free_Statement
1271 or else NT
(N
).Nkind
= N_Mod_Clause
1272 or else NT
(N
).Nkind
= N_Modular_Type_Definition
1273 or else NT
(N
).Nkind
= N_Number_Declaration
1274 or else NT
(N
).Nkind
= N_Object_Declaration
1275 or else NT
(N
).Nkind
= N_Parameter_Specification
1276 or else NT
(N
).Nkind
= N_Pragma_Argument_Association
1277 or else NT
(N
).Nkind
= N_Qualified_Expression
1278 or else NT
(N
).Nkind
= N_Raise_Expression
1279 or else NT
(N
).Nkind
= N_Raise_Statement
1280 or else NT
(N
).Nkind
= N_Simple_Return_Statement
1281 or else NT
(N
).Nkind
= N_Type_Conversion
1282 or else NT
(N
).Nkind
= N_Unchecked_Expression
1283 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
1287 function Expressions
1288 (N
: Node_Id
) return List_Id
is
1290 pragma Assert
(False
1291 or else NT
(N
).Nkind
= N_Aggregate
1292 or else NT
(N
).Nkind
= N_Attribute_Reference
1293 or else NT
(N
).Nkind
= N_Extension_Aggregate
1294 or else NT
(N
).Nkind
= N_If_Expression
1295 or else NT
(N
).Nkind
= N_Indexed_Component
);
1300 (N
: Node_Id
) return Node_Id
is
1302 pragma Assert
(False
1303 or else NT
(N
).Nkind
= N_Component_Clause
);
1307 function First_Inlined_Subprogram
1308 (N
: Node_Id
) return Entity_Id
is
1310 pragma Assert
(False
1311 or else NT
(N
).Nkind
= N_Compilation_Unit
);
1313 end First_Inlined_Subprogram
;
1316 (N
: Node_Id
) return Boolean is
1318 pragma Assert
(False
1319 or else NT
(N
).Nkind
= N_With_Clause
);
1323 function First_Named_Actual
1324 (N
: Node_Id
) return Node_Id
is
1326 pragma Assert
(False
1327 or else NT
(N
).Nkind
= N_Entry_Call_Statement
1328 or else NT
(N
).Nkind
= N_Function_Call
1329 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
1331 end First_Named_Actual
;
1333 function First_Real_Statement
1334 (N
: Node_Id
) return Node_Id
is
1336 pragma Assert
(False
1337 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
1339 end First_Real_Statement
;
1341 function First_Subtype_Link
1342 (N
: Node_Id
) return Entity_Id
is
1344 pragma Assert
(False
1345 or else NT
(N
).Nkind
= N_Freeze_Entity
);
1347 end First_Subtype_Link
;
1349 function Float_Truncate
1350 (N
: Node_Id
) return Boolean is
1352 pragma Assert
(False
1353 or else NT
(N
).Nkind
= N_Type_Conversion
);
1357 function Formal_Type_Definition
1358 (N
: Node_Id
) return Node_Id
is
1360 pragma Assert
(False
1361 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
);
1363 end Formal_Type_Definition
;
1365 function Forwards_OK
1366 (N
: Node_Id
) return Boolean is
1368 pragma Assert
(False
1369 or else NT
(N
).Nkind
= N_Assignment_Statement
);
1373 function From_Aspect_Specification
1374 (N
: Node_Id
) return Boolean is
1376 pragma Assert
(False
1377 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1378 or else NT
(N
).Nkind
= N_Pragma
);
1380 end From_Aspect_Specification
;
1382 function From_At_End
1383 (N
: Node_Id
) return Boolean is
1385 pragma Assert
(False
1386 or else NT
(N
).Nkind
= N_Raise_Statement
);
1390 function From_At_Mod
1391 (N
: Node_Id
) return Boolean is
1393 pragma Assert
(False
1394 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
1398 function From_Conditional_Expression
1399 (N
: Node_Id
) return Boolean is
1401 pragma Assert
(False
1402 or else NT
(N
).Nkind
= N_Case_Statement
1403 or else NT
(N
).Nkind
= N_If_Statement
);
1405 end From_Conditional_Expression
;
1407 function From_Default
1408 (N
: Node_Id
) return Boolean is
1410 pragma Assert
(False
1411 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
1415 function Generalized_Indexing
1416 (N
: Node_Id
) return Node_Id
is
1418 pragma Assert
(False
1419 or else NT
(N
).Nkind
= N_Indexed_Component
);
1421 end Generalized_Indexing
;
1423 function Generic_Associations
1424 (N
: Node_Id
) return List_Id
is
1426 pragma Assert
(False
1427 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
1428 or else NT
(N
).Nkind
= N_Function_Instantiation
1429 or else NT
(N
).Nkind
= N_Package_Instantiation
1430 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
1432 end Generic_Associations
;
1434 function Generic_Formal_Declarations
1435 (N
: Node_Id
) return List_Id
is
1437 pragma Assert
(False
1438 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
1439 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
);
1441 end Generic_Formal_Declarations
;
1443 function Generic_Parent
1444 (N
: Node_Id
) return Node_Id
is
1446 pragma Assert
(False
1447 or else NT
(N
).Nkind
= N_Function_Specification
1448 or else NT
(N
).Nkind
= N_Package_Specification
1449 or else NT
(N
).Nkind
= N_Procedure_Specification
);
1453 function Generic_Parent_Type
1454 (N
: Node_Id
) return Node_Id
is
1456 pragma Assert
(False
1457 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
1459 end Generic_Parent_Type
;
1461 function Handled_Statement_Sequence
1462 (N
: Node_Id
) return Node_Id
is
1464 pragma Assert
(False
1465 or else NT
(N
).Nkind
= N_Accept_Statement
1466 or else NT
(N
).Nkind
= N_Block_Statement
1467 or else NT
(N
).Nkind
= N_Entry_Body
1468 or else NT
(N
).Nkind
= N_Extended_Return_Statement
1469 or else NT
(N
).Nkind
= N_Package_Body
1470 or else NT
(N
).Nkind
= N_Subprogram_Body
1471 or else NT
(N
).Nkind
= N_Task_Body
);
1473 end Handled_Statement_Sequence
;
1475 function Handler_List_Entry
1476 (N
: Node_Id
) return Node_Id
is
1478 pragma Assert
(False
1479 or else NT
(N
).Nkind
= N_Object_Declaration
);
1481 end Handler_List_Entry
;
1483 function Has_Created_Identifier
1484 (N
: Node_Id
) return Boolean is
1486 pragma Assert
(False
1487 or else NT
(N
).Nkind
= N_Block_Statement
1488 or else NT
(N
).Nkind
= N_Loop_Statement
);
1490 end Has_Created_Identifier
;
1492 function Has_Dereference_Action
1493 (N
: Node_Id
) return Boolean is
1495 pragma Assert
(False
1496 or else NT
(N
).Nkind
= N_Explicit_Dereference
);
1498 end Has_Dereference_Action
;
1500 function Has_Dynamic_Length_Check
1501 (N
: Node_Id
) return Boolean is
1503 pragma Assert
(False
1504 or else NT
(N
).Nkind
in N_Subexpr
);
1506 end Has_Dynamic_Length_Check
;
1508 function Has_Dynamic_Range_Check
1509 (N
: Node_Id
) return Boolean is
1511 pragma Assert
(False
1512 or else NT
(N
).Nkind
= N_Subtype_Declaration
1513 or else NT
(N
).Nkind
in N_Subexpr
);
1515 end Has_Dynamic_Range_Check
;
1517 function Has_Init_Expression
1518 (N
: Node_Id
) return Boolean is
1520 pragma Assert
(False
1521 or else NT
(N
).Nkind
= N_Object_Declaration
);
1523 end Has_Init_Expression
;
1525 function Has_Local_Raise
1526 (N
: Node_Id
) return Boolean is
1528 pragma Assert
(False
1529 or else NT
(N
).Nkind
= N_Exception_Handler
);
1531 end Has_Local_Raise
;
1533 function Has_No_Elaboration_Code
1534 (N
: Node_Id
) return Boolean is
1536 pragma Assert
(False
1537 or else NT
(N
).Nkind
= N_Compilation_Unit
);
1539 end Has_No_Elaboration_Code
;
1541 function Has_Pragma_Suppress_All
1542 (N
: Node_Id
) return Boolean is
1544 pragma Assert
(False
1545 or else NT
(N
).Nkind
= N_Compilation_Unit
);
1547 end Has_Pragma_Suppress_All
;
1549 function Has_Private_View
1550 (N
: Node_Id
) return Boolean is
1552 pragma Assert
(False
1553 or else NT
(N
).Nkind
in N_Op
1554 or else NT
(N
).Nkind
= N_Character_Literal
1555 or else NT
(N
).Nkind
= N_Expanded_Name
1556 or else NT
(N
).Nkind
= N_Identifier
1557 or else NT
(N
).Nkind
= N_Operator_Symbol
);
1559 end Has_Private_View
;
1561 function Has_Relative_Deadline_Pragma
1562 (N
: Node_Id
) return Boolean is
1564 pragma Assert
(False
1565 or else NT
(N
).Nkind
= N_Subprogram_Body
1566 or else NT
(N
).Nkind
= N_Task_Definition
);
1568 end Has_Relative_Deadline_Pragma
;
1570 function Has_Self_Reference
1571 (N
: Node_Id
) return Boolean is
1573 pragma Assert
(False
1574 or else NT
(N
).Nkind
= N_Aggregate
1575 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
1577 end Has_Self_Reference
;
1579 function Has_SP_Choice
1580 (N
: Node_Id
) return Boolean is
1582 pragma Assert
(False
1583 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
1584 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
1585 or else NT
(N
).Nkind
= N_Variant
);
1589 function Has_Storage_Size_Pragma
1590 (N
: Node_Id
) return Boolean is
1592 pragma Assert
(False
1593 or else NT
(N
).Nkind
= N_Task_Definition
);
1595 end Has_Storage_Size_Pragma
;
1597 function Has_Wide_Character
1598 (N
: Node_Id
) return Boolean is
1600 pragma Assert
(False
1601 or else NT
(N
).Nkind
= N_String_Literal
);
1603 end Has_Wide_Character
;
1605 function Has_Wide_Wide_Character
1606 (N
: Node_Id
) return Boolean is
1608 pragma Assert
(False
1609 or else NT
(N
).Nkind
= N_String_Literal
);
1611 end Has_Wide_Wide_Character
;
1613 function Header_Size_Added
1614 (N
: Node_Id
) return Boolean is
1616 pragma Assert
(False
1617 or else NT
(N
).Nkind
= N_Attribute_Reference
);
1619 end Header_Size_Added
;
1621 function Hidden_By_Use_Clause
1622 (N
: Node_Id
) return Elist_Id
is
1624 pragma Assert
(False
1625 or else NT
(N
).Nkind
= N_Use_Package_Clause
1626 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
1628 end Hidden_By_Use_Clause
;
1631 (N
: Node_Id
) return Node_Id
is
1633 pragma Assert
(False
1634 or else NT
(N
).Nkind
= N_Range
1635 or else NT
(N
).Nkind
= N_Real_Range_Specification
1636 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
1641 (N
: Node_Id
) return Node_Id
is
1643 pragma Assert
(False
1644 or else NT
(N
).Nkind
= N_Aspect_Specification
1645 or else NT
(N
).Nkind
= N_At_Clause
1646 or else NT
(N
).Nkind
= N_Block_Statement
1647 or else NT
(N
).Nkind
= N_Designator
1648 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
1649 or else NT
(N
).Nkind
= N_Label
1650 or else NT
(N
).Nkind
= N_Loop_Statement
1651 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
1655 function Implicit_With
1656 (N
: Node_Id
) return Boolean is
1658 pragma Assert
(False
1659 or else NT
(N
).Nkind
= N_With_Clause
);
1663 function Implicit_With_From_Instantiation
1664 (N
: Node_Id
) return Boolean is
1666 pragma Assert
(False
1667 or else NT
(N
).Nkind
= N_With_Clause
);
1669 end Implicit_With_From_Instantiation
;
1671 function Interface_List
1672 (N
: Node_Id
) return List_Id
is
1674 pragma Assert
(False
1675 or else NT
(N
).Nkind
= N_Derived_Type_Definition
1676 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
1677 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
1678 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
1679 or else NT
(N
).Nkind
= N_Record_Definition
1680 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
1681 or else NT
(N
).Nkind
= N_Single_Task_Declaration
1682 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
1686 function Interface_Present
1687 (N
: Node_Id
) return Boolean is
1689 pragma Assert
(False
1690 or else NT
(N
).Nkind
= N_Derived_Type_Definition
1691 or else NT
(N
).Nkind
= N_Record_Definition
);
1693 end Interface_Present
;
1695 function Import_Interface_Present
1696 (N
: Node_Id
) return Boolean is
1698 pragma Assert
(False
1699 or else NT
(N
).Nkind
= N_Pragma
);
1701 end Import_Interface_Present
;
1704 (N
: Node_Id
) return Boolean is
1706 pragma Assert
(False
1707 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
1708 or else NT
(N
).Nkind
= N_Parameter_Specification
);
1712 function Includes_Infinities
1713 (N
: Node_Id
) return Boolean is
1715 pragma Assert
(False
1716 or else NT
(N
).Nkind
= N_Range
);
1718 end Includes_Infinities
;
1720 function Incomplete_View
1721 (N
: Node_Id
) return Node_Id
is
1723 pragma Assert
(False
1724 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
1726 end Incomplete_View
;
1728 function Inherited_Discriminant
1729 (N
: Node_Id
) return Boolean is
1731 pragma Assert
(False
1732 or else NT
(N
).Nkind
= N_Component_Association
);
1734 end Inherited_Discriminant
;
1736 function Instance_Spec
1737 (N
: Node_Id
) return Node_Id
is
1739 pragma Assert
(False
1740 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
1741 or else NT
(N
).Nkind
= N_Function_Instantiation
1742 or else NT
(N
).Nkind
= N_Package_Instantiation
1743 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
1748 (N
: Node_Id
) return Uint
is
1750 pragma Assert
(False
1751 or else NT
(N
).Nkind
= N_Integer_Literal
);
1755 function Is_Abort_Block
1756 (N
: Node_Id
) return Boolean is
1758 pragma Assert
(False
1759 or else NT
(N
).Nkind
= N_Block_Statement
);
1763 function Is_Accessibility_Actual
1764 (N
: Node_Id
) return Boolean is
1766 pragma Assert
(False
1767 or else NT
(N
).Nkind
= N_Parameter_Association
);
1769 end Is_Accessibility_Actual
;
1771 function Is_Analyzed_Pragma
1772 (N
: Node_Id
) return Boolean is
1774 pragma Assert
(False
1775 or else NT
(N
).Nkind
= N_Pragma
);
1777 end Is_Analyzed_Pragma
;
1779 function Is_Asynchronous_Call_Block
1780 (N
: Node_Id
) return Boolean is
1782 pragma Assert
(False
1783 or else NT
(N
).Nkind
= N_Block_Statement
);
1785 end Is_Asynchronous_Call_Block
;
1787 function Is_Boolean_Aspect
1788 (N
: Node_Id
) return Boolean is
1790 pragma Assert
(False
1791 or else NT
(N
).Nkind
= N_Aspect_Specification
);
1793 end Is_Boolean_Aspect
;
1796 (N
: Node_Id
) return Boolean is
1798 pragma Assert
(False
1799 or else NT
(N
).Nkind
= N_Aspect_Specification
1800 or else NT
(N
).Nkind
= N_Pragma
);
1804 function Is_Component_Left_Opnd
1805 (N
: Node_Id
) return Boolean is
1807 pragma Assert
(False
1808 or else NT
(N
).Nkind
= N_Op_Concat
);
1810 end Is_Component_Left_Opnd
;
1812 function Is_Component_Right_Opnd
1813 (N
: Node_Id
) return Boolean is
1815 pragma Assert
(False
1816 or else NT
(N
).Nkind
= N_Op_Concat
);
1818 end Is_Component_Right_Opnd
;
1820 function Is_Controlling_Actual
1821 (N
: Node_Id
) return Boolean is
1823 pragma Assert
(False
1824 or else NT
(N
).Nkind
in N_Subexpr
);
1826 end Is_Controlling_Actual
;
1828 function Is_Disabled
1829 (N
: Node_Id
) return Boolean is
1831 pragma Assert
(False
1832 or else NT
(N
).Nkind
= N_Aspect_Specification
1833 or else NT
(N
).Nkind
= N_Pragma
);
1837 function Is_Delayed_Aspect
1838 (N
: Node_Id
) return Boolean is
1840 pragma Assert
(False
1841 or else NT
(N
).Nkind
= N_Aspect_Specification
1842 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1843 or else NT
(N
).Nkind
= N_Pragma
);
1845 end Is_Delayed_Aspect
;
1847 function Is_Dynamic_Coextension
1848 (N
: Node_Id
) return Boolean is
1850 pragma Assert
(False
1851 or else NT
(N
).Nkind
= N_Allocator
);
1853 end Is_Dynamic_Coextension
;
1856 (N
: Node_Id
) return Boolean is
1858 pragma Assert
(False
1859 or else NT
(N
).Nkind
= N_If_Expression
);
1863 function Is_Entry_Barrier_Function
1864 (N
: Node_Id
) return Boolean is
1866 pragma Assert
(False
1867 or else NT
(N
).Nkind
= N_Subprogram_Body
1868 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
1870 end Is_Entry_Barrier_Function
;
1872 function Is_Expanded_Build_In_Place_Call
1873 (N
: Node_Id
) return Boolean is
1875 pragma Assert
(False
1876 or else NT
(N
).Nkind
= N_Function_Call
);
1878 end Is_Expanded_Build_In_Place_Call
;
1880 function Is_Expanded_Contract
1881 (N
: Node_Id
) return Boolean is
1883 pragma Assert
(False
1884 or else NT
(N
).Nkind
= N_Contract
);
1886 end Is_Expanded_Contract
;
1888 function Is_Finalization_Wrapper
1889 (N
: Node_Id
) return Boolean is
1891 pragma Assert
(False
1892 or else NT
(N
).Nkind
= N_Block_Statement
);
1894 end Is_Finalization_Wrapper
;
1896 function Is_Folded_In_Parser
1897 (N
: Node_Id
) return Boolean is
1899 pragma Assert
(False
1900 or else NT
(N
).Nkind
= N_String_Literal
);
1902 end Is_Folded_In_Parser
;
1904 function Is_Generic_Contract_Pragma
1905 (N
: Node_Id
) return Boolean is
1907 pragma Assert
(False
1908 or else NT
(N
).Nkind
= N_Pragma
);
1910 end Is_Generic_Contract_Pragma
;
1912 function Is_Ghost_Pragma
1913 (N
: Node_Id
) return Boolean is
1915 pragma Assert
(False
1916 or else NT
(N
).Nkind
= N_Pragma
);
1918 end Is_Ghost_Pragma
;
1921 (N
: Node_Id
) return Boolean is
1923 pragma Assert
(False
1924 or else NT
(N
).Nkind
= N_Aspect_Specification
1925 or else NT
(N
).Nkind
= N_Pragma
);
1929 function Is_In_Discriminant_Check
1930 (N
: Node_Id
) return Boolean is
1932 pragma Assert
(False
1933 or else NT
(N
).Nkind
= N_Selected_Component
);
1935 end Is_In_Discriminant_Check
;
1937 function Is_Inherited_Pragma
1938 (N
: Node_Id
) return Boolean is
1940 pragma Assert
(False
1941 or else NT
(N
).Nkind
= N_Pragma
);
1943 end Is_Inherited_Pragma
;
1945 function Is_Machine_Number
1946 (N
: Node_Id
) return Boolean is
1948 pragma Assert
(False
1949 or else NT
(N
).Nkind
= N_Real_Literal
);
1951 end Is_Machine_Number
;
1953 function Is_Null_Loop
1954 (N
: Node_Id
) return Boolean is
1956 pragma Assert
(False
1957 or else NT
(N
).Nkind
= N_Loop_Statement
);
1961 function Is_Overloaded
1962 (N
: Node_Id
) return Boolean is
1964 pragma Assert
(False
1965 or else NT
(N
).Nkind
in N_Subexpr
);
1969 function Is_Power_Of_2_For_Shift
1970 (N
: Node_Id
) return Boolean is
1972 pragma Assert
(False
1973 or else NT
(N
).Nkind
= N_Op_Expon
);
1975 end Is_Power_Of_2_For_Shift
;
1977 function Is_Prefixed_Call
1978 (N
: Node_Id
) return Boolean is
1980 pragma Assert
(False
1981 or else NT
(N
).Nkind
= N_Selected_Component
);
1983 end Is_Prefixed_Call
;
1985 function Is_Protected_Subprogram_Body
1986 (N
: Node_Id
) return Boolean is
1988 pragma Assert
(False
1989 or else NT
(N
).Nkind
= N_Subprogram_Body
);
1991 end Is_Protected_Subprogram_Body
;
1993 function Is_Qualified_Universal_Literal
1994 (N
: Node_Id
) return Boolean is
1996 pragma Assert
(False
1997 or else NT
(N
).Nkind
= N_Qualified_Expression
);
1999 end Is_Qualified_Universal_Literal
;
2001 function Is_Static_Coextension
2002 (N
: Node_Id
) return Boolean is
2004 pragma Assert
(False
2005 or else NT
(N
).Nkind
= N_Allocator
);
2007 end Is_Static_Coextension
;
2009 function Is_Static_Expression
2010 (N
: Node_Id
) return Boolean is
2012 pragma Assert
(False
2013 or else NT
(N
).Nkind
in N_Subexpr
);
2015 end Is_Static_Expression
;
2017 function Is_Subprogram_Descriptor
2018 (N
: Node_Id
) return Boolean is
2020 pragma Assert
(False
2021 or else NT
(N
).Nkind
= N_Object_Declaration
);
2023 end Is_Subprogram_Descriptor
;
2025 function Is_Task_Allocation_Block
2026 (N
: Node_Id
) return Boolean is
2028 pragma Assert
(False
2029 or else NT
(N
).Nkind
= N_Block_Statement
);
2031 end Is_Task_Allocation_Block
;
2033 function Is_Task_Body_Procedure
2034 (N
: Node_Id
) return Boolean is
2036 pragma Assert
(False
2037 or else NT
(N
).Nkind
= N_Subprogram_Body
2038 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
2040 end Is_Task_Body_Procedure
;
2042 function Is_Task_Master
2043 (N
: Node_Id
) return Boolean is
2045 pragma Assert
(False
2046 or else NT
(N
).Nkind
= N_Block_Statement
2047 or else NT
(N
).Nkind
= N_Subprogram_Body
2048 or else NT
(N
).Nkind
= N_Task_Body
);
2052 function Iteration_Scheme
2053 (N
: Node_Id
) return Node_Id
is
2055 pragma Assert
(False
2056 or else NT
(N
).Nkind
= N_Loop_Statement
);
2058 end Iteration_Scheme
;
2060 function Iterator_Specification
2061 (N
: Node_Id
) return Node_Id
is
2063 pragma Assert
(False
2064 or else NT
(N
).Nkind
= N_Iteration_Scheme
2065 or else NT
(N
).Nkind
= N_Quantified_Expression
);
2067 end Iterator_Specification
;
2070 (N
: Node_Id
) return Node_Id
is
2072 pragma Assert
(False
2073 or else NT
(N
).Nkind
= N_Itype_Reference
);
2077 function Kill_Range_Check
2078 (N
: Node_Id
) return Boolean is
2080 pragma Assert
(False
2081 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
2083 end Kill_Range_Check
;
2085 function Label_Construct
2086 (N
: Node_Id
) return Node_Id
is
2088 pragma Assert
(False
2089 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
);
2091 end Label_Construct
;
2094 (N
: Node_Id
) return Node_Id
is
2096 pragma Assert
(False
2097 or else NT
(N
).Nkind
= N_Component_Clause
);
2102 (N
: Node_Id
) return Boolean is
2104 pragma Assert
(False
2105 or else NT
(N
).Nkind
= N_With_Clause
);
2110 (N
: Node_Id
) return Node_Id
is
2112 pragma Assert
(False
2113 or else NT
(N
).Nkind
= N_And_Then
2114 or else NT
(N
).Nkind
= N_In
2115 or else NT
(N
).Nkind
= N_Not_In
2116 or else NT
(N
).Nkind
= N_Or_Else
2117 or else NT
(N
).Nkind
in N_Binary_Op
);
2121 function Library_Unit
2122 (N
: Node_Id
) return Node_Id
is
2124 pragma Assert
(False
2125 or else NT
(N
).Nkind
= N_Compilation_Unit
2126 or else NT
(N
).Nkind
= N_Package_Body_Stub
2127 or else NT
(N
).Nkind
= N_Protected_Body_Stub
2128 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
2129 or else NT
(N
).Nkind
= N_Task_Body_Stub
2130 or else NT
(N
).Nkind
= N_With_Clause
);
2134 function Limited_View_Installed
2135 (N
: Node_Id
) return Boolean is
2137 pragma Assert
(False
2138 or else NT
(N
).Nkind
= N_Package_Specification
2139 or else NT
(N
).Nkind
= N_With_Clause
);
2141 end Limited_View_Installed
;
2143 function Limited_Present
2144 (N
: Node_Id
) return Boolean is
2146 pragma Assert
(False
2147 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2148 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
2149 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
2150 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
2151 or else NT
(N
).Nkind
= N_Private_Type_Declaration
2152 or else NT
(N
).Nkind
= N_Record_Definition
2153 or else NT
(N
).Nkind
= N_With_Clause
);
2155 end Limited_Present
;
2158 (N
: Node_Id
) return List_Id
is
2160 pragma Assert
(False
2161 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
);
2165 function Local_Raise_Not_OK
2166 (N
: Node_Id
) return Boolean is
2168 pragma Assert
(False
2169 or else NT
(N
).Nkind
= N_Exception_Handler
);
2171 end Local_Raise_Not_OK
;
2173 function Local_Raise_Statements
2174 (N
: Node_Id
) return Elist_Id
is
2176 pragma Assert
(False
2177 or else NT
(N
).Nkind
= N_Exception_Handler
);
2179 end Local_Raise_Statements
;
2181 function Loop_Actions
2182 (N
: Node_Id
) return List_Id
is
2184 pragma Assert
(False
2185 or else NT
(N
).Nkind
= N_Component_Association
);
2189 function Loop_Parameter_Specification
2190 (N
: Node_Id
) return Node_Id
is
2192 pragma Assert
(False
2193 or else NT
(N
).Nkind
= N_Iteration_Scheme
2194 or else NT
(N
).Nkind
= N_Quantified_Expression
);
2196 end Loop_Parameter_Specification
;
2199 (N
: Node_Id
) return Node_Id
is
2201 pragma Assert
(False
2202 or else NT
(N
).Nkind
= N_Range
2203 or else NT
(N
).Nkind
= N_Real_Range_Specification
2204 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
2209 (N
: Node_Id
) return Node_Id
is
2211 pragma Assert
(False
2212 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
2217 (N
: Node_Id
) return Boolean is
2219 pragma Assert
(False
2220 or else NT
(N
).Nkind
= N_Component_Declaration
2221 or else NT
(N
).Nkind
= N_Discriminant_Specification
2222 or else NT
(N
).Nkind
= N_Exception_Declaration
2223 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2224 or else NT
(N
).Nkind
= N_Number_Declaration
2225 or else NT
(N
).Nkind
= N_Object_Declaration
2226 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2230 function Must_Be_Byte_Aligned
2231 (N
: Node_Id
) return Boolean is
2233 pragma Assert
(False
2234 or else NT
(N
).Nkind
= N_Attribute_Reference
);
2236 end Must_Be_Byte_Aligned
;
2238 function Must_Not_Freeze
2239 (N
: Node_Id
) return Boolean is
2241 pragma Assert
(False
2242 or else NT
(N
).Nkind
= N_Subtype_Indication
2243 or else NT
(N
).Nkind
in N_Subexpr
);
2245 end Must_Not_Freeze
;
2247 function Must_Not_Override
2248 (N
: Node_Id
) return Boolean is
2250 pragma Assert
(False
2251 or else NT
(N
).Nkind
= N_Entry_Declaration
2252 or else NT
(N
).Nkind
= N_Function_Instantiation
2253 or else NT
(N
).Nkind
= N_Function_Specification
2254 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2255 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2257 end Must_Not_Override
;
2259 function Must_Override
2260 (N
: Node_Id
) return Boolean is
2262 pragma Assert
(False
2263 or else NT
(N
).Nkind
= N_Entry_Declaration
2264 or else NT
(N
).Nkind
= N_Function_Instantiation
2265 or else NT
(N
).Nkind
= N_Function_Specification
2266 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2267 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2272 (N
: Node_Id
) return Node_Id
is
2274 pragma Assert
(False
2275 or else NT
(N
).Nkind
= N_Assignment_Statement
2276 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
2277 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
2278 or else NT
(N
).Nkind
= N_Designator
2279 or else NT
(N
).Nkind
= N_Entry_Call_Statement
2280 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
2281 or else NT
(N
).Nkind
= N_Exit_Statement
2282 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
2283 or else NT
(N
).Nkind
= N_Function_Call
2284 or else NT
(N
).Nkind
= N_Function_Instantiation
2285 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
2286 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
2287 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
2288 or else NT
(N
).Nkind
= N_Goto_Statement
2289 or else NT
(N
).Nkind
= N_Iterator_Specification
2290 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
2291 or else NT
(N
).Nkind
= N_Package_Instantiation
2292 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
2293 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
2294 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2295 or else NT
(N
).Nkind
= N_Raise_Expression
2296 or else NT
(N
).Nkind
= N_Raise_Statement
2297 or else NT
(N
).Nkind
= N_Requeue_Statement
2298 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
2299 or else NT
(N
).Nkind
= N_Subunit
2300 or else NT
(N
).Nkind
= N_Variant_Part
2301 or else NT
(N
).Nkind
= N_With_Clause
);
2306 (N
: Node_Id
) return List_Id
is
2308 pragma Assert
(False
2309 or else NT
(N
).Nkind
= N_Abort_Statement
2310 or else NT
(N
).Nkind
= N_Use_Package_Clause
);
2314 function Next_Entity
2315 (N
: Node_Id
) return Node_Id
is
2317 pragma Assert
(False
2318 or else NT
(N
).Nkind
= N_Defining_Character_Literal
2319 or else NT
(N
).Nkind
= N_Defining_Identifier
2320 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
2324 function Next_Exit_Statement
2325 (N
: Node_Id
) return Node_Id
is
2327 pragma Assert
(False
2328 or else NT
(N
).Nkind
= N_Exit_Statement
);
2330 end Next_Exit_Statement
;
2332 function Next_Implicit_With
2333 (N
: Node_Id
) return Node_Id
is
2335 pragma Assert
(False
2336 or else NT
(N
).Nkind
= N_With_Clause
);
2338 end Next_Implicit_With
;
2340 function Next_Named_Actual
2341 (N
: Node_Id
) return Node_Id
is
2343 pragma Assert
(False
2344 or else NT
(N
).Nkind
= N_Parameter_Association
);
2346 end Next_Named_Actual
;
2348 function Next_Pragma
2349 (N
: Node_Id
) return Node_Id
is
2351 pragma Assert
(False
2352 or else NT
(N
).Nkind
= N_Pragma
);
2356 function Next_Rep_Item
2357 (N
: Node_Id
) return Node_Id
is
2359 pragma Assert
(False
2360 or else NT
(N
).Nkind
= N_Aspect_Specification
2361 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
2362 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
2363 or else NT
(N
).Nkind
= N_Pragma
2364 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
2368 function Next_Use_Clause
2369 (N
: Node_Id
) return Node_Id
is
2371 pragma Assert
(False
2372 or else NT
(N
).Nkind
= N_Use_Package_Clause
2373 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
2375 end Next_Use_Clause
;
2377 function No_Ctrl_Actions
2378 (N
: Node_Id
) return Boolean is
2380 pragma Assert
(False
2381 or else NT
(N
).Nkind
= N_Assignment_Statement
);
2383 end No_Ctrl_Actions
;
2385 function No_Elaboration_Check
2386 (N
: Node_Id
) return Boolean is
2388 pragma Assert
(False
2389 or else NT
(N
).Nkind
= N_Function_Call
2390 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
2392 end No_Elaboration_Check
;
2394 function No_Entities_Ref_In_Spec
2395 (N
: Node_Id
) return Boolean is
2397 pragma Assert
(False
2398 or else NT
(N
).Nkind
= N_With_Clause
);
2400 end No_Entities_Ref_In_Spec
;
2402 function No_Initialization
2403 (N
: Node_Id
) return Boolean is
2405 pragma Assert
(False
2406 or else NT
(N
).Nkind
= N_Allocator
2407 or else NT
(N
).Nkind
= N_Object_Declaration
);
2409 end No_Initialization
;
2411 function No_Minimize_Eliminate
2412 (N
: Node_Id
) return Boolean is
2414 pragma Assert
(False
2415 or else NT
(N
).Nkind
= N_In
2416 or else NT
(N
).Nkind
= N_Not_In
);
2418 end No_Minimize_Eliminate
;
2420 function No_Side_Effect_Removal
2421 (N
: Node_Id
) return Boolean is
2423 pragma Assert
(False
2424 or else NT
(N
).Nkind
= N_Function_Call
);
2426 end No_Side_Effect_Removal
;
2428 function No_Truncation
2429 (N
: Node_Id
) return Boolean is
2431 pragma Assert
(False
2432 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
2436 function Non_Aliased_Prefix
2437 (N
: Node_Id
) return Boolean is
2439 pragma Assert
(False
2440 or else NT
(N
).Nkind
= N_Attribute_Reference
);
2442 end Non_Aliased_Prefix
;
2444 function Null_Present
2445 (N
: Node_Id
) return Boolean is
2447 pragma Assert
(False
2448 or else NT
(N
).Nkind
= N_Component_List
2449 or else NT
(N
).Nkind
= N_Procedure_Specification
2450 or else NT
(N
).Nkind
= N_Record_Definition
);
2454 function Null_Excluding_Subtype
2455 (N
: Node_Id
) return Boolean is
2457 pragma Assert
(False
2458 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
);
2460 end Null_Excluding_Subtype
;
2462 function Null_Exclusion_Present
2463 (N
: Node_Id
) return Boolean is
2465 pragma Assert
(False
2466 or else NT
(N
).Nkind
= N_Access_Definition
2467 or else NT
(N
).Nkind
= N_Access_Function_Definition
2468 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2469 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
2470 or else NT
(N
).Nkind
= N_Allocator
2471 or else NT
(N
).Nkind
= N_Component_Definition
2472 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2473 or else NT
(N
).Nkind
= N_Discriminant_Specification
2474 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2475 or else NT
(N
).Nkind
= N_Function_Specification
2476 or else NT
(N
).Nkind
= N_Object_Declaration
2477 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
2478 or else NT
(N
).Nkind
= N_Parameter_Specification
2479 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
2481 end Null_Exclusion_Present
;
2483 function Null_Exclusion_In_Return_Present
2484 (N
: Node_Id
) return Boolean is
2486 pragma Assert
(False
2487 or else NT
(N
).Nkind
= N_Access_Function_Definition
);
2489 end Null_Exclusion_In_Return_Present
;
2491 function Null_Record_Present
2492 (N
: Node_Id
) return Boolean is
2494 pragma Assert
(False
2495 or else NT
(N
).Nkind
= N_Aggregate
2496 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
2498 end Null_Record_Present
;
2500 function Object_Definition
2501 (N
: Node_Id
) return Node_Id
is
2503 pragma Assert
(False
2504 or else NT
(N
).Nkind
= N_Object_Declaration
);
2506 end Object_Definition
;
2509 (N
: Node_Id
) return Boolean is
2511 pragma Assert
(False
2512 or else NT
(N
).Nkind
= N_Iterator_Specification
);
2516 function Original_Discriminant
2517 (N
: Node_Id
) return Node_Id
is
2519 pragma Assert
(False
2520 or else NT
(N
).Nkind
= N_Identifier
);
2522 end Original_Discriminant
;
2524 function Original_Entity
2525 (N
: Node_Id
) return Entity_Id
is
2527 pragma Assert
(False
2528 or else NT
(N
).Nkind
= N_Integer_Literal
2529 or else NT
(N
).Nkind
= N_Real_Literal
);
2531 end Original_Entity
;
2533 function Others_Discrete_Choices
2534 (N
: Node_Id
) return List_Id
is
2536 pragma Assert
(False
2537 or else NT
(N
).Nkind
= N_Others_Choice
);
2539 end Others_Discrete_Choices
;
2541 function Out_Present
2542 (N
: Node_Id
) return Boolean is
2544 pragma Assert
(False
2545 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2546 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2550 function Parameter_Associations
2551 (N
: Node_Id
) return List_Id
is
2553 pragma Assert
(False
2554 or else NT
(N
).Nkind
= N_Entry_Call_Statement
2555 or else NT
(N
).Nkind
= N_Function_Call
2556 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
2558 end Parameter_Associations
;
2560 function Parameter_Specifications
2561 (N
: Node_Id
) return List_Id
is
2563 pragma Assert
(False
2564 or else NT
(N
).Nkind
= N_Accept_Statement
2565 or else NT
(N
).Nkind
= N_Access_Function_Definition
2566 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2567 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
2568 or else NT
(N
).Nkind
= N_Entry_Declaration
2569 or else NT
(N
).Nkind
= N_Function_Specification
2570 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2572 end Parameter_Specifications
;
2574 function Parameter_Type
2575 (N
: Node_Id
) return Node_Id
is
2577 pragma Assert
(False
2578 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2582 function Parent_Spec
2583 (N
: Node_Id
) return Node_Id
is
2585 pragma Assert
(False
2586 or else NT
(N
).Nkind
= N_Function_Instantiation
2587 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
2588 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
2589 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
2590 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
2591 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
2592 or else NT
(N
).Nkind
= N_Package_Declaration
2593 or else NT
(N
).Nkind
= N_Package_Instantiation
2594 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
2595 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2596 or else NT
(N
).Nkind
= N_Subprogram_Declaration
2597 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
2602 (N
: Node_Id
) return Node_Id
is
2604 pragma Assert
(False
2605 or else NT
(N
).Nkind
= N_Component_Clause
);
2609 function Pragma_Argument_Associations
2610 (N
: Node_Id
) return List_Id
is
2612 pragma Assert
(False
2613 or else NT
(N
).Nkind
= N_Pragma
);
2615 end Pragma_Argument_Associations
;
2617 function Pragma_Identifier
2618 (N
: Node_Id
) return Node_Id
is
2620 pragma Assert
(False
2621 or else NT
(N
).Nkind
= N_Pragma
);
2623 end Pragma_Identifier
;
2625 function Pragmas_After
2626 (N
: Node_Id
) return List_Id
is
2628 pragma Assert
(False
2629 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
2630 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
2634 function Pragmas_Before
2635 (N
: Node_Id
) return List_Id
is
2637 pragma Assert
(False
2638 or else NT
(N
).Nkind
= N_Accept_Alternative
2639 or else NT
(N
).Nkind
= N_Delay_Alternative
2640 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
2641 or else NT
(N
).Nkind
= N_Mod_Clause
2642 or else NT
(N
).Nkind
= N_Terminate_Alternative
2643 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
2647 function Pre_Post_Conditions
2648 (N
: Node_Id
) return Node_Id
is
2650 pragma Assert
(False
2651 or else NT
(N
).Nkind
= N_Contract
);
2653 end Pre_Post_Conditions
;
2656 (N
: Node_Id
) return Node_Id
is
2658 pragma Assert
(False
2659 or else NT
(N
).Nkind
= N_Attribute_Reference
2660 or else NT
(N
).Nkind
= N_Expanded_Name
2661 or else NT
(N
).Nkind
= N_Explicit_Dereference
2662 or else NT
(N
).Nkind
= N_Indexed_Component
2663 or else NT
(N
).Nkind
= N_Reference
2664 or else NT
(N
).Nkind
= N_Selected_Component
2665 or else NT
(N
).Nkind
= N_Slice
);
2669 function Premature_Use
2670 (N
: Node_Id
) return Node_Id
is
2672 pragma Assert
(False
2673 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
);
2677 function Present_Expr
2678 (N
: Node_Id
) return Uint
is
2680 pragma Assert
(False
2681 or else NT
(N
).Nkind
= N_Variant
);
2686 (N
: Node_Id
) return Boolean is
2688 pragma Assert
(False
2689 or else NT
(N
).Nkind
= N_Component_Declaration
2690 or else NT
(N
).Nkind
= N_Discriminant_Specification
2691 or else NT
(N
).Nkind
= N_Exception_Declaration
2692 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2693 or else NT
(N
).Nkind
= N_Number_Declaration
2694 or else NT
(N
).Nkind
= N_Object_Declaration
2695 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2699 function Print_In_Hex
2700 (N
: Node_Id
) return Boolean is
2702 pragma Assert
(False
2703 or else NT
(N
).Nkind
= N_Integer_Literal
);
2707 function Private_Declarations
2708 (N
: Node_Id
) return List_Id
is
2710 pragma Assert
(False
2711 or else NT
(N
).Nkind
= N_Package_Specification
2712 or else NT
(N
).Nkind
= N_Protected_Definition
2713 or else NT
(N
).Nkind
= N_Task_Definition
);
2715 end Private_Declarations
;
2717 function Private_Present
2718 (N
: Node_Id
) return Boolean is
2720 pragma Assert
(False
2721 or else NT
(N
).Nkind
= N_Compilation_Unit
2722 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
2723 or else NT
(N
).Nkind
= N_With_Clause
);
2725 end Private_Present
;
2727 function Procedure_To_Call
2728 (N
: Node_Id
) return Node_Id
is
2730 pragma Assert
(False
2731 or else NT
(N
).Nkind
= N_Allocator
2732 or else NT
(N
).Nkind
= N_Extended_Return_Statement
2733 or else NT
(N
).Nkind
= N_Free_Statement
2734 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
2736 end Procedure_To_Call
;
2738 function Proper_Body
2739 (N
: Node_Id
) return Node_Id
is
2741 pragma Assert
(False
2742 or else NT
(N
).Nkind
= N_Subunit
);
2746 function Protected_Definition
2747 (N
: Node_Id
) return Node_Id
is
2749 pragma Assert
(False
2750 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
2751 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
);
2753 end Protected_Definition
;
2755 function Protected_Present
2756 (N
: Node_Id
) return Boolean is
2758 pragma Assert
(False
2759 or else NT
(N
).Nkind
= N_Access_Function_Definition
2760 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2761 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2762 or else NT
(N
).Nkind
= N_Record_Definition
);
2764 end Protected_Present
;
2766 function Raises_Constraint_Error
2767 (N
: Node_Id
) return Boolean is
2769 pragma Assert
(False
2770 or else NT
(N
).Nkind
in N_Subexpr
);
2772 end Raises_Constraint_Error
;
2774 function Range_Constraint
2775 (N
: Node_Id
) return Node_Id
is
2777 pragma Assert
(False
2778 or else NT
(N
).Nkind
= N_Delta_Constraint
2779 or else NT
(N
).Nkind
= N_Digits_Constraint
);
2781 end Range_Constraint
;
2783 function Range_Expression
2784 (N
: Node_Id
) return Node_Id
is
2786 pragma Assert
(False
2787 or else NT
(N
).Nkind
= N_Range_Constraint
);
2789 end Range_Expression
;
2791 function Real_Range_Specification
2792 (N
: Node_Id
) return Node_Id
is
2794 pragma Assert
(False
2795 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
2796 or else NT
(N
).Nkind
= N_Floating_Point_Definition
2797 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
2799 end Real_Range_Specification
;
2802 (N
: Node_Id
) return Ureal
is
2804 pragma Assert
(False
2805 or else NT
(N
).Nkind
= N_Real_Literal
);
2810 (N
: Node_Id
) return Uint
is
2812 pragma Assert
(False
2813 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
2814 or else NT
(N
).Nkind
= N_Raise_Program_Error
2815 or else NT
(N
).Nkind
= N_Raise_Storage_Error
);
2819 function Record_Extension_Part
2820 (N
: Node_Id
) return Node_Id
is
2822 pragma Assert
(False
2823 or else NT
(N
).Nkind
= N_Derived_Type_Definition
);
2825 end Record_Extension_Part
;
2827 function Redundant_Use
2828 (N
: Node_Id
) return Boolean is
2830 pragma Assert
(False
2831 or else NT
(N
).Nkind
= N_Attribute_Reference
2832 or else NT
(N
).Nkind
= N_Expanded_Name
2833 or else NT
(N
).Nkind
= N_Identifier
);
2837 function Renaming_Exception
2838 (N
: Node_Id
) return Node_Id
is
2840 pragma Assert
(False
2841 or else NT
(N
).Nkind
= N_Exception_Declaration
);
2843 end Renaming_Exception
;
2845 function Result_Definition
2846 (N
: Node_Id
) return Node_Id
is
2848 pragma Assert
(False
2849 or else NT
(N
).Nkind
= N_Access_Function_Definition
2850 or else NT
(N
).Nkind
= N_Function_Specification
);
2852 end Result_Definition
;
2854 function Return_Object_Declarations
2855 (N
: Node_Id
) return List_Id
is
2857 pragma Assert
(False
2858 or else NT
(N
).Nkind
= N_Extended_Return_Statement
);
2860 end Return_Object_Declarations
;
2862 function Return_Statement_Entity
2863 (N
: Node_Id
) return Node_Id
is
2865 pragma Assert
(False
2866 or else NT
(N
).Nkind
= N_Extended_Return_Statement
2867 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
2869 end Return_Statement_Entity
;
2871 function Reverse_Present
2872 (N
: Node_Id
) return Boolean is
2874 pragma Assert
(False
2875 or else NT
(N
).Nkind
= N_Iterator_Specification
2876 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
2878 end Reverse_Present
;
2881 (N
: Node_Id
) return Node_Id
is
2883 pragma Assert
(False
2884 or else NT
(N
).Nkind
in N_Op
2885 or else NT
(N
).Nkind
= N_And_Then
2886 or else NT
(N
).Nkind
= N_In
2887 or else NT
(N
).Nkind
= N_Not_In
2888 or else NT
(N
).Nkind
= N_Or_Else
);
2892 function Rounded_Result
2893 (N
: Node_Id
) return Boolean is
2895 pragma Assert
(False
2896 or else NT
(N
).Nkind
= N_Op_Divide
2897 or else NT
(N
).Nkind
= N_Op_Multiply
2898 or else NT
(N
).Nkind
= N_Type_Conversion
);
2902 function SCIL_Controlling_Tag
2903 (N
: Node_Id
) return Node_Id
is
2905 pragma Assert
(False
2906 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
2908 end SCIL_Controlling_Tag
;
2910 function SCIL_Entity
2911 (N
: Node_Id
) return Node_Id
is
2913 pragma Assert
(False
2914 or else NT
(N
).Nkind
= N_SCIL_Dispatch_Table_Tag_Init
2915 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
2916 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
2920 function SCIL_Tag_Value
2921 (N
: Node_Id
) return Node_Id
is
2923 pragma Assert
(False
2924 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
2928 function SCIL_Target_Prim
2929 (N
: Node_Id
) return Node_Id
is
2931 pragma Assert
(False
2932 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
2934 end SCIL_Target_Prim
;
2937 (N
: Node_Id
) return Node_Id
is
2939 pragma Assert
(False
2940 or else NT
(N
).Nkind
= N_Defining_Character_Literal
2941 or else NT
(N
).Nkind
= N_Defining_Identifier
2942 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
2946 function Select_Alternatives
2947 (N
: Node_Id
) return List_Id
is
2949 pragma Assert
(False
2950 or else NT
(N
).Nkind
= N_Selective_Accept
);
2952 end Select_Alternatives
;
2954 function Selector_Name
2955 (N
: Node_Id
) return Node_Id
is
2957 pragma Assert
(False
2958 or else NT
(N
).Nkind
= N_Expanded_Name
2959 or else NT
(N
).Nkind
= N_Generic_Association
2960 or else NT
(N
).Nkind
= N_Parameter_Association
2961 or else NT
(N
).Nkind
= N_Selected_Component
);
2965 function Selector_Names
2966 (N
: Node_Id
) return List_Id
is
2968 pragma Assert
(False
2969 or else NT
(N
).Nkind
= N_Discriminant_Association
);
2973 function Shift_Count_OK
2974 (N
: Node_Id
) return Boolean is
2976 pragma Assert
(False
2977 or else NT
(N
).Nkind
= N_Op_Rotate_Left
2978 or else NT
(N
).Nkind
= N_Op_Rotate_Right
2979 or else NT
(N
).Nkind
= N_Op_Shift_Left
2980 or else NT
(N
).Nkind
= N_Op_Shift_Right
2981 or else NT
(N
).Nkind
= N_Op_Shift_Right_Arithmetic
);
2985 function Source_Type
2986 (N
: Node_Id
) return Entity_Id
is
2988 pragma Assert
(False
2989 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
2993 function Specification
2994 (N
: Node_Id
) return Node_Id
is
2996 pragma Assert
(False
2997 or else NT
(N
).Nkind
= N_Abstract_Subprogram_Declaration
2998 or else NT
(N
).Nkind
= N_Expression_Function
2999 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
3000 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
3001 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3002 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
3003 or else NT
(N
).Nkind
= N_Package_Declaration
3004 or else NT
(N
).Nkind
= N_Subprogram_Body
3005 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
3006 or else NT
(N
).Nkind
= N_Subprogram_Declaration
3007 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
3012 (N
: Node_Id
) return Boolean is
3014 pragma Assert
(False
3015 or else NT
(N
).Nkind
= N_Aspect_Specification
3016 or else NT
(N
).Nkind
= N_Pragma
);
3021 (N
: Node_Id
) return List_Id
is
3023 pragma Assert
(False
3024 or else NT
(N
).Nkind
= N_Abortable_Part
3025 or else NT
(N
).Nkind
= N_Accept_Alternative
3026 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
3027 or else NT
(N
).Nkind
= N_Delay_Alternative
3028 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
3029 or else NT
(N
).Nkind
= N_Exception_Handler
3030 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
3031 or else NT
(N
).Nkind
= N_Loop_Statement
3032 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
3036 function Storage_Pool
3037 (N
: Node_Id
) return Node_Id
is
3039 pragma Assert
(False
3040 or else NT
(N
).Nkind
= N_Allocator
3041 or else NT
(N
).Nkind
= N_Extended_Return_Statement
3042 or else NT
(N
).Nkind
= N_Free_Statement
3043 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3047 function Subpool_Handle_Name
3048 (N
: Node_Id
) return Node_Id
is
3050 pragma Assert
(False
3051 or else NT
(N
).Nkind
= N_Allocator
);
3053 end Subpool_Handle_Name
;
3056 (N
: Node_Id
) return String_Id
is
3058 pragma Assert
(False
3059 or else NT
(N
).Nkind
= N_Operator_Symbol
3060 or else NT
(N
).Nkind
= N_String_Literal
);
3064 function Subtype_Indication
3065 (N
: Node_Id
) return Node_Id
is
3067 pragma Assert
(False
3068 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3069 or else NT
(N
).Nkind
= N_Component_Definition
3070 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3071 or else NT
(N
).Nkind
= N_Iterator_Specification
3072 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3073 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
3075 end Subtype_Indication
;
3077 function Suppress_Assignment_Checks
3078 (N
: Node_Id
) return Boolean is
3080 pragma Assert
(False
3081 or else NT
(N
).Nkind
= N_Assignment_Statement
3082 or else NT
(N
).Nkind
= N_Object_Declaration
);
3084 end Suppress_Assignment_Checks
;
3086 function Suppress_Loop_Warnings
3087 (N
: Node_Id
) return Boolean is
3089 pragma Assert
(False
3090 or else NT
(N
).Nkind
= N_Loop_Statement
);
3092 end Suppress_Loop_Warnings
;
3094 function Subtype_Mark
3095 (N
: Node_Id
) return Node_Id
is
3097 pragma Assert
(False
3098 or else NT
(N
).Nkind
= N_Access_Definition
3099 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3100 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
3101 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
3102 or else NT
(N
).Nkind
= N_Qualified_Expression
3103 or else NT
(N
).Nkind
= N_Subtype_Indication
3104 or else NT
(N
).Nkind
= N_Type_Conversion
3105 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
3109 function Subtype_Marks
3110 (N
: Node_Id
) return List_Id
is
3112 pragma Assert
(False
3113 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
3114 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3118 function Synchronized_Present
3119 (N
: Node_Id
) return Boolean is
3121 pragma Assert
(False
3122 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3123 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3124 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3125 or else NT
(N
).Nkind
= N_Record_Definition
);
3127 end Synchronized_Present
;
3129 function Tagged_Present
3130 (N
: Node_Id
) return Boolean is
3132 pragma Assert
(False
3133 or else NT
(N
).Nkind
= N_Formal_Incomplete_Type_Definition
3134 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3135 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
3136 or else NT
(N
).Nkind
= N_Private_Type_Declaration
3137 or else NT
(N
).Nkind
= N_Record_Definition
);
3141 function Target_Type
3142 (N
: Node_Id
) return Entity_Id
is
3144 pragma Assert
(False
3145 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
3149 function Task_Definition
3150 (N
: Node_Id
) return Node_Id
is
3152 pragma Assert
(False
3153 or else NT
(N
).Nkind
= N_Single_Task_Declaration
3154 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
3156 end Task_Definition
;
3158 function Task_Present
3159 (N
: Node_Id
) return Boolean is
3161 pragma Assert
(False
3162 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3163 or else NT
(N
).Nkind
= N_Record_Definition
);
3167 function Then_Actions
3168 (N
: Node_Id
) return List_Id
is
3170 pragma Assert
(False
3171 or else NT
(N
).Nkind
= N_If_Expression
);
3175 function Then_Statements
3176 (N
: Node_Id
) return List_Id
is
3178 pragma Assert
(False
3179 or else NT
(N
).Nkind
= N_Elsif_Part
3180 or else NT
(N
).Nkind
= N_If_Statement
);
3182 end Then_Statements
;
3184 function Treat_Fixed_As_Integer
3185 (N
: Node_Id
) return Boolean is
3187 pragma Assert
(False
3188 or else NT
(N
).Nkind
= N_Op_Divide
3189 or else NT
(N
).Nkind
= N_Op_Mod
3190 or else NT
(N
).Nkind
= N_Op_Multiply
3191 or else NT
(N
).Nkind
= N_Op_Rem
);
3193 end Treat_Fixed_As_Integer
;
3195 function Triggering_Alternative
3196 (N
: Node_Id
) return Node_Id
is
3198 pragma Assert
(False
3199 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
3201 end Triggering_Alternative
;
3203 function Triggering_Statement
3204 (N
: Node_Id
) return Node_Id
is
3206 pragma Assert
(False
3207 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
3209 end Triggering_Statement
;
3212 (N
: Node_Id
) return Elist_Id
is
3214 pragma Assert
(False
3215 or else NT
(N
).Nkind
= N_Freeze_Entity
);
3219 function Type_Definition
3220 (N
: Node_Id
) return Node_Id
is
3222 pragma Assert
(False
3223 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
3225 end Type_Definition
;
3227 function Uneval_Old_Accept
3228 (N
: Node_Id
) return Boolean is
3230 pragma Assert
(False
3231 or else NT
(N
).Nkind
= N_Pragma
);
3233 end Uneval_Old_Accept
;
3235 function Uneval_Old_Warn
3236 (N
: Node_Id
) return Boolean is
3238 pragma Assert
(False
3239 or else NT
(N
).Nkind
= N_Pragma
);
3241 end Uneval_Old_Warn
;
3244 (N
: Node_Id
) return Node_Id
is
3246 pragma Assert
(False
3247 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3251 function Unknown_Discriminants_Present
3252 (N
: Node_Id
) return Boolean is
3254 pragma Assert
(False
3255 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
3256 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
3257 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3258 or else NT
(N
).Nkind
= N_Private_Type_Declaration
);
3260 end Unknown_Discriminants_Present
;
3262 function Unreferenced_In_Spec
3263 (N
: Node_Id
) return Boolean is
3265 pragma Assert
(False
3266 or else NT
(N
).Nkind
= N_With_Clause
);
3268 end Unreferenced_In_Spec
;
3270 function Variant_Part
3271 (N
: Node_Id
) return Node_Id
is
3273 pragma Assert
(False
3274 or else NT
(N
).Nkind
= N_Component_List
);
3279 (N
: Node_Id
) return List_Id
is
3281 pragma Assert
(False
3282 or else NT
(N
).Nkind
= N_Variant_Part
);
3286 function Visible_Declarations
3287 (N
: Node_Id
) return List_Id
is
3289 pragma Assert
(False
3290 or else NT
(N
).Nkind
= N_Package_Specification
3291 or else NT
(N
).Nkind
= N_Protected_Definition
3292 or else NT
(N
).Nkind
= N_Task_Definition
);
3294 end Visible_Declarations
;
3296 function Uninitialized_Variable
3297 (N
: Node_Id
) return Node_Id
is
3299 pragma Assert
(False
3300 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3301 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
);
3303 end Uninitialized_Variable
;
3305 function Used_Operations
3306 (N
: Node_Id
) return Elist_Id
is
3308 pragma Assert
(False
3309 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3311 end Used_Operations
;
3313 function Was_Expression_Function
3314 (N
: Node_Id
) return Boolean is
3316 pragma Assert
(False
3317 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3319 end Was_Expression_Function
;
3321 function Was_Originally_Stub
3322 (N
: Node_Id
) return Boolean is
3324 pragma Assert
(False
3325 or else NT
(N
).Nkind
= N_Package_Body
3326 or else NT
(N
).Nkind
= N_Protected_Body
3327 or else NT
(N
).Nkind
= N_Subprogram_Body
3328 or else NT
(N
).Nkind
= N_Task_Body
);
3330 end Was_Originally_Stub
;
3332 function Withed_Body
3333 (N
: Node_Id
) return Node_Id
is
3335 pragma Assert
(False
3336 or else NT
(N
).Nkind
= N_With_Clause
);
3340 --------------------------
3341 -- Field Set Procedures --
3342 --------------------------
3344 procedure Set_ABE_Is_Certain
3345 (N
: Node_Id
; Val
: Boolean := True) is
3347 pragma Assert
(False
3348 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
3349 or else NT
(N
).Nkind
= N_Function_Call
3350 or else NT
(N
).Nkind
= N_Function_Instantiation
3351 or else NT
(N
).Nkind
= N_Package_Instantiation
3352 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
3353 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
3354 Set_Flag18
(N
, Val
);
3355 end Set_ABE_Is_Certain
;
3357 procedure Set_Abort_Present
3358 (N
: Node_Id
; Val
: Boolean := True) is
3360 pragma Assert
(False
3361 or else NT
(N
).Nkind
= N_Requeue_Statement
);
3362 Set_Flag15
(N
, Val
);
3363 end Set_Abort_Present
;
3365 procedure Set_Abortable_Part
3366 (N
: Node_Id
; Val
: Node_Id
) is
3368 pragma Assert
(False
3369 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
3370 Set_Node2_With_Parent
(N
, Val
);
3371 end Set_Abortable_Part
;
3373 procedure Set_Abstract_Present
3374 (N
: Node_Id
; Val
: Boolean := True) is
3376 pragma Assert
(False
3377 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3378 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3379 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3380 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3381 or else NT
(N
).Nkind
= N_Private_Type_Declaration
3382 or else NT
(N
).Nkind
= N_Record_Definition
);
3384 end Set_Abstract_Present
;
3386 procedure Set_Accept_Handler_Records
3387 (N
: Node_Id
; Val
: List_Id
) is
3389 pragma Assert
(False
3390 or else NT
(N
).Nkind
= N_Accept_Alternative
);
3391 Set_List5
(N
, Val
); -- semantic field, no parent set
3392 end Set_Accept_Handler_Records
;
3394 procedure Set_Accept_Statement
3395 (N
: Node_Id
; Val
: Node_Id
) is
3397 pragma Assert
(False
3398 or else NT
(N
).Nkind
= N_Accept_Alternative
);
3399 Set_Node2_With_Parent
(N
, Val
);
3400 end Set_Accept_Statement
;
3402 procedure Set_Access_Definition
3403 (N
: Node_Id
; Val
: Node_Id
) is
3405 pragma Assert
(False
3406 or else NT
(N
).Nkind
= N_Component_Definition
3407 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
3408 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
3409 Set_Node3_With_Parent
(N
, Val
);
3410 end Set_Access_Definition
;
3412 procedure Set_Access_To_Subprogram_Definition
3413 (N
: Node_Id
; Val
: Node_Id
) is
3415 pragma Assert
(False
3416 or else NT
(N
).Nkind
= N_Access_Definition
);
3417 Set_Node3_With_Parent
(N
, Val
);
3418 end Set_Access_To_Subprogram_Definition
;
3420 procedure Set_Access_Types_To_Process
3421 (N
: Node_Id
; Val
: Elist_Id
) is
3423 pragma Assert
(False
3424 or else NT
(N
).Nkind
= N_Freeze_Entity
);
3425 Set_Elist2
(N
, Val
); -- semantic field, no parent set
3426 end Set_Access_Types_To_Process
;
3428 procedure Set_Actions
3429 (N
: Node_Id
; Val
: List_Id
) is
3431 pragma Assert
(False
3432 or else NT
(N
).Nkind
= N_And_Then
3433 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
3434 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
3435 or else NT
(N
).Nkind
= N_Compound_Statement
3436 or else NT
(N
).Nkind
= N_Expression_With_Actions
3437 or else NT
(N
).Nkind
= N_Freeze_Entity
3438 or else NT
(N
).Nkind
= N_Or_Else
);
3439 Set_List1_With_Parent
(N
, Val
);
3442 procedure Set_Activation_Chain_Entity
3443 (N
: Node_Id
; Val
: Node_Id
) is
3445 pragma Assert
(False
3446 or else NT
(N
).Nkind
= N_Block_Statement
3447 or else NT
(N
).Nkind
= N_Entry_Body
3448 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3449 or else NT
(N
).Nkind
= N_Package_Declaration
3450 or else NT
(N
).Nkind
= N_Subprogram_Body
3451 or else NT
(N
).Nkind
= N_Task_Body
);
3452 Set_Node3
(N
, Val
); -- semantic field, no parent set
3453 end Set_Activation_Chain_Entity
;
3455 procedure Set_Acts_As_Spec
3456 (N
: Node_Id
; Val
: Boolean := True) is
3458 pragma Assert
(False
3459 or else NT
(N
).Nkind
= N_Compilation_Unit
3460 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3462 end Set_Acts_As_Spec
;
3464 procedure Set_Actual_Designated_Subtype
3465 (N
: Node_Id
; Val
: Node_Id
) is
3467 pragma Assert
(False
3468 or else NT
(N
).Nkind
= N_Explicit_Dereference
3469 or else NT
(N
).Nkind
= N_Free_Statement
);
3471 end Set_Actual_Designated_Subtype
;
3473 procedure Set_Address_Warning_Posted
3474 (N
: Node_Id
; Val
: Boolean := True) is
3476 pragma Assert
(False
3477 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
3478 Set_Flag18
(N
, Val
);
3479 end Set_Address_Warning_Posted
;
3481 procedure Set_Aggregate_Bounds
3482 (N
: Node_Id
; Val
: Node_Id
) is
3484 pragma Assert
(False
3485 or else NT
(N
).Nkind
= N_Aggregate
);
3486 Set_Node3
(N
, Val
); -- semantic field, no parent set
3487 end Set_Aggregate_Bounds
;
3489 procedure Set_Aliased_Present
3490 (N
: Node_Id
; Val
: Boolean := True) is
3492 pragma Assert
(False
3493 or else NT
(N
).Nkind
= N_Component_Definition
3494 or else NT
(N
).Nkind
= N_Object_Declaration
3495 or else NT
(N
).Nkind
= N_Parameter_Specification
);
3497 end Set_Aliased_Present
;
3499 procedure Set_All_Others
3500 (N
: Node_Id
; Val
: Boolean := True) is
3502 pragma Assert
(False
3503 or else NT
(N
).Nkind
= N_Others_Choice
);
3504 Set_Flag11
(N
, Val
);
3507 procedure Set_All_Present
3508 (N
: Node_Id
; Val
: Boolean := True) is
3510 pragma Assert
(False
3511 or else NT
(N
).Nkind
= N_Access_Definition
3512 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3513 or else NT
(N
).Nkind
= N_Quantified_Expression
3514 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3515 Set_Flag15
(N
, Val
);
3516 end Set_All_Present
;
3518 procedure Set_Alternatives
3519 (N
: Node_Id
; Val
: List_Id
) is
3521 pragma Assert
(False
3522 or else NT
(N
).Nkind
= N_Case_Expression
3523 or else NT
(N
).Nkind
= N_Case_Statement
3524 or else NT
(N
).Nkind
= N_In
3525 or else NT
(N
).Nkind
= N_Not_In
);
3526 Set_List4_With_Parent
(N
, Val
);
3527 end Set_Alternatives
;
3529 procedure Set_Ancestor_Part
3530 (N
: Node_Id
; Val
: Node_Id
) is
3532 pragma Assert
(False
3533 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
3534 Set_Node3_With_Parent
(N
, Val
);
3535 end Set_Ancestor_Part
;
3537 procedure Set_Atomic_Sync_Required
3538 (N
: Node_Id
; Val
: Boolean := True) is
3540 pragma Assert
(False
3541 or else NT
(N
).Nkind
= N_Expanded_Name
3542 or else NT
(N
).Nkind
= N_Explicit_Dereference
3543 or else NT
(N
).Nkind
= N_Identifier
3544 or else NT
(N
).Nkind
= N_Indexed_Component
3545 or else NT
(N
).Nkind
= N_Selected_Component
);
3546 Set_Flag14
(N
, Val
);
3547 end Set_Atomic_Sync_Required
;
3549 procedure Set_Array_Aggregate
3550 (N
: Node_Id
; Val
: Node_Id
) is
3552 pragma Assert
(False
3553 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
);
3554 Set_Node3_With_Parent
(N
, Val
);
3555 end Set_Array_Aggregate
;
3557 procedure Set_Aspect_Rep_Item
3558 (N
: Node_Id
; Val
: Node_Id
) is
3560 pragma Assert
(False
3561 or else NT
(N
).Nkind
= N_Aspect_Specification
);
3563 end Set_Aspect_Rep_Item
;
3565 procedure Set_Assignment_OK
3566 (N
: Node_Id
; Val
: Boolean := True) is
3568 pragma Assert
(False
3569 or else NT
(N
).Nkind
= N_Object_Declaration
3570 or else NT
(N
).Nkind
in N_Subexpr
);
3571 Set_Flag15
(N
, Val
);
3572 end Set_Assignment_OK
;
3574 procedure Set_Associated_Node
3575 (N
: Node_Id
; Val
: Node_Id
) is
3577 pragma Assert
(False
3578 or else NT
(N
).Nkind
in N_Has_Entity
3579 or else NT
(N
).Nkind
= N_Aggregate
3580 or else NT
(N
).Nkind
= N_Extension_Aggregate
3581 or else NT
(N
).Nkind
= N_Selected_Component
);
3582 Set_Node4
(N
, Val
); -- semantic field, no parent set
3583 end Set_Associated_Node
;
3585 procedure Set_At_End_Proc
3586 (N
: Node_Id
; Val
: Node_Id
) is
3588 pragma Assert
(False
3589 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
3591 end Set_At_End_Proc
;
3593 procedure Set_Attribute_Name
3594 (N
: Node_Id
; Val
: Name_Id
) is
3596 pragma Assert
(False
3597 or else NT
(N
).Nkind
= N_Attribute_Reference
);
3599 end Set_Attribute_Name
;
3601 procedure Set_Aux_Decls_Node
3602 (N
: Node_Id
; Val
: Node_Id
) is
3604 pragma Assert
(False
3605 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3606 Set_Node5_With_Parent
(N
, Val
);
3607 end Set_Aux_Decls_Node
;
3609 procedure Set_Backwards_OK
3610 (N
: Node_Id
; Val
: Boolean := True) is
3612 pragma Assert
(False
3613 or else NT
(N
).Nkind
= N_Assignment_Statement
);
3615 end Set_Backwards_OK
;
3617 procedure Set_Bad_Is_Detected
3618 (N
: Node_Id
; Val
: Boolean := True) is
3620 pragma Assert
(False
3621 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3622 Set_Flag15
(N
, Val
);
3623 end Set_Bad_Is_Detected
;
3625 procedure Set_Body_Required
3626 (N
: Node_Id
; Val
: Boolean := True) is
3628 pragma Assert
(False
3629 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3630 Set_Flag13
(N
, Val
);
3631 end Set_Body_Required
;
3633 procedure Set_Body_To_Inline
3634 (N
: Node_Id
; Val
: Node_Id
) is
3636 pragma Assert
(False
3637 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
3639 end Set_Body_To_Inline
;
3641 procedure Set_Box_Present
3642 (N
: Node_Id
; Val
: Boolean := True) is
3644 pragma Assert
(False
3645 or else NT
(N
).Nkind
= N_Component_Association
3646 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
3647 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
3648 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
3649 or else NT
(N
).Nkind
= N_Generic_Association
);
3650 Set_Flag15
(N
, Val
);
3651 end Set_Box_Present
;
3653 procedure Set_By_Ref
3654 (N
: Node_Id
; Val
: Boolean := True) is
3656 pragma Assert
(False
3657 or else NT
(N
).Nkind
= N_Extended_Return_Statement
3658 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3662 procedure Set_Char_Literal_Value
3663 (N
: Node_Id
; Val
: Uint
) is
3665 pragma Assert
(False
3666 or else NT
(N
).Nkind
= N_Character_Literal
);
3668 end Set_Char_Literal_Value
;
3671 (N
: Node_Id
; Val
: Name_Id
) is
3673 pragma Assert
(False
3674 or else NT
(N
).Nkind
in N_Has_Chars
);
3678 procedure Set_Check_Address_Alignment
3679 (N
: Node_Id
; Val
: Boolean := True) is
3681 pragma Assert
(False
3682 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
3683 Set_Flag11
(N
, Val
);
3684 end Set_Check_Address_Alignment
;
3686 procedure Set_Choice_Parameter
3687 (N
: Node_Id
; Val
: Node_Id
) is
3689 pragma Assert
(False
3690 or else NT
(N
).Nkind
= N_Exception_Handler
);
3691 Set_Node2_With_Parent
(N
, Val
);
3692 end Set_Choice_Parameter
;
3694 procedure Set_Choices
3695 (N
: Node_Id
; Val
: List_Id
) is
3697 pragma Assert
(False
3698 or else NT
(N
).Nkind
= N_Component_Association
);
3699 Set_List1_With_Parent
(N
, Val
);
3702 procedure Set_Class_Present
3703 (N
: Node_Id
; Val
: Boolean := True) is
3705 pragma Assert
(False
3706 or else NT
(N
).Nkind
= N_Aspect_Specification
3707 or else NT
(N
).Nkind
= N_Pragma
);
3709 end Set_Class_Present
;
3711 procedure Set_Classifications
3712 (N
: Node_Id
; Val
: Node_Id
) is
3714 pragma Assert
(False
3715 or else NT
(N
).Nkind
= N_Contract
);
3716 Set_Node3
(N
, Val
); -- semantic field, no parent set
3717 end Set_Classifications
;
3719 procedure Set_Cleanup_Actions
3720 (N
: Node_Id
; Val
: List_Id
) is
3722 pragma Assert
(False
3723 or else NT
(N
).Nkind
= N_Block_Statement
);
3724 Set_List5
(N
, Val
); -- semantic field, no parent set
3725 end Set_Cleanup_Actions
;
3727 procedure Set_Comes_From_Extended_Return_Statement
3728 (N
: Node_Id
; Val
: Boolean := True) is
3730 pragma Assert
(False
3731 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3732 Set_Flag18
(N
, Val
);
3733 end Set_Comes_From_Extended_Return_Statement
;
3735 procedure Set_Compile_Time_Known_Aggregate
3736 (N
: Node_Id
; Val
: Boolean := True) is
3738 pragma Assert
(False
3739 or else NT
(N
).Nkind
= N_Aggregate
);
3740 Set_Flag18
(N
, Val
);
3741 end Set_Compile_Time_Known_Aggregate
;
3743 procedure Set_Component_Associations
3744 (N
: Node_Id
; Val
: List_Id
) is
3746 pragma Assert
(False
3747 or else NT
(N
).Nkind
= N_Aggregate
3748 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
3749 Set_List2_With_Parent
(N
, Val
);
3750 end Set_Component_Associations
;
3752 procedure Set_Component_Clauses
3753 (N
: Node_Id
; Val
: List_Id
) is
3755 pragma Assert
(False
3756 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
3757 Set_List3_With_Parent
(N
, Val
);
3758 end Set_Component_Clauses
;
3760 procedure Set_Component_Definition
3761 (N
: Node_Id
; Val
: Node_Id
) is
3763 pragma Assert
(False
3764 or else NT
(N
).Nkind
= N_Component_Declaration
3765 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
3766 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
);
3767 Set_Node4_With_Parent
(N
, Val
);
3768 end Set_Component_Definition
;
3770 procedure Set_Component_Items
3771 (N
: Node_Id
; Val
: List_Id
) is
3773 pragma Assert
(False
3774 or else NT
(N
).Nkind
= N_Component_List
);
3775 Set_List3_With_Parent
(N
, Val
);
3776 end Set_Component_Items
;
3778 procedure Set_Component_List
3779 (N
: Node_Id
; Val
: Node_Id
) is
3781 pragma Assert
(False
3782 or else NT
(N
).Nkind
= N_Record_Definition
3783 or else NT
(N
).Nkind
= N_Variant
);
3784 Set_Node1_With_Parent
(N
, Val
);
3785 end Set_Component_List
;
3787 procedure Set_Component_Name
3788 (N
: Node_Id
; Val
: Node_Id
) is
3790 pragma Assert
(False
3791 or else NT
(N
).Nkind
= N_Component_Clause
);
3792 Set_Node1_With_Parent
(N
, Val
);
3793 end Set_Component_Name
;
3795 procedure Set_Componentwise_Assignment
3796 (N
: Node_Id
; Val
: Boolean := True) is
3798 pragma Assert
(False
3799 or else NT
(N
).Nkind
= N_Assignment_Statement
);
3800 Set_Flag14
(N
, Val
);
3801 end Set_Componentwise_Assignment
;
3803 procedure Set_Condition
3804 (N
: Node_Id
; Val
: Node_Id
) is
3806 pragma Assert
(False
3807 or else NT
(N
).Nkind
= N_Accept_Alternative
3808 or else NT
(N
).Nkind
= N_Delay_Alternative
3809 or else NT
(N
).Nkind
= N_Elsif_Part
3810 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
3811 or else NT
(N
).Nkind
= N_Exit_Statement
3812 or else NT
(N
).Nkind
= N_If_Statement
3813 or else NT
(N
).Nkind
= N_Iteration_Scheme
3814 or else NT
(N
).Nkind
= N_Quantified_Expression
3815 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
3816 or else NT
(N
).Nkind
= N_Raise_Program_Error
3817 or else NT
(N
).Nkind
= N_Raise_Storage_Error
3818 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
3819 Set_Node1_With_Parent
(N
, Val
);
3822 procedure Set_Condition_Actions
3823 (N
: Node_Id
; Val
: List_Id
) is
3825 pragma Assert
(False
3826 or else NT
(N
).Nkind
= N_Elsif_Part
3827 or else NT
(N
).Nkind
= N_Iteration_Scheme
);
3828 Set_List3
(N
, Val
); -- semantic field, no parent set
3829 end Set_Condition_Actions
;
3831 procedure Set_Config_Pragmas
3832 (N
: Node_Id
; Val
: List_Id
) is
3834 pragma Assert
(False
3835 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
3836 Set_List4_With_Parent
(N
, Val
);
3837 end Set_Config_Pragmas
;
3839 procedure Set_Constant_Present
3840 (N
: Node_Id
; Val
: Boolean := True) is
3842 pragma Assert
(False
3843 or else NT
(N
).Nkind
= N_Access_Definition
3844 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3845 or else NT
(N
).Nkind
= N_Object_Declaration
);
3846 Set_Flag17
(N
, Val
);
3847 end Set_Constant_Present
;
3849 procedure Set_Constraint
3850 (N
: Node_Id
; Val
: Node_Id
) is
3852 pragma Assert
(False
3853 or else NT
(N
).Nkind
= N_Subtype_Indication
);
3854 Set_Node3_With_Parent
(N
, Val
);
3857 procedure Set_Constraints
3858 (N
: Node_Id
; Val
: List_Id
) is
3860 pragma Assert
(False
3861 or else NT
(N
).Nkind
= N_Index_Or_Discriminant_Constraint
);
3862 Set_List1_With_Parent
(N
, Val
);
3863 end Set_Constraints
;
3865 procedure Set_Context_Installed
3866 (N
: Node_Id
; Val
: Boolean := True) is
3868 pragma Assert
(False
3869 or else NT
(N
).Nkind
= N_With_Clause
);
3870 Set_Flag13
(N
, Val
);
3871 end Set_Context_Installed
;
3873 procedure Set_Context_Items
3874 (N
: Node_Id
; Val
: List_Id
) is
3876 pragma Assert
(False
3877 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3878 Set_List1_With_Parent
(N
, Val
);
3879 end Set_Context_Items
;
3881 procedure Set_Context_Pending
3882 (N
: Node_Id
; Val
: Boolean := True) is
3884 pragma Assert
(False
3885 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3886 Set_Flag16
(N
, Val
);
3887 end Set_Context_Pending
;
3889 procedure Set_Contract_Test_Cases
3890 (N
: Node_Id
; Val
: Node_Id
) is
3892 pragma Assert
(False
3893 or else NT
(N
).Nkind
= N_Contract
);
3894 Set_Node2
(N
, Val
); -- semantic field, no parent set
3895 end Set_Contract_Test_Cases
;
3897 procedure Set_Controlling_Argument
3898 (N
: Node_Id
; Val
: Node_Id
) is
3900 pragma Assert
(False
3901 or else NT
(N
).Nkind
= N_Function_Call
3902 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
3903 Set_Node1
(N
, Val
); -- semantic field, no parent set
3904 end Set_Controlling_Argument
;
3906 procedure Set_Conversion_OK
3907 (N
: Node_Id
; Val
: Boolean := True) is
3909 pragma Assert
(False
3910 or else NT
(N
).Nkind
= N_Type_Conversion
);
3911 Set_Flag14
(N
, Val
);
3912 end Set_Conversion_OK
;
3914 procedure Set_Convert_To_Return_False
3915 (N
: Node_Id
; Val
: Boolean := True) is
3917 pragma Assert
(False
3918 or else NT
(N
).Nkind
= N_Raise_Expression
);
3919 Set_Flag13
(N
, Val
);
3920 end Set_Convert_To_Return_False
;
3922 procedure Set_Corresponding_Aspect
3923 (N
: Node_Id
; Val
: Node_Id
) is
3925 pragma Assert
(False
3926 or else NT
(N
).Nkind
= N_Pragma
);
3928 end Set_Corresponding_Aspect
;
3930 procedure Set_Corresponding_Body
3931 (N
: Node_Id
; Val
: Node_Id
) is
3933 pragma Assert
(False
3934 or else NT
(N
).Nkind
= N_Entry_Declaration
3935 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3936 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
3937 or else NT
(N
).Nkind
= N_Package_Body_Stub
3938 or else NT
(N
).Nkind
= N_Package_Declaration
3939 or else NT
(N
).Nkind
= N_Protected_Body_Stub
3940 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
3941 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
3942 or else NT
(N
).Nkind
= N_Subprogram_Declaration
3943 or else NT
(N
).Nkind
= N_Task_Body_Stub
3944 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
3945 Set_Node5
(N
, Val
); -- semantic field, no parent set
3946 end Set_Corresponding_Body
;
3948 procedure Set_Corresponding_Formal_Spec
3949 (N
: Node_Id
; Val
: Node_Id
) is
3951 pragma Assert
(False
3952 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
3953 Set_Node3
(N
, Val
); -- semantic field, no parent set
3954 end Set_Corresponding_Formal_Spec
;
3956 procedure Set_Corresponding_Generic_Association
3957 (N
: Node_Id
; Val
: Node_Id
) is
3959 pragma Assert
(False
3960 or else NT
(N
).Nkind
= N_Object_Declaration
3961 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
3962 Set_Node5
(N
, Val
); -- semantic field, no parent set
3963 end Set_Corresponding_Generic_Association
;
3965 procedure Set_Corresponding_Integer_Value
3966 (N
: Node_Id
; Val
: Uint
) is
3968 pragma Assert
(False
3969 or else NT
(N
).Nkind
= N_Real_Literal
);
3970 Set_Uint4
(N
, Val
); -- semantic field, no parent set
3971 end Set_Corresponding_Integer_Value
;
3973 procedure Set_Corresponding_Spec
3974 (N
: Node_Id
; Val
: Entity_Id
) is
3976 pragma Assert
(False
3977 or else NT
(N
).Nkind
= N_Expression_Function
3978 or else NT
(N
).Nkind
= N_Package_Body
3979 or else NT
(N
).Nkind
= N_Protected_Body
3980 or else NT
(N
).Nkind
= N_Subprogram_Body
3981 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
3982 or else NT
(N
).Nkind
= N_Task_Body
3983 or else NT
(N
).Nkind
= N_With_Clause
);
3984 Set_Node5
(N
, Val
); -- semantic field, no parent set
3985 end Set_Corresponding_Spec
;
3987 procedure Set_Corresponding_Spec_Of_Stub
3988 (N
: Node_Id
; Val
: Entity_Id
) is
3990 pragma Assert
(False
3991 or else NT
(N
).Nkind
= N_Package_Body_Stub
3992 or else NT
(N
).Nkind
= N_Protected_Body_Stub
3993 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
3994 or else NT
(N
).Nkind
= N_Task_Body_Stub
);
3995 Set_Node2
(N
, Val
); -- semantic field, no parent set
3996 end Set_Corresponding_Spec_Of_Stub
;
3998 procedure Set_Corresponding_Stub
3999 (N
: Node_Id
; Val
: Node_Id
) is
4001 pragma Assert
(False
4002 or else NT
(N
).Nkind
= N_Subunit
);
4004 end Set_Corresponding_Stub
;
4006 procedure Set_Dcheck_Function
4007 (N
: Node_Id
; Val
: Entity_Id
) is
4009 pragma Assert
(False
4010 or else NT
(N
).Nkind
= N_Variant
);
4011 Set_Node5
(N
, Val
); -- semantic field, no parent set
4012 end Set_Dcheck_Function
;
4014 procedure Set_Declarations
4015 (N
: Node_Id
; Val
: List_Id
) is
4017 pragma Assert
(False
4018 or else NT
(N
).Nkind
= N_Accept_Statement
4019 or else NT
(N
).Nkind
= N_Block_Statement
4020 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
4021 or else NT
(N
).Nkind
= N_Entry_Body
4022 or else NT
(N
).Nkind
= N_Package_Body
4023 or else NT
(N
).Nkind
= N_Protected_Body
4024 or else NT
(N
).Nkind
= N_Subprogram_Body
4025 or else NT
(N
).Nkind
= N_Task_Body
);
4026 Set_List2_With_Parent
(N
, Val
);
4027 end Set_Declarations
;
4029 procedure Set_Default_Expression
4030 (N
: Node_Id
; Val
: Node_Id
) is
4032 pragma Assert
(False
4033 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4034 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4035 Set_Node5
(N
, Val
); -- semantic field, no parent set
4036 end Set_Default_Expression
;
4038 procedure Set_Default_Storage_Pool
4039 (N
: Node_Id
; Val
: Node_Id
) is
4041 pragma Assert
(False
4042 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
4043 Set_Node3
(N
, Val
); -- semantic field, no parent set
4044 end Set_Default_Storage_Pool
;
4046 procedure Set_Default_Name
4047 (N
: Node_Id
; Val
: Node_Id
) is
4049 pragma Assert
(False
4050 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
4051 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
);
4052 Set_Node2_With_Parent
(N
, Val
);
4053 end Set_Default_Name
;
4055 procedure Set_Defining_Identifier
4056 (N
: Node_Id
; Val
: Entity_Id
) is
4058 pragma Assert
(False
4059 or else NT
(N
).Nkind
= N_Component_Declaration
4060 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
4061 or else NT
(N
).Nkind
= N_Discriminant_Specification
4062 or else NT
(N
).Nkind
= N_Entry_Body
4063 or else NT
(N
).Nkind
= N_Entry_Declaration
4064 or else NT
(N
).Nkind
= N_Entry_Index_Specification
4065 or else NT
(N
).Nkind
= N_Exception_Declaration
4066 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
4067 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4068 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
4069 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
4070 or else NT
(N
).Nkind
= N_Full_Type_Declaration
4071 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
4072 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
4073 or else NT
(N
).Nkind
= N_Iterator_Specification
4074 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
4075 or else NT
(N
).Nkind
= N_Number_Declaration
4076 or else NT
(N
).Nkind
= N_Object_Declaration
4077 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
4078 or else NT
(N
).Nkind
= N_Package_Body_Stub
4079 or else NT
(N
).Nkind
= N_Parameter_Specification
4080 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4081 or else NT
(N
).Nkind
= N_Private_Type_Declaration
4082 or else NT
(N
).Nkind
= N_Protected_Body
4083 or else NT
(N
).Nkind
= N_Protected_Body_Stub
4084 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4085 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
4086 or else NT
(N
).Nkind
= N_Single_Task_Declaration
4087 or else NT
(N
).Nkind
= N_Subtype_Declaration
4088 or else NT
(N
).Nkind
= N_Task_Body
4089 or else NT
(N
).Nkind
= N_Task_Body_Stub
4090 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4091 Set_Node1_With_Parent
(N
, Val
);
4092 end Set_Defining_Identifier
;
4094 procedure Set_Defining_Unit_Name
4095 (N
: Node_Id
; Val
: Node_Id
) is
4097 pragma Assert
(False
4098 or else NT
(N
).Nkind
= N_Function_Instantiation
4099 or else NT
(N
).Nkind
= N_Function_Specification
4100 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
4101 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
4102 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
4103 or else NT
(N
).Nkind
= N_Package_Body
4104 or else NT
(N
).Nkind
= N_Package_Instantiation
4105 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
4106 or else NT
(N
).Nkind
= N_Package_Specification
4107 or else NT
(N
).Nkind
= N_Procedure_Instantiation
4108 or else NT
(N
).Nkind
= N_Procedure_Specification
);
4109 Set_Node1_With_Parent
(N
, Val
);
4110 end Set_Defining_Unit_Name
;
4112 procedure Set_Delay_Alternative
4113 (N
: Node_Id
; Val
: Node_Id
) is
4115 pragma Assert
(False
4116 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
4117 Set_Node4_With_Parent
(N
, Val
);
4118 end Set_Delay_Alternative
;
4120 procedure Set_Delay_Statement
4121 (N
: Node_Id
; Val
: Node_Id
) is
4123 pragma Assert
(False
4124 or else NT
(N
).Nkind
= N_Delay_Alternative
);
4125 Set_Node2_With_Parent
(N
, Val
);
4126 end Set_Delay_Statement
;
4128 procedure Set_Delta_Expression
4129 (N
: Node_Id
; Val
: Node_Id
) is
4131 pragma Assert
(False
4132 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
4133 or else NT
(N
).Nkind
= N_Delta_Constraint
4134 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
4135 Set_Node3_With_Parent
(N
, Val
);
4136 end Set_Delta_Expression
;
4138 procedure Set_Digits_Expression
4139 (N
: Node_Id
; Val
: Node_Id
) is
4141 pragma Assert
(False
4142 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
4143 or else NT
(N
).Nkind
= N_Digits_Constraint
4144 or else NT
(N
).Nkind
= N_Floating_Point_Definition
);
4145 Set_Node2_With_Parent
(N
, Val
);
4146 end Set_Digits_Expression
;
4148 procedure Set_Discr_Check_Funcs_Built
4149 (N
: Node_Id
; Val
: Boolean := True) is
4151 pragma Assert
(False
4152 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
4153 Set_Flag11
(N
, Val
);
4154 end Set_Discr_Check_Funcs_Built
;
4156 procedure Set_Discrete_Choices
4157 (N
: Node_Id
; Val
: List_Id
) is
4159 pragma Assert
(False
4160 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4161 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
4162 or else NT
(N
).Nkind
= N_Variant
);
4163 Set_List4_With_Parent
(N
, Val
);
4164 end Set_Discrete_Choices
;
4166 procedure Set_Discrete_Range
4167 (N
: Node_Id
; Val
: Node_Id
) is
4169 pragma Assert
(False
4170 or else NT
(N
).Nkind
= N_Slice
);
4171 Set_Node4_With_Parent
(N
, Val
);
4172 end Set_Discrete_Range
;
4174 procedure Set_Discrete_Subtype_Definition
4175 (N
: Node_Id
; Val
: Node_Id
) is
4177 pragma Assert
(False
4178 or else NT
(N
).Nkind
= N_Entry_Declaration
4179 or else NT
(N
).Nkind
= N_Entry_Index_Specification
4180 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
4181 Set_Node4_With_Parent
(N
, Val
);
4182 end Set_Discrete_Subtype_Definition
;
4184 procedure Set_Discrete_Subtype_Definitions
4185 (N
: Node_Id
; Val
: List_Id
) is
4187 pragma Assert
(False
4188 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
);
4189 Set_List2_With_Parent
(N
, Val
);
4190 end Set_Discrete_Subtype_Definitions
;
4192 procedure Set_Discriminant_Specifications
4193 (N
: Node_Id
; Val
: List_Id
) is
4195 pragma Assert
(False
4196 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
4197 or else NT
(N
).Nkind
= N_Full_Type_Declaration
4198 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
4199 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4200 or else NT
(N
).Nkind
= N_Private_Type_Declaration
4201 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4202 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4203 Set_List4_With_Parent
(N
, Val
);
4204 end Set_Discriminant_Specifications
;
4206 procedure Set_Discriminant_Type
4207 (N
: Node_Id
; Val
: Node_Id
) is
4209 pragma Assert
(False
4210 or else NT
(N
).Nkind
= N_Discriminant_Specification
);
4211 Set_Node5_With_Parent
(N
, Val
);
4212 end Set_Discriminant_Type
;
4214 procedure Set_Do_Accessibility_Check
4215 (N
: Node_Id
; Val
: Boolean := True) is
4217 pragma Assert
(False
4218 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4219 Set_Flag13
(N
, Val
);
4220 end Set_Do_Accessibility_Check
;
4222 procedure Set_Do_Discriminant_Check
4223 (N
: Node_Id
; Val
: Boolean := True) is
4225 pragma Assert
(False
4226 or else NT
(N
).Nkind
= N_Assignment_Statement
4227 or else NT
(N
).Nkind
= N_Selected_Component
4228 or else NT
(N
).Nkind
= N_Type_Conversion
);
4230 end Set_Do_Discriminant_Check
;
4232 procedure Set_Do_Division_Check
4233 (N
: Node_Id
; Val
: Boolean := True) is
4235 pragma Assert
(False
4236 or else NT
(N
).Nkind
= N_Op_Divide
4237 or else NT
(N
).Nkind
= N_Op_Mod
4238 or else NT
(N
).Nkind
= N_Op_Rem
);
4239 Set_Flag13
(N
, Val
);
4240 end Set_Do_Division_Check
;
4242 procedure Set_Do_Length_Check
4243 (N
: Node_Id
; Val
: Boolean := True) is
4245 pragma Assert
(False
4246 or else NT
(N
).Nkind
= N_Assignment_Statement
4247 or else NT
(N
).Nkind
= N_Op_And
4248 or else NT
(N
).Nkind
= N_Op_Or
4249 or else NT
(N
).Nkind
= N_Op_Xor
4250 or else NT
(N
).Nkind
= N_Type_Conversion
);
4252 end Set_Do_Length_Check
;
4254 procedure Set_Do_Overflow_Check
4255 (N
: Node_Id
; Val
: Boolean := True) is
4257 pragma Assert
(False
4258 or else NT
(N
).Nkind
in N_Op
4259 or else NT
(N
).Nkind
= N_Attribute_Reference
4260 or else NT
(N
).Nkind
= N_Case_Expression
4261 or else NT
(N
).Nkind
= N_If_Expression
4262 or else NT
(N
).Nkind
= N_Type_Conversion
);
4263 Set_Flag17
(N
, Val
);
4264 end Set_Do_Overflow_Check
;
4266 procedure Set_Do_Range_Check
4267 (N
: Node_Id
; Val
: Boolean := True) is
4269 pragma Assert
(False
4270 or else NT
(N
).Nkind
in N_Subexpr
);
4272 end Set_Do_Range_Check
;
4274 procedure Set_Do_Storage_Check
4275 (N
: Node_Id
; Val
: Boolean := True) is
4277 pragma Assert
(False
4278 or else NT
(N
).Nkind
= N_Allocator
4279 or else NT
(N
).Nkind
= N_Subprogram_Body
);
4280 Set_Flag17
(N
, Val
);
4281 end Set_Do_Storage_Check
;
4283 procedure Set_Do_Tag_Check
4284 (N
: Node_Id
; Val
: Boolean := True) is
4286 pragma Assert
(False
4287 or else NT
(N
).Nkind
= N_Assignment_Statement
4288 or else NT
(N
).Nkind
= N_Extended_Return_Statement
4289 or else NT
(N
).Nkind
= N_Function_Call
4290 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
4291 or else NT
(N
).Nkind
= N_Simple_Return_Statement
4292 or else NT
(N
).Nkind
= N_Type_Conversion
);
4293 Set_Flag13
(N
, Val
);
4294 end Set_Do_Tag_Check
;
4296 procedure Set_Elaborate_All_Desirable
4297 (N
: Node_Id
; Val
: Boolean := True) is
4299 pragma Assert
(False
4300 or else NT
(N
).Nkind
= N_With_Clause
);
4302 end Set_Elaborate_All_Desirable
;
4304 procedure Set_Elaborate_All_Present
4305 (N
: Node_Id
; Val
: Boolean := True) is
4307 pragma Assert
(False
4308 or else NT
(N
).Nkind
= N_With_Clause
);
4309 Set_Flag14
(N
, Val
);
4310 end Set_Elaborate_All_Present
;
4312 procedure Set_Elaborate_Desirable
4313 (N
: Node_Id
; Val
: Boolean := True) is
4315 pragma Assert
(False
4316 or else NT
(N
).Nkind
= N_With_Clause
);
4317 Set_Flag11
(N
, Val
);
4318 end Set_Elaborate_Desirable
;
4320 procedure Set_Elaborate_Present
4321 (N
: Node_Id
; Val
: Boolean := True) is
4323 pragma Assert
(False
4324 or else NT
(N
).Nkind
= N_With_Clause
);
4326 end Set_Elaborate_Present
;
4328 procedure Set_Else_Actions
4329 (N
: Node_Id
; Val
: List_Id
) is
4331 pragma Assert
(False
4332 or else NT
(N
).Nkind
= N_If_Expression
);
4333 Set_List3_With_Parent
(N
, Val
); -- semantic field, but needs parents
4334 end Set_Else_Actions
;
4336 procedure Set_Else_Statements
4337 (N
: Node_Id
; Val
: List_Id
) is
4339 pragma Assert
(False
4340 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
4341 or else NT
(N
).Nkind
= N_If_Statement
4342 or else NT
(N
).Nkind
= N_Selective_Accept
);
4343 Set_List4_With_Parent
(N
, Val
);
4344 end Set_Else_Statements
;
4346 procedure Set_Elsif_Parts
4347 (N
: Node_Id
; Val
: List_Id
) is
4349 pragma Assert
(False
4350 or else NT
(N
).Nkind
= N_If_Statement
);
4351 Set_List3_With_Parent
(N
, Val
);
4352 end Set_Elsif_Parts
;
4354 procedure Set_Enclosing_Variant
4355 (N
: Node_Id
; Val
: Node_Id
) is
4357 pragma Assert
(False
4358 or else NT
(N
).Nkind
= N_Variant
);
4359 Set_Node2
(N
, Val
); -- semantic field, no parent set
4360 end Set_Enclosing_Variant
;
4362 procedure Set_End_Label
4363 (N
: Node_Id
; Val
: Node_Id
) is
4365 pragma Assert
(False
4366 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
4367 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
4368 or else NT
(N
).Nkind
= N_Loop_Statement
4369 or else NT
(N
).Nkind
= N_Package_Specification
4370 or else NT
(N
).Nkind
= N_Protected_Body
4371 or else NT
(N
).Nkind
= N_Protected_Definition
4372 or else NT
(N
).Nkind
= N_Record_Definition
4373 or else NT
(N
).Nkind
= N_Task_Definition
);
4374 Set_Node4_With_Parent
(N
, Val
);
4377 procedure Set_End_Span
4378 (N
: Node_Id
; Val
: Uint
) is
4380 pragma Assert
(False
4381 or else NT
(N
).Nkind
= N_Case_Statement
4382 or else NT
(N
).Nkind
= N_If_Statement
);
4386 procedure Set_Entity
4387 (N
: Node_Id
; Val
: Node_Id
) is
4389 pragma Assert
(False
4390 or else NT
(N
).Nkind
in N_Has_Entity
4391 or else NT
(N
).Nkind
= N_Aspect_Specification
4392 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4393 or else NT
(N
).Nkind
= N_Freeze_Entity
4394 or else NT
(N
).Nkind
= N_Freeze_Generic_Entity
);
4395 Set_Node4
(N
, Val
); -- semantic field, no parent set
4398 procedure Set_Entry_Body_Formal_Part
4399 (N
: Node_Id
; Val
: Node_Id
) is
4401 pragma Assert
(False
4402 or else NT
(N
).Nkind
= N_Entry_Body
);
4403 Set_Node5_With_Parent
(N
, Val
);
4404 end Set_Entry_Body_Formal_Part
;
4406 procedure Set_Entry_Call_Alternative
4407 (N
: Node_Id
; Val
: Node_Id
) is
4409 pragma Assert
(False
4410 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
4411 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
4412 Set_Node1_With_Parent
(N
, Val
);
4413 end Set_Entry_Call_Alternative
;
4415 procedure Set_Entry_Call_Statement
4416 (N
: Node_Id
; Val
: Node_Id
) is
4418 pragma Assert
(False
4419 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
);
4420 Set_Node1_With_Parent
(N
, Val
);
4421 end Set_Entry_Call_Statement
;
4423 procedure Set_Entry_Direct_Name
4424 (N
: Node_Id
; Val
: Node_Id
) is
4426 pragma Assert
(False
4427 or else NT
(N
).Nkind
= N_Accept_Statement
);
4428 Set_Node1_With_Parent
(N
, Val
);
4429 end Set_Entry_Direct_Name
;
4431 procedure Set_Entry_Index
4432 (N
: Node_Id
; Val
: Node_Id
) is
4434 pragma Assert
(False
4435 or else NT
(N
).Nkind
= N_Accept_Statement
);
4436 Set_Node5_With_Parent
(N
, Val
);
4437 end Set_Entry_Index
;
4439 procedure Set_Entry_Index_Specification
4440 (N
: Node_Id
; Val
: Node_Id
) is
4442 pragma Assert
(False
4443 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
);
4444 Set_Node4_With_Parent
(N
, Val
);
4445 end Set_Entry_Index_Specification
;
4448 (N
: Node_Id
; Val
: Node_Id
) is
4450 pragma Assert
(False
4451 or else NT
(N
).Nkind
in N_Has_Etype
);
4452 Set_Node5
(N
, Val
); -- semantic field, no parent set
4455 procedure Set_Exception_Choices
4456 (N
: Node_Id
; Val
: List_Id
) is
4458 pragma Assert
(False
4459 or else NT
(N
).Nkind
= N_Exception_Handler
);
4460 Set_List4_With_Parent
(N
, Val
);
4461 end Set_Exception_Choices
;
4463 procedure Set_Exception_Handlers
4464 (N
: Node_Id
; Val
: List_Id
) is
4466 pragma Assert
(False
4467 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
4468 Set_List5_With_Parent
(N
, Val
);
4469 end Set_Exception_Handlers
;
4471 procedure Set_Exception_Junk
4472 (N
: Node_Id
; Val
: Boolean := True) is
4474 pragma Assert
(False
4475 or else NT
(N
).Nkind
= N_Block_Statement
4476 or else NT
(N
).Nkind
= N_Goto_Statement
4477 or else NT
(N
).Nkind
= N_Label
4478 or else NT
(N
).Nkind
= N_Object_Declaration
4479 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
4481 end Set_Exception_Junk
;
4483 procedure Set_Exception_Label
4484 (N
: Node_Id
; Val
: Node_Id
) is
4486 pragma Assert
(False
4487 or else NT
(N
).Nkind
= N_Exception_Handler
4488 or else NT
(N
).Nkind
= N_Push_Constraint_Error_Label
4489 or else NT
(N
).Nkind
= N_Push_Program_Error_Label
4490 or else NT
(N
).Nkind
= N_Push_Storage_Error_Label
);
4491 Set_Node5
(N
, Val
); -- semantic field, no parent set
4492 end Set_Exception_Label
;
4494 procedure Set_Expansion_Delayed
4495 (N
: Node_Id
; Val
: Boolean := True) is
4497 pragma Assert
(False
4498 or else NT
(N
).Nkind
= N_Aggregate
4499 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
4500 Set_Flag11
(N
, Val
);
4501 end Set_Expansion_Delayed
;
4503 procedure Set_Explicit_Actual_Parameter
4504 (N
: Node_Id
; Val
: Node_Id
) is
4506 pragma Assert
(False
4507 or else NT
(N
).Nkind
= N_Parameter_Association
);
4508 Set_Node3_With_Parent
(N
, Val
);
4509 end Set_Explicit_Actual_Parameter
;
4511 procedure Set_Explicit_Generic_Actual_Parameter
4512 (N
: Node_Id
; Val
: Node_Id
) is
4514 pragma Assert
(False
4515 or else NT
(N
).Nkind
= N_Generic_Association
);
4516 Set_Node1_With_Parent
(N
, Val
);
4517 end Set_Explicit_Generic_Actual_Parameter
;
4519 procedure Set_Expression
4520 (N
: Node_Id
; Val
: Node_Id
) is
4522 pragma Assert
(False
4523 or else NT
(N
).Nkind
= N_Allocator
4524 or else NT
(N
).Nkind
= N_Aspect_Specification
4525 or else NT
(N
).Nkind
= N_Assignment_Statement
4526 or else NT
(N
).Nkind
= N_At_Clause
4527 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4528 or else NT
(N
).Nkind
= N_Case_Expression
4529 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4530 or else NT
(N
).Nkind
= N_Case_Statement
4531 or else NT
(N
).Nkind
= N_Code_Statement
4532 or else NT
(N
).Nkind
= N_Component_Association
4533 or else NT
(N
).Nkind
= N_Component_Declaration
4534 or else NT
(N
).Nkind
= N_Delay_Relative_Statement
4535 or else NT
(N
).Nkind
= N_Delay_Until_Statement
4536 or else NT
(N
).Nkind
= N_Discriminant_Association
4537 or else NT
(N
).Nkind
= N_Discriminant_Specification
4538 or else NT
(N
).Nkind
= N_Exception_Declaration
4539 or else NT
(N
).Nkind
= N_Expression_Function
4540 or else NT
(N
).Nkind
= N_Expression_With_Actions
4541 or else NT
(N
).Nkind
= N_Free_Statement
4542 or else NT
(N
).Nkind
= N_Mod_Clause
4543 or else NT
(N
).Nkind
= N_Modular_Type_Definition
4544 or else NT
(N
).Nkind
= N_Number_Declaration
4545 or else NT
(N
).Nkind
= N_Object_Declaration
4546 or else NT
(N
).Nkind
= N_Parameter_Specification
4547 or else NT
(N
).Nkind
= N_Pragma_Argument_Association
4548 or else NT
(N
).Nkind
= N_Qualified_Expression
4549 or else NT
(N
).Nkind
= N_Raise_Expression
4550 or else NT
(N
).Nkind
= N_Raise_Statement
4551 or else NT
(N
).Nkind
= N_Simple_Return_Statement
4552 or else NT
(N
).Nkind
= N_Type_Conversion
4553 or else NT
(N
).Nkind
= N_Unchecked_Expression
4554 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
4555 Set_Node3_With_Parent
(N
, Val
);
4558 procedure Set_Expressions
4559 (N
: Node_Id
; Val
: List_Id
) is
4561 pragma Assert
(False
4562 or else NT
(N
).Nkind
= N_Aggregate
4563 or else NT
(N
).Nkind
= N_Attribute_Reference
4564 or else NT
(N
).Nkind
= N_Extension_Aggregate
4565 or else NT
(N
).Nkind
= N_If_Expression
4566 or else NT
(N
).Nkind
= N_Indexed_Component
);
4567 Set_List1_With_Parent
(N
, Val
);
4568 end Set_Expressions
;
4570 procedure Set_First_Bit
4571 (N
: Node_Id
; Val
: Node_Id
) is
4573 pragma Assert
(False
4574 or else NT
(N
).Nkind
= N_Component_Clause
);
4575 Set_Node3_With_Parent
(N
, Val
);
4578 procedure Set_First_Inlined_Subprogram
4579 (N
: Node_Id
; Val
: Entity_Id
) is
4581 pragma Assert
(False
4582 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4583 Set_Node3
(N
, Val
); -- semantic field, no parent set
4584 end Set_First_Inlined_Subprogram
;
4586 procedure Set_First_Name
4587 (N
: Node_Id
; Val
: Boolean := True) is
4589 pragma Assert
(False
4590 or else NT
(N
).Nkind
= N_With_Clause
);
4594 procedure Set_First_Named_Actual
4595 (N
: Node_Id
; Val
: Node_Id
) is
4597 pragma Assert
(False
4598 or else NT
(N
).Nkind
= N_Entry_Call_Statement
4599 or else NT
(N
).Nkind
= N_Function_Call
4600 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
4601 Set_Node4
(N
, Val
); -- semantic field, no parent set
4602 end Set_First_Named_Actual
;
4604 procedure Set_First_Real_Statement
4605 (N
: Node_Id
; Val
: Node_Id
) is
4607 pragma Assert
(False
4608 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
4609 Set_Node2
(N
, Val
); -- semantic field, no parent set
4610 end Set_First_Real_Statement
;
4612 procedure Set_First_Subtype_Link
4613 (N
: Node_Id
; Val
: Entity_Id
) is
4615 pragma Assert
(False
4616 or else NT
(N
).Nkind
= N_Freeze_Entity
);
4617 Set_Node5
(N
, Val
); -- semantic field, no parent set
4618 end Set_First_Subtype_Link
;
4620 procedure Set_Float_Truncate
4621 (N
: Node_Id
; Val
: Boolean := True) is
4623 pragma Assert
(False
4624 or else NT
(N
).Nkind
= N_Type_Conversion
);
4625 Set_Flag11
(N
, Val
);
4626 end Set_Float_Truncate
;
4628 procedure Set_Formal_Type_Definition
4629 (N
: Node_Id
; Val
: Node_Id
) is
4631 pragma Assert
(False
4632 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
);
4633 Set_Node3_With_Parent
(N
, Val
);
4634 end Set_Formal_Type_Definition
;
4636 procedure Set_Forwards_OK
4637 (N
: Node_Id
; Val
: Boolean := True) is
4639 pragma Assert
(False
4640 or else NT
(N
).Nkind
= N_Assignment_Statement
);
4642 end Set_Forwards_OK
;
4644 procedure Set_From_Aspect_Specification
4645 (N
: Node_Id
; Val
: Boolean := True) is
4647 pragma Assert
(False
4648 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4649 or else NT
(N
).Nkind
= N_Pragma
);
4650 Set_Flag13
(N
, Val
);
4651 end Set_From_Aspect_Specification
;
4653 procedure Set_From_At_End
4654 (N
: Node_Id
; Val
: Boolean := True) is
4656 pragma Assert
(False
4657 or else NT
(N
).Nkind
= N_Raise_Statement
);
4659 end Set_From_At_End
;
4661 procedure Set_From_At_Mod
4662 (N
: Node_Id
; Val
: Boolean := True) is
4664 pragma Assert
(False
4665 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
4667 end Set_From_At_Mod
;
4669 procedure Set_From_Conditional_Expression
4670 (N
: Node_Id
; Val
: Boolean := True) is
4672 pragma Assert
(False
4673 or else NT
(N
).Nkind
= N_Case_Statement
4674 or else NT
(N
).Nkind
= N_If_Statement
);
4676 end Set_From_Conditional_Expression
;
4678 procedure Set_From_Default
4679 (N
: Node_Id
; Val
: Boolean := True) is
4681 pragma Assert
(False
4682 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
4684 end Set_From_Default
;
4686 procedure Set_Generalized_Indexing
4687 (N
: Node_Id
; Val
: Node_Id
) is
4689 pragma Assert
(False
4690 or else NT
(N
).Nkind
= N_Indexed_Component
);
4692 end Set_Generalized_Indexing
;
4694 procedure Set_Generic_Associations
4695 (N
: Node_Id
; Val
: List_Id
) is
4697 pragma Assert
(False
4698 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
4699 or else NT
(N
).Nkind
= N_Function_Instantiation
4700 or else NT
(N
).Nkind
= N_Package_Instantiation
4701 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
4702 Set_List3_With_Parent
(N
, Val
);
4703 end Set_Generic_Associations
;
4705 procedure Set_Generic_Formal_Declarations
4706 (N
: Node_Id
; Val
: List_Id
) is
4708 pragma Assert
(False
4709 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
4710 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
);
4711 Set_List2_With_Parent
(N
, Val
);
4712 end Set_Generic_Formal_Declarations
;
4714 procedure Set_Generic_Parent
4715 (N
: Node_Id
; Val
: Node_Id
) is
4717 pragma Assert
(False
4718 or else NT
(N
).Nkind
= N_Function_Specification
4719 or else NT
(N
).Nkind
= N_Package_Specification
4720 or else NT
(N
).Nkind
= N_Procedure_Specification
);
4722 end Set_Generic_Parent
;
4724 procedure Set_Generic_Parent_Type
4725 (N
: Node_Id
; Val
: Node_Id
) is
4727 pragma Assert
(False
4728 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
4730 end Set_Generic_Parent_Type
;
4732 procedure Set_Handled_Statement_Sequence
4733 (N
: Node_Id
; Val
: Node_Id
) is
4735 pragma Assert
(False
4736 or else NT
(N
).Nkind
= N_Accept_Statement
4737 or else NT
(N
).Nkind
= N_Block_Statement
4738 or else NT
(N
).Nkind
= N_Entry_Body
4739 or else NT
(N
).Nkind
= N_Extended_Return_Statement
4740 or else NT
(N
).Nkind
= N_Package_Body
4741 or else NT
(N
).Nkind
= N_Subprogram_Body
4742 or else NT
(N
).Nkind
= N_Task_Body
);
4743 Set_Node4_With_Parent
(N
, Val
);
4744 end Set_Handled_Statement_Sequence
;
4746 procedure Set_Handler_List_Entry
4747 (N
: Node_Id
; Val
: Node_Id
) is
4749 pragma Assert
(False
4750 or else NT
(N
).Nkind
= N_Object_Declaration
);
4752 end Set_Handler_List_Entry
;
4754 procedure Set_Has_Created_Identifier
4755 (N
: Node_Id
; Val
: Boolean := True) is
4757 pragma Assert
(False
4758 or else NT
(N
).Nkind
= N_Block_Statement
4759 or else NT
(N
).Nkind
= N_Loop_Statement
);
4760 Set_Flag15
(N
, Val
);
4761 end Set_Has_Created_Identifier
;
4763 procedure Set_Has_Dereference_Action
4764 (N
: Node_Id
; Val
: Boolean := True) is
4766 pragma Assert
(False
4767 or else NT
(N
).Nkind
= N_Explicit_Dereference
);
4768 Set_Flag13
(N
, Val
);
4769 end Set_Has_Dereference_Action
;
4771 procedure Set_Has_Dynamic_Length_Check
4772 (N
: Node_Id
; Val
: Boolean := True) is
4774 pragma Assert
(False
4775 or else NT
(N
).Nkind
in N_Subexpr
);
4776 Set_Flag10
(N
, Val
);
4777 end Set_Has_Dynamic_Length_Check
;
4779 procedure Set_Has_Dynamic_Range_Check
4780 (N
: Node_Id
; Val
: Boolean := True) is
4782 pragma Assert
(False
4783 or else NT
(N
).Nkind
= N_Subtype_Declaration
4784 or else NT
(N
).Nkind
in N_Subexpr
);
4785 Set_Flag12
(N
, Val
);
4786 end Set_Has_Dynamic_Range_Check
;
4788 procedure Set_Has_Init_Expression
4789 (N
: Node_Id
; Val
: Boolean := True) is
4791 pragma Assert
(False
4792 or else NT
(N
).Nkind
= N_Object_Declaration
);
4793 Set_Flag14
(N
, Val
);
4794 end Set_Has_Init_Expression
;
4796 procedure Set_Has_Local_Raise
4797 (N
: Node_Id
; Val
: Boolean := True) is
4799 pragma Assert
(False
4800 or else NT
(N
).Nkind
= N_Exception_Handler
);
4802 end Set_Has_Local_Raise
;
4804 procedure Set_Has_No_Elaboration_Code
4805 (N
: Node_Id
; Val
: Boolean := True) is
4807 pragma Assert
(False
4808 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4809 Set_Flag17
(N
, Val
);
4810 end Set_Has_No_Elaboration_Code
;
4812 procedure Set_Has_Pragma_Suppress_All
4813 (N
: Node_Id
; Val
: Boolean := True) is
4815 pragma Assert
(False
4816 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4817 Set_Flag14
(N
, Val
);
4818 end Set_Has_Pragma_Suppress_All
;
4820 procedure Set_Has_Private_View
4821 (N
: Node_Id
; Val
: Boolean := True) is
4823 pragma Assert
(False
4824 or else NT
(N
).Nkind
in N_Op
4825 or else NT
(N
).Nkind
= N_Character_Literal
4826 or else NT
(N
).Nkind
= N_Expanded_Name
4827 or else NT
(N
).Nkind
= N_Identifier
4828 or else NT
(N
).Nkind
= N_Operator_Symbol
);
4829 Set_Flag11
(N
, Val
);
4830 end Set_Has_Private_View
;
4832 procedure Set_Has_Relative_Deadline_Pragma
4833 (N
: Node_Id
; Val
: Boolean := True) is
4835 pragma Assert
(False
4836 or else NT
(N
).Nkind
= N_Subprogram_Body
4837 or else NT
(N
).Nkind
= N_Task_Definition
);
4839 end Set_Has_Relative_Deadline_Pragma
;
4841 procedure Set_Has_Self_Reference
4842 (N
: Node_Id
; Val
: Boolean := True) is
4844 pragma Assert
(False
4845 or else NT
(N
).Nkind
= N_Aggregate
4846 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
4847 Set_Flag13
(N
, Val
);
4848 end Set_Has_Self_Reference
;
4850 procedure Set_Has_SP_Choice
4851 (N
: Node_Id
; Val
: Boolean := True) is
4853 pragma Assert
(False
4854 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4855 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
4856 or else NT
(N
).Nkind
= N_Variant
);
4857 Set_Flag15
(N
, Val
);
4858 end Set_Has_SP_Choice
;
4860 procedure Set_Has_Storage_Size_Pragma
4861 (N
: Node_Id
; Val
: Boolean := True) is
4863 pragma Assert
(False
4864 or else NT
(N
).Nkind
= N_Task_Definition
);
4866 end Set_Has_Storage_Size_Pragma
;
4868 procedure Set_Has_Wide_Character
4869 (N
: Node_Id
; Val
: Boolean := True) is
4871 pragma Assert
(False
4872 or else NT
(N
).Nkind
= N_String_Literal
);
4873 Set_Flag11
(N
, Val
);
4874 end Set_Has_Wide_Character
;
4876 procedure Set_Has_Wide_Wide_Character
4877 (N
: Node_Id
; Val
: Boolean := True) is
4879 pragma Assert
(False
4880 or else NT
(N
).Nkind
= N_String_Literal
);
4881 Set_Flag13
(N
, Val
);
4882 end Set_Has_Wide_Wide_Character
;
4884 procedure Set_Header_Size_Added
4885 (N
: Node_Id
; Val
: Boolean := True) is
4887 pragma Assert
(False
4888 or else NT
(N
).Nkind
= N_Attribute_Reference
);
4889 Set_Flag11
(N
, Val
);
4890 end Set_Header_Size_Added
;
4892 procedure Set_Hidden_By_Use_Clause
4893 (N
: Node_Id
; Val
: Elist_Id
) is
4895 pragma Assert
(False
4896 or else NT
(N
).Nkind
= N_Use_Package_Clause
4897 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
4898 Set_Elist4
(N
, Val
);
4899 end Set_Hidden_By_Use_Clause
;
4901 procedure Set_High_Bound
4902 (N
: Node_Id
; Val
: Node_Id
) is
4904 pragma Assert
(False
4905 or else NT
(N
).Nkind
= N_Range
4906 or else NT
(N
).Nkind
= N_Real_Range_Specification
4907 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
4908 Set_Node2_With_Parent
(N
, Val
);
4911 procedure Set_Identifier
4912 (N
: Node_Id
; Val
: Node_Id
) is
4914 pragma Assert
(False
4915 or else NT
(N
).Nkind
= N_Aspect_Specification
4916 or else NT
(N
).Nkind
= N_At_Clause
4917 or else NT
(N
).Nkind
= N_Block_Statement
4918 or else NT
(N
).Nkind
= N_Designator
4919 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
4920 or else NT
(N
).Nkind
= N_Label
4921 or else NT
(N
).Nkind
= N_Loop_Statement
4922 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
4923 Set_Node1_With_Parent
(N
, Val
);
4926 procedure Set_Implicit_With
4927 (N
: Node_Id
; Val
: Boolean := True) is
4929 pragma Assert
(False
4930 or else NT
(N
).Nkind
= N_With_Clause
);
4931 Set_Flag16
(N
, Val
);
4932 end Set_Implicit_With
;
4934 procedure Set_Implicit_With_From_Instantiation
4935 (N
: Node_Id
; Val
: Boolean := True) is
4937 pragma Assert
(False
4938 or else NT
(N
).Nkind
= N_With_Clause
);
4939 Set_Flag12
(N
, Val
);
4940 end Set_Implicit_With_From_Instantiation
;
4942 procedure Set_Interface_List
4943 (N
: Node_Id
; Val
: List_Id
) is
4945 pragma Assert
(False
4946 or else NT
(N
).Nkind
= N_Derived_Type_Definition
4947 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
4948 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4949 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4950 or else NT
(N
).Nkind
= N_Record_Definition
4951 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
4952 or else NT
(N
).Nkind
= N_Single_Task_Declaration
4953 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4954 Set_List2_With_Parent
(N
, Val
);
4955 end Set_Interface_List
;
4957 procedure Set_Interface_Present
4958 (N
: Node_Id
; Val
: Boolean := True) is
4960 pragma Assert
(False
4961 or else NT
(N
).Nkind
= N_Derived_Type_Definition
4962 or else NT
(N
).Nkind
= N_Record_Definition
);
4963 Set_Flag16
(N
, Val
);
4964 end Set_Interface_Present
;
4966 procedure Set_Import_Interface_Present
4967 (N
: Node_Id
; Val
: Boolean := True) is
4969 pragma Assert
(False
4970 or else NT
(N
).Nkind
= N_Pragma
);
4971 Set_Flag16
(N
, Val
);
4972 end Set_Import_Interface_Present
;
4974 procedure Set_In_Present
4975 (N
: Node_Id
; Val
: Boolean := True) is
4977 pragma Assert
(False
4978 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4979 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4980 Set_Flag15
(N
, Val
);
4983 procedure Set_Includes_Infinities
4984 (N
: Node_Id
; Val
: Boolean := True) is
4986 pragma Assert
(False
4987 or else NT
(N
).Nkind
= N_Range
);
4988 Set_Flag11
(N
, Val
);
4989 end Set_Includes_Infinities
;
4991 procedure Set_Incomplete_View
4992 (N
: Node_Id
; Val
: Node_Id
) is
4994 pragma Assert
(False
4995 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
4996 Set_Node2
(N
, Val
); -- semantic field, no Parent set
4997 end Set_Incomplete_View
;
4999 procedure Set_Inherited_Discriminant
5000 (N
: Node_Id
; Val
: Boolean := True) is
5002 pragma Assert
(False
5003 or else NT
(N
).Nkind
= N_Component_Association
);
5004 Set_Flag13
(N
, Val
);
5005 end Set_Inherited_Discriminant
;
5007 procedure Set_Instance_Spec
5008 (N
: Node_Id
; Val
: Node_Id
) is
5010 pragma Assert
(False
5011 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
5012 or else NT
(N
).Nkind
= N_Function_Instantiation
5013 or else NT
(N
).Nkind
= N_Package_Instantiation
5014 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
5015 Set_Node5
(N
, Val
); -- semantic field, no Parent set
5016 end Set_Instance_Spec
;
5018 procedure Set_Intval
5019 (N
: Node_Id
; Val
: Uint
) is
5021 pragma Assert
(False
5022 or else NT
(N
).Nkind
= N_Integer_Literal
);
5026 procedure Set_Is_Abort_Block
5027 (N
: Node_Id
; Val
: Boolean := True) is
5029 pragma Assert
(False
5030 or else NT
(N
).Nkind
= N_Block_Statement
);
5032 end Set_Is_Abort_Block
;
5034 procedure Set_Is_Accessibility_Actual
5035 (N
: Node_Id
; Val
: Boolean := True) is
5037 pragma Assert
(False
5038 or else NT
(N
).Nkind
= N_Parameter_Association
);
5039 Set_Flag13
(N
, Val
);
5040 end Set_Is_Accessibility_Actual
;
5042 procedure Set_Is_Analyzed_Pragma
5043 (N
: Node_Id
; Val
: Boolean := True) is
5045 pragma Assert
(False
5046 or else NT
(N
).Nkind
= N_Pragma
);
5048 end Set_Is_Analyzed_Pragma
;
5050 procedure Set_Is_Asynchronous_Call_Block
5051 (N
: Node_Id
; Val
: Boolean := True) is
5053 pragma Assert
(False
5054 or else NT
(N
).Nkind
= N_Block_Statement
);
5056 end Set_Is_Asynchronous_Call_Block
;
5058 procedure Set_Is_Boolean_Aspect
5059 (N
: Node_Id
; Val
: Boolean := True) is
5061 pragma Assert
(False
5062 or else NT
(N
).Nkind
= N_Aspect_Specification
);
5063 Set_Flag16
(N
, Val
);
5064 end Set_Is_Boolean_Aspect
;
5066 procedure Set_Is_Checked
5067 (N
: Node_Id
; Val
: Boolean := True) is
5069 pragma Assert
(False
5070 or else NT
(N
).Nkind
= N_Aspect_Specification
5071 or else NT
(N
).Nkind
= N_Pragma
);
5072 Set_Flag11
(N
, Val
);
5075 procedure Set_Is_Component_Left_Opnd
5076 (N
: Node_Id
; Val
: Boolean := True) is
5078 pragma Assert
(False
5079 or else NT
(N
).Nkind
= N_Op_Concat
);
5080 Set_Flag13
(N
, Val
);
5081 end Set_Is_Component_Left_Opnd
;
5083 procedure Set_Is_Component_Right_Opnd
5084 (N
: Node_Id
; Val
: Boolean := True) is
5086 pragma Assert
(False
5087 or else NT
(N
).Nkind
= N_Op_Concat
);
5088 Set_Flag14
(N
, Val
);
5089 end Set_Is_Component_Right_Opnd
;
5091 procedure Set_Is_Controlling_Actual
5092 (N
: Node_Id
; Val
: Boolean := True) is
5094 pragma Assert
(False
5095 or else NT
(N
).Nkind
in N_Subexpr
);
5096 Set_Flag16
(N
, Val
);
5097 end Set_Is_Controlling_Actual
;
5099 procedure Set_Is_Delayed_Aspect
5100 (N
: Node_Id
; Val
: Boolean := True) is
5102 pragma Assert
(False
5103 or else NT
(N
).Nkind
= N_Aspect_Specification
5104 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5105 or else NT
(N
).Nkind
= N_Pragma
);
5106 Set_Flag14
(N
, Val
);
5107 end Set_Is_Delayed_Aspect
;
5109 procedure Set_Is_Disabled
5110 (N
: Node_Id
; Val
: Boolean := True) is
5112 pragma Assert
(False
5113 or else NT
(N
).Nkind
= N_Aspect_Specification
5114 or else NT
(N
).Nkind
= N_Pragma
);
5115 Set_Flag15
(N
, Val
);
5116 end Set_Is_Disabled
;
5118 procedure Set_Is_Dynamic_Coextension
5119 (N
: Node_Id
; Val
: Boolean := True) is
5121 pragma Assert
(False
5122 or else NT
(N
).Nkind
= N_Allocator
);
5123 Set_Flag18
(N
, Val
);
5124 end Set_Is_Dynamic_Coextension
;
5126 procedure Set_Is_Elsif
5127 (N
: Node_Id
; Val
: Boolean := True) is
5129 pragma Assert
(False
5130 or else NT
(N
).Nkind
= N_If_Expression
);
5131 Set_Flag13
(N
, Val
);
5134 procedure Set_Is_Entry_Barrier_Function
5135 (N
: Node_Id
; Val
: Boolean := True) is
5137 pragma Assert
(False
5138 or else NT
(N
).Nkind
= N_Subprogram_Body
5139 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
5141 end Set_Is_Entry_Barrier_Function
;
5143 procedure Set_Is_Expanded_Build_In_Place_Call
5144 (N
: Node_Id
; Val
: Boolean := True) is
5146 pragma Assert
(False
5147 or else NT
(N
).Nkind
= N_Function_Call
);
5148 Set_Flag11
(N
, Val
);
5149 end Set_Is_Expanded_Build_In_Place_Call
;
5151 procedure Set_Is_Expanded_Contract
5152 (N
: Node_Id
; Val
: Boolean := True) is
5154 pragma Assert
(False
5155 or else NT
(N
).Nkind
= N_Contract
);
5157 end Set_Is_Expanded_Contract
;
5159 procedure Set_Is_Finalization_Wrapper
5160 (N
: Node_Id
; Val
: Boolean := True) is
5162 pragma Assert
(False
5163 or else NT
(N
).Nkind
= N_Block_Statement
);
5165 end Set_Is_Finalization_Wrapper
;
5167 procedure Set_Is_Folded_In_Parser
5168 (N
: Node_Id
; Val
: Boolean := True) is
5170 pragma Assert
(False
5171 or else NT
(N
).Nkind
= N_String_Literal
);
5173 end Set_Is_Folded_In_Parser
;
5175 procedure Set_Is_Generic_Contract_Pragma
5176 (N
: Node_Id
; Val
: Boolean := True) is
5178 pragma Assert
(False
5179 or else NT
(N
).Nkind
= N_Pragma
);
5181 end Set_Is_Generic_Contract_Pragma
;
5183 procedure Set_Is_Ghost_Pragma
5184 (N
: Node_Id
; Val
: Boolean := True) is
5186 pragma Assert
(False
5187 or else NT
(N
).Nkind
= N_Pragma
);
5189 end Set_Is_Ghost_Pragma
;
5191 procedure Set_Is_Ignored
5192 (N
: Node_Id
; Val
: Boolean := True) is
5194 pragma Assert
(False
5195 or else NT
(N
).Nkind
= N_Aspect_Specification
5196 or else NT
(N
).Nkind
= N_Pragma
);
5200 procedure Set_Is_In_Discriminant_Check
5201 (N
: Node_Id
; Val
: Boolean := True) is
5203 pragma Assert
(False
5204 or else NT
(N
).Nkind
= N_Selected_Component
);
5205 Set_Flag11
(N
, Val
);
5206 end Set_Is_In_Discriminant_Check
;
5208 procedure Set_Is_Inherited_Pragma
5209 (N
: Node_Id
; Val
: Boolean := True) is
5211 pragma Assert
(False
5212 or else NT
(N
).Nkind
= N_Pragma
);
5214 end Set_Is_Inherited_Pragma
;
5216 procedure Set_Is_Machine_Number
5217 (N
: Node_Id
; Val
: Boolean := True) is
5219 pragma Assert
(False
5220 or else NT
(N
).Nkind
= N_Real_Literal
);
5221 Set_Flag11
(N
, Val
);
5222 end Set_Is_Machine_Number
;
5224 procedure Set_Is_Null_Loop
5225 (N
: Node_Id
; Val
: Boolean := True) is
5227 pragma Assert
(False
5228 or else NT
(N
).Nkind
= N_Loop_Statement
);
5229 Set_Flag16
(N
, Val
);
5230 end Set_Is_Null_Loop
;
5232 procedure Set_Is_Overloaded
5233 (N
: Node_Id
; Val
: Boolean := True) is
5235 pragma Assert
(False
5236 or else NT
(N
).Nkind
in N_Subexpr
);
5238 end Set_Is_Overloaded
;
5240 procedure Set_Is_Power_Of_2_For_Shift
5241 (N
: Node_Id
; Val
: Boolean := True) is
5243 pragma Assert
(False
5244 or else NT
(N
).Nkind
= N_Op_Expon
);
5245 Set_Flag13
(N
, Val
);
5246 end Set_Is_Power_Of_2_For_Shift
;
5248 procedure Set_Is_Prefixed_Call
5249 (N
: Node_Id
; Val
: Boolean := True) is
5251 pragma Assert
(False
5252 or else NT
(N
).Nkind
= N_Selected_Component
);
5253 Set_Flag17
(N
, Val
);
5254 end Set_Is_Prefixed_Call
;
5256 procedure Set_Is_Protected_Subprogram_Body
5257 (N
: Node_Id
; Val
: Boolean := True) is
5259 pragma Assert
(False
5260 or else NT
(N
).Nkind
= N_Subprogram_Body
);
5262 end Set_Is_Protected_Subprogram_Body
;
5264 procedure Set_Is_Qualified_Universal_Literal
5265 (N
: Node_Id
; Val
: Boolean := True) is
5267 pragma Assert
(False
5268 or else NT
(N
).Nkind
= N_Qualified_Expression
);
5270 end Set_Is_Qualified_Universal_Literal
;
5272 procedure Set_Is_Static_Coextension
5273 (N
: Node_Id
; Val
: Boolean := True) is
5275 pragma Assert
(False
5276 or else NT
(N
).Nkind
= N_Allocator
);
5277 Set_Flag14
(N
, Val
);
5278 end Set_Is_Static_Coextension
;
5280 procedure Set_Is_Static_Expression
5281 (N
: Node_Id
; Val
: Boolean := True) is
5283 pragma Assert
(False
5284 or else NT
(N
).Nkind
in N_Subexpr
);
5286 end Set_Is_Static_Expression
;
5288 procedure Set_Is_Subprogram_Descriptor
5289 (N
: Node_Id
; Val
: Boolean := True) is
5291 pragma Assert
(False
5292 or else NT
(N
).Nkind
= N_Object_Declaration
);
5293 Set_Flag16
(N
, Val
);
5294 end Set_Is_Subprogram_Descriptor
;
5296 procedure Set_Is_Task_Allocation_Block
5297 (N
: Node_Id
; Val
: Boolean := True) is
5299 pragma Assert
(False
5300 or else NT
(N
).Nkind
= N_Block_Statement
);
5302 end Set_Is_Task_Allocation_Block
;
5304 procedure Set_Is_Task_Body_Procedure
5305 (N
: Node_Id
; Val
: Boolean := True) is
5307 pragma Assert
(False
5308 or else NT
(N
).Nkind
= N_Subprogram_Body
5309 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
5311 end Set_Is_Task_Body_Procedure
;
5313 procedure Set_Is_Task_Master
5314 (N
: Node_Id
; Val
: Boolean := True) is
5316 pragma Assert
(False
5317 or else NT
(N
).Nkind
= N_Block_Statement
5318 or else NT
(N
).Nkind
= N_Subprogram_Body
5319 or else NT
(N
).Nkind
= N_Task_Body
);
5321 end Set_Is_Task_Master
;
5323 procedure Set_Iteration_Scheme
5324 (N
: Node_Id
; Val
: Node_Id
) is
5326 pragma Assert
(False
5327 or else NT
(N
).Nkind
= N_Loop_Statement
);
5328 Set_Node2_With_Parent
(N
, Val
);
5329 end Set_Iteration_Scheme
;
5331 procedure Set_Iterator_Specification
5332 (N
: Node_Id
; Val
: Node_Id
) is
5334 pragma Assert
(False
5335 or else NT
(N
).Nkind
= N_Iteration_Scheme
5336 or else NT
(N
).Nkind
= N_Quantified_Expression
);
5337 Set_Node2_With_Parent
(N
, Val
);
5338 end Set_Iterator_Specification
;
5341 (N
: Node_Id
; Val
: Entity_Id
) is
5343 pragma Assert
(False
5344 or else NT
(N
).Nkind
= N_Itype_Reference
);
5345 Set_Node1
(N
, Val
); -- no parent, semantic field
5348 procedure Set_Kill_Range_Check
5349 (N
: Node_Id
; Val
: Boolean := True) is
5351 pragma Assert
(False
5352 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
5353 Set_Flag11
(N
, Val
);
5354 end Set_Kill_Range_Check
;
5356 procedure Set_Label_Construct
5357 (N
: Node_Id
; Val
: Node_Id
) is
5359 pragma Assert
(False
5360 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
);
5361 Set_Node2
(N
, Val
); -- semantic field, no parent set
5362 end Set_Label_Construct
;
5364 procedure Set_Last_Bit
5365 (N
: Node_Id
; Val
: Node_Id
) is
5367 pragma Assert
(False
5368 or else NT
(N
).Nkind
= N_Component_Clause
);
5369 Set_Node4_With_Parent
(N
, Val
);
5372 procedure Set_Last_Name
5373 (N
: Node_Id
; Val
: Boolean := True) is
5375 pragma Assert
(False
5376 or else NT
(N
).Nkind
= N_With_Clause
);
5380 procedure Set_Left_Opnd
5381 (N
: Node_Id
; Val
: Node_Id
) is
5383 pragma Assert
(False
5384 or else NT
(N
).Nkind
= N_And_Then
5385 or else NT
(N
).Nkind
= N_In
5386 or else NT
(N
).Nkind
= N_Not_In
5387 or else NT
(N
).Nkind
= N_Or_Else
5388 or else NT
(N
).Nkind
in N_Binary_Op
);
5389 Set_Node2_With_Parent
(N
, Val
);
5392 procedure Set_Library_Unit
5393 (N
: Node_Id
; Val
: Node_Id
) is
5395 pragma Assert
(False
5396 or else NT
(N
).Nkind
= N_Compilation_Unit
5397 or else NT
(N
).Nkind
= N_Package_Body_Stub
5398 or else NT
(N
).Nkind
= N_Protected_Body_Stub
5399 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
5400 or else NT
(N
).Nkind
= N_Task_Body_Stub
5401 or else NT
(N
).Nkind
= N_With_Clause
);
5402 Set_Node4
(N
, Val
); -- semantic field, no parent set
5403 end Set_Library_Unit
;
5405 procedure Set_Limited_View_Installed
5406 (N
: Node_Id
; Val
: Boolean := True) is
5408 pragma Assert
(False
5409 or else NT
(N
).Nkind
= N_Package_Specification
5410 or else NT
(N
).Nkind
= N_With_Clause
);
5411 Set_Flag18
(N
, Val
);
5412 end Set_Limited_View_Installed
;
5414 procedure Set_Limited_Present
5415 (N
: Node_Id
; Val
: Boolean := True) is
5417 pragma Assert
(False
5418 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5419 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
5420 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
5421 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
5422 or else NT
(N
).Nkind
= N_Private_Type_Declaration
5423 or else NT
(N
).Nkind
= N_Record_Definition
5424 or else NT
(N
).Nkind
= N_With_Clause
);
5425 Set_Flag17
(N
, Val
);
5426 end Set_Limited_Present
;
5428 procedure Set_Literals
5429 (N
: Node_Id
; Val
: List_Id
) is
5431 pragma Assert
(False
5432 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
);
5433 Set_List1_With_Parent
(N
, Val
);
5436 procedure Set_Local_Raise_Not_OK
5437 (N
: Node_Id
; Val
: Boolean := True) is
5439 pragma Assert
(False
5440 or else NT
(N
).Nkind
= N_Exception_Handler
);
5442 end Set_Local_Raise_Not_OK
;
5444 procedure Set_Local_Raise_Statements
5445 (N
: Node_Id
; Val
: Elist_Id
) is
5447 pragma Assert
(False
5448 or else NT
(N
).Nkind
= N_Exception_Handler
);
5449 Set_Elist1
(N
, Val
);
5450 end Set_Local_Raise_Statements
;
5452 procedure Set_Loop_Actions
5453 (N
: Node_Id
; Val
: List_Id
) is
5455 pragma Assert
(False
5456 or else NT
(N
).Nkind
= N_Component_Association
);
5457 Set_List2
(N
, Val
); -- semantic field, no parent set
5458 end Set_Loop_Actions
;
5460 procedure Set_Loop_Parameter_Specification
5461 (N
: Node_Id
; Val
: Node_Id
) is
5463 pragma Assert
(False
5464 or else NT
(N
).Nkind
= N_Iteration_Scheme
5465 or else NT
(N
).Nkind
= N_Quantified_Expression
);
5466 Set_Node4_With_Parent
(N
, Val
);
5467 end Set_Loop_Parameter_Specification
;
5469 procedure Set_Low_Bound
5470 (N
: Node_Id
; Val
: Node_Id
) is
5472 pragma Assert
(False
5473 or else NT
(N
).Nkind
= N_Range
5474 or else NT
(N
).Nkind
= N_Real_Range_Specification
5475 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
5476 Set_Node1_With_Parent
(N
, Val
);
5479 procedure Set_Mod_Clause
5480 (N
: Node_Id
; Val
: Node_Id
) is
5482 pragma Assert
(False
5483 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
5484 Set_Node2_With_Parent
(N
, Val
);
5487 procedure Set_More_Ids
5488 (N
: Node_Id
; Val
: Boolean := True) is
5490 pragma Assert
(False
5491 or else NT
(N
).Nkind
= N_Component_Declaration
5492 or else NT
(N
).Nkind
= N_Discriminant_Specification
5493 or else NT
(N
).Nkind
= N_Exception_Declaration
5494 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5495 or else NT
(N
).Nkind
= N_Number_Declaration
5496 or else NT
(N
).Nkind
= N_Object_Declaration
5497 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5501 procedure Set_Must_Be_Byte_Aligned
5502 (N
: Node_Id
; Val
: Boolean := True) is
5504 pragma Assert
(False
5505 or else NT
(N
).Nkind
= N_Attribute_Reference
);
5506 Set_Flag14
(N
, Val
);
5507 end Set_Must_Be_Byte_Aligned
;
5509 procedure Set_Must_Not_Freeze
5510 (N
: Node_Id
; Val
: Boolean := True) is
5512 pragma Assert
(False
5513 or else NT
(N
).Nkind
= N_Subtype_Indication
5514 or else NT
(N
).Nkind
in N_Subexpr
);
5516 end Set_Must_Not_Freeze
;
5518 procedure Set_Must_Not_Override
5519 (N
: Node_Id
; Val
: Boolean := True) is
5521 pragma Assert
(False
5522 or else NT
(N
).Nkind
= N_Entry_Declaration
5523 or else NT
(N
).Nkind
= N_Function_Instantiation
5524 or else NT
(N
).Nkind
= N_Function_Specification
5525 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5526 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5527 Set_Flag15
(N
, Val
);
5528 end Set_Must_Not_Override
;
5530 procedure Set_Must_Override
5531 (N
: Node_Id
; Val
: Boolean := True) is
5533 pragma Assert
(False
5534 or else NT
(N
).Nkind
= N_Entry_Declaration
5535 or else NT
(N
).Nkind
= N_Function_Instantiation
5536 or else NT
(N
).Nkind
= N_Function_Specification
5537 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5538 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5539 Set_Flag14
(N
, Val
);
5540 end Set_Must_Override
;
5543 (N
: Node_Id
; Val
: Node_Id
) is
5545 pragma Assert
(False
5546 or else NT
(N
).Nkind
= N_Assignment_Statement
5547 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5548 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
5549 or else NT
(N
).Nkind
= N_Designator
5550 or else NT
(N
).Nkind
= N_Entry_Call_Statement
5551 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
5552 or else NT
(N
).Nkind
= N_Exit_Statement
5553 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
5554 or else NT
(N
).Nkind
= N_Function_Call
5555 or else NT
(N
).Nkind
= N_Function_Instantiation
5556 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
5557 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
5558 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
5559 or else NT
(N
).Nkind
= N_Goto_Statement
5560 or else NT
(N
).Nkind
= N_Iterator_Specification
5561 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
5562 or else NT
(N
).Nkind
= N_Package_Instantiation
5563 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
5564 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
5565 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5566 or else NT
(N
).Nkind
= N_Raise_Expression
5567 or else NT
(N
).Nkind
= N_Raise_Statement
5568 or else NT
(N
).Nkind
= N_Requeue_Statement
5569 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
5570 or else NT
(N
).Nkind
= N_Subunit
5571 or else NT
(N
).Nkind
= N_Variant_Part
5572 or else NT
(N
).Nkind
= N_With_Clause
);
5573 Set_Node2_With_Parent
(N
, Val
);
5577 (N
: Node_Id
; Val
: List_Id
) is
5579 pragma Assert
(False
5580 or else NT
(N
).Nkind
= N_Abort_Statement
5581 or else NT
(N
).Nkind
= N_Use_Package_Clause
);
5582 Set_List2_With_Parent
(N
, Val
);
5585 procedure Set_Next_Entity
5586 (N
: Node_Id
; Val
: Node_Id
) is
5588 pragma Assert
(False
5589 or else NT
(N
).Nkind
= N_Defining_Character_Literal
5590 or else NT
(N
).Nkind
= N_Defining_Identifier
5591 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
5592 Set_Node2
(N
, Val
); -- semantic field, no parent set
5593 end Set_Next_Entity
;
5595 procedure Set_Next_Exit_Statement
5596 (N
: Node_Id
; Val
: Node_Id
) is
5598 pragma Assert
(False
5599 or else NT
(N
).Nkind
= N_Exit_Statement
);
5600 Set_Node3
(N
, Val
); -- semantic field, no parent set
5601 end Set_Next_Exit_Statement
;
5603 procedure Set_Next_Implicit_With
5604 (N
: Node_Id
; Val
: Node_Id
) is
5606 pragma Assert
(False
5607 or else NT
(N
).Nkind
= N_With_Clause
);
5608 Set_Node3
(N
, Val
); -- semantic field, no parent set
5609 end Set_Next_Implicit_With
;
5611 procedure Set_Next_Named_Actual
5612 (N
: Node_Id
; Val
: Node_Id
) is
5614 pragma Assert
(False
5615 or else NT
(N
).Nkind
= N_Parameter_Association
);
5616 Set_Node4
(N
, Val
); -- semantic field, no parent set
5617 end Set_Next_Named_Actual
;
5619 procedure Set_Next_Pragma
5620 (N
: Node_Id
; Val
: Node_Id
) is
5622 pragma Assert
(False
5623 or else NT
(N
).Nkind
= N_Pragma
);
5624 Set_Node1
(N
, Val
); -- semantic field, no parent set
5625 end Set_Next_Pragma
;
5627 procedure Set_Next_Rep_Item
5628 (N
: Node_Id
; Val
: Node_Id
) is
5630 pragma Assert
(False
5631 or else NT
(N
).Nkind
= N_Aspect_Specification
5632 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5633 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
5634 or else NT
(N
).Nkind
= N_Pragma
5635 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
5636 Set_Node5
(N
, Val
); -- semantic field, no parent set
5637 end Set_Next_Rep_Item
;
5639 procedure Set_Next_Use_Clause
5640 (N
: Node_Id
; Val
: Node_Id
) is
5642 pragma Assert
(False
5643 or else NT
(N
).Nkind
= N_Use_Package_Clause
5644 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
5645 Set_Node3
(N
, Val
); -- semantic field, no parent set
5646 end Set_Next_Use_Clause
;
5648 procedure Set_No_Ctrl_Actions
5649 (N
: Node_Id
; Val
: Boolean := True) is
5651 pragma Assert
(False
5652 or else NT
(N
).Nkind
= N_Assignment_Statement
);
5654 end Set_No_Ctrl_Actions
;
5656 procedure Set_No_Elaboration_Check
5657 (N
: Node_Id
; Val
: Boolean := True) is
5659 pragma Assert
(False
5660 or else NT
(N
).Nkind
= N_Function_Call
5661 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
5662 Set_Flag14
(N
, Val
);
5663 end Set_No_Elaboration_Check
;
5665 procedure Set_No_Entities_Ref_In_Spec
5666 (N
: Node_Id
; Val
: Boolean := True) is
5668 pragma Assert
(False
5669 or else NT
(N
).Nkind
= N_With_Clause
);
5671 end Set_No_Entities_Ref_In_Spec
;
5673 procedure Set_No_Initialization
5674 (N
: Node_Id
; Val
: Boolean := True) is
5676 pragma Assert
(False
5677 or else NT
(N
).Nkind
= N_Allocator
5678 or else NT
(N
).Nkind
= N_Object_Declaration
);
5679 Set_Flag13
(N
, Val
);
5680 end Set_No_Initialization
;
5682 procedure Set_No_Minimize_Eliminate
5683 (N
: Node_Id
; Val
: Boolean := True) is
5685 pragma Assert
(False
5686 or else NT
(N
).Nkind
= N_In
5687 or else NT
(N
).Nkind
= N_Not_In
);
5688 Set_Flag17
(N
, Val
);
5689 end Set_No_Minimize_Eliminate
;
5691 procedure Set_No_Side_Effect_Removal
5692 (N
: Node_Id
; Val
: Boolean := True) is
5694 pragma Assert
(False
5695 or else NT
(N
).Nkind
= N_Function_Call
);
5697 end Set_No_Side_Effect_Removal
;
5699 procedure Set_No_Truncation
5700 (N
: Node_Id
; Val
: Boolean := True) is
5702 pragma Assert
(False
5703 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
5704 Set_Flag17
(N
, Val
);
5705 end Set_No_Truncation
;
5707 procedure Set_Non_Aliased_Prefix
5708 (N
: Node_Id
; Val
: Boolean := True) is
5710 pragma Assert
(False
5711 or else NT
(N
).Nkind
= N_Attribute_Reference
);
5712 Set_Flag18
(N
, Val
);
5713 end Set_Non_Aliased_Prefix
;
5715 procedure Set_Null_Present
5716 (N
: Node_Id
; Val
: Boolean := True) is
5718 pragma Assert
(False
5719 or else NT
(N
).Nkind
= N_Component_List
5720 or else NT
(N
).Nkind
= N_Procedure_Specification
5721 or else NT
(N
).Nkind
= N_Record_Definition
);
5722 Set_Flag13
(N
, Val
);
5723 end Set_Null_Present
;
5725 procedure Set_Null_Excluding_Subtype
5726 (N
: Node_Id
; Val
: Boolean := True) is
5728 pragma Assert
(False
5729 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
);
5730 Set_Flag16
(N
, Val
);
5731 end Set_Null_Excluding_Subtype
;
5733 procedure Set_Null_Exclusion_Present
5734 (N
: Node_Id
; Val
: Boolean := True) is
5736 pragma Assert
(False
5737 or else NT
(N
).Nkind
= N_Access_Definition
5738 or else NT
(N
).Nkind
= N_Access_Function_Definition
5739 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
5740 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
5741 or else NT
(N
).Nkind
= N_Allocator
5742 or else NT
(N
).Nkind
= N_Component_Definition
5743 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5744 or else NT
(N
).Nkind
= N_Discriminant_Specification
5745 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5746 or else NT
(N
).Nkind
= N_Function_Specification
5747 or else NT
(N
).Nkind
= N_Object_Declaration
5748 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
5749 or else NT
(N
).Nkind
= N_Parameter_Specification
5750 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
5751 Set_Flag11
(N
, Val
);
5752 end Set_Null_Exclusion_Present
;
5754 procedure Set_Null_Exclusion_In_Return_Present
5755 (N
: Node_Id
; Val
: Boolean := True) is
5757 pragma Assert
(False
5758 or else NT
(N
).Nkind
= N_Access_Function_Definition
);
5759 Set_Flag14
(N
, Val
);
5760 end Set_Null_Exclusion_In_Return_Present
;
5762 procedure Set_Null_Record_Present
5763 (N
: Node_Id
; Val
: Boolean := True) is
5765 pragma Assert
(False
5766 or else NT
(N
).Nkind
= N_Aggregate
5767 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
5768 Set_Flag17
(N
, Val
);
5769 end Set_Null_Record_Present
;
5771 procedure Set_Object_Definition
5772 (N
: Node_Id
; Val
: Node_Id
) is
5774 pragma Assert
(False
5775 or else NT
(N
).Nkind
= N_Object_Declaration
);
5776 Set_Node4_With_Parent
(N
, Val
);
5777 end Set_Object_Definition
;
5779 procedure Set_Of_Present
5780 (N
: Node_Id
; Val
: Boolean := True) is
5782 pragma Assert
(False
5783 or else NT
(N
).Nkind
= N_Iterator_Specification
);
5784 Set_Flag16
(N
, Val
);
5787 procedure Set_Original_Discriminant
5788 (N
: Node_Id
; Val
: Node_Id
) is
5790 pragma Assert
(False
5791 or else NT
(N
).Nkind
= N_Identifier
);
5792 Set_Node2
(N
, Val
); -- semantic field, no parent set
5793 end Set_Original_Discriminant
;
5795 procedure Set_Original_Entity
5796 (N
: Node_Id
; Val
: Entity_Id
) is
5798 pragma Assert
(False
5799 or else NT
(N
).Nkind
= N_Integer_Literal
5800 or else NT
(N
).Nkind
= N_Real_Literal
);
5801 Set_Node2
(N
, Val
); -- semantic field, no parent set
5802 end Set_Original_Entity
;
5804 procedure Set_Others_Discrete_Choices
5805 (N
: Node_Id
; Val
: List_Id
) is
5807 pragma Assert
(False
5808 or else NT
(N
).Nkind
= N_Others_Choice
);
5809 Set_List1_With_Parent
(N
, Val
);
5810 end Set_Others_Discrete_Choices
;
5812 procedure Set_Out_Present
5813 (N
: Node_Id
; Val
: Boolean := True) is
5815 pragma Assert
(False
5816 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5817 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5818 Set_Flag17
(N
, Val
);
5819 end Set_Out_Present
;
5821 procedure Set_Parameter_Associations
5822 (N
: Node_Id
; Val
: List_Id
) is
5824 pragma Assert
(False
5825 or else NT
(N
).Nkind
= N_Entry_Call_Statement
5826 or else NT
(N
).Nkind
= N_Function_Call
5827 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
5828 Set_List3_With_Parent
(N
, Val
);
5829 end Set_Parameter_Associations
;
5831 procedure Set_Parameter_Specifications
5832 (N
: Node_Id
; Val
: List_Id
) is
5834 pragma Assert
(False
5835 or else NT
(N
).Nkind
= N_Accept_Statement
5836 or else NT
(N
).Nkind
= N_Access_Function_Definition
5837 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
5838 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
5839 or else NT
(N
).Nkind
= N_Entry_Declaration
5840 or else NT
(N
).Nkind
= N_Function_Specification
5841 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5842 Set_List3_With_Parent
(N
, Val
);
5843 end Set_Parameter_Specifications
;
5845 procedure Set_Parameter_Type
5846 (N
: Node_Id
; Val
: Node_Id
) is
5848 pragma Assert
(False
5849 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5850 Set_Node2_With_Parent
(N
, Val
);
5851 end Set_Parameter_Type
;
5853 procedure Set_Parent_Spec
5854 (N
: Node_Id
; Val
: Node_Id
) is
5856 pragma Assert
(False
5857 or else NT
(N
).Nkind
= N_Function_Instantiation
5858 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
5859 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
5860 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
5861 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
5862 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
5863 or else NT
(N
).Nkind
= N_Package_Declaration
5864 or else NT
(N
).Nkind
= N_Package_Instantiation
5865 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
5866 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5867 or else NT
(N
).Nkind
= N_Subprogram_Declaration
5868 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
5869 Set_Node4
(N
, Val
); -- semantic field, no parent set
5870 end Set_Parent_Spec
;
5872 procedure Set_Position
5873 (N
: Node_Id
; Val
: Node_Id
) is
5875 pragma Assert
(False
5876 or else NT
(N
).Nkind
= N_Component_Clause
);
5877 Set_Node2_With_Parent
(N
, Val
);
5880 procedure Set_Pragma_Argument_Associations
5881 (N
: Node_Id
; Val
: List_Id
) is
5883 pragma Assert
(False
5884 or else NT
(N
).Nkind
= N_Pragma
);
5885 Set_List2_With_Parent
(N
, Val
);
5886 end Set_Pragma_Argument_Associations
;
5888 procedure Set_Pragma_Identifier
5889 (N
: Node_Id
; Val
: Node_Id
) is
5891 pragma Assert
(False
5892 or else NT
(N
).Nkind
= N_Pragma
);
5893 Set_Node4_With_Parent
(N
, Val
);
5894 end Set_Pragma_Identifier
;
5896 procedure Set_Pragmas_After
5897 (N
: Node_Id
; Val
: List_Id
) is
5899 pragma Assert
(False
5900 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
5901 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
5902 Set_List5_With_Parent
(N
, Val
);
5903 end Set_Pragmas_After
;
5905 procedure Set_Pragmas_Before
5906 (N
: Node_Id
; Val
: List_Id
) is
5908 pragma Assert
(False
5909 or else NT
(N
).Nkind
= N_Accept_Alternative
5910 or else NT
(N
).Nkind
= N_Delay_Alternative
5911 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
5912 or else NT
(N
).Nkind
= N_Mod_Clause
5913 or else NT
(N
).Nkind
= N_Terminate_Alternative
5914 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
5915 Set_List4_With_Parent
(N
, Val
);
5916 end Set_Pragmas_Before
;
5918 procedure Set_Pre_Post_Conditions
5919 (N
: Node_Id
; Val
: Node_Id
) is
5921 pragma Assert
(False
5922 or else NT
(N
).Nkind
= N_Contract
);
5923 Set_Node1
(N
, Val
); -- semantic field, no parent set
5924 end Set_Pre_Post_Conditions
;
5926 procedure Set_Prefix
5927 (N
: Node_Id
; Val
: Node_Id
) is
5929 pragma Assert
(False
5930 or else NT
(N
).Nkind
= N_Attribute_Reference
5931 or else NT
(N
).Nkind
= N_Expanded_Name
5932 or else NT
(N
).Nkind
= N_Explicit_Dereference
5933 or else NT
(N
).Nkind
= N_Indexed_Component
5934 or else NT
(N
).Nkind
= N_Reference
5935 or else NT
(N
).Nkind
= N_Selected_Component
5936 or else NT
(N
).Nkind
= N_Slice
);
5937 Set_Node3_With_Parent
(N
, Val
);
5940 procedure Set_Premature_Use
5941 (N
: Node_Id
; Val
: Node_Id
) is
5943 pragma Assert
(False
5944 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
);
5946 end Set_Premature_Use
;
5948 procedure Set_Present_Expr
5949 (N
: Node_Id
; Val
: Uint
) is
5951 pragma Assert
(False
5952 or else NT
(N
).Nkind
= N_Variant
);
5954 end Set_Present_Expr
;
5956 procedure Set_Prev_Ids
5957 (N
: Node_Id
; Val
: Boolean := True) is
5959 pragma Assert
(False
5960 or else NT
(N
).Nkind
= N_Component_Declaration
5961 or else NT
(N
).Nkind
= N_Discriminant_Specification
5962 or else NT
(N
).Nkind
= N_Exception_Declaration
5963 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5964 or else NT
(N
).Nkind
= N_Number_Declaration
5965 or else NT
(N
).Nkind
= N_Object_Declaration
5966 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5970 procedure Set_Print_In_Hex
5971 (N
: Node_Id
; Val
: Boolean := True) is
5973 pragma Assert
(False
5974 or else NT
(N
).Nkind
= N_Integer_Literal
);
5975 Set_Flag13
(N
, Val
);
5976 end Set_Print_In_Hex
;
5978 procedure Set_Private_Declarations
5979 (N
: Node_Id
; Val
: List_Id
) is
5981 pragma Assert
(False
5982 or else NT
(N
).Nkind
= N_Package_Specification
5983 or else NT
(N
).Nkind
= N_Protected_Definition
5984 or else NT
(N
).Nkind
= N_Task_Definition
);
5985 Set_List3_With_Parent
(N
, Val
);
5986 end Set_Private_Declarations
;
5988 procedure Set_Private_Present
5989 (N
: Node_Id
; Val
: Boolean := True) is
5991 pragma Assert
(False
5992 or else NT
(N
).Nkind
= N_Compilation_Unit
5993 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
5994 or else NT
(N
).Nkind
= N_With_Clause
);
5995 Set_Flag15
(N
, Val
);
5996 end Set_Private_Present
;
5998 procedure Set_Procedure_To_Call
5999 (N
: Node_Id
; Val
: Node_Id
) is
6001 pragma Assert
(False
6002 or else NT
(N
).Nkind
= N_Allocator
6003 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6004 or else NT
(N
).Nkind
= N_Free_Statement
6005 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6006 Set_Node2
(N
, Val
); -- semantic field, no parent set
6007 end Set_Procedure_To_Call
;
6009 procedure Set_Proper_Body
6010 (N
: Node_Id
; Val
: Node_Id
) is
6012 pragma Assert
(False
6013 or else NT
(N
).Nkind
= N_Subunit
);
6014 Set_Node1_With_Parent
(N
, Val
);
6015 end Set_Proper_Body
;
6017 procedure Set_Protected_Definition
6018 (N
: Node_Id
; Val
: Node_Id
) is
6020 pragma Assert
(False
6021 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
6022 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
);
6023 Set_Node3_With_Parent
(N
, Val
);
6024 end Set_Protected_Definition
;
6026 procedure Set_Protected_Present
6027 (N
: Node_Id
; Val
: Boolean := True) is
6029 pragma Assert
(False
6030 or else NT
(N
).Nkind
= N_Access_Function_Definition
6031 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
6032 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6033 or else NT
(N
).Nkind
= N_Record_Definition
);
6035 end Set_Protected_Present
;
6037 procedure Set_Raises_Constraint_Error
6038 (N
: Node_Id
; Val
: Boolean := True) is
6040 pragma Assert
(False
6041 or else NT
(N
).Nkind
in N_Subexpr
);
6043 end Set_Raises_Constraint_Error
;
6045 procedure Set_Range_Constraint
6046 (N
: Node_Id
; Val
: Node_Id
) is
6048 pragma Assert
(False
6049 or else NT
(N
).Nkind
= N_Delta_Constraint
6050 or else NT
(N
).Nkind
= N_Digits_Constraint
);
6051 Set_Node4_With_Parent
(N
, Val
);
6052 end Set_Range_Constraint
;
6054 procedure Set_Range_Expression
6055 (N
: Node_Id
; Val
: Node_Id
) is
6057 pragma Assert
(False
6058 or else NT
(N
).Nkind
= N_Range_Constraint
);
6059 Set_Node4_With_Parent
(N
, Val
);
6060 end Set_Range_Expression
;
6062 procedure Set_Real_Range_Specification
6063 (N
: Node_Id
; Val
: Node_Id
) is
6065 pragma Assert
(False
6066 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
6067 or else NT
(N
).Nkind
= N_Floating_Point_Definition
6068 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
6069 Set_Node4_With_Parent
(N
, Val
);
6070 end Set_Real_Range_Specification
;
6072 procedure Set_Realval
6073 (N
: Node_Id
; Val
: Ureal
) is
6075 pragma Assert
(False
6076 or else NT
(N
).Nkind
= N_Real_Literal
);
6077 Set_Ureal3
(N
, Val
);
6080 procedure Set_Reason
6081 (N
: Node_Id
; Val
: Uint
) is
6083 pragma Assert
(False
6084 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
6085 or else NT
(N
).Nkind
= N_Raise_Program_Error
6086 or else NT
(N
).Nkind
= N_Raise_Storage_Error
);
6090 procedure Set_Record_Extension_Part
6091 (N
: Node_Id
; Val
: Node_Id
) is
6093 pragma Assert
(False
6094 or else NT
(N
).Nkind
= N_Derived_Type_Definition
);
6095 Set_Node3_With_Parent
(N
, Val
);
6096 end Set_Record_Extension_Part
;
6098 procedure Set_Redundant_Use
6099 (N
: Node_Id
; Val
: Boolean := True) is
6101 pragma Assert
(False
6102 or else NT
(N
).Nkind
= N_Attribute_Reference
6103 or else NT
(N
).Nkind
= N_Expanded_Name
6104 or else NT
(N
).Nkind
= N_Identifier
);
6105 Set_Flag13
(N
, Val
);
6106 end Set_Redundant_Use
;
6108 procedure Set_Renaming_Exception
6109 (N
: Node_Id
; Val
: Node_Id
) is
6111 pragma Assert
(False
6112 or else NT
(N
).Nkind
= N_Exception_Declaration
);
6114 end Set_Renaming_Exception
;
6116 procedure Set_Result_Definition
6117 (N
: Node_Id
; Val
: Node_Id
) is
6119 pragma Assert
(False
6120 or else NT
(N
).Nkind
= N_Access_Function_Definition
6121 or else NT
(N
).Nkind
= N_Function_Specification
);
6122 Set_Node4_With_Parent
(N
, Val
);
6123 end Set_Result_Definition
;
6125 procedure Set_Return_Object_Declarations
6126 (N
: Node_Id
; Val
: List_Id
) is
6128 pragma Assert
(False
6129 or else NT
(N
).Nkind
= N_Extended_Return_Statement
);
6130 Set_List3_With_Parent
(N
, Val
);
6131 end Set_Return_Object_Declarations
;
6133 procedure Set_Return_Statement_Entity
6134 (N
: Node_Id
; Val
: Node_Id
) is
6136 pragma Assert
(False
6137 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6138 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6139 Set_Node5
(N
, Val
); -- semantic field, no parent set
6140 end Set_Return_Statement_Entity
;
6142 procedure Set_Reverse_Present
6143 (N
: Node_Id
; Val
: Boolean := True) is
6145 pragma Assert
(False
6146 or else NT
(N
).Nkind
= N_Iterator_Specification
6147 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
6148 Set_Flag15
(N
, Val
);
6149 end Set_Reverse_Present
;
6151 procedure Set_Right_Opnd
6152 (N
: Node_Id
; Val
: Node_Id
) is
6154 pragma Assert
(False
6155 or else NT
(N
).Nkind
in N_Op
6156 or else NT
(N
).Nkind
= N_And_Then
6157 or else NT
(N
).Nkind
= N_In
6158 or else NT
(N
).Nkind
= N_Not_In
6159 or else NT
(N
).Nkind
= N_Or_Else
);
6160 Set_Node3_With_Parent
(N
, Val
);
6163 procedure Set_Rounded_Result
6164 (N
: Node_Id
; Val
: Boolean := True) is
6166 pragma Assert
(False
6167 or else NT
(N
).Nkind
= N_Op_Divide
6168 or else NT
(N
).Nkind
= N_Op_Multiply
6169 or else NT
(N
).Nkind
= N_Type_Conversion
);
6170 Set_Flag18
(N
, Val
);
6171 end Set_Rounded_Result
;
6173 procedure Set_SCIL_Controlling_Tag
6174 (N
: Node_Id
; Val
: Node_Id
) is
6176 pragma Assert
(False
6177 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
6178 Set_Node5
(N
, Val
); -- semantic field, no parent set
6179 end Set_SCIL_Controlling_Tag
;
6181 procedure Set_SCIL_Entity
6182 (N
: Node_Id
; Val
: Node_Id
) is
6184 pragma Assert
(False
6185 or else NT
(N
).Nkind
= N_SCIL_Dispatch_Table_Tag_Init
6186 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
6187 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
6188 Set_Node4
(N
, Val
); -- semantic field, no parent set
6189 end Set_SCIL_Entity
;
6191 procedure Set_SCIL_Tag_Value
6192 (N
: Node_Id
; Val
: Node_Id
) is
6194 pragma Assert
(False
6195 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
6196 Set_Node5
(N
, Val
); -- semantic field, no parent set
6197 end Set_SCIL_Tag_Value
;
6199 procedure Set_SCIL_Target_Prim
6200 (N
: Node_Id
; Val
: Node_Id
) is
6202 pragma Assert
(False
6203 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
6204 Set_Node2
(N
, Val
); -- semantic field, no parent set
6205 end Set_SCIL_Target_Prim
;
6208 (N
: Node_Id
; Val
: Node_Id
) is
6210 pragma Assert
(False
6211 or else NT
(N
).Nkind
= N_Defining_Character_Literal
6212 or else NT
(N
).Nkind
= N_Defining_Identifier
6213 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
6214 Set_Node3
(N
, Val
); -- semantic field, no parent set
6217 procedure Set_Select_Alternatives
6218 (N
: Node_Id
; Val
: List_Id
) is
6220 pragma Assert
(False
6221 or else NT
(N
).Nkind
= N_Selective_Accept
);
6222 Set_List1_With_Parent
(N
, Val
);
6223 end Set_Select_Alternatives
;
6225 procedure Set_Selector_Name
6226 (N
: Node_Id
; Val
: Node_Id
) is
6228 pragma Assert
(False
6229 or else NT
(N
).Nkind
= N_Expanded_Name
6230 or else NT
(N
).Nkind
= N_Generic_Association
6231 or else NT
(N
).Nkind
= N_Parameter_Association
6232 or else NT
(N
).Nkind
= N_Selected_Component
);
6233 Set_Node2_With_Parent
(N
, Val
);
6234 end Set_Selector_Name
;
6236 procedure Set_Selector_Names
6237 (N
: Node_Id
; Val
: List_Id
) is
6239 pragma Assert
(False
6240 or else NT
(N
).Nkind
= N_Discriminant_Association
);
6241 Set_List1_With_Parent
(N
, Val
);
6242 end Set_Selector_Names
;
6244 procedure Set_Shift_Count_OK
6245 (N
: Node_Id
; Val
: Boolean := True) is
6247 pragma Assert
(False
6248 or else NT
(N
).Nkind
= N_Op_Rotate_Left
6249 or else NT
(N
).Nkind
= N_Op_Rotate_Right
6250 or else NT
(N
).Nkind
= N_Op_Shift_Left
6251 or else NT
(N
).Nkind
= N_Op_Shift_Right
6252 or else NT
(N
).Nkind
= N_Op_Shift_Right_Arithmetic
);
6254 end Set_Shift_Count_OK
;
6256 procedure Set_Source_Type
6257 (N
: Node_Id
; Val
: Entity_Id
) is
6259 pragma Assert
(False
6260 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
6261 Set_Node1
(N
, Val
); -- semantic field, no parent set
6262 end Set_Source_Type
;
6264 procedure Set_Specification
6265 (N
: Node_Id
; Val
: Node_Id
) is
6267 pragma Assert
(False
6268 or else NT
(N
).Nkind
= N_Abstract_Subprogram_Declaration
6269 or else NT
(N
).Nkind
= N_Expression_Function
6270 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
6271 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
6272 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
6273 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
6274 or else NT
(N
).Nkind
= N_Package_Declaration
6275 or else NT
(N
).Nkind
= N_Subprogram_Body
6276 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
6277 or else NT
(N
).Nkind
= N_Subprogram_Declaration
6278 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
6279 Set_Node1_With_Parent
(N
, Val
);
6280 end Set_Specification
;
6282 procedure Set_Split_PPC
6283 (N
: Node_Id
; Val
: Boolean) is
6285 pragma Assert
(False
6286 or else NT
(N
).Nkind
= N_Aspect_Specification
6287 or else NT
(N
).Nkind
= N_Pragma
);
6288 Set_Flag17
(N
, Val
);
6291 procedure Set_Statements
6292 (N
: Node_Id
; Val
: List_Id
) is
6294 pragma Assert
(False
6295 or else NT
(N
).Nkind
= N_Abortable_Part
6296 or else NT
(N
).Nkind
= N_Accept_Alternative
6297 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
6298 or else NT
(N
).Nkind
= N_Delay_Alternative
6299 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
6300 or else NT
(N
).Nkind
= N_Exception_Handler
6301 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
6302 or else NT
(N
).Nkind
= N_Loop_Statement
6303 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
6304 Set_List3_With_Parent
(N
, Val
);
6307 procedure Set_Storage_Pool
6308 (N
: Node_Id
; Val
: Node_Id
) is
6310 pragma Assert
(False
6311 or else NT
(N
).Nkind
= N_Allocator
6312 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6313 or else NT
(N
).Nkind
= N_Free_Statement
6314 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6315 Set_Node1
(N
, Val
); -- semantic field, no parent set
6316 end Set_Storage_Pool
;
6318 procedure Set_Subpool_Handle_Name
6319 (N
: Node_Id
; Val
: Node_Id
) is
6321 pragma Assert
(False
6322 or else NT
(N
).Nkind
= N_Allocator
);
6323 Set_Node4_With_Parent
(N
, Val
);
6324 end Set_Subpool_Handle_Name
;
6326 procedure Set_Strval
6327 (N
: Node_Id
; Val
: String_Id
) is
6329 pragma Assert
(False
6330 or else NT
(N
).Nkind
= N_Operator_Symbol
6331 or else NT
(N
).Nkind
= N_String_Literal
);
6335 procedure Set_Subtype_Indication
6336 (N
: Node_Id
; Val
: Node_Id
) is
6338 pragma Assert
(False
6339 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
6340 or else NT
(N
).Nkind
= N_Component_Definition
6341 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6342 or else NT
(N
).Nkind
= N_Iterator_Specification
6343 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6344 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
6345 Set_Node5_With_Parent
(N
, Val
);
6346 end Set_Subtype_Indication
;
6348 procedure Set_Subtype_Mark
6349 (N
: Node_Id
; Val
: Node_Id
) is
6351 pragma Assert
(False
6352 or else NT
(N
).Nkind
= N_Access_Definition
6353 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
6354 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
6355 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
6356 or else NT
(N
).Nkind
= N_Qualified_Expression
6357 or else NT
(N
).Nkind
= N_Subtype_Indication
6358 or else NT
(N
).Nkind
= N_Type_Conversion
6359 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
6360 Set_Node4_With_Parent
(N
, Val
);
6361 end Set_Subtype_Mark
;
6363 procedure Set_Subtype_Marks
6364 (N
: Node_Id
; Val
: List_Id
) is
6366 pragma Assert
(False
6367 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
6368 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
6369 Set_List2_With_Parent
(N
, Val
);
6370 end Set_Subtype_Marks
;
6372 procedure Set_Suppress_Assignment_Checks
6373 (N
: Node_Id
; Val
: Boolean := True) is
6375 pragma Assert
(False
6376 or else NT
(N
).Nkind
= N_Assignment_Statement
6377 or else NT
(N
).Nkind
= N_Object_Declaration
);
6378 Set_Flag18
(N
, Val
);
6379 end Set_Suppress_Assignment_Checks
;
6381 procedure Set_Suppress_Loop_Warnings
6382 (N
: Node_Id
; Val
: Boolean := True) is
6384 pragma Assert
(False
6385 or else NT
(N
).Nkind
= N_Loop_Statement
);
6386 Set_Flag17
(N
, Val
);
6387 end Set_Suppress_Loop_Warnings
;
6389 procedure Set_Synchronized_Present
6390 (N
: Node_Id
; Val
: Boolean := True) is
6392 pragma Assert
(False
6393 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6394 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
6395 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6396 or else NT
(N
).Nkind
= N_Record_Definition
);
6398 end Set_Synchronized_Present
;
6400 procedure Set_Tagged_Present
6401 (N
: Node_Id
; Val
: Boolean := True) is
6403 pragma Assert
(False
6404 or else NT
(N
).Nkind
= N_Formal_Incomplete_Type_Definition
6405 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
6406 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
6407 or else NT
(N
).Nkind
= N_Private_Type_Declaration
6408 or else NT
(N
).Nkind
= N_Record_Definition
);
6409 Set_Flag15
(N
, Val
);
6410 end Set_Tagged_Present
;
6412 procedure Set_Target_Type
6413 (N
: Node_Id
; Val
: Entity_Id
) is
6415 pragma Assert
(False
6416 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
6417 Set_Node2
(N
, Val
); -- semantic field, no parent set
6418 end Set_Target_Type
;
6420 procedure Set_Task_Definition
6421 (N
: Node_Id
; Val
: Node_Id
) is
6423 pragma Assert
(False
6424 or else NT
(N
).Nkind
= N_Single_Task_Declaration
6425 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
6426 Set_Node3_With_Parent
(N
, Val
);
6427 end Set_Task_Definition
;
6429 procedure Set_Task_Present
6430 (N
: Node_Id
; Val
: Boolean := True) is
6432 pragma Assert
(False
6433 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6434 or else NT
(N
).Nkind
= N_Record_Definition
);
6436 end Set_Task_Present
;
6438 procedure Set_Then_Actions
6439 (N
: Node_Id
; Val
: List_Id
) is
6441 pragma Assert
(False
6442 or else NT
(N
).Nkind
= N_If_Expression
);
6443 Set_List2_With_Parent
(N
, Val
); -- semantic field, but needs parents
6444 end Set_Then_Actions
;
6446 procedure Set_Then_Statements
6447 (N
: Node_Id
; Val
: List_Id
) is
6449 pragma Assert
(False
6450 or else NT
(N
).Nkind
= N_Elsif_Part
6451 or else NT
(N
).Nkind
= N_If_Statement
);
6452 Set_List2_With_Parent
(N
, Val
);
6453 end Set_Then_Statements
;
6455 procedure Set_Treat_Fixed_As_Integer
6456 (N
: Node_Id
; Val
: Boolean := True) is
6458 pragma Assert
(False
6459 or else NT
(N
).Nkind
= N_Op_Divide
6460 or else NT
(N
).Nkind
= N_Op_Mod
6461 or else NT
(N
).Nkind
= N_Op_Multiply
6462 or else NT
(N
).Nkind
= N_Op_Rem
);
6463 Set_Flag14
(N
, Val
);
6464 end Set_Treat_Fixed_As_Integer
;
6466 procedure Set_Triggering_Alternative
6467 (N
: Node_Id
; Val
: Node_Id
) is
6469 pragma Assert
(False
6470 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
6471 Set_Node1_With_Parent
(N
, Val
);
6472 end Set_Triggering_Alternative
;
6474 procedure Set_Triggering_Statement
6475 (N
: Node_Id
; Val
: Node_Id
) is
6477 pragma Assert
(False
6478 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
6479 Set_Node1_With_Parent
(N
, Val
);
6480 end Set_Triggering_Statement
;
6482 procedure Set_TSS_Elist
6483 (N
: Node_Id
; Val
: Elist_Id
) is
6485 pragma Assert
(False
6486 or else NT
(N
).Nkind
= N_Freeze_Entity
);
6487 Set_Elist3
(N
, Val
); -- semantic field, no parent set
6490 procedure Set_Uneval_Old_Accept
6491 (N
: Node_Id
; Val
: Boolean := True) is
6493 pragma Assert
(False
6494 or else NT
(N
).Nkind
= N_Pragma
);
6496 end Set_Uneval_Old_Accept
;
6498 procedure Set_Uneval_Old_Warn
6499 (N
: Node_Id
; Val
: Boolean := True) is
6501 pragma Assert
(False
6502 or else NT
(N
).Nkind
= N_Pragma
);
6503 Set_Flag18
(N
, Val
);
6504 end Set_Uneval_Old_Warn
;
6506 procedure Set_Type_Definition
6507 (N
: Node_Id
; Val
: Node_Id
) is
6509 pragma Assert
(False
6510 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
6511 Set_Node3_With_Parent
(N
, Val
);
6512 end Set_Type_Definition
;
6515 (N
: Node_Id
; Val
: Node_Id
) is
6517 pragma Assert
(False
6518 or else NT
(N
).Nkind
= N_Compilation_Unit
);
6519 Set_Node2_With_Parent
(N
, Val
);
6522 procedure Set_Unknown_Discriminants_Present
6523 (N
: Node_Id
; Val
: Boolean := True) is
6525 pragma Assert
(False
6526 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
6527 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
6528 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6529 or else NT
(N
).Nkind
= N_Private_Type_Declaration
);
6530 Set_Flag13
(N
, Val
);
6531 end Set_Unknown_Discriminants_Present
;
6533 procedure Set_Unreferenced_In_Spec
6534 (N
: Node_Id
; Val
: Boolean := True) is
6536 pragma Assert
(False
6537 or else NT
(N
).Nkind
= N_With_Clause
);
6539 end Set_Unreferenced_In_Spec
;
6541 procedure Set_Variant_Part
6542 (N
: Node_Id
; Val
: Node_Id
) is
6544 pragma Assert
(False
6545 or else NT
(N
).Nkind
= N_Component_List
);
6546 Set_Node4_With_Parent
(N
, Val
);
6547 end Set_Variant_Part
;
6549 procedure Set_Variants
6550 (N
: Node_Id
; Val
: List_Id
) is
6552 pragma Assert
(False
6553 or else NT
(N
).Nkind
= N_Variant_Part
);
6554 Set_List1_With_Parent
(N
, Val
);
6557 procedure Set_Visible_Declarations
6558 (N
: Node_Id
; Val
: List_Id
) is
6560 pragma Assert
(False
6561 or else NT
(N
).Nkind
= N_Package_Specification
6562 or else NT
(N
).Nkind
= N_Protected_Definition
6563 or else NT
(N
).Nkind
= N_Task_Definition
);
6564 Set_List2_With_Parent
(N
, Val
);
6565 end Set_Visible_Declarations
;
6567 procedure Set_Uninitialized_Variable
6568 (N
: Node_Id
; Val
: Node_Id
) is
6570 pragma Assert
(False
6571 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
6572 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
);
6574 end Set_Uninitialized_Variable
;
6576 procedure Set_Used_Operations
6577 (N
: Node_Id
; Val
: Elist_Id
) is
6579 pragma Assert
(False
6580 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
6581 Set_Elist5
(N
, Val
);
6582 end Set_Used_Operations
;
6584 procedure Set_Was_Expression_Function
6585 (N
: Node_Id
; Val
: Boolean := True) is
6587 pragma Assert
(False
6588 or else NT
(N
).Nkind
= N_Subprogram_Body
);
6589 Set_Flag18
(N
, Val
);
6590 end Set_Was_Expression_Function
;
6592 procedure Set_Was_Originally_Stub
6593 (N
: Node_Id
; Val
: Boolean := True) is
6595 pragma Assert
(False
6596 or else NT
(N
).Nkind
= N_Package_Body
6597 or else NT
(N
).Nkind
= N_Protected_Body
6598 or else NT
(N
).Nkind
= N_Subprogram_Body
6599 or else NT
(N
).Nkind
= N_Task_Body
);
6600 Set_Flag13
(N
, Val
);
6601 end Set_Was_Originally_Stub
;
6603 procedure Set_Withed_Body
6604 (N
: Node_Id
; Val
: Node_Id
) is
6606 pragma Assert
(False
6607 or else NT
(N
).Nkind
= N_With_Clause
);
6609 end Set_Withed_Body
;
6611 -------------------------
6612 -- Iterator Procedures --
6613 -------------------------
6615 procedure Next_Entity
(N
: in out Node_Id
) is
6617 N
:= Next_Entity
(N
);
6620 procedure Next_Named_Actual
(N
: in out Node_Id
) is
6622 N
:= Next_Named_Actual
(N
);
6623 end Next_Named_Actual
;
6625 procedure Next_Rep_Item
(N
: in out Node_Id
) is
6627 N
:= Next_Rep_Item
(N
);
6630 procedure Next_Use_Clause
(N
: in out Node_Id
) is
6632 N
:= Next_Use_Clause
(N
);
6633 end Next_Use_Clause
;
6639 function End_Location
(N
: Node_Id
) return Source_Ptr
is
6640 L
: constant Uint
:= End_Span
(N
);
6645 return Source_Ptr
(Int
(Sloc
(N
)) + UI_To_Int
(L
));
6649 --------------------
6650 -- Get_Pragma_Arg --
6651 --------------------
6653 function Get_Pragma_Arg
(Arg
: Node_Id
) return Node_Id
is
6655 if Nkind
(Arg
) = N_Pragma_Argument_Association
then
6656 return Expression
(Arg
);
6662 ----------------------
6663 -- Set_End_Location --
6664 ----------------------
6666 procedure Set_End_Location
(N
: Node_Id
; S
: Source_Ptr
) is
6669 UI_From_Int
(Int
(S
) - Int
(Sloc
(N
))));
6670 end Set_End_Location
;
6679 V2
: Node_Kind
) return Boolean
6682 return T
= V1
or else
6690 V3
: Node_Kind
) return Boolean
6693 return T
= V1
or else
6703 V4
: Node_Kind
) return Boolean
6706 return T
= V1
or else
6718 V5
: Node_Kind
) return Boolean
6721 return T
= V1
or else
6735 V6
: Node_Kind
) return Boolean
6738 return T
= V1
or else
6754 V7
: Node_Kind
) return Boolean
6757 return T
= V1
or else
6775 V8
: Node_Kind
) return Boolean
6778 return T
= V1
or else
6798 V9
: Node_Kind
) return Boolean
6801 return T
= V1
or else
6816 function Pragma_Name
(N
: Node_Id
) return Name_Id
is
6818 return Chars
(Pragma_Identifier
(N
));