1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2015, 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 Node_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_Accessibility_Actual
1756 (N
: Node_Id
) return Boolean is
1758 pragma Assert
(False
1759 or else NT
(N
).Nkind
= N_Parameter_Association
);
1761 end Is_Accessibility_Actual
;
1763 function Is_Analyzed_Pragma
1764 (N
: Node_Id
) return Boolean is
1766 pragma Assert
(False
1767 or else NT
(N
).Nkind
= N_Pragma
);
1769 end Is_Analyzed_Pragma
;
1771 function Is_Asynchronous_Call_Block
1772 (N
: Node_Id
) return Boolean is
1774 pragma Assert
(False
1775 or else NT
(N
).Nkind
= N_Block_Statement
);
1777 end Is_Asynchronous_Call_Block
;
1779 function Is_Boolean_Aspect
1780 (N
: Node_Id
) return Boolean is
1782 pragma Assert
(False
1783 or else NT
(N
).Nkind
= N_Aspect_Specification
);
1785 end Is_Boolean_Aspect
;
1788 (N
: Node_Id
) return Boolean is
1790 pragma Assert
(False
1791 or else NT
(N
).Nkind
= N_Aspect_Specification
1792 or else NT
(N
).Nkind
= N_Pragma
);
1796 function Is_Component_Left_Opnd
1797 (N
: Node_Id
) return Boolean is
1799 pragma Assert
(False
1800 or else NT
(N
).Nkind
= N_Op_Concat
);
1802 end Is_Component_Left_Opnd
;
1804 function Is_Component_Right_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_Right_Opnd
;
1812 function Is_Controlling_Actual
1813 (N
: Node_Id
) return Boolean is
1815 pragma Assert
(False
1816 or else NT
(N
).Nkind
in N_Subexpr
);
1818 end Is_Controlling_Actual
;
1820 function Is_Disabled
1821 (N
: Node_Id
) return Boolean is
1823 pragma Assert
(False
1824 or else NT
(N
).Nkind
= N_Aspect_Specification
1825 or else NT
(N
).Nkind
= N_Pragma
);
1829 function Is_Delayed_Aspect
1830 (N
: Node_Id
) return Boolean is
1832 pragma Assert
(False
1833 or else NT
(N
).Nkind
= N_Aspect_Specification
1834 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
1835 or else NT
(N
).Nkind
= N_Pragma
);
1837 end Is_Delayed_Aspect
;
1839 function Is_Dynamic_Coextension
1840 (N
: Node_Id
) return Boolean is
1842 pragma Assert
(False
1843 or else NT
(N
).Nkind
= N_Allocator
);
1845 end Is_Dynamic_Coextension
;
1848 (N
: Node_Id
) return Boolean is
1850 pragma Assert
(False
1851 or else NT
(N
).Nkind
= N_If_Expression
);
1855 function Is_Entry_Barrier_Function
1856 (N
: Node_Id
) return Boolean is
1858 pragma Assert
(False
1859 or else NT
(N
).Nkind
= N_Subprogram_Body
1860 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
1862 end Is_Entry_Barrier_Function
;
1864 function Is_Expanded_Build_In_Place_Call
1865 (N
: Node_Id
) return Boolean is
1867 pragma Assert
(False
1868 or else NT
(N
).Nkind
= N_Function_Call
);
1870 end Is_Expanded_Build_In_Place_Call
;
1872 function Is_Expanded_Contract
1873 (N
: Node_Id
) return Boolean is
1875 pragma Assert
(False
1876 or else NT
(N
).Nkind
= N_Contract
);
1878 end Is_Expanded_Contract
;
1880 function Is_Finalization_Wrapper
1881 (N
: Node_Id
) return Boolean is
1883 pragma Assert
(False
1884 or else NT
(N
).Nkind
= N_Block_Statement
);
1886 end Is_Finalization_Wrapper
;
1888 function Is_Folded_In_Parser
1889 (N
: Node_Id
) return Boolean is
1891 pragma Assert
(False
1892 or else NT
(N
).Nkind
= N_String_Literal
);
1894 end Is_Folded_In_Parser
;
1896 function Is_Generic_Contract_Pragma
1897 (N
: Node_Id
) return Boolean is
1899 pragma Assert
(False
1900 or else NT
(N
).Nkind
= N_Pragma
);
1902 end Is_Generic_Contract_Pragma
;
1904 function Is_Ghost_Pragma
1905 (N
: Node_Id
) return Boolean is
1907 pragma Assert
(False
1908 or else NT
(N
).Nkind
= N_Pragma
);
1910 end Is_Ghost_Pragma
;
1913 (N
: Node_Id
) return Boolean is
1915 pragma Assert
(False
1916 or else NT
(N
).Nkind
= N_Aspect_Specification
1917 or else NT
(N
).Nkind
= N_Pragma
);
1921 function Is_In_Discriminant_Check
1922 (N
: Node_Id
) return Boolean is
1924 pragma Assert
(False
1925 or else NT
(N
).Nkind
= N_Selected_Component
);
1927 end Is_In_Discriminant_Check
;
1929 function Is_Inherited_Pragma
1930 (N
: Node_Id
) return Boolean is
1932 pragma Assert
(False
1933 or else NT
(N
).Nkind
= N_Pragma
);
1935 end Is_Inherited_Pragma
;
1937 function Is_Machine_Number
1938 (N
: Node_Id
) return Boolean is
1940 pragma Assert
(False
1941 or else NT
(N
).Nkind
= N_Real_Literal
);
1943 end Is_Machine_Number
;
1945 function Is_Null_Loop
1946 (N
: Node_Id
) return Boolean is
1948 pragma Assert
(False
1949 or else NT
(N
).Nkind
= N_Loop_Statement
);
1953 function Is_Overloaded
1954 (N
: Node_Id
) return Boolean is
1956 pragma Assert
(False
1957 or else NT
(N
).Nkind
in N_Subexpr
);
1961 function Is_Power_Of_2_For_Shift
1962 (N
: Node_Id
) return Boolean is
1964 pragma Assert
(False
1965 or else NT
(N
).Nkind
= N_Op_Expon
);
1967 end Is_Power_Of_2_For_Shift
;
1969 function Is_Prefixed_Call
1970 (N
: Node_Id
) return Boolean is
1972 pragma Assert
(False
1973 or else NT
(N
).Nkind
= N_Selected_Component
);
1975 end Is_Prefixed_Call
;
1977 function Is_Protected_Subprogram_Body
1978 (N
: Node_Id
) return Boolean is
1980 pragma Assert
(False
1981 or else NT
(N
).Nkind
= N_Subprogram_Body
);
1983 end Is_Protected_Subprogram_Body
;
1985 function Is_Static_Coextension
1986 (N
: Node_Id
) return Boolean is
1988 pragma Assert
(False
1989 or else NT
(N
).Nkind
= N_Allocator
);
1991 end Is_Static_Coextension
;
1993 function Is_Static_Expression
1994 (N
: Node_Id
) return Boolean is
1996 pragma Assert
(False
1997 or else NT
(N
).Nkind
in N_Subexpr
);
1999 end Is_Static_Expression
;
2001 function Is_Subprogram_Descriptor
2002 (N
: Node_Id
) return Boolean is
2004 pragma Assert
(False
2005 or else NT
(N
).Nkind
= N_Object_Declaration
);
2007 end Is_Subprogram_Descriptor
;
2009 function Is_Task_Allocation_Block
2010 (N
: Node_Id
) return Boolean is
2012 pragma Assert
(False
2013 or else NT
(N
).Nkind
= N_Block_Statement
);
2015 end Is_Task_Allocation_Block
;
2017 function Is_Task_Body_Procedure
2018 (N
: Node_Id
) return Boolean is
2020 pragma Assert
(False
2021 or else NT
(N
).Nkind
= N_Subprogram_Body
2022 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
2024 end Is_Task_Body_Procedure
;
2026 function Is_Task_Master
2027 (N
: Node_Id
) return Boolean is
2029 pragma Assert
(False
2030 or else NT
(N
).Nkind
= N_Block_Statement
2031 or else NT
(N
).Nkind
= N_Subprogram_Body
2032 or else NT
(N
).Nkind
= N_Task_Body
);
2036 function Iteration_Scheme
2037 (N
: Node_Id
) return Node_Id
is
2039 pragma Assert
(False
2040 or else NT
(N
).Nkind
= N_Loop_Statement
);
2042 end Iteration_Scheme
;
2044 function Iterator_Specification
2045 (N
: Node_Id
) return Node_Id
is
2047 pragma Assert
(False
2048 or else NT
(N
).Nkind
= N_Iteration_Scheme
2049 or else NT
(N
).Nkind
= N_Quantified_Expression
);
2051 end Iterator_Specification
;
2054 (N
: Node_Id
) return Node_Id
is
2056 pragma Assert
(False
2057 or else NT
(N
).Nkind
= N_Itype_Reference
);
2061 function Kill_Range_Check
2062 (N
: Node_Id
) return Boolean is
2064 pragma Assert
(False
2065 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
2067 end Kill_Range_Check
;
2069 function Label_Construct
2070 (N
: Node_Id
) return Node_Id
is
2072 pragma Assert
(False
2073 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
);
2075 end Label_Construct
;
2078 (N
: Node_Id
) return Node_Id
is
2080 pragma Assert
(False
2081 or else NT
(N
).Nkind
= N_Component_Clause
);
2086 (N
: Node_Id
) return Boolean is
2088 pragma Assert
(False
2089 or else NT
(N
).Nkind
= N_With_Clause
);
2094 (N
: Node_Id
) return Node_Id
is
2096 pragma Assert
(False
2097 or else NT
(N
).Nkind
= N_And_Then
2098 or else NT
(N
).Nkind
= N_In
2099 or else NT
(N
).Nkind
= N_Not_In
2100 or else NT
(N
).Nkind
= N_Or_Else
2101 or else NT
(N
).Nkind
in N_Binary_Op
);
2105 function Library_Unit
2106 (N
: Node_Id
) return Node_Id
is
2108 pragma Assert
(False
2109 or else NT
(N
).Nkind
= N_Compilation_Unit
2110 or else NT
(N
).Nkind
= N_Package_Body_Stub
2111 or else NT
(N
).Nkind
= N_Protected_Body_Stub
2112 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
2113 or else NT
(N
).Nkind
= N_Task_Body_Stub
2114 or else NT
(N
).Nkind
= N_With_Clause
);
2118 function Limited_View_Installed
2119 (N
: Node_Id
) return Boolean is
2121 pragma Assert
(False
2122 or else NT
(N
).Nkind
= N_Package_Specification
2123 or else NT
(N
).Nkind
= N_With_Clause
);
2125 end Limited_View_Installed
;
2127 function Limited_Present
2128 (N
: Node_Id
) return Boolean is
2130 pragma Assert
(False
2131 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2132 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
2133 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
2134 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
2135 or else NT
(N
).Nkind
= N_Private_Type_Declaration
2136 or else NT
(N
).Nkind
= N_Record_Definition
2137 or else NT
(N
).Nkind
= N_With_Clause
);
2139 end Limited_Present
;
2142 (N
: Node_Id
) return List_Id
is
2144 pragma Assert
(False
2145 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
);
2149 function Local_Raise_Not_OK
2150 (N
: Node_Id
) return Boolean is
2152 pragma Assert
(False
2153 or else NT
(N
).Nkind
= N_Exception_Handler
);
2155 end Local_Raise_Not_OK
;
2157 function Local_Raise_Statements
2158 (N
: Node_Id
) return Elist_Id
is
2160 pragma Assert
(False
2161 or else NT
(N
).Nkind
= N_Exception_Handler
);
2163 end Local_Raise_Statements
;
2165 function Loop_Actions
2166 (N
: Node_Id
) return List_Id
is
2168 pragma Assert
(False
2169 or else NT
(N
).Nkind
= N_Component_Association
);
2173 function Loop_Parameter_Specification
2174 (N
: Node_Id
) return Node_Id
is
2176 pragma Assert
(False
2177 or else NT
(N
).Nkind
= N_Iteration_Scheme
2178 or else NT
(N
).Nkind
= N_Quantified_Expression
);
2180 end Loop_Parameter_Specification
;
2183 (N
: Node_Id
) return Node_Id
is
2185 pragma Assert
(False
2186 or else NT
(N
).Nkind
= N_Range
2187 or else NT
(N
).Nkind
= N_Real_Range_Specification
2188 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
2193 (N
: Node_Id
) return Node_Id
is
2195 pragma Assert
(False
2196 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
2201 (N
: Node_Id
) return Boolean is
2203 pragma Assert
(False
2204 or else NT
(N
).Nkind
= N_Component_Declaration
2205 or else NT
(N
).Nkind
= N_Discriminant_Specification
2206 or else NT
(N
).Nkind
= N_Exception_Declaration
2207 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2208 or else NT
(N
).Nkind
= N_Number_Declaration
2209 or else NT
(N
).Nkind
= N_Object_Declaration
2210 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2214 function Must_Be_Byte_Aligned
2215 (N
: Node_Id
) return Boolean is
2217 pragma Assert
(False
2218 or else NT
(N
).Nkind
= N_Attribute_Reference
);
2220 end Must_Be_Byte_Aligned
;
2222 function Must_Not_Freeze
2223 (N
: Node_Id
) return Boolean is
2225 pragma Assert
(False
2226 or else NT
(N
).Nkind
= N_Subtype_Indication
2227 or else NT
(N
).Nkind
in N_Subexpr
);
2229 end Must_Not_Freeze
;
2231 function Must_Not_Override
2232 (N
: Node_Id
) return Boolean is
2234 pragma Assert
(False
2235 or else NT
(N
).Nkind
= N_Entry_Declaration
2236 or else NT
(N
).Nkind
= N_Function_Instantiation
2237 or else NT
(N
).Nkind
= N_Function_Specification
2238 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2239 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2241 end Must_Not_Override
;
2243 function Must_Override
2244 (N
: Node_Id
) return Boolean is
2246 pragma Assert
(False
2247 or else NT
(N
).Nkind
= N_Entry_Declaration
2248 or else NT
(N
).Nkind
= N_Function_Instantiation
2249 or else NT
(N
).Nkind
= N_Function_Specification
2250 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2251 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2256 (N
: Node_Id
) return Node_Id
is
2258 pragma Assert
(False
2259 or else NT
(N
).Nkind
= N_Assignment_Statement
2260 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
2261 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
2262 or else NT
(N
).Nkind
= N_Designator
2263 or else NT
(N
).Nkind
= N_Entry_Call_Statement
2264 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
2265 or else NT
(N
).Nkind
= N_Exit_Statement
2266 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
2267 or else NT
(N
).Nkind
= N_Function_Call
2268 or else NT
(N
).Nkind
= N_Function_Instantiation
2269 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
2270 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
2271 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
2272 or else NT
(N
).Nkind
= N_Goto_Statement
2273 or else NT
(N
).Nkind
= N_Iterator_Specification
2274 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
2275 or else NT
(N
).Nkind
= N_Package_Instantiation
2276 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
2277 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
2278 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2279 or else NT
(N
).Nkind
= N_Raise_Expression
2280 or else NT
(N
).Nkind
= N_Raise_Statement
2281 or else NT
(N
).Nkind
= N_Requeue_Statement
2282 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
2283 or else NT
(N
).Nkind
= N_Subunit
2284 or else NT
(N
).Nkind
= N_Variant_Part
2285 or else NT
(N
).Nkind
= N_With_Clause
);
2290 (N
: Node_Id
) return List_Id
is
2292 pragma Assert
(False
2293 or else NT
(N
).Nkind
= N_Abort_Statement
2294 or else NT
(N
).Nkind
= N_Use_Package_Clause
);
2298 function Next_Entity
2299 (N
: Node_Id
) return Node_Id
is
2301 pragma Assert
(False
2302 or else NT
(N
).Nkind
= N_Defining_Character_Literal
2303 or else NT
(N
).Nkind
= N_Defining_Identifier
2304 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
2308 function Next_Exit_Statement
2309 (N
: Node_Id
) return Node_Id
is
2311 pragma Assert
(False
2312 or else NT
(N
).Nkind
= N_Exit_Statement
);
2314 end Next_Exit_Statement
;
2316 function Next_Implicit_With
2317 (N
: Node_Id
) return Node_Id
is
2319 pragma Assert
(False
2320 or else NT
(N
).Nkind
= N_With_Clause
);
2322 end Next_Implicit_With
;
2324 function Next_Named_Actual
2325 (N
: Node_Id
) return Node_Id
is
2327 pragma Assert
(False
2328 or else NT
(N
).Nkind
= N_Parameter_Association
);
2330 end Next_Named_Actual
;
2332 function Next_Pragma
2333 (N
: Node_Id
) return Node_Id
is
2335 pragma Assert
(False
2336 or else NT
(N
).Nkind
= N_Pragma
);
2340 function Next_Rep_Item
2341 (N
: Node_Id
) return Node_Id
is
2343 pragma Assert
(False
2344 or else NT
(N
).Nkind
= N_Aspect_Specification
2345 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
2346 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
2347 or else NT
(N
).Nkind
= N_Pragma
2348 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
2352 function Next_Use_Clause
2353 (N
: Node_Id
) return Node_Id
is
2355 pragma Assert
(False
2356 or else NT
(N
).Nkind
= N_Use_Package_Clause
2357 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
2359 end Next_Use_Clause
;
2361 function No_Ctrl_Actions
2362 (N
: Node_Id
) return Boolean is
2364 pragma Assert
(False
2365 or else NT
(N
).Nkind
= N_Assignment_Statement
);
2367 end No_Ctrl_Actions
;
2369 function No_Elaboration_Check
2370 (N
: Node_Id
) return Boolean is
2372 pragma Assert
(False
2373 or else NT
(N
).Nkind
= N_Function_Call
2374 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
2376 end No_Elaboration_Check
;
2378 function No_Entities_Ref_In_Spec
2379 (N
: Node_Id
) return Boolean is
2381 pragma Assert
(False
2382 or else NT
(N
).Nkind
= N_With_Clause
);
2384 end No_Entities_Ref_In_Spec
;
2386 function No_Initialization
2387 (N
: Node_Id
) return Boolean is
2389 pragma Assert
(False
2390 or else NT
(N
).Nkind
= N_Allocator
2391 or else NT
(N
).Nkind
= N_Object_Declaration
);
2393 end No_Initialization
;
2395 function No_Minimize_Eliminate
2396 (N
: Node_Id
) return Boolean is
2398 pragma Assert
(False
2399 or else NT
(N
).Nkind
= N_In
2400 or else NT
(N
).Nkind
= N_Not_In
);
2402 end No_Minimize_Eliminate
;
2404 function No_Truncation
2405 (N
: Node_Id
) return Boolean is
2407 pragma Assert
(False
2408 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
2412 function Non_Aliased_Prefix
2413 (N
: Node_Id
) return Boolean is
2415 pragma Assert
(False
2416 or else NT
(N
).Nkind
= N_Attribute_Reference
);
2418 end Non_Aliased_Prefix
;
2420 function Null_Present
2421 (N
: Node_Id
) return Boolean is
2423 pragma Assert
(False
2424 or else NT
(N
).Nkind
= N_Component_List
2425 or else NT
(N
).Nkind
= N_Procedure_Specification
2426 or else NT
(N
).Nkind
= N_Record_Definition
);
2430 function Null_Excluding_Subtype
2431 (N
: Node_Id
) return Boolean is
2433 pragma Assert
(False
2434 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
);
2436 end Null_Excluding_Subtype
;
2438 function Null_Exclusion_Present
2439 (N
: Node_Id
) return Boolean is
2441 pragma Assert
(False
2442 or else NT
(N
).Nkind
= N_Access_Definition
2443 or else NT
(N
).Nkind
= N_Access_Function_Definition
2444 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2445 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
2446 or else NT
(N
).Nkind
= N_Allocator
2447 or else NT
(N
).Nkind
= N_Component_Definition
2448 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2449 or else NT
(N
).Nkind
= N_Discriminant_Specification
2450 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2451 or else NT
(N
).Nkind
= N_Function_Specification
2452 or else NT
(N
).Nkind
= N_Object_Declaration
2453 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
2454 or else NT
(N
).Nkind
= N_Parameter_Specification
2455 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
2457 end Null_Exclusion_Present
;
2459 function Null_Exclusion_In_Return_Present
2460 (N
: Node_Id
) return Boolean is
2462 pragma Assert
(False
2463 or else NT
(N
).Nkind
= N_Access_Function_Definition
);
2465 end Null_Exclusion_In_Return_Present
;
2467 function Null_Record_Present
2468 (N
: Node_Id
) return Boolean is
2470 pragma Assert
(False
2471 or else NT
(N
).Nkind
= N_Aggregate
2472 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
2474 end Null_Record_Present
;
2476 function Object_Definition
2477 (N
: Node_Id
) return Node_Id
is
2479 pragma Assert
(False
2480 or else NT
(N
).Nkind
= N_Object_Declaration
);
2482 end Object_Definition
;
2485 (N
: Node_Id
) return Boolean is
2487 pragma Assert
(False
2488 or else NT
(N
).Nkind
= N_Iterator_Specification
);
2492 function Original_Discriminant
2493 (N
: Node_Id
) return Node_Id
is
2495 pragma Assert
(False
2496 or else NT
(N
).Nkind
= N_Identifier
);
2498 end Original_Discriminant
;
2500 function Original_Entity
2501 (N
: Node_Id
) return Entity_Id
is
2503 pragma Assert
(False
2504 or else NT
(N
).Nkind
= N_Integer_Literal
2505 or else NT
(N
).Nkind
= N_Real_Literal
);
2507 end Original_Entity
;
2509 function Others_Discrete_Choices
2510 (N
: Node_Id
) return List_Id
is
2512 pragma Assert
(False
2513 or else NT
(N
).Nkind
= N_Others_Choice
);
2515 end Others_Discrete_Choices
;
2517 function Out_Present
2518 (N
: Node_Id
) return Boolean is
2520 pragma Assert
(False
2521 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2522 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2526 function Parameter_Associations
2527 (N
: Node_Id
) return List_Id
is
2529 pragma Assert
(False
2530 or else NT
(N
).Nkind
= N_Entry_Call_Statement
2531 or else NT
(N
).Nkind
= N_Function_Call
2532 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
2534 end Parameter_Associations
;
2536 function Parameter_Specifications
2537 (N
: Node_Id
) return List_Id
is
2539 pragma Assert
(False
2540 or else NT
(N
).Nkind
= N_Accept_Statement
2541 or else NT
(N
).Nkind
= N_Access_Function_Definition
2542 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2543 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
2544 or else NT
(N
).Nkind
= N_Entry_Declaration
2545 or else NT
(N
).Nkind
= N_Function_Specification
2546 or else NT
(N
).Nkind
= N_Procedure_Specification
);
2548 end Parameter_Specifications
;
2550 function Parameter_Type
2551 (N
: Node_Id
) return Node_Id
is
2553 pragma Assert
(False
2554 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2558 function Parent_Spec
2559 (N
: Node_Id
) return Node_Id
is
2561 pragma Assert
(False
2562 or else NT
(N
).Nkind
= N_Function_Instantiation
2563 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
2564 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
2565 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
2566 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
2567 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
2568 or else NT
(N
).Nkind
= N_Package_Declaration
2569 or else NT
(N
).Nkind
= N_Package_Instantiation
2570 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
2571 or else NT
(N
).Nkind
= N_Procedure_Instantiation
2572 or else NT
(N
).Nkind
= N_Subprogram_Declaration
2573 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
2578 (N
: Node_Id
) return Node_Id
is
2580 pragma Assert
(False
2581 or else NT
(N
).Nkind
= N_Component_Clause
);
2585 function Pragma_Argument_Associations
2586 (N
: Node_Id
) return List_Id
is
2588 pragma Assert
(False
2589 or else NT
(N
).Nkind
= N_Pragma
);
2591 end Pragma_Argument_Associations
;
2593 function Pragma_Identifier
2594 (N
: Node_Id
) return Node_Id
is
2596 pragma Assert
(False
2597 or else NT
(N
).Nkind
= N_Pragma
);
2599 end Pragma_Identifier
;
2601 function Pragmas_After
2602 (N
: Node_Id
) return List_Id
is
2604 pragma Assert
(False
2605 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
2606 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
2610 function Pragmas_Before
2611 (N
: Node_Id
) return List_Id
is
2613 pragma Assert
(False
2614 or else NT
(N
).Nkind
= N_Accept_Alternative
2615 or else NT
(N
).Nkind
= N_Delay_Alternative
2616 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
2617 or else NT
(N
).Nkind
= N_Mod_Clause
2618 or else NT
(N
).Nkind
= N_Terminate_Alternative
2619 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
2623 function Pre_Post_Conditions
2624 (N
: Node_Id
) return Node_Id
is
2626 pragma Assert
(False
2627 or else NT
(N
).Nkind
= N_Contract
);
2629 end Pre_Post_Conditions
;
2632 (N
: Node_Id
) return Node_Id
is
2634 pragma Assert
(False
2635 or else NT
(N
).Nkind
= N_Attribute_Reference
2636 or else NT
(N
).Nkind
= N_Expanded_Name
2637 or else NT
(N
).Nkind
= N_Explicit_Dereference
2638 or else NT
(N
).Nkind
= N_Indexed_Component
2639 or else NT
(N
).Nkind
= N_Reference
2640 or else NT
(N
).Nkind
= N_Selected_Component
2641 or else NT
(N
).Nkind
= N_Slice
);
2645 function Premature_Use
2646 (N
: Node_Id
) return Node_Id
is
2648 pragma Assert
(False
2649 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
);
2653 function Present_Expr
2654 (N
: Node_Id
) return Uint
is
2656 pragma Assert
(False
2657 or else NT
(N
).Nkind
= N_Variant
);
2662 (N
: Node_Id
) return Boolean is
2664 pragma Assert
(False
2665 or else NT
(N
).Nkind
= N_Component_Declaration
2666 or else NT
(N
).Nkind
= N_Discriminant_Specification
2667 or else NT
(N
).Nkind
= N_Exception_Declaration
2668 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
2669 or else NT
(N
).Nkind
= N_Number_Declaration
2670 or else NT
(N
).Nkind
= N_Object_Declaration
2671 or else NT
(N
).Nkind
= N_Parameter_Specification
);
2675 function Print_In_Hex
2676 (N
: Node_Id
) return Boolean is
2678 pragma Assert
(False
2679 or else NT
(N
).Nkind
= N_Integer_Literal
);
2683 function Private_Declarations
2684 (N
: Node_Id
) return List_Id
is
2686 pragma Assert
(False
2687 or else NT
(N
).Nkind
= N_Package_Specification
2688 or else NT
(N
).Nkind
= N_Protected_Definition
2689 or else NT
(N
).Nkind
= N_Task_Definition
);
2691 end Private_Declarations
;
2693 function Private_Present
2694 (N
: Node_Id
) return Boolean is
2696 pragma Assert
(False
2697 or else NT
(N
).Nkind
= N_Compilation_Unit
2698 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
2699 or else NT
(N
).Nkind
= N_With_Clause
);
2701 end Private_Present
;
2703 function Procedure_To_Call
2704 (N
: Node_Id
) return Node_Id
is
2706 pragma Assert
(False
2707 or else NT
(N
).Nkind
= N_Allocator
2708 or else NT
(N
).Nkind
= N_Extended_Return_Statement
2709 or else NT
(N
).Nkind
= N_Free_Statement
2710 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
2712 end Procedure_To_Call
;
2714 function Proper_Body
2715 (N
: Node_Id
) return Node_Id
is
2717 pragma Assert
(False
2718 or else NT
(N
).Nkind
= N_Subunit
);
2722 function Protected_Definition
2723 (N
: Node_Id
) return Node_Id
is
2725 pragma Assert
(False
2726 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
2727 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
);
2729 end Protected_Definition
;
2731 function Protected_Present
2732 (N
: Node_Id
) return Boolean is
2734 pragma Assert
(False
2735 or else NT
(N
).Nkind
= N_Access_Function_Definition
2736 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
2737 or else NT
(N
).Nkind
= N_Derived_Type_Definition
2738 or else NT
(N
).Nkind
= N_Record_Definition
);
2740 end Protected_Present
;
2742 function Raises_Constraint_Error
2743 (N
: Node_Id
) return Boolean is
2745 pragma Assert
(False
2746 or else NT
(N
).Nkind
in N_Subexpr
);
2748 end Raises_Constraint_Error
;
2750 function Range_Constraint
2751 (N
: Node_Id
) return Node_Id
is
2753 pragma Assert
(False
2754 or else NT
(N
).Nkind
= N_Delta_Constraint
2755 or else NT
(N
).Nkind
= N_Digits_Constraint
);
2757 end Range_Constraint
;
2759 function Range_Expression
2760 (N
: Node_Id
) return Node_Id
is
2762 pragma Assert
(False
2763 or else NT
(N
).Nkind
= N_Range_Constraint
);
2765 end Range_Expression
;
2767 function Real_Range_Specification
2768 (N
: Node_Id
) return Node_Id
is
2770 pragma Assert
(False
2771 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
2772 or else NT
(N
).Nkind
= N_Floating_Point_Definition
2773 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
2775 end Real_Range_Specification
;
2778 (N
: Node_Id
) return Ureal
is
2780 pragma Assert
(False
2781 or else NT
(N
).Nkind
= N_Real_Literal
);
2786 (N
: Node_Id
) return Uint
is
2788 pragma Assert
(False
2789 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
2790 or else NT
(N
).Nkind
= N_Raise_Program_Error
2791 or else NT
(N
).Nkind
= N_Raise_Storage_Error
);
2795 function Record_Extension_Part
2796 (N
: Node_Id
) return Node_Id
is
2798 pragma Assert
(False
2799 or else NT
(N
).Nkind
= N_Derived_Type_Definition
);
2801 end Record_Extension_Part
;
2803 function Redundant_Use
2804 (N
: Node_Id
) return Boolean is
2806 pragma Assert
(False
2807 or else NT
(N
).Nkind
= N_Attribute_Reference
2808 or else NT
(N
).Nkind
= N_Expanded_Name
2809 or else NT
(N
).Nkind
= N_Identifier
);
2813 function Renaming_Exception
2814 (N
: Node_Id
) return Node_Id
is
2816 pragma Assert
(False
2817 or else NT
(N
).Nkind
= N_Exception_Declaration
);
2819 end Renaming_Exception
;
2821 function Result_Definition
2822 (N
: Node_Id
) return Node_Id
is
2824 pragma Assert
(False
2825 or else NT
(N
).Nkind
= N_Access_Function_Definition
2826 or else NT
(N
).Nkind
= N_Function_Specification
);
2828 end Result_Definition
;
2830 function Return_Object_Declarations
2831 (N
: Node_Id
) return List_Id
is
2833 pragma Assert
(False
2834 or else NT
(N
).Nkind
= N_Extended_Return_Statement
);
2836 end Return_Object_Declarations
;
2838 function Return_Statement_Entity
2839 (N
: Node_Id
) return Node_Id
is
2841 pragma Assert
(False
2842 or else NT
(N
).Nkind
= N_Extended_Return_Statement
2843 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
2845 end Return_Statement_Entity
;
2847 function Reverse_Present
2848 (N
: Node_Id
) return Boolean is
2850 pragma Assert
(False
2851 or else NT
(N
).Nkind
= N_Iterator_Specification
2852 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
2854 end Reverse_Present
;
2857 (N
: Node_Id
) return Node_Id
is
2859 pragma Assert
(False
2860 or else NT
(N
).Nkind
in N_Op
2861 or else NT
(N
).Nkind
= N_And_Then
2862 or else NT
(N
).Nkind
= N_In
2863 or else NT
(N
).Nkind
= N_Not_In
2864 or else NT
(N
).Nkind
= N_Or_Else
);
2868 function Rounded_Result
2869 (N
: Node_Id
) return Boolean is
2871 pragma Assert
(False
2872 or else NT
(N
).Nkind
= N_Op_Divide
2873 or else NT
(N
).Nkind
= N_Op_Multiply
2874 or else NT
(N
).Nkind
= N_Type_Conversion
);
2878 function SCIL_Controlling_Tag
2879 (N
: Node_Id
) return Node_Id
is
2881 pragma Assert
(False
2882 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
2884 end SCIL_Controlling_Tag
;
2886 function SCIL_Entity
2887 (N
: Node_Id
) return Node_Id
is
2889 pragma Assert
(False
2890 or else NT
(N
).Nkind
= N_SCIL_Dispatch_Table_Tag_Init
2891 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
2892 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
2896 function SCIL_Tag_Value
2897 (N
: Node_Id
) return Node_Id
is
2899 pragma Assert
(False
2900 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
2904 function SCIL_Target_Prim
2905 (N
: Node_Id
) return Node_Id
is
2907 pragma Assert
(False
2908 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
2910 end SCIL_Target_Prim
;
2913 (N
: Node_Id
) return Node_Id
is
2915 pragma Assert
(False
2916 or else NT
(N
).Nkind
= N_Defining_Character_Literal
2917 or else NT
(N
).Nkind
= N_Defining_Identifier
2918 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
2922 function Select_Alternatives
2923 (N
: Node_Id
) return List_Id
is
2925 pragma Assert
(False
2926 or else NT
(N
).Nkind
= N_Selective_Accept
);
2928 end Select_Alternatives
;
2930 function Selector_Name
2931 (N
: Node_Id
) return Node_Id
is
2933 pragma Assert
(False
2934 or else NT
(N
).Nkind
= N_Expanded_Name
2935 or else NT
(N
).Nkind
= N_Generic_Association
2936 or else NT
(N
).Nkind
= N_Parameter_Association
2937 or else NT
(N
).Nkind
= N_Selected_Component
);
2941 function Selector_Names
2942 (N
: Node_Id
) return List_Id
is
2944 pragma Assert
(False
2945 or else NT
(N
).Nkind
= N_Discriminant_Association
);
2949 function Shift_Count_OK
2950 (N
: Node_Id
) return Boolean is
2952 pragma Assert
(False
2953 or else NT
(N
).Nkind
= N_Op_Rotate_Left
2954 or else NT
(N
).Nkind
= N_Op_Rotate_Right
2955 or else NT
(N
).Nkind
= N_Op_Shift_Left
2956 or else NT
(N
).Nkind
= N_Op_Shift_Right
2957 or else NT
(N
).Nkind
= N_Op_Shift_Right_Arithmetic
);
2961 function Source_Type
2962 (N
: Node_Id
) return Entity_Id
is
2964 pragma Assert
(False
2965 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
2969 function Specification
2970 (N
: Node_Id
) return Node_Id
is
2972 pragma Assert
(False
2973 or else NT
(N
).Nkind
= N_Abstract_Subprogram_Declaration
2974 or else NT
(N
).Nkind
= N_Expression_Function
2975 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
2976 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
2977 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
2978 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
2979 or else NT
(N
).Nkind
= N_Package_Declaration
2980 or else NT
(N
).Nkind
= N_Subprogram_Body
2981 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
2982 or else NT
(N
).Nkind
= N_Subprogram_Declaration
2983 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
2988 (N
: Node_Id
) return Boolean is
2990 pragma Assert
(False
2991 or else NT
(N
).Nkind
= N_Aspect_Specification
2992 or else NT
(N
).Nkind
= N_Pragma
);
2997 (N
: Node_Id
) return List_Id
is
2999 pragma Assert
(False
3000 or else NT
(N
).Nkind
= N_Abortable_Part
3001 or else NT
(N
).Nkind
= N_Accept_Alternative
3002 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
3003 or else NT
(N
).Nkind
= N_Delay_Alternative
3004 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
3005 or else NT
(N
).Nkind
= N_Exception_Handler
3006 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
3007 or else NT
(N
).Nkind
= N_Loop_Statement
3008 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
3012 function Storage_Pool
3013 (N
: Node_Id
) return Node_Id
is
3015 pragma Assert
(False
3016 or else NT
(N
).Nkind
= N_Allocator
3017 or else NT
(N
).Nkind
= N_Extended_Return_Statement
3018 or else NT
(N
).Nkind
= N_Free_Statement
3019 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3023 function Subpool_Handle_Name
3024 (N
: Node_Id
) return Node_Id
is
3026 pragma Assert
(False
3027 or else NT
(N
).Nkind
= N_Allocator
);
3029 end Subpool_Handle_Name
;
3032 (N
: Node_Id
) return String_Id
is
3034 pragma Assert
(False
3035 or else NT
(N
).Nkind
= N_Operator_Symbol
3036 or else NT
(N
).Nkind
= N_String_Literal
);
3040 function Subtype_Indication
3041 (N
: Node_Id
) return Node_Id
is
3043 pragma Assert
(False
3044 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3045 or else NT
(N
).Nkind
= N_Component_Definition
3046 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3047 or else NT
(N
).Nkind
= N_Iterator_Specification
3048 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3049 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
3051 end Subtype_Indication
;
3053 function Suppress_Assignment_Checks
3054 (N
: Node_Id
) return Boolean is
3056 pragma Assert
(False
3057 or else NT
(N
).Nkind
= N_Assignment_Statement
3058 or else NT
(N
).Nkind
= N_Object_Declaration
);
3060 end Suppress_Assignment_Checks
;
3062 function Suppress_Loop_Warnings
3063 (N
: Node_Id
) return Boolean is
3065 pragma Assert
(False
3066 or else NT
(N
).Nkind
= N_Loop_Statement
);
3068 end Suppress_Loop_Warnings
;
3070 function Subtype_Mark
3071 (N
: Node_Id
) return Node_Id
is
3073 pragma Assert
(False
3074 or else NT
(N
).Nkind
= N_Access_Definition
3075 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3076 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
3077 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
3078 or else NT
(N
).Nkind
= N_Qualified_Expression
3079 or else NT
(N
).Nkind
= N_Subtype_Indication
3080 or else NT
(N
).Nkind
= N_Type_Conversion
3081 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
3085 function Subtype_Marks
3086 (N
: Node_Id
) return List_Id
is
3088 pragma Assert
(False
3089 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
3090 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3094 function Synchronized_Present
3095 (N
: Node_Id
) return Boolean is
3097 pragma Assert
(False
3098 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3099 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3100 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3101 or else NT
(N
).Nkind
= N_Record_Definition
);
3103 end Synchronized_Present
;
3105 function Tagged_Present
3106 (N
: Node_Id
) return Boolean is
3108 pragma Assert
(False
3109 or else NT
(N
).Nkind
= N_Formal_Incomplete_Type_Definition
3110 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3111 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
3112 or else NT
(N
).Nkind
= N_Private_Type_Declaration
3113 or else NT
(N
).Nkind
= N_Record_Definition
);
3117 function Target_Type
3118 (N
: Node_Id
) return Entity_Id
is
3120 pragma Assert
(False
3121 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
3125 function Task_Definition
3126 (N
: Node_Id
) return Node_Id
is
3128 pragma Assert
(False
3129 or else NT
(N
).Nkind
= N_Single_Task_Declaration
3130 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
3132 end Task_Definition
;
3134 function Task_Present
3135 (N
: Node_Id
) return Boolean is
3137 pragma Assert
(False
3138 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3139 or else NT
(N
).Nkind
= N_Record_Definition
);
3143 function Then_Actions
3144 (N
: Node_Id
) return List_Id
is
3146 pragma Assert
(False
3147 or else NT
(N
).Nkind
= N_If_Expression
);
3151 function Then_Statements
3152 (N
: Node_Id
) return List_Id
is
3154 pragma Assert
(False
3155 or else NT
(N
).Nkind
= N_Elsif_Part
3156 or else NT
(N
).Nkind
= N_If_Statement
);
3158 end Then_Statements
;
3160 function Treat_Fixed_As_Integer
3161 (N
: Node_Id
) return Boolean is
3163 pragma Assert
(False
3164 or else NT
(N
).Nkind
= N_Op_Divide
3165 or else NT
(N
).Nkind
= N_Op_Mod
3166 or else NT
(N
).Nkind
= N_Op_Multiply
3167 or else NT
(N
).Nkind
= N_Op_Rem
);
3169 end Treat_Fixed_As_Integer
;
3171 function Triggering_Alternative
3172 (N
: Node_Id
) return Node_Id
is
3174 pragma Assert
(False
3175 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
3177 end Triggering_Alternative
;
3179 function Triggering_Statement
3180 (N
: Node_Id
) return Node_Id
is
3182 pragma Assert
(False
3183 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
3185 end Triggering_Statement
;
3188 (N
: Node_Id
) return Elist_Id
is
3190 pragma Assert
(False
3191 or else NT
(N
).Nkind
= N_Freeze_Entity
);
3195 function Type_Definition
3196 (N
: Node_Id
) return Node_Id
is
3198 pragma Assert
(False
3199 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
3201 end Type_Definition
;
3203 function Uneval_Old_Accept
3204 (N
: Node_Id
) return Boolean is
3206 pragma Assert
(False
3207 or else NT
(N
).Nkind
= N_Pragma
);
3209 end Uneval_Old_Accept
;
3211 function Uneval_Old_Warn
3212 (N
: Node_Id
) return Boolean is
3214 pragma Assert
(False
3215 or else NT
(N
).Nkind
= N_Pragma
);
3217 end Uneval_Old_Warn
;
3220 (N
: Node_Id
) return Node_Id
is
3222 pragma Assert
(False
3223 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3227 function Unknown_Discriminants_Present
3228 (N
: Node_Id
) return Boolean is
3230 pragma Assert
(False
3231 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
3232 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
3233 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3234 or else NT
(N
).Nkind
= N_Private_Type_Declaration
);
3236 end Unknown_Discriminants_Present
;
3238 function Unreferenced_In_Spec
3239 (N
: Node_Id
) return Boolean is
3241 pragma Assert
(False
3242 or else NT
(N
).Nkind
= N_With_Clause
);
3244 end Unreferenced_In_Spec
;
3246 function Variant_Part
3247 (N
: Node_Id
) return Node_Id
is
3249 pragma Assert
(False
3250 or else NT
(N
).Nkind
= N_Component_List
);
3255 (N
: Node_Id
) return List_Id
is
3257 pragma Assert
(False
3258 or else NT
(N
).Nkind
= N_Variant_Part
);
3262 function Visible_Declarations
3263 (N
: Node_Id
) return List_Id
is
3265 pragma Assert
(False
3266 or else NT
(N
).Nkind
= N_Package_Specification
3267 or else NT
(N
).Nkind
= N_Protected_Definition
3268 or else NT
(N
).Nkind
= N_Task_Definition
);
3270 end Visible_Declarations
;
3272 function Uninitialized_Variable
3273 (N
: Node_Id
) return Node_Id
is
3275 pragma Assert
(False
3276 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3277 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
);
3279 end Uninitialized_Variable
;
3281 function Used_Operations
3282 (N
: Node_Id
) return Elist_Id
is
3284 pragma Assert
(False
3285 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3287 end Used_Operations
;
3289 function Was_Expression_Function
3290 (N
: Node_Id
) return Boolean is
3292 pragma Assert
(False
3293 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3295 end Was_Expression_Function
;
3297 function Was_Originally_Stub
3298 (N
: Node_Id
) return Boolean is
3300 pragma Assert
(False
3301 or else NT
(N
).Nkind
= N_Package_Body
3302 or else NT
(N
).Nkind
= N_Protected_Body
3303 or else NT
(N
).Nkind
= N_Subprogram_Body
3304 or else NT
(N
).Nkind
= N_Task_Body
);
3306 end Was_Originally_Stub
;
3308 function Withed_Body
3309 (N
: Node_Id
) return Node_Id
is
3311 pragma Assert
(False
3312 or else NT
(N
).Nkind
= N_With_Clause
);
3316 --------------------------
3317 -- Field Set Procedures --
3318 --------------------------
3320 procedure Set_ABE_Is_Certain
3321 (N
: Node_Id
; Val
: Boolean := True) is
3323 pragma Assert
(False
3324 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
3325 or else NT
(N
).Nkind
= N_Function_Call
3326 or else NT
(N
).Nkind
= N_Function_Instantiation
3327 or else NT
(N
).Nkind
= N_Package_Instantiation
3328 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
3329 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
3330 Set_Flag18
(N
, Val
);
3331 end Set_ABE_Is_Certain
;
3333 procedure Set_Abort_Present
3334 (N
: Node_Id
; Val
: Boolean := True) is
3336 pragma Assert
(False
3337 or else NT
(N
).Nkind
= N_Requeue_Statement
);
3338 Set_Flag15
(N
, Val
);
3339 end Set_Abort_Present
;
3341 procedure Set_Abortable_Part
3342 (N
: Node_Id
; Val
: Node_Id
) is
3344 pragma Assert
(False
3345 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
3346 Set_Node2_With_Parent
(N
, Val
);
3347 end Set_Abortable_Part
;
3349 procedure Set_Abstract_Present
3350 (N
: Node_Id
; Val
: Boolean := True) is
3352 pragma Assert
(False
3353 or else NT
(N
).Nkind
= N_Derived_Type_Definition
3354 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
3355 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
3356 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
3357 or else NT
(N
).Nkind
= N_Private_Type_Declaration
3358 or else NT
(N
).Nkind
= N_Record_Definition
);
3360 end Set_Abstract_Present
;
3362 procedure Set_Accept_Handler_Records
3363 (N
: Node_Id
; Val
: List_Id
) is
3365 pragma Assert
(False
3366 or else NT
(N
).Nkind
= N_Accept_Alternative
);
3367 Set_List5
(N
, Val
); -- semantic field, no parent set
3368 end Set_Accept_Handler_Records
;
3370 procedure Set_Accept_Statement
3371 (N
: Node_Id
; Val
: Node_Id
) is
3373 pragma Assert
(False
3374 or else NT
(N
).Nkind
= N_Accept_Alternative
);
3375 Set_Node2_With_Parent
(N
, Val
);
3376 end Set_Accept_Statement
;
3378 procedure Set_Access_Definition
3379 (N
: Node_Id
; Val
: Node_Id
) is
3381 pragma Assert
(False
3382 or else NT
(N
).Nkind
= N_Component_Definition
3383 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
3384 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
3385 Set_Node3_With_Parent
(N
, Val
);
3386 end Set_Access_Definition
;
3388 procedure Set_Access_To_Subprogram_Definition
3389 (N
: Node_Id
; Val
: Node_Id
) is
3391 pragma Assert
(False
3392 or else NT
(N
).Nkind
= N_Access_Definition
);
3393 Set_Node3_With_Parent
(N
, Val
);
3394 end Set_Access_To_Subprogram_Definition
;
3396 procedure Set_Access_Types_To_Process
3397 (N
: Node_Id
; Val
: Elist_Id
) is
3399 pragma Assert
(False
3400 or else NT
(N
).Nkind
= N_Freeze_Entity
);
3401 Set_Elist2
(N
, Val
); -- semantic field, no parent set
3402 end Set_Access_Types_To_Process
;
3404 procedure Set_Actions
3405 (N
: Node_Id
; Val
: List_Id
) is
3407 pragma Assert
(False
3408 or else NT
(N
).Nkind
= N_And_Then
3409 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
3410 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
3411 or else NT
(N
).Nkind
= N_Compound_Statement
3412 or else NT
(N
).Nkind
= N_Expression_With_Actions
3413 or else NT
(N
).Nkind
= N_Freeze_Entity
3414 or else NT
(N
).Nkind
= N_Or_Else
);
3415 Set_List1_With_Parent
(N
, Val
);
3418 procedure Set_Activation_Chain_Entity
3419 (N
: Node_Id
; Val
: Node_Id
) is
3421 pragma Assert
(False
3422 or else NT
(N
).Nkind
= N_Block_Statement
3423 or else NT
(N
).Nkind
= N_Entry_Body
3424 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3425 or else NT
(N
).Nkind
= N_Package_Declaration
3426 or else NT
(N
).Nkind
= N_Subprogram_Body
3427 or else NT
(N
).Nkind
= N_Task_Body
);
3428 Set_Node3
(N
, Val
); -- semantic field, no parent set
3429 end Set_Activation_Chain_Entity
;
3431 procedure Set_Acts_As_Spec
3432 (N
: Node_Id
; Val
: Boolean := True) is
3434 pragma Assert
(False
3435 or else NT
(N
).Nkind
= N_Compilation_Unit
3436 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3438 end Set_Acts_As_Spec
;
3440 procedure Set_Actual_Designated_Subtype
3441 (N
: Node_Id
; Val
: Node_Id
) is
3443 pragma Assert
(False
3444 or else NT
(N
).Nkind
= N_Explicit_Dereference
3445 or else NT
(N
).Nkind
= N_Free_Statement
);
3447 end Set_Actual_Designated_Subtype
;
3449 procedure Set_Address_Warning_Posted
3450 (N
: Node_Id
; Val
: Boolean := True) is
3452 pragma Assert
(False
3453 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
3454 Set_Flag18
(N
, Val
);
3455 end Set_Address_Warning_Posted
;
3457 procedure Set_Aggregate_Bounds
3458 (N
: Node_Id
; Val
: Node_Id
) is
3460 pragma Assert
(False
3461 or else NT
(N
).Nkind
= N_Aggregate
);
3462 Set_Node3
(N
, Val
); -- semantic field, no parent set
3463 end Set_Aggregate_Bounds
;
3465 procedure Set_Aliased_Present
3466 (N
: Node_Id
; Val
: Boolean := True) is
3468 pragma Assert
(False
3469 or else NT
(N
).Nkind
= N_Component_Definition
3470 or else NT
(N
).Nkind
= N_Object_Declaration
3471 or else NT
(N
).Nkind
= N_Parameter_Specification
);
3473 end Set_Aliased_Present
;
3475 procedure Set_All_Others
3476 (N
: Node_Id
; Val
: Boolean := True) is
3478 pragma Assert
(False
3479 or else NT
(N
).Nkind
= N_Others_Choice
);
3480 Set_Flag11
(N
, Val
);
3483 procedure Set_All_Present
3484 (N
: Node_Id
; Val
: Boolean := True) is
3486 pragma Assert
(False
3487 or else NT
(N
).Nkind
= N_Access_Definition
3488 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3489 or else NT
(N
).Nkind
= N_Quantified_Expression
3490 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
3491 Set_Flag15
(N
, Val
);
3492 end Set_All_Present
;
3494 procedure Set_Alternatives
3495 (N
: Node_Id
; Val
: List_Id
) is
3497 pragma Assert
(False
3498 or else NT
(N
).Nkind
= N_Case_Expression
3499 or else NT
(N
).Nkind
= N_Case_Statement
3500 or else NT
(N
).Nkind
= N_In
3501 or else NT
(N
).Nkind
= N_Not_In
);
3502 Set_List4_With_Parent
(N
, Val
);
3503 end Set_Alternatives
;
3505 procedure Set_Ancestor_Part
3506 (N
: Node_Id
; Val
: Node_Id
) is
3508 pragma Assert
(False
3509 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
3510 Set_Node3_With_Parent
(N
, Val
);
3511 end Set_Ancestor_Part
;
3513 procedure Set_Atomic_Sync_Required
3514 (N
: Node_Id
; Val
: Boolean := True) is
3516 pragma Assert
(False
3517 or else NT
(N
).Nkind
= N_Expanded_Name
3518 or else NT
(N
).Nkind
= N_Explicit_Dereference
3519 or else NT
(N
).Nkind
= N_Identifier
3520 or else NT
(N
).Nkind
= N_Indexed_Component
3521 or else NT
(N
).Nkind
= N_Selected_Component
);
3522 Set_Flag14
(N
, Val
);
3523 end Set_Atomic_Sync_Required
;
3525 procedure Set_Array_Aggregate
3526 (N
: Node_Id
; Val
: Node_Id
) is
3528 pragma Assert
(False
3529 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
);
3530 Set_Node3_With_Parent
(N
, Val
);
3531 end Set_Array_Aggregate
;
3533 procedure Set_Aspect_Rep_Item
3534 (N
: Node_Id
; Val
: Node_Id
) is
3536 pragma Assert
(False
3537 or else NT
(N
).Nkind
= N_Aspect_Specification
);
3539 end Set_Aspect_Rep_Item
;
3541 procedure Set_Assignment_OK
3542 (N
: Node_Id
; Val
: Boolean := True) is
3544 pragma Assert
(False
3545 or else NT
(N
).Nkind
= N_Object_Declaration
3546 or else NT
(N
).Nkind
in N_Subexpr
);
3547 Set_Flag15
(N
, Val
);
3548 end Set_Assignment_OK
;
3550 procedure Set_Associated_Node
3551 (N
: Node_Id
; Val
: Node_Id
) is
3553 pragma Assert
(False
3554 or else NT
(N
).Nkind
in N_Has_Entity
3555 or else NT
(N
).Nkind
= N_Aggregate
3556 or else NT
(N
).Nkind
= N_Extension_Aggregate
3557 or else NT
(N
).Nkind
= N_Selected_Component
);
3558 Set_Node4
(N
, Val
); -- semantic field, no parent set
3559 end Set_Associated_Node
;
3561 procedure Set_At_End_Proc
3562 (N
: Node_Id
; Val
: Node_Id
) is
3564 pragma Assert
(False
3565 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
3567 end Set_At_End_Proc
;
3569 procedure Set_Attribute_Name
3570 (N
: Node_Id
; Val
: Name_Id
) is
3572 pragma Assert
(False
3573 or else NT
(N
).Nkind
= N_Attribute_Reference
);
3575 end Set_Attribute_Name
;
3577 procedure Set_Aux_Decls_Node
3578 (N
: Node_Id
; Val
: Node_Id
) is
3580 pragma Assert
(False
3581 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3582 Set_Node5_With_Parent
(N
, Val
);
3583 end Set_Aux_Decls_Node
;
3585 procedure Set_Backwards_OK
3586 (N
: Node_Id
; Val
: Boolean := True) is
3588 pragma Assert
(False
3589 or else NT
(N
).Nkind
= N_Assignment_Statement
);
3591 end Set_Backwards_OK
;
3593 procedure Set_Bad_Is_Detected
3594 (N
: Node_Id
; Val
: Boolean := True) is
3596 pragma Assert
(False
3597 or else NT
(N
).Nkind
= N_Subprogram_Body
);
3598 Set_Flag15
(N
, Val
);
3599 end Set_Bad_Is_Detected
;
3601 procedure Set_Body_Required
3602 (N
: Node_Id
; Val
: Boolean := True) is
3604 pragma Assert
(False
3605 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3606 Set_Flag13
(N
, Val
);
3607 end Set_Body_Required
;
3609 procedure Set_Body_To_Inline
3610 (N
: Node_Id
; Val
: Node_Id
) is
3612 pragma Assert
(False
3613 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
3615 end Set_Body_To_Inline
;
3617 procedure Set_Box_Present
3618 (N
: Node_Id
; Val
: Boolean := True) is
3620 pragma Assert
(False
3621 or else NT
(N
).Nkind
= N_Component_Association
3622 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
3623 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
3624 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
3625 or else NT
(N
).Nkind
= N_Generic_Association
);
3626 Set_Flag15
(N
, Val
);
3627 end Set_Box_Present
;
3629 procedure Set_By_Ref
3630 (N
: Node_Id
; Val
: Boolean := True) is
3632 pragma Assert
(False
3633 or else NT
(N
).Nkind
= N_Extended_Return_Statement
3634 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3638 procedure Set_Char_Literal_Value
3639 (N
: Node_Id
; Val
: Uint
) is
3641 pragma Assert
(False
3642 or else NT
(N
).Nkind
= N_Character_Literal
);
3644 end Set_Char_Literal_Value
;
3647 (N
: Node_Id
; Val
: Name_Id
) is
3649 pragma Assert
(False
3650 or else NT
(N
).Nkind
in N_Has_Chars
);
3654 procedure Set_Check_Address_Alignment
3655 (N
: Node_Id
; Val
: Boolean := True) is
3657 pragma Assert
(False
3658 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
3659 Set_Flag11
(N
, Val
);
3660 end Set_Check_Address_Alignment
;
3662 procedure Set_Choice_Parameter
3663 (N
: Node_Id
; Val
: Node_Id
) is
3665 pragma Assert
(False
3666 or else NT
(N
).Nkind
= N_Exception_Handler
);
3667 Set_Node2_With_Parent
(N
, Val
);
3668 end Set_Choice_Parameter
;
3670 procedure Set_Choices
3671 (N
: Node_Id
; Val
: List_Id
) is
3673 pragma Assert
(False
3674 or else NT
(N
).Nkind
= N_Component_Association
);
3675 Set_List1_With_Parent
(N
, Val
);
3678 procedure Set_Class_Present
3679 (N
: Node_Id
; Val
: Boolean := True) is
3681 pragma Assert
(False
3682 or else NT
(N
).Nkind
= N_Aspect_Specification
3683 or else NT
(N
).Nkind
= N_Pragma
);
3685 end Set_Class_Present
;
3687 procedure Set_Classifications
3688 (N
: Node_Id
; Val
: Node_Id
) is
3690 pragma Assert
(False
3691 or else NT
(N
).Nkind
= N_Contract
);
3692 Set_Node3
(N
, Val
); -- semantic field, no parent set
3693 end Set_Classifications
;
3695 procedure Set_Cleanup_Actions
3696 (N
: Node_Id
; Val
: List_Id
) is
3698 pragma Assert
(False
3699 or else NT
(N
).Nkind
= N_Block_Statement
);
3700 Set_List5
(N
, Val
); -- semantic field, no parent set
3701 end Set_Cleanup_Actions
;
3703 procedure Set_Comes_From_Extended_Return_Statement
3704 (N
: Node_Id
; Val
: Boolean := True) is
3706 pragma Assert
(False
3707 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
3708 Set_Flag18
(N
, Val
);
3709 end Set_Comes_From_Extended_Return_Statement
;
3711 procedure Set_Compile_Time_Known_Aggregate
3712 (N
: Node_Id
; Val
: Boolean := True) is
3714 pragma Assert
(False
3715 or else NT
(N
).Nkind
= N_Aggregate
);
3716 Set_Flag18
(N
, Val
);
3717 end Set_Compile_Time_Known_Aggregate
;
3719 procedure Set_Component_Associations
3720 (N
: Node_Id
; Val
: List_Id
) is
3722 pragma Assert
(False
3723 or else NT
(N
).Nkind
= N_Aggregate
3724 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
3725 Set_List2_With_Parent
(N
, Val
);
3726 end Set_Component_Associations
;
3728 procedure Set_Component_Clauses
3729 (N
: Node_Id
; Val
: List_Id
) is
3731 pragma Assert
(False
3732 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
3733 Set_List3_With_Parent
(N
, Val
);
3734 end Set_Component_Clauses
;
3736 procedure Set_Component_Definition
3737 (N
: Node_Id
; Val
: Node_Id
) is
3739 pragma Assert
(False
3740 or else NT
(N
).Nkind
= N_Component_Declaration
3741 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
3742 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
);
3743 Set_Node4_With_Parent
(N
, Val
);
3744 end Set_Component_Definition
;
3746 procedure Set_Component_Items
3747 (N
: Node_Id
; Val
: List_Id
) is
3749 pragma Assert
(False
3750 or else NT
(N
).Nkind
= N_Component_List
);
3751 Set_List3_With_Parent
(N
, Val
);
3752 end Set_Component_Items
;
3754 procedure Set_Component_List
3755 (N
: Node_Id
; Val
: Node_Id
) is
3757 pragma Assert
(False
3758 or else NT
(N
).Nkind
= N_Record_Definition
3759 or else NT
(N
).Nkind
= N_Variant
);
3760 Set_Node1_With_Parent
(N
, Val
);
3761 end Set_Component_List
;
3763 procedure Set_Component_Name
3764 (N
: Node_Id
; Val
: Node_Id
) is
3766 pragma Assert
(False
3767 or else NT
(N
).Nkind
= N_Component_Clause
);
3768 Set_Node1_With_Parent
(N
, Val
);
3769 end Set_Component_Name
;
3771 procedure Set_Componentwise_Assignment
3772 (N
: Node_Id
; Val
: Boolean := True) is
3774 pragma Assert
(False
3775 or else NT
(N
).Nkind
= N_Assignment_Statement
);
3776 Set_Flag14
(N
, Val
);
3777 end Set_Componentwise_Assignment
;
3779 procedure Set_Condition
3780 (N
: Node_Id
; Val
: Node_Id
) is
3782 pragma Assert
(False
3783 or else NT
(N
).Nkind
= N_Accept_Alternative
3784 or else NT
(N
).Nkind
= N_Delay_Alternative
3785 or else NT
(N
).Nkind
= N_Elsif_Part
3786 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
3787 or else NT
(N
).Nkind
= N_Exit_Statement
3788 or else NT
(N
).Nkind
= N_If_Statement
3789 or else NT
(N
).Nkind
= N_Iteration_Scheme
3790 or else NT
(N
).Nkind
= N_Quantified_Expression
3791 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
3792 or else NT
(N
).Nkind
= N_Raise_Program_Error
3793 or else NT
(N
).Nkind
= N_Raise_Storage_Error
3794 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
3795 Set_Node1_With_Parent
(N
, Val
);
3798 procedure Set_Condition_Actions
3799 (N
: Node_Id
; Val
: List_Id
) is
3801 pragma Assert
(False
3802 or else NT
(N
).Nkind
= N_Elsif_Part
3803 or else NT
(N
).Nkind
= N_Iteration_Scheme
);
3804 Set_List3
(N
, Val
); -- semantic field, no parent set
3805 end Set_Condition_Actions
;
3807 procedure Set_Config_Pragmas
3808 (N
: Node_Id
; Val
: List_Id
) is
3810 pragma Assert
(False
3811 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
3812 Set_List4_With_Parent
(N
, Val
);
3813 end Set_Config_Pragmas
;
3815 procedure Set_Constant_Present
3816 (N
: Node_Id
; Val
: Boolean := True) is
3818 pragma Assert
(False
3819 or else NT
(N
).Nkind
= N_Access_Definition
3820 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
3821 or else NT
(N
).Nkind
= N_Object_Declaration
);
3822 Set_Flag17
(N
, Val
);
3823 end Set_Constant_Present
;
3825 procedure Set_Constraint
3826 (N
: Node_Id
; Val
: Node_Id
) is
3828 pragma Assert
(False
3829 or else NT
(N
).Nkind
= N_Subtype_Indication
);
3830 Set_Node3_With_Parent
(N
, Val
);
3833 procedure Set_Constraints
3834 (N
: Node_Id
; Val
: List_Id
) is
3836 pragma Assert
(False
3837 or else NT
(N
).Nkind
= N_Index_Or_Discriminant_Constraint
);
3838 Set_List1_With_Parent
(N
, Val
);
3839 end Set_Constraints
;
3841 procedure Set_Context_Installed
3842 (N
: Node_Id
; Val
: Boolean := True) is
3844 pragma Assert
(False
3845 or else NT
(N
).Nkind
= N_With_Clause
);
3846 Set_Flag13
(N
, Val
);
3847 end Set_Context_Installed
;
3849 procedure Set_Context_Items
3850 (N
: Node_Id
; Val
: List_Id
) is
3852 pragma Assert
(False
3853 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3854 Set_List1_With_Parent
(N
, Val
);
3855 end Set_Context_Items
;
3857 procedure Set_Context_Pending
3858 (N
: Node_Id
; Val
: Boolean := True) is
3860 pragma Assert
(False
3861 or else NT
(N
).Nkind
= N_Compilation_Unit
);
3862 Set_Flag16
(N
, Val
);
3863 end Set_Context_Pending
;
3865 procedure Set_Contract_Test_Cases
3866 (N
: Node_Id
; Val
: Node_Id
) is
3868 pragma Assert
(False
3869 or else NT
(N
).Nkind
= N_Contract
);
3870 Set_Node2
(N
, Val
); -- semantic field, no parent set
3871 end Set_Contract_Test_Cases
;
3873 procedure Set_Controlling_Argument
3874 (N
: Node_Id
; Val
: Node_Id
) is
3876 pragma Assert
(False
3877 or else NT
(N
).Nkind
= N_Function_Call
3878 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
3879 Set_Node1
(N
, Val
); -- semantic field, no parent set
3880 end Set_Controlling_Argument
;
3882 procedure Set_Conversion_OK
3883 (N
: Node_Id
; Val
: Boolean := True) is
3885 pragma Assert
(False
3886 or else NT
(N
).Nkind
= N_Type_Conversion
);
3887 Set_Flag14
(N
, Val
);
3888 end Set_Conversion_OK
;
3890 procedure Set_Convert_To_Return_False
3891 (N
: Node_Id
; Val
: Boolean := True) is
3893 pragma Assert
(False
3894 or else NT
(N
).Nkind
= N_Raise_Expression
);
3895 Set_Flag13
(N
, Val
);
3896 end Set_Convert_To_Return_False
;
3898 procedure Set_Corresponding_Aspect
3899 (N
: Node_Id
; Val
: Node_Id
) is
3901 pragma Assert
(False
3902 or else NT
(N
).Nkind
= N_Pragma
);
3904 end Set_Corresponding_Aspect
;
3906 procedure Set_Corresponding_Body
3907 (N
: Node_Id
; Val
: Node_Id
) is
3909 pragma Assert
(False
3910 or else NT
(N
).Nkind
= N_Entry_Declaration
3911 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
3912 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
3913 or else NT
(N
).Nkind
= N_Package_Body_Stub
3914 or else NT
(N
).Nkind
= N_Package_Declaration
3915 or else NT
(N
).Nkind
= N_Protected_Body_Stub
3916 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
3917 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
3918 or else NT
(N
).Nkind
= N_Subprogram_Declaration
3919 or else NT
(N
).Nkind
= N_Task_Body_Stub
3920 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
3921 Set_Node5
(N
, Val
); -- semantic field, no parent set
3922 end Set_Corresponding_Body
;
3924 procedure Set_Corresponding_Formal_Spec
3925 (N
: Node_Id
; Val
: Node_Id
) is
3927 pragma Assert
(False
3928 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
3929 Set_Node3
(N
, Val
); -- semantic field, no parent set
3930 end Set_Corresponding_Formal_Spec
;
3932 procedure Set_Corresponding_Generic_Association
3933 (N
: Node_Id
; Val
: Node_Id
) is
3935 pragma Assert
(False
3936 or else NT
(N
).Nkind
= N_Object_Declaration
3937 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
);
3938 Set_Node5
(N
, Val
); -- semantic field, no parent set
3939 end Set_Corresponding_Generic_Association
;
3941 procedure Set_Corresponding_Integer_Value
3942 (N
: Node_Id
; Val
: Uint
) is
3944 pragma Assert
(False
3945 or else NT
(N
).Nkind
= N_Real_Literal
);
3946 Set_Uint4
(N
, Val
); -- semantic field, no parent set
3947 end Set_Corresponding_Integer_Value
;
3949 procedure Set_Corresponding_Spec
3950 (N
: Node_Id
; Val
: Node_Id
) is
3952 pragma Assert
(False
3953 or else NT
(N
).Nkind
= N_Expression_Function
3954 or else NT
(N
).Nkind
= N_Package_Body
3955 or else NT
(N
).Nkind
= N_Protected_Body
3956 or else NT
(N
).Nkind
= N_Subprogram_Body
3957 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
3958 or else NT
(N
).Nkind
= N_Task_Body
3959 or else NT
(N
).Nkind
= N_With_Clause
);
3960 Set_Node5
(N
, Val
); -- semantic field, no parent set
3961 end Set_Corresponding_Spec
;
3963 procedure Set_Corresponding_Spec_Of_Stub
3964 (N
: Node_Id
; Val
: Entity_Id
) is
3966 pragma Assert
(False
3967 or else NT
(N
).Nkind
= N_Package_Body_Stub
3968 or else NT
(N
).Nkind
= N_Protected_Body_Stub
3969 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
3970 or else NT
(N
).Nkind
= N_Task_Body_Stub
);
3971 Set_Node2
(N
, Val
); -- semantic field, no parent set
3972 end Set_Corresponding_Spec_Of_Stub
;
3974 procedure Set_Corresponding_Stub
3975 (N
: Node_Id
; Val
: Node_Id
) is
3977 pragma Assert
(False
3978 or else NT
(N
).Nkind
= N_Subunit
);
3980 end Set_Corresponding_Stub
;
3982 procedure Set_Dcheck_Function
3983 (N
: Node_Id
; Val
: Entity_Id
) is
3985 pragma Assert
(False
3986 or else NT
(N
).Nkind
= N_Variant
);
3987 Set_Node5
(N
, Val
); -- semantic field, no parent set
3988 end Set_Dcheck_Function
;
3990 procedure Set_Declarations
3991 (N
: Node_Id
; Val
: List_Id
) is
3993 pragma Assert
(False
3994 or else NT
(N
).Nkind
= N_Accept_Statement
3995 or else NT
(N
).Nkind
= N_Block_Statement
3996 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
3997 or else NT
(N
).Nkind
= N_Entry_Body
3998 or else NT
(N
).Nkind
= N_Package_Body
3999 or else NT
(N
).Nkind
= N_Protected_Body
4000 or else NT
(N
).Nkind
= N_Subprogram_Body
4001 or else NT
(N
).Nkind
= N_Task_Body
);
4002 Set_List2_With_Parent
(N
, Val
);
4003 end Set_Declarations
;
4005 procedure Set_Default_Expression
4006 (N
: Node_Id
; Val
: Node_Id
) is
4008 pragma Assert
(False
4009 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4010 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4011 Set_Node5
(N
, Val
); -- semantic field, no parent set
4012 end Set_Default_Expression
;
4014 procedure Set_Default_Storage_Pool
4015 (N
: Node_Id
; Val
: Node_Id
) is
4017 pragma Assert
(False
4018 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
);
4019 Set_Node3
(N
, Val
); -- semantic field, no parent set
4020 end Set_Default_Storage_Pool
;
4022 procedure Set_Default_Name
4023 (N
: Node_Id
; Val
: Node_Id
) is
4025 pragma Assert
(False
4026 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
4027 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
);
4028 Set_Node2_With_Parent
(N
, Val
);
4029 end Set_Default_Name
;
4031 procedure Set_Defining_Identifier
4032 (N
: Node_Id
; Val
: Entity_Id
) is
4034 pragma Assert
(False
4035 or else NT
(N
).Nkind
= N_Component_Declaration
4036 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
4037 or else NT
(N
).Nkind
= N_Discriminant_Specification
4038 or else NT
(N
).Nkind
= N_Entry_Body
4039 or else NT
(N
).Nkind
= N_Entry_Declaration
4040 or else NT
(N
).Nkind
= N_Entry_Index_Specification
4041 or else NT
(N
).Nkind
= N_Exception_Declaration
4042 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
4043 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4044 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
4045 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
4046 or else NT
(N
).Nkind
= N_Full_Type_Declaration
4047 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
4048 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
4049 or else NT
(N
).Nkind
= N_Iterator_Specification
4050 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
4051 or else NT
(N
).Nkind
= N_Number_Declaration
4052 or else NT
(N
).Nkind
= N_Object_Declaration
4053 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
4054 or else NT
(N
).Nkind
= N_Package_Body_Stub
4055 or else NT
(N
).Nkind
= N_Parameter_Specification
4056 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4057 or else NT
(N
).Nkind
= N_Private_Type_Declaration
4058 or else NT
(N
).Nkind
= N_Protected_Body
4059 or else NT
(N
).Nkind
= N_Protected_Body_Stub
4060 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4061 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
4062 or else NT
(N
).Nkind
= N_Single_Task_Declaration
4063 or else NT
(N
).Nkind
= N_Subtype_Declaration
4064 or else NT
(N
).Nkind
= N_Task_Body
4065 or else NT
(N
).Nkind
= N_Task_Body_Stub
4066 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4067 Set_Node1_With_Parent
(N
, Val
);
4068 end Set_Defining_Identifier
;
4070 procedure Set_Defining_Unit_Name
4071 (N
: Node_Id
; Val
: Node_Id
) is
4073 pragma Assert
(False
4074 or else NT
(N
).Nkind
= N_Function_Instantiation
4075 or else NT
(N
).Nkind
= N_Function_Specification
4076 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
4077 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
4078 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
4079 or else NT
(N
).Nkind
= N_Package_Body
4080 or else NT
(N
).Nkind
= N_Package_Instantiation
4081 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
4082 or else NT
(N
).Nkind
= N_Package_Specification
4083 or else NT
(N
).Nkind
= N_Procedure_Instantiation
4084 or else NT
(N
).Nkind
= N_Procedure_Specification
);
4085 Set_Node1_With_Parent
(N
, Val
);
4086 end Set_Defining_Unit_Name
;
4088 procedure Set_Delay_Alternative
4089 (N
: Node_Id
; Val
: Node_Id
) is
4091 pragma Assert
(False
4092 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
4093 Set_Node4_With_Parent
(N
, Val
);
4094 end Set_Delay_Alternative
;
4096 procedure Set_Delay_Statement
4097 (N
: Node_Id
; Val
: Node_Id
) is
4099 pragma Assert
(False
4100 or else NT
(N
).Nkind
= N_Delay_Alternative
);
4101 Set_Node2_With_Parent
(N
, Val
);
4102 end Set_Delay_Statement
;
4104 procedure Set_Delta_Expression
4105 (N
: Node_Id
; Val
: Node_Id
) is
4107 pragma Assert
(False
4108 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
4109 or else NT
(N
).Nkind
= N_Delta_Constraint
4110 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
4111 Set_Node3_With_Parent
(N
, Val
);
4112 end Set_Delta_Expression
;
4114 procedure Set_Digits_Expression
4115 (N
: Node_Id
; Val
: Node_Id
) is
4117 pragma Assert
(False
4118 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
4119 or else NT
(N
).Nkind
= N_Digits_Constraint
4120 or else NT
(N
).Nkind
= N_Floating_Point_Definition
);
4121 Set_Node2_With_Parent
(N
, Val
);
4122 end Set_Digits_Expression
;
4124 procedure Set_Discr_Check_Funcs_Built
4125 (N
: Node_Id
; Val
: Boolean := True) is
4127 pragma Assert
(False
4128 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
4129 Set_Flag11
(N
, Val
);
4130 end Set_Discr_Check_Funcs_Built
;
4132 procedure Set_Discrete_Choices
4133 (N
: Node_Id
; Val
: List_Id
) is
4135 pragma Assert
(False
4136 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4137 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
4138 or else NT
(N
).Nkind
= N_Variant
);
4139 Set_List4_With_Parent
(N
, Val
);
4140 end Set_Discrete_Choices
;
4142 procedure Set_Discrete_Range
4143 (N
: Node_Id
; Val
: Node_Id
) is
4145 pragma Assert
(False
4146 or else NT
(N
).Nkind
= N_Slice
);
4147 Set_Node4_With_Parent
(N
, Val
);
4148 end Set_Discrete_Range
;
4150 procedure Set_Discrete_Subtype_Definition
4151 (N
: Node_Id
; Val
: Node_Id
) is
4153 pragma Assert
(False
4154 or else NT
(N
).Nkind
= N_Entry_Declaration
4155 or else NT
(N
).Nkind
= N_Entry_Index_Specification
4156 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
4157 Set_Node4_With_Parent
(N
, Val
);
4158 end Set_Discrete_Subtype_Definition
;
4160 procedure Set_Discrete_Subtype_Definitions
4161 (N
: Node_Id
; Val
: List_Id
) is
4163 pragma Assert
(False
4164 or else NT
(N
).Nkind
= N_Constrained_Array_Definition
);
4165 Set_List2_With_Parent
(N
, Val
);
4166 end Set_Discrete_Subtype_Definitions
;
4168 procedure Set_Discriminant_Specifications
4169 (N
: Node_Id
; Val
: List_Id
) is
4171 pragma Assert
(False
4172 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
4173 or else NT
(N
).Nkind
= N_Full_Type_Declaration
4174 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
4175 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4176 or else NT
(N
).Nkind
= N_Private_Type_Declaration
4177 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4178 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4179 Set_List4_With_Parent
(N
, Val
);
4180 end Set_Discriminant_Specifications
;
4182 procedure Set_Discriminant_Type
4183 (N
: Node_Id
; Val
: Node_Id
) is
4185 pragma Assert
(False
4186 or else NT
(N
).Nkind
= N_Discriminant_Specification
);
4187 Set_Node5_With_Parent
(N
, Val
);
4188 end Set_Discriminant_Type
;
4190 procedure Set_Do_Accessibility_Check
4191 (N
: Node_Id
; Val
: Boolean := True) is
4193 pragma Assert
(False
4194 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4195 Set_Flag13
(N
, Val
);
4196 end Set_Do_Accessibility_Check
;
4198 procedure Set_Do_Discriminant_Check
4199 (N
: Node_Id
; Val
: Boolean := True) is
4201 pragma Assert
(False
4202 or else NT
(N
).Nkind
= N_Assignment_Statement
4203 or else NT
(N
).Nkind
= N_Selected_Component
4204 or else NT
(N
).Nkind
= N_Type_Conversion
);
4206 end Set_Do_Discriminant_Check
;
4208 procedure Set_Do_Division_Check
4209 (N
: Node_Id
; Val
: Boolean := True) is
4211 pragma Assert
(False
4212 or else NT
(N
).Nkind
= N_Op_Divide
4213 or else NT
(N
).Nkind
= N_Op_Mod
4214 or else NT
(N
).Nkind
= N_Op_Rem
);
4215 Set_Flag13
(N
, Val
);
4216 end Set_Do_Division_Check
;
4218 procedure Set_Do_Length_Check
4219 (N
: Node_Id
; Val
: Boolean := True) is
4221 pragma Assert
(False
4222 or else NT
(N
).Nkind
= N_Assignment_Statement
4223 or else NT
(N
).Nkind
= N_Op_And
4224 or else NT
(N
).Nkind
= N_Op_Or
4225 or else NT
(N
).Nkind
= N_Op_Xor
4226 or else NT
(N
).Nkind
= N_Type_Conversion
);
4228 end Set_Do_Length_Check
;
4230 procedure Set_Do_Overflow_Check
4231 (N
: Node_Id
; Val
: Boolean := True) is
4233 pragma Assert
(False
4234 or else NT
(N
).Nkind
in N_Op
4235 or else NT
(N
).Nkind
= N_Attribute_Reference
4236 or else NT
(N
).Nkind
= N_Case_Expression
4237 or else NT
(N
).Nkind
= N_If_Expression
4238 or else NT
(N
).Nkind
= N_Type_Conversion
);
4239 Set_Flag17
(N
, Val
);
4240 end Set_Do_Overflow_Check
;
4242 procedure Set_Do_Range_Check
4243 (N
: Node_Id
; Val
: Boolean := True) is
4245 pragma Assert
(False
4246 or else NT
(N
).Nkind
in N_Subexpr
);
4248 end Set_Do_Range_Check
;
4250 procedure Set_Do_Storage_Check
4251 (N
: Node_Id
; Val
: Boolean := True) is
4253 pragma Assert
(False
4254 or else NT
(N
).Nkind
= N_Allocator
4255 or else NT
(N
).Nkind
= N_Subprogram_Body
);
4256 Set_Flag17
(N
, Val
);
4257 end Set_Do_Storage_Check
;
4259 procedure Set_Do_Tag_Check
4260 (N
: Node_Id
; Val
: Boolean := True) is
4262 pragma Assert
(False
4263 or else NT
(N
).Nkind
= N_Assignment_Statement
4264 or else NT
(N
).Nkind
= N_Extended_Return_Statement
4265 or else NT
(N
).Nkind
= N_Function_Call
4266 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
4267 or else NT
(N
).Nkind
= N_Simple_Return_Statement
4268 or else NT
(N
).Nkind
= N_Type_Conversion
);
4269 Set_Flag13
(N
, Val
);
4270 end Set_Do_Tag_Check
;
4272 procedure Set_Elaborate_All_Desirable
4273 (N
: Node_Id
; Val
: Boolean := True) is
4275 pragma Assert
(False
4276 or else NT
(N
).Nkind
= N_With_Clause
);
4278 end Set_Elaborate_All_Desirable
;
4280 procedure Set_Elaborate_All_Present
4281 (N
: Node_Id
; Val
: Boolean := True) is
4283 pragma Assert
(False
4284 or else NT
(N
).Nkind
= N_With_Clause
);
4285 Set_Flag14
(N
, Val
);
4286 end Set_Elaborate_All_Present
;
4288 procedure Set_Elaborate_Desirable
4289 (N
: Node_Id
; Val
: Boolean := True) is
4291 pragma Assert
(False
4292 or else NT
(N
).Nkind
= N_With_Clause
);
4293 Set_Flag11
(N
, Val
);
4294 end Set_Elaborate_Desirable
;
4296 procedure Set_Elaborate_Present
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_Present
;
4304 procedure Set_Else_Actions
4305 (N
: Node_Id
; Val
: List_Id
) is
4307 pragma Assert
(False
4308 or else NT
(N
).Nkind
= N_If_Expression
);
4309 Set_List3_With_Parent
(N
, Val
); -- semantic field, but needs parents
4310 end Set_Else_Actions
;
4312 procedure Set_Else_Statements
4313 (N
: Node_Id
; Val
: List_Id
) is
4315 pragma Assert
(False
4316 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
4317 or else NT
(N
).Nkind
= N_If_Statement
4318 or else NT
(N
).Nkind
= N_Selective_Accept
);
4319 Set_List4_With_Parent
(N
, Val
);
4320 end Set_Else_Statements
;
4322 procedure Set_Elsif_Parts
4323 (N
: Node_Id
; Val
: List_Id
) is
4325 pragma Assert
(False
4326 or else NT
(N
).Nkind
= N_If_Statement
);
4327 Set_List3_With_Parent
(N
, Val
);
4328 end Set_Elsif_Parts
;
4330 procedure Set_Enclosing_Variant
4331 (N
: Node_Id
; Val
: Node_Id
) is
4333 pragma Assert
(False
4334 or else NT
(N
).Nkind
= N_Variant
);
4335 Set_Node2
(N
, Val
); -- semantic field, no parent set
4336 end Set_Enclosing_Variant
;
4338 procedure Set_End_Label
4339 (N
: Node_Id
; Val
: Node_Id
) is
4341 pragma Assert
(False
4342 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
4343 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
4344 or else NT
(N
).Nkind
= N_Loop_Statement
4345 or else NT
(N
).Nkind
= N_Package_Specification
4346 or else NT
(N
).Nkind
= N_Protected_Body
4347 or else NT
(N
).Nkind
= N_Protected_Definition
4348 or else NT
(N
).Nkind
= N_Record_Definition
4349 or else NT
(N
).Nkind
= N_Task_Definition
);
4350 Set_Node4_With_Parent
(N
, Val
);
4353 procedure Set_End_Span
4354 (N
: Node_Id
; Val
: Uint
) is
4356 pragma Assert
(False
4357 or else NT
(N
).Nkind
= N_Case_Statement
4358 or else NT
(N
).Nkind
= N_If_Statement
);
4362 procedure Set_Entity
4363 (N
: Node_Id
; Val
: Node_Id
) is
4365 pragma Assert
(False
4366 or else NT
(N
).Nkind
in N_Has_Entity
4367 or else NT
(N
).Nkind
= N_Aspect_Specification
4368 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4369 or else NT
(N
).Nkind
= N_Freeze_Entity
4370 or else NT
(N
).Nkind
= N_Freeze_Generic_Entity
);
4371 Set_Node4
(N
, Val
); -- semantic field, no parent set
4374 procedure Set_Entry_Body_Formal_Part
4375 (N
: Node_Id
; Val
: Node_Id
) is
4377 pragma Assert
(False
4378 or else NT
(N
).Nkind
= N_Entry_Body
);
4379 Set_Node5_With_Parent
(N
, Val
);
4380 end Set_Entry_Body_Formal_Part
;
4382 procedure Set_Entry_Call_Alternative
4383 (N
: Node_Id
; Val
: Node_Id
) is
4385 pragma Assert
(False
4386 or else NT
(N
).Nkind
= N_Conditional_Entry_Call
4387 or else NT
(N
).Nkind
= N_Timed_Entry_Call
);
4388 Set_Node1_With_Parent
(N
, Val
);
4389 end Set_Entry_Call_Alternative
;
4391 procedure Set_Entry_Call_Statement
4392 (N
: Node_Id
; Val
: Node_Id
) is
4394 pragma Assert
(False
4395 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
);
4396 Set_Node1_With_Parent
(N
, Val
);
4397 end Set_Entry_Call_Statement
;
4399 procedure Set_Entry_Direct_Name
4400 (N
: Node_Id
; Val
: Node_Id
) is
4402 pragma Assert
(False
4403 or else NT
(N
).Nkind
= N_Accept_Statement
);
4404 Set_Node1_With_Parent
(N
, Val
);
4405 end Set_Entry_Direct_Name
;
4407 procedure Set_Entry_Index
4408 (N
: Node_Id
; Val
: Node_Id
) is
4410 pragma Assert
(False
4411 or else NT
(N
).Nkind
= N_Accept_Statement
);
4412 Set_Node5_With_Parent
(N
, Val
);
4413 end Set_Entry_Index
;
4415 procedure Set_Entry_Index_Specification
4416 (N
: Node_Id
; Val
: Node_Id
) is
4418 pragma Assert
(False
4419 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
);
4420 Set_Node4_With_Parent
(N
, Val
);
4421 end Set_Entry_Index_Specification
;
4424 (N
: Node_Id
; Val
: Node_Id
) is
4426 pragma Assert
(False
4427 or else NT
(N
).Nkind
in N_Has_Etype
);
4428 Set_Node5
(N
, Val
); -- semantic field, no parent set
4431 procedure Set_Exception_Choices
4432 (N
: Node_Id
; Val
: List_Id
) is
4434 pragma Assert
(False
4435 or else NT
(N
).Nkind
= N_Exception_Handler
);
4436 Set_List4_With_Parent
(N
, Val
);
4437 end Set_Exception_Choices
;
4439 procedure Set_Exception_Handlers
4440 (N
: Node_Id
; Val
: List_Id
) is
4442 pragma Assert
(False
4443 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
4444 Set_List5_With_Parent
(N
, Val
);
4445 end Set_Exception_Handlers
;
4447 procedure Set_Exception_Junk
4448 (N
: Node_Id
; Val
: Boolean := True) is
4450 pragma Assert
(False
4451 or else NT
(N
).Nkind
= N_Block_Statement
4452 or else NT
(N
).Nkind
= N_Goto_Statement
4453 or else NT
(N
).Nkind
= N_Label
4454 or else NT
(N
).Nkind
= N_Object_Declaration
4455 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
4457 end Set_Exception_Junk
;
4459 procedure Set_Exception_Label
4460 (N
: Node_Id
; Val
: Node_Id
) is
4462 pragma Assert
(False
4463 or else NT
(N
).Nkind
= N_Exception_Handler
4464 or else NT
(N
).Nkind
= N_Push_Constraint_Error_Label
4465 or else NT
(N
).Nkind
= N_Push_Program_Error_Label
4466 or else NT
(N
).Nkind
= N_Push_Storage_Error_Label
);
4467 Set_Node5
(N
, Val
); -- semantic field, no parent set
4468 end Set_Exception_Label
;
4470 procedure Set_Expansion_Delayed
4471 (N
: Node_Id
; Val
: Boolean := True) is
4473 pragma Assert
(False
4474 or else NT
(N
).Nkind
= N_Aggregate
4475 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
4476 Set_Flag11
(N
, Val
);
4477 end Set_Expansion_Delayed
;
4479 procedure Set_Explicit_Actual_Parameter
4480 (N
: Node_Id
; Val
: Node_Id
) is
4482 pragma Assert
(False
4483 or else NT
(N
).Nkind
= N_Parameter_Association
);
4484 Set_Node3_With_Parent
(N
, Val
);
4485 end Set_Explicit_Actual_Parameter
;
4487 procedure Set_Explicit_Generic_Actual_Parameter
4488 (N
: Node_Id
; Val
: Node_Id
) is
4490 pragma Assert
(False
4491 or else NT
(N
).Nkind
= N_Generic_Association
);
4492 Set_Node1_With_Parent
(N
, Val
);
4493 end Set_Explicit_Generic_Actual_Parameter
;
4495 procedure Set_Expression
4496 (N
: Node_Id
; Val
: Node_Id
) is
4498 pragma Assert
(False
4499 or else NT
(N
).Nkind
= N_Allocator
4500 or else NT
(N
).Nkind
= N_Aspect_Specification
4501 or else NT
(N
).Nkind
= N_Assignment_Statement
4502 or else NT
(N
).Nkind
= N_At_Clause
4503 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4504 or else NT
(N
).Nkind
= N_Case_Expression
4505 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4506 or else NT
(N
).Nkind
= N_Case_Statement
4507 or else NT
(N
).Nkind
= N_Code_Statement
4508 or else NT
(N
).Nkind
= N_Component_Association
4509 or else NT
(N
).Nkind
= N_Component_Declaration
4510 or else NT
(N
).Nkind
= N_Delay_Relative_Statement
4511 or else NT
(N
).Nkind
= N_Delay_Until_Statement
4512 or else NT
(N
).Nkind
= N_Discriminant_Association
4513 or else NT
(N
).Nkind
= N_Discriminant_Specification
4514 or else NT
(N
).Nkind
= N_Exception_Declaration
4515 or else NT
(N
).Nkind
= N_Expression_Function
4516 or else NT
(N
).Nkind
= N_Expression_With_Actions
4517 or else NT
(N
).Nkind
= N_Free_Statement
4518 or else NT
(N
).Nkind
= N_Mod_Clause
4519 or else NT
(N
).Nkind
= N_Modular_Type_Definition
4520 or else NT
(N
).Nkind
= N_Number_Declaration
4521 or else NT
(N
).Nkind
= N_Object_Declaration
4522 or else NT
(N
).Nkind
= N_Parameter_Specification
4523 or else NT
(N
).Nkind
= N_Pragma_Argument_Association
4524 or else NT
(N
).Nkind
= N_Qualified_Expression
4525 or else NT
(N
).Nkind
= N_Raise_Expression
4526 or else NT
(N
).Nkind
= N_Raise_Statement
4527 or else NT
(N
).Nkind
= N_Simple_Return_Statement
4528 or else NT
(N
).Nkind
= N_Type_Conversion
4529 or else NT
(N
).Nkind
= N_Unchecked_Expression
4530 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
4531 Set_Node3_With_Parent
(N
, Val
);
4534 procedure Set_Expressions
4535 (N
: Node_Id
; Val
: List_Id
) is
4537 pragma Assert
(False
4538 or else NT
(N
).Nkind
= N_Aggregate
4539 or else NT
(N
).Nkind
= N_Attribute_Reference
4540 or else NT
(N
).Nkind
= N_Extension_Aggregate
4541 or else NT
(N
).Nkind
= N_If_Expression
4542 or else NT
(N
).Nkind
= N_Indexed_Component
);
4543 Set_List1_With_Parent
(N
, Val
);
4544 end Set_Expressions
;
4546 procedure Set_First_Bit
4547 (N
: Node_Id
; Val
: Node_Id
) is
4549 pragma Assert
(False
4550 or else NT
(N
).Nkind
= N_Component_Clause
);
4551 Set_Node3_With_Parent
(N
, Val
);
4554 procedure Set_First_Inlined_Subprogram
4555 (N
: Node_Id
; Val
: Entity_Id
) is
4557 pragma Assert
(False
4558 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4559 Set_Node3
(N
, Val
); -- semantic field, no parent set
4560 end Set_First_Inlined_Subprogram
;
4562 procedure Set_First_Name
4563 (N
: Node_Id
; Val
: Boolean := True) is
4565 pragma Assert
(False
4566 or else NT
(N
).Nkind
= N_With_Clause
);
4570 procedure Set_First_Named_Actual
4571 (N
: Node_Id
; Val
: Node_Id
) is
4573 pragma Assert
(False
4574 or else NT
(N
).Nkind
= N_Entry_Call_Statement
4575 or else NT
(N
).Nkind
= N_Function_Call
4576 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
4577 Set_Node4
(N
, Val
); -- semantic field, no parent set
4578 end Set_First_Named_Actual
;
4580 procedure Set_First_Real_Statement
4581 (N
: Node_Id
; Val
: Node_Id
) is
4583 pragma Assert
(False
4584 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
);
4585 Set_Node2
(N
, Val
); -- semantic field, no parent set
4586 end Set_First_Real_Statement
;
4588 procedure Set_First_Subtype_Link
4589 (N
: Node_Id
; Val
: Entity_Id
) is
4591 pragma Assert
(False
4592 or else NT
(N
).Nkind
= N_Freeze_Entity
);
4593 Set_Node5
(N
, Val
); -- semantic field, no parent set
4594 end Set_First_Subtype_Link
;
4596 procedure Set_Float_Truncate
4597 (N
: Node_Id
; Val
: Boolean := True) is
4599 pragma Assert
(False
4600 or else NT
(N
).Nkind
= N_Type_Conversion
);
4601 Set_Flag11
(N
, Val
);
4602 end Set_Float_Truncate
;
4604 procedure Set_Formal_Type_Definition
4605 (N
: Node_Id
; Val
: Node_Id
) is
4607 pragma Assert
(False
4608 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
);
4609 Set_Node3_With_Parent
(N
, Val
);
4610 end Set_Formal_Type_Definition
;
4612 procedure Set_Forwards_OK
4613 (N
: Node_Id
; Val
: Boolean := True) is
4615 pragma Assert
(False
4616 or else NT
(N
).Nkind
= N_Assignment_Statement
);
4618 end Set_Forwards_OK
;
4620 procedure Set_From_Aspect_Specification
4621 (N
: Node_Id
; Val
: Boolean := True) is
4623 pragma Assert
(False
4624 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
4625 or else NT
(N
).Nkind
= N_Pragma
);
4626 Set_Flag13
(N
, Val
);
4627 end Set_From_Aspect_Specification
;
4629 procedure Set_From_At_End
4630 (N
: Node_Id
; Val
: Boolean := True) is
4632 pragma Assert
(False
4633 or else NT
(N
).Nkind
= N_Raise_Statement
);
4635 end Set_From_At_End
;
4637 procedure Set_From_At_Mod
4638 (N
: Node_Id
; Val
: Boolean := True) is
4640 pragma Assert
(False
4641 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
);
4643 end Set_From_At_Mod
;
4645 procedure Set_From_Conditional_Expression
4646 (N
: Node_Id
; Val
: Boolean := True) is
4648 pragma Assert
(False
4649 or else NT
(N
).Nkind
= N_Case_Statement
4650 or else NT
(N
).Nkind
= N_If_Statement
);
4652 end Set_From_Conditional_Expression
;
4654 procedure Set_From_Default
4655 (N
: Node_Id
; Val
: Boolean := True) is
4657 pragma Assert
(False
4658 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
4660 end Set_From_Default
;
4662 procedure Set_Generalized_Indexing
4663 (N
: Node_Id
; Val
: Node_Id
) is
4665 pragma Assert
(False
4666 or else NT
(N
).Nkind
= N_Indexed_Component
);
4668 end Set_Generalized_Indexing
;
4670 procedure Set_Generic_Associations
4671 (N
: Node_Id
; Val
: List_Id
) is
4673 pragma Assert
(False
4674 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
4675 or else NT
(N
).Nkind
= N_Function_Instantiation
4676 or else NT
(N
).Nkind
= N_Package_Instantiation
4677 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
4678 Set_List3_With_Parent
(N
, Val
);
4679 end Set_Generic_Associations
;
4681 procedure Set_Generic_Formal_Declarations
4682 (N
: Node_Id
; Val
: List_Id
) is
4684 pragma Assert
(False
4685 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
4686 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
);
4687 Set_List2_With_Parent
(N
, Val
);
4688 end Set_Generic_Formal_Declarations
;
4690 procedure Set_Generic_Parent
4691 (N
: Node_Id
; Val
: Node_Id
) is
4693 pragma Assert
(False
4694 or else NT
(N
).Nkind
= N_Function_Specification
4695 or else NT
(N
).Nkind
= N_Package_Specification
4696 or else NT
(N
).Nkind
= N_Procedure_Specification
);
4698 end Set_Generic_Parent
;
4700 procedure Set_Generic_Parent_Type
4701 (N
: Node_Id
; Val
: Node_Id
) is
4703 pragma Assert
(False
4704 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
4706 end Set_Generic_Parent_Type
;
4708 procedure Set_Handled_Statement_Sequence
4709 (N
: Node_Id
; Val
: Node_Id
) is
4711 pragma Assert
(False
4712 or else NT
(N
).Nkind
= N_Accept_Statement
4713 or else NT
(N
).Nkind
= N_Block_Statement
4714 or else NT
(N
).Nkind
= N_Entry_Body
4715 or else NT
(N
).Nkind
= N_Extended_Return_Statement
4716 or else NT
(N
).Nkind
= N_Package_Body
4717 or else NT
(N
).Nkind
= N_Subprogram_Body
4718 or else NT
(N
).Nkind
= N_Task_Body
);
4719 Set_Node4_With_Parent
(N
, Val
);
4720 end Set_Handled_Statement_Sequence
;
4722 procedure Set_Handler_List_Entry
4723 (N
: Node_Id
; Val
: Node_Id
) is
4725 pragma Assert
(False
4726 or else NT
(N
).Nkind
= N_Object_Declaration
);
4728 end Set_Handler_List_Entry
;
4730 procedure Set_Has_Created_Identifier
4731 (N
: Node_Id
; Val
: Boolean := True) is
4733 pragma Assert
(False
4734 or else NT
(N
).Nkind
= N_Block_Statement
4735 or else NT
(N
).Nkind
= N_Loop_Statement
);
4736 Set_Flag15
(N
, Val
);
4737 end Set_Has_Created_Identifier
;
4739 procedure Set_Has_Dereference_Action
4740 (N
: Node_Id
; Val
: Boolean := True) is
4742 pragma Assert
(False
4743 or else NT
(N
).Nkind
= N_Explicit_Dereference
);
4744 Set_Flag13
(N
, Val
);
4745 end Set_Has_Dereference_Action
;
4747 procedure Set_Has_Dynamic_Length_Check
4748 (N
: Node_Id
; Val
: Boolean := True) is
4750 pragma Assert
(False
4751 or else NT
(N
).Nkind
in N_Subexpr
);
4752 Set_Flag10
(N
, Val
);
4753 end Set_Has_Dynamic_Length_Check
;
4755 procedure Set_Has_Dynamic_Range_Check
4756 (N
: Node_Id
; Val
: Boolean := True) is
4758 pragma Assert
(False
4759 or else NT
(N
).Nkind
= N_Subtype_Declaration
4760 or else NT
(N
).Nkind
in N_Subexpr
);
4761 Set_Flag12
(N
, Val
);
4762 end Set_Has_Dynamic_Range_Check
;
4764 procedure Set_Has_Init_Expression
4765 (N
: Node_Id
; Val
: Boolean := True) is
4767 pragma Assert
(False
4768 or else NT
(N
).Nkind
= N_Object_Declaration
);
4769 Set_Flag14
(N
, Val
);
4770 end Set_Has_Init_Expression
;
4772 procedure Set_Has_Local_Raise
4773 (N
: Node_Id
; Val
: Boolean := True) is
4775 pragma Assert
(False
4776 or else NT
(N
).Nkind
= N_Exception_Handler
);
4778 end Set_Has_Local_Raise
;
4780 procedure Set_Has_No_Elaboration_Code
4781 (N
: Node_Id
; Val
: Boolean := True) is
4783 pragma Assert
(False
4784 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4785 Set_Flag17
(N
, Val
);
4786 end Set_Has_No_Elaboration_Code
;
4788 procedure Set_Has_Pragma_Suppress_All
4789 (N
: Node_Id
; Val
: Boolean := True) is
4791 pragma Assert
(False
4792 or else NT
(N
).Nkind
= N_Compilation_Unit
);
4793 Set_Flag14
(N
, Val
);
4794 end Set_Has_Pragma_Suppress_All
;
4796 procedure Set_Has_Private_View
4797 (N
: Node_Id
; Val
: Boolean := True) is
4799 pragma Assert
(False
4800 or else NT
(N
).Nkind
in N_Op
4801 or else NT
(N
).Nkind
= N_Character_Literal
4802 or else NT
(N
).Nkind
= N_Expanded_Name
4803 or else NT
(N
).Nkind
= N_Identifier
4804 or else NT
(N
).Nkind
= N_Operator_Symbol
);
4805 Set_Flag11
(N
, Val
);
4806 end Set_Has_Private_View
;
4808 procedure Set_Has_Relative_Deadline_Pragma
4809 (N
: Node_Id
; Val
: Boolean := True) is
4811 pragma Assert
(False
4812 or else NT
(N
).Nkind
= N_Subprogram_Body
4813 or else NT
(N
).Nkind
= N_Task_Definition
);
4815 end Set_Has_Relative_Deadline_Pragma
;
4817 procedure Set_Has_Self_Reference
4818 (N
: Node_Id
; Val
: Boolean := True) is
4820 pragma Assert
(False
4821 or else NT
(N
).Nkind
= N_Aggregate
4822 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
4823 Set_Flag13
(N
, Val
);
4824 end Set_Has_Self_Reference
;
4826 procedure Set_Has_SP_Choice
4827 (N
: Node_Id
; Val
: Boolean := True) is
4829 pragma Assert
(False
4830 or else NT
(N
).Nkind
= N_Case_Expression_Alternative
4831 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
4832 or else NT
(N
).Nkind
= N_Variant
);
4833 Set_Flag15
(N
, Val
);
4834 end Set_Has_SP_Choice
;
4836 procedure Set_Has_Storage_Size_Pragma
4837 (N
: Node_Id
; Val
: Boolean := True) is
4839 pragma Assert
(False
4840 or else NT
(N
).Nkind
= N_Task_Definition
);
4842 end Set_Has_Storage_Size_Pragma
;
4844 procedure Set_Has_Wide_Character
4845 (N
: Node_Id
; Val
: Boolean := True) is
4847 pragma Assert
(False
4848 or else NT
(N
).Nkind
= N_String_Literal
);
4849 Set_Flag11
(N
, Val
);
4850 end Set_Has_Wide_Character
;
4852 procedure Set_Has_Wide_Wide_Character
4853 (N
: Node_Id
; Val
: Boolean := True) is
4855 pragma Assert
(False
4856 or else NT
(N
).Nkind
= N_String_Literal
);
4857 Set_Flag13
(N
, Val
);
4858 end Set_Has_Wide_Wide_Character
;
4860 procedure Set_Header_Size_Added
4861 (N
: Node_Id
; Val
: Boolean := True) is
4863 pragma Assert
(False
4864 or else NT
(N
).Nkind
= N_Attribute_Reference
);
4865 Set_Flag11
(N
, Val
);
4866 end Set_Header_Size_Added
;
4868 procedure Set_Hidden_By_Use_Clause
4869 (N
: Node_Id
; Val
: Elist_Id
) is
4871 pragma Assert
(False
4872 or else NT
(N
).Nkind
= N_Use_Package_Clause
4873 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
4874 Set_Elist4
(N
, Val
);
4875 end Set_Hidden_By_Use_Clause
;
4877 procedure Set_High_Bound
4878 (N
: Node_Id
; Val
: Node_Id
) is
4880 pragma Assert
(False
4881 or else NT
(N
).Nkind
= N_Range
4882 or else NT
(N
).Nkind
= N_Real_Range_Specification
4883 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
4884 Set_Node2_With_Parent
(N
, Val
);
4887 procedure Set_Identifier
4888 (N
: Node_Id
; Val
: Node_Id
) is
4890 pragma Assert
(False
4891 or else NT
(N
).Nkind
= N_Aspect_Specification
4892 or else NT
(N
).Nkind
= N_At_Clause
4893 or else NT
(N
).Nkind
= N_Block_Statement
4894 or else NT
(N
).Nkind
= N_Designator
4895 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
4896 or else NT
(N
).Nkind
= N_Label
4897 or else NT
(N
).Nkind
= N_Loop_Statement
4898 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
4899 Set_Node1_With_Parent
(N
, Val
);
4902 procedure Set_Implicit_With
4903 (N
: Node_Id
; Val
: Boolean := True) is
4905 pragma Assert
(False
4906 or else NT
(N
).Nkind
= N_With_Clause
);
4907 Set_Flag16
(N
, Val
);
4908 end Set_Implicit_With
;
4910 procedure Set_Implicit_With_From_Instantiation
4911 (N
: Node_Id
; Val
: Boolean := True) is
4913 pragma Assert
(False
4914 or else NT
(N
).Nkind
= N_With_Clause
);
4915 Set_Flag12
(N
, Val
);
4916 end Set_Implicit_With_From_Instantiation
;
4918 procedure Set_Interface_List
4919 (N
: Node_Id
; Val
: List_Id
) is
4921 pragma Assert
(False
4922 or else NT
(N
).Nkind
= N_Derived_Type_Definition
4923 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
4924 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
4925 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
4926 or else NT
(N
).Nkind
= N_Record_Definition
4927 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
4928 or else NT
(N
).Nkind
= N_Single_Task_Declaration
4929 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
4930 Set_List2_With_Parent
(N
, Val
);
4931 end Set_Interface_List
;
4933 procedure Set_Interface_Present
4934 (N
: Node_Id
; Val
: Boolean := True) is
4936 pragma Assert
(False
4937 or else NT
(N
).Nkind
= N_Derived_Type_Definition
4938 or else NT
(N
).Nkind
= N_Record_Definition
);
4939 Set_Flag16
(N
, Val
);
4940 end Set_Interface_Present
;
4942 procedure Set_Import_Interface_Present
4943 (N
: Node_Id
; Val
: Boolean := True) is
4945 pragma Assert
(False
4946 or else NT
(N
).Nkind
= N_Pragma
);
4947 Set_Flag16
(N
, Val
);
4948 end Set_Import_Interface_Present
;
4950 procedure Set_In_Present
4951 (N
: Node_Id
; Val
: Boolean := True) is
4953 pragma Assert
(False
4954 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
4955 or else NT
(N
).Nkind
= N_Parameter_Specification
);
4956 Set_Flag15
(N
, Val
);
4959 procedure Set_Includes_Infinities
4960 (N
: Node_Id
; Val
: Boolean := True) is
4962 pragma Assert
(False
4963 or else NT
(N
).Nkind
= N_Range
);
4964 Set_Flag11
(N
, Val
);
4965 end Set_Includes_Infinities
;
4967 procedure Set_Incomplete_View
4968 (N
: Node_Id
; Val
: Node_Id
) is
4970 pragma Assert
(False
4971 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
4972 Set_Node2
(N
, Val
); -- semantic field, no Parent set
4973 end Set_Incomplete_View
;
4975 procedure Set_Inherited_Discriminant
4976 (N
: Node_Id
; Val
: Boolean := True) is
4978 pragma Assert
(False
4979 or else NT
(N
).Nkind
= N_Component_Association
);
4980 Set_Flag13
(N
, Val
);
4981 end Set_Inherited_Discriminant
;
4983 procedure Set_Instance_Spec
4984 (N
: Node_Id
; Val
: Node_Id
) is
4986 pragma Assert
(False
4987 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
4988 or else NT
(N
).Nkind
= N_Function_Instantiation
4989 or else NT
(N
).Nkind
= N_Package_Instantiation
4990 or else NT
(N
).Nkind
= N_Procedure_Instantiation
);
4991 Set_Node5
(N
, Val
); -- semantic field, no Parent set
4992 end Set_Instance_Spec
;
4994 procedure Set_Intval
4995 (N
: Node_Id
; Val
: Uint
) is
4997 pragma Assert
(False
4998 or else NT
(N
).Nkind
= N_Integer_Literal
);
5002 procedure Set_Is_Accessibility_Actual
5003 (N
: Node_Id
; Val
: Boolean := True) is
5005 pragma Assert
(False
5006 or else NT
(N
).Nkind
= N_Parameter_Association
);
5007 Set_Flag13
(N
, Val
);
5008 end Set_Is_Accessibility_Actual
;
5010 procedure Set_Is_Analyzed_Pragma
5011 (N
: Node_Id
; Val
: Boolean := True) is
5013 pragma Assert
(False
5014 or else NT
(N
).Nkind
= N_Pragma
);
5016 end Set_Is_Analyzed_Pragma
;
5018 procedure Set_Is_Asynchronous_Call_Block
5019 (N
: Node_Id
; Val
: Boolean := True) is
5021 pragma Assert
(False
5022 or else NT
(N
).Nkind
= N_Block_Statement
);
5024 end Set_Is_Asynchronous_Call_Block
;
5026 procedure Set_Is_Boolean_Aspect
5027 (N
: Node_Id
; Val
: Boolean := True) is
5029 pragma Assert
(False
5030 or else NT
(N
).Nkind
= N_Aspect_Specification
);
5031 Set_Flag16
(N
, Val
);
5032 end Set_Is_Boolean_Aspect
;
5034 procedure Set_Is_Checked
5035 (N
: Node_Id
; Val
: Boolean := True) is
5037 pragma Assert
(False
5038 or else NT
(N
).Nkind
= N_Aspect_Specification
5039 or else NT
(N
).Nkind
= N_Pragma
);
5040 Set_Flag11
(N
, Val
);
5043 procedure Set_Is_Component_Left_Opnd
5044 (N
: Node_Id
; Val
: Boolean := True) is
5046 pragma Assert
(False
5047 or else NT
(N
).Nkind
= N_Op_Concat
);
5048 Set_Flag13
(N
, Val
);
5049 end Set_Is_Component_Left_Opnd
;
5051 procedure Set_Is_Component_Right_Opnd
5052 (N
: Node_Id
; Val
: Boolean := True) is
5054 pragma Assert
(False
5055 or else NT
(N
).Nkind
= N_Op_Concat
);
5056 Set_Flag14
(N
, Val
);
5057 end Set_Is_Component_Right_Opnd
;
5059 procedure Set_Is_Controlling_Actual
5060 (N
: Node_Id
; Val
: Boolean := True) is
5062 pragma Assert
(False
5063 or else NT
(N
).Nkind
in N_Subexpr
);
5064 Set_Flag16
(N
, Val
);
5065 end Set_Is_Controlling_Actual
;
5067 procedure Set_Is_Delayed_Aspect
5068 (N
: Node_Id
; Val
: Boolean := True) is
5070 pragma Assert
(False
5071 or else NT
(N
).Nkind
= N_Aspect_Specification
5072 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5073 or else NT
(N
).Nkind
= N_Pragma
);
5074 Set_Flag14
(N
, Val
);
5075 end Set_Is_Delayed_Aspect
;
5077 procedure Set_Is_Disabled
5078 (N
: Node_Id
; Val
: Boolean := True) is
5080 pragma Assert
(False
5081 or else NT
(N
).Nkind
= N_Aspect_Specification
5082 or else NT
(N
).Nkind
= N_Pragma
);
5083 Set_Flag15
(N
, Val
);
5084 end Set_Is_Disabled
;
5086 procedure Set_Is_Dynamic_Coextension
5087 (N
: Node_Id
; Val
: Boolean := True) is
5089 pragma Assert
(False
5090 or else NT
(N
).Nkind
= N_Allocator
);
5091 Set_Flag18
(N
, Val
);
5092 end Set_Is_Dynamic_Coextension
;
5094 procedure Set_Is_Elsif
5095 (N
: Node_Id
; Val
: Boolean := True) is
5097 pragma Assert
(False
5098 or else NT
(N
).Nkind
= N_If_Expression
);
5099 Set_Flag13
(N
, Val
);
5102 procedure Set_Is_Entry_Barrier_Function
5103 (N
: Node_Id
; Val
: Boolean := True) is
5105 pragma Assert
(False
5106 or else NT
(N
).Nkind
= N_Subprogram_Body
5107 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
5109 end Set_Is_Entry_Barrier_Function
;
5111 procedure Set_Is_Expanded_Build_In_Place_Call
5112 (N
: Node_Id
; Val
: Boolean := True) is
5114 pragma Assert
(False
5115 or else NT
(N
).Nkind
= N_Function_Call
);
5116 Set_Flag11
(N
, Val
);
5117 end Set_Is_Expanded_Build_In_Place_Call
;
5119 procedure Set_Is_Expanded_Contract
5120 (N
: Node_Id
; Val
: Boolean := True) is
5122 pragma Assert
(False
5123 or else NT
(N
).Nkind
= N_Contract
);
5125 end Set_Is_Expanded_Contract
;
5127 procedure Set_Is_Finalization_Wrapper
5128 (N
: Node_Id
; Val
: Boolean := True) is
5130 pragma Assert
(False
5131 or else NT
(N
).Nkind
= N_Block_Statement
);
5133 end Set_Is_Finalization_Wrapper
;
5135 procedure Set_Is_Folded_In_Parser
5136 (N
: Node_Id
; Val
: Boolean := True) is
5138 pragma Assert
(False
5139 or else NT
(N
).Nkind
= N_String_Literal
);
5141 end Set_Is_Folded_In_Parser
;
5143 procedure Set_Is_Generic_Contract_Pragma
5144 (N
: Node_Id
; Val
: Boolean := True) is
5146 pragma Assert
(False
5147 or else NT
(N
).Nkind
= N_Pragma
);
5149 end Set_Is_Generic_Contract_Pragma
;
5151 procedure Set_Is_Ghost_Pragma
5152 (N
: Node_Id
; Val
: Boolean := True) is
5154 pragma Assert
(False
5155 or else NT
(N
).Nkind
= N_Pragma
);
5157 end Set_Is_Ghost_Pragma
;
5159 procedure Set_Is_Ignored
5160 (N
: Node_Id
; Val
: Boolean := True) is
5162 pragma Assert
(False
5163 or else NT
(N
).Nkind
= N_Aspect_Specification
5164 or else NT
(N
).Nkind
= N_Pragma
);
5168 procedure Set_Is_In_Discriminant_Check
5169 (N
: Node_Id
; Val
: Boolean := True) is
5171 pragma Assert
(False
5172 or else NT
(N
).Nkind
= N_Selected_Component
);
5173 Set_Flag11
(N
, Val
);
5174 end Set_Is_In_Discriminant_Check
;
5176 procedure Set_Is_Inherited_Pragma
5177 (N
: Node_Id
; Val
: Boolean := True) is
5179 pragma Assert
(False
5180 or else NT
(N
).Nkind
= N_Pragma
);
5182 end Set_Is_Inherited_Pragma
;
5184 procedure Set_Is_Machine_Number
5185 (N
: Node_Id
; Val
: Boolean := True) is
5187 pragma Assert
(False
5188 or else NT
(N
).Nkind
= N_Real_Literal
);
5189 Set_Flag11
(N
, Val
);
5190 end Set_Is_Machine_Number
;
5192 procedure Set_Is_Null_Loop
5193 (N
: Node_Id
; Val
: Boolean := True) is
5195 pragma Assert
(False
5196 or else NT
(N
).Nkind
= N_Loop_Statement
);
5197 Set_Flag16
(N
, Val
);
5198 end Set_Is_Null_Loop
;
5200 procedure Set_Is_Overloaded
5201 (N
: Node_Id
; Val
: Boolean := True) is
5203 pragma Assert
(False
5204 or else NT
(N
).Nkind
in N_Subexpr
);
5206 end Set_Is_Overloaded
;
5208 procedure Set_Is_Power_Of_2_For_Shift
5209 (N
: Node_Id
; Val
: Boolean := True) is
5211 pragma Assert
(False
5212 or else NT
(N
).Nkind
= N_Op_Expon
);
5213 Set_Flag13
(N
, Val
);
5214 end Set_Is_Power_Of_2_For_Shift
;
5216 procedure Set_Is_Prefixed_Call
5217 (N
: Node_Id
; Val
: Boolean := True) is
5219 pragma Assert
(False
5220 or else NT
(N
).Nkind
= N_Selected_Component
);
5221 Set_Flag17
(N
, Val
);
5222 end Set_Is_Prefixed_Call
;
5224 procedure Set_Is_Protected_Subprogram_Body
5225 (N
: Node_Id
; Val
: Boolean := True) is
5227 pragma Assert
(False
5228 or else NT
(N
).Nkind
= N_Subprogram_Body
);
5230 end Set_Is_Protected_Subprogram_Body
;
5232 procedure Set_Is_Static_Coextension
5233 (N
: Node_Id
; Val
: Boolean := True) is
5235 pragma Assert
(False
5236 or else NT
(N
).Nkind
= N_Allocator
);
5237 Set_Flag14
(N
, Val
);
5238 end Set_Is_Static_Coextension
;
5240 procedure Set_Is_Static_Expression
5241 (N
: Node_Id
; Val
: Boolean := True) is
5243 pragma Assert
(False
5244 or else NT
(N
).Nkind
in N_Subexpr
);
5246 end Set_Is_Static_Expression
;
5248 procedure Set_Is_Subprogram_Descriptor
5249 (N
: Node_Id
; Val
: Boolean := True) is
5251 pragma Assert
(False
5252 or else NT
(N
).Nkind
= N_Object_Declaration
);
5253 Set_Flag16
(N
, Val
);
5254 end Set_Is_Subprogram_Descriptor
;
5256 procedure Set_Is_Task_Allocation_Block
5257 (N
: Node_Id
; Val
: Boolean := True) is
5259 pragma Assert
(False
5260 or else NT
(N
).Nkind
= N_Block_Statement
);
5262 end Set_Is_Task_Allocation_Block
;
5264 procedure Set_Is_Task_Body_Procedure
5265 (N
: Node_Id
; Val
: Boolean := True) is
5267 pragma Assert
(False
5268 or else NT
(N
).Nkind
= N_Subprogram_Body
5269 or else NT
(N
).Nkind
= N_Subprogram_Declaration
);
5271 end Set_Is_Task_Body_Procedure
;
5273 procedure Set_Is_Task_Master
5274 (N
: Node_Id
; Val
: Boolean := True) is
5276 pragma Assert
(False
5277 or else NT
(N
).Nkind
= N_Block_Statement
5278 or else NT
(N
).Nkind
= N_Subprogram_Body
5279 or else NT
(N
).Nkind
= N_Task_Body
);
5281 end Set_Is_Task_Master
;
5283 procedure Set_Iteration_Scheme
5284 (N
: Node_Id
; Val
: Node_Id
) is
5286 pragma Assert
(False
5287 or else NT
(N
).Nkind
= N_Loop_Statement
);
5288 Set_Node2_With_Parent
(N
, Val
);
5289 end Set_Iteration_Scheme
;
5291 procedure Set_Iterator_Specification
5292 (N
: Node_Id
; Val
: Node_Id
) is
5294 pragma Assert
(False
5295 or else NT
(N
).Nkind
= N_Iteration_Scheme
5296 or else NT
(N
).Nkind
= N_Quantified_Expression
);
5297 Set_Node2_With_Parent
(N
, Val
);
5298 end Set_Iterator_Specification
;
5301 (N
: Node_Id
; Val
: Entity_Id
) is
5303 pragma Assert
(False
5304 or else NT
(N
).Nkind
= N_Itype_Reference
);
5305 Set_Node1
(N
, Val
); -- no parent, semantic field
5308 procedure Set_Kill_Range_Check
5309 (N
: Node_Id
; Val
: Boolean := True) is
5311 pragma Assert
(False
5312 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
5313 Set_Flag11
(N
, Val
);
5314 end Set_Kill_Range_Check
;
5316 procedure Set_Label_Construct
5317 (N
: Node_Id
; Val
: Node_Id
) is
5319 pragma Assert
(False
5320 or else NT
(N
).Nkind
= N_Implicit_Label_Declaration
);
5321 Set_Node2
(N
, Val
); -- semantic field, no parent set
5322 end Set_Label_Construct
;
5324 procedure Set_Last_Bit
5325 (N
: Node_Id
; Val
: Node_Id
) is
5327 pragma Assert
(False
5328 or else NT
(N
).Nkind
= N_Component_Clause
);
5329 Set_Node4_With_Parent
(N
, Val
);
5332 procedure Set_Last_Name
5333 (N
: Node_Id
; Val
: Boolean := True) is
5335 pragma Assert
(False
5336 or else NT
(N
).Nkind
= N_With_Clause
);
5340 procedure Set_Left_Opnd
5341 (N
: Node_Id
; Val
: Node_Id
) is
5343 pragma Assert
(False
5344 or else NT
(N
).Nkind
= N_And_Then
5345 or else NT
(N
).Nkind
= N_In
5346 or else NT
(N
).Nkind
= N_Not_In
5347 or else NT
(N
).Nkind
= N_Or_Else
5348 or else NT
(N
).Nkind
in N_Binary_Op
);
5349 Set_Node2_With_Parent
(N
, Val
);
5352 procedure Set_Library_Unit
5353 (N
: Node_Id
; Val
: Node_Id
) is
5355 pragma Assert
(False
5356 or else NT
(N
).Nkind
= N_Compilation_Unit
5357 or else NT
(N
).Nkind
= N_Package_Body_Stub
5358 or else NT
(N
).Nkind
= N_Protected_Body_Stub
5359 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
5360 or else NT
(N
).Nkind
= N_Task_Body_Stub
5361 or else NT
(N
).Nkind
= N_With_Clause
);
5362 Set_Node4
(N
, Val
); -- semantic field, no parent set
5363 end Set_Library_Unit
;
5365 procedure Set_Limited_View_Installed
5366 (N
: Node_Id
; Val
: Boolean := True) is
5368 pragma Assert
(False
5369 or else NT
(N
).Nkind
= N_Package_Specification
5370 or else NT
(N
).Nkind
= N_With_Clause
);
5371 Set_Flag18
(N
, Val
);
5372 end Set_Limited_View_Installed
;
5374 procedure Set_Limited_Present
5375 (N
: Node_Id
; Val
: Boolean := True) is
5377 pragma Assert
(False
5378 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5379 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
5380 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
5381 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
5382 or else NT
(N
).Nkind
= N_Private_Type_Declaration
5383 or else NT
(N
).Nkind
= N_Record_Definition
5384 or else NT
(N
).Nkind
= N_With_Clause
);
5385 Set_Flag17
(N
, Val
);
5386 end Set_Limited_Present
;
5388 procedure Set_Literals
5389 (N
: Node_Id
; Val
: List_Id
) is
5391 pragma Assert
(False
5392 or else NT
(N
).Nkind
= N_Enumeration_Type_Definition
);
5393 Set_List1_With_Parent
(N
, Val
);
5396 procedure Set_Local_Raise_Not_OK
5397 (N
: Node_Id
; Val
: Boolean := True) is
5399 pragma Assert
(False
5400 or else NT
(N
).Nkind
= N_Exception_Handler
);
5402 end Set_Local_Raise_Not_OK
;
5404 procedure Set_Local_Raise_Statements
5405 (N
: Node_Id
; Val
: Elist_Id
) is
5407 pragma Assert
(False
5408 or else NT
(N
).Nkind
= N_Exception_Handler
);
5409 Set_Elist1
(N
, Val
);
5410 end Set_Local_Raise_Statements
;
5412 procedure Set_Loop_Actions
5413 (N
: Node_Id
; Val
: List_Id
) is
5415 pragma Assert
(False
5416 or else NT
(N
).Nkind
= N_Component_Association
);
5417 Set_List2
(N
, Val
); -- semantic field, no parent set
5418 end Set_Loop_Actions
;
5420 procedure Set_Loop_Parameter_Specification
5421 (N
: Node_Id
; Val
: Node_Id
) is
5423 pragma Assert
(False
5424 or else NT
(N
).Nkind
= N_Iteration_Scheme
5425 or else NT
(N
).Nkind
= N_Quantified_Expression
);
5426 Set_Node4_With_Parent
(N
, Val
);
5427 end Set_Loop_Parameter_Specification
;
5429 procedure Set_Low_Bound
5430 (N
: Node_Id
; Val
: Node_Id
) is
5432 pragma Assert
(False
5433 or else NT
(N
).Nkind
= N_Range
5434 or else NT
(N
).Nkind
= N_Real_Range_Specification
5435 or else NT
(N
).Nkind
= N_Signed_Integer_Type_Definition
);
5436 Set_Node1_With_Parent
(N
, Val
);
5439 procedure Set_Mod_Clause
5440 (N
: Node_Id
; Val
: Node_Id
) is
5442 pragma Assert
(False
5443 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
5444 Set_Node2_With_Parent
(N
, Val
);
5447 procedure Set_More_Ids
5448 (N
: Node_Id
; Val
: Boolean := True) is
5450 pragma Assert
(False
5451 or else NT
(N
).Nkind
= N_Component_Declaration
5452 or else NT
(N
).Nkind
= N_Discriminant_Specification
5453 or else NT
(N
).Nkind
= N_Exception_Declaration
5454 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5455 or else NT
(N
).Nkind
= N_Number_Declaration
5456 or else NT
(N
).Nkind
= N_Object_Declaration
5457 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5461 procedure Set_Must_Be_Byte_Aligned
5462 (N
: Node_Id
; Val
: Boolean := True) is
5464 pragma Assert
(False
5465 or else NT
(N
).Nkind
= N_Attribute_Reference
);
5466 Set_Flag14
(N
, Val
);
5467 end Set_Must_Be_Byte_Aligned
;
5469 procedure Set_Must_Not_Freeze
5470 (N
: Node_Id
; Val
: Boolean := True) is
5472 pragma Assert
(False
5473 or else NT
(N
).Nkind
= N_Subtype_Indication
5474 or else NT
(N
).Nkind
in N_Subexpr
);
5476 end Set_Must_Not_Freeze
;
5478 procedure Set_Must_Not_Override
5479 (N
: Node_Id
; Val
: Boolean := True) is
5481 pragma Assert
(False
5482 or else NT
(N
).Nkind
= N_Entry_Declaration
5483 or else NT
(N
).Nkind
= N_Function_Instantiation
5484 or else NT
(N
).Nkind
= N_Function_Specification
5485 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5486 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5487 Set_Flag15
(N
, Val
);
5488 end Set_Must_Not_Override
;
5490 procedure Set_Must_Override
5491 (N
: Node_Id
; Val
: Boolean := True) is
5493 pragma Assert
(False
5494 or else NT
(N
).Nkind
= N_Entry_Declaration
5495 or else NT
(N
).Nkind
= N_Function_Instantiation
5496 or else NT
(N
).Nkind
= N_Function_Specification
5497 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5498 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5499 Set_Flag14
(N
, Val
);
5500 end Set_Must_Override
;
5503 (N
: Node_Id
; Val
: Node_Id
) is
5505 pragma Assert
(False
5506 or else NT
(N
).Nkind
= N_Assignment_Statement
5507 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5508 or else NT
(N
).Nkind
= N_Defining_Program_Unit_Name
5509 or else NT
(N
).Nkind
= N_Designator
5510 or else NT
(N
).Nkind
= N_Entry_Call_Statement
5511 or else NT
(N
).Nkind
= N_Exception_Renaming_Declaration
5512 or else NT
(N
).Nkind
= N_Exit_Statement
5513 or else NT
(N
).Nkind
= N_Formal_Package_Declaration
5514 or else NT
(N
).Nkind
= N_Function_Call
5515 or else NT
(N
).Nkind
= N_Function_Instantiation
5516 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
5517 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
5518 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
5519 or else NT
(N
).Nkind
= N_Goto_Statement
5520 or else NT
(N
).Nkind
= N_Iterator_Specification
5521 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
5522 or else NT
(N
).Nkind
= N_Package_Instantiation
5523 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
5524 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
5525 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5526 or else NT
(N
).Nkind
= N_Raise_Expression
5527 or else NT
(N
).Nkind
= N_Raise_Statement
5528 or else NT
(N
).Nkind
= N_Requeue_Statement
5529 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
5530 or else NT
(N
).Nkind
= N_Subunit
5531 or else NT
(N
).Nkind
= N_Variant_Part
5532 or else NT
(N
).Nkind
= N_With_Clause
);
5533 Set_Node2_With_Parent
(N
, Val
);
5537 (N
: Node_Id
; Val
: List_Id
) is
5539 pragma Assert
(False
5540 or else NT
(N
).Nkind
= N_Abort_Statement
5541 or else NT
(N
).Nkind
= N_Use_Package_Clause
);
5542 Set_List2_With_Parent
(N
, Val
);
5545 procedure Set_Next_Entity
5546 (N
: Node_Id
; Val
: Node_Id
) is
5548 pragma Assert
(False
5549 or else NT
(N
).Nkind
= N_Defining_Character_Literal
5550 or else NT
(N
).Nkind
= N_Defining_Identifier
5551 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
5552 Set_Node2
(N
, Val
); -- semantic field, no parent set
5553 end Set_Next_Entity
;
5555 procedure Set_Next_Exit_Statement
5556 (N
: Node_Id
; Val
: Node_Id
) is
5558 pragma Assert
(False
5559 or else NT
(N
).Nkind
= N_Exit_Statement
);
5560 Set_Node3
(N
, Val
); -- semantic field, no parent set
5561 end Set_Next_Exit_Statement
;
5563 procedure Set_Next_Implicit_With
5564 (N
: Node_Id
; Val
: Node_Id
) is
5566 pragma Assert
(False
5567 or else NT
(N
).Nkind
= N_With_Clause
);
5568 Set_Node3
(N
, Val
); -- semantic field, no parent set
5569 end Set_Next_Implicit_With
;
5571 procedure Set_Next_Named_Actual
5572 (N
: Node_Id
; Val
: Node_Id
) is
5574 pragma Assert
(False
5575 or else NT
(N
).Nkind
= N_Parameter_Association
);
5576 Set_Node4
(N
, Val
); -- semantic field, no parent set
5577 end Set_Next_Named_Actual
;
5579 procedure Set_Next_Pragma
5580 (N
: Node_Id
; Val
: Node_Id
) is
5582 pragma Assert
(False
5583 or else NT
(N
).Nkind
= N_Pragma
);
5584 Set_Node1
(N
, Val
); -- semantic field, no parent set
5585 end Set_Next_Pragma
;
5587 procedure Set_Next_Rep_Item
5588 (N
: Node_Id
; Val
: Node_Id
) is
5590 pragma Assert
(False
5591 or else NT
(N
).Nkind
= N_Aspect_Specification
5592 or else NT
(N
).Nkind
= N_Attribute_Definition_Clause
5593 or else NT
(N
).Nkind
= N_Enumeration_Representation_Clause
5594 or else NT
(N
).Nkind
= N_Pragma
5595 or else NT
(N
).Nkind
= N_Record_Representation_Clause
);
5596 Set_Node5
(N
, Val
); -- semantic field, no parent set
5597 end Set_Next_Rep_Item
;
5599 procedure Set_Next_Use_Clause
5600 (N
: Node_Id
; Val
: Node_Id
) is
5602 pragma Assert
(False
5603 or else NT
(N
).Nkind
= N_Use_Package_Clause
5604 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
5605 Set_Node3
(N
, Val
); -- semantic field, no parent set
5606 end Set_Next_Use_Clause
;
5608 procedure Set_No_Ctrl_Actions
5609 (N
: Node_Id
; Val
: Boolean := True) is
5611 pragma Assert
(False
5612 or else NT
(N
).Nkind
= N_Assignment_Statement
);
5614 end Set_No_Ctrl_Actions
;
5616 procedure Set_No_Elaboration_Check
5617 (N
: Node_Id
; Val
: Boolean := True) is
5619 pragma Assert
(False
5620 or else NT
(N
).Nkind
= N_Function_Call
5621 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
5622 Set_Flag14
(N
, Val
);
5623 end Set_No_Elaboration_Check
;
5625 procedure Set_No_Entities_Ref_In_Spec
5626 (N
: Node_Id
; Val
: Boolean := True) is
5628 pragma Assert
(False
5629 or else NT
(N
).Nkind
= N_With_Clause
);
5631 end Set_No_Entities_Ref_In_Spec
;
5633 procedure Set_No_Initialization
5634 (N
: Node_Id
; Val
: Boolean := True) is
5636 pragma Assert
(False
5637 or else NT
(N
).Nkind
= N_Allocator
5638 or else NT
(N
).Nkind
= N_Object_Declaration
);
5639 Set_Flag13
(N
, Val
);
5640 end Set_No_Initialization
;
5642 procedure Set_No_Minimize_Eliminate
5643 (N
: Node_Id
; Val
: Boolean := True) is
5645 pragma Assert
(False
5646 or else NT
(N
).Nkind
= N_In
5647 or else NT
(N
).Nkind
= N_Not_In
);
5648 Set_Flag17
(N
, Val
);
5649 end Set_No_Minimize_Eliminate
;
5651 procedure Set_No_Truncation
5652 (N
: Node_Id
; Val
: Boolean := True) is
5654 pragma Assert
(False
5655 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
5656 Set_Flag17
(N
, Val
);
5657 end Set_No_Truncation
;
5659 procedure Set_Non_Aliased_Prefix
5660 (N
: Node_Id
; Val
: Boolean := True) is
5662 pragma Assert
(False
5663 or else NT
(N
).Nkind
= N_Attribute_Reference
);
5664 Set_Flag18
(N
, Val
);
5665 end Set_Non_Aliased_Prefix
;
5667 procedure Set_Null_Present
5668 (N
: Node_Id
; Val
: Boolean := True) is
5670 pragma Assert
(False
5671 or else NT
(N
).Nkind
= N_Component_List
5672 or else NT
(N
).Nkind
= N_Procedure_Specification
5673 or else NT
(N
).Nkind
= N_Record_Definition
);
5674 Set_Flag13
(N
, Val
);
5675 end Set_Null_Present
;
5677 procedure Set_Null_Excluding_Subtype
5678 (N
: Node_Id
; Val
: Boolean := True) is
5680 pragma Assert
(False
5681 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
);
5682 Set_Flag16
(N
, Val
);
5683 end Set_Null_Excluding_Subtype
;
5685 procedure Set_Null_Exclusion_Present
5686 (N
: Node_Id
; Val
: Boolean := True) is
5688 pragma Assert
(False
5689 or else NT
(N
).Nkind
= N_Access_Definition
5690 or else NT
(N
).Nkind
= N_Access_Function_Definition
5691 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
5692 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
5693 or else NT
(N
).Nkind
= N_Allocator
5694 or else NT
(N
).Nkind
= N_Component_Definition
5695 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5696 or else NT
(N
).Nkind
= N_Discriminant_Specification
5697 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5698 or else NT
(N
).Nkind
= N_Function_Specification
5699 or else NT
(N
).Nkind
= N_Object_Declaration
5700 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
5701 or else NT
(N
).Nkind
= N_Parameter_Specification
5702 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
5703 Set_Flag11
(N
, Val
);
5704 end Set_Null_Exclusion_Present
;
5706 procedure Set_Null_Exclusion_In_Return_Present
5707 (N
: Node_Id
; Val
: Boolean := True) is
5709 pragma Assert
(False
5710 or else NT
(N
).Nkind
= N_Access_Function_Definition
);
5711 Set_Flag14
(N
, Val
);
5712 end Set_Null_Exclusion_In_Return_Present
;
5714 procedure Set_Null_Record_Present
5715 (N
: Node_Id
; Val
: Boolean := True) is
5717 pragma Assert
(False
5718 or else NT
(N
).Nkind
= N_Aggregate
5719 or else NT
(N
).Nkind
= N_Extension_Aggregate
);
5720 Set_Flag17
(N
, Val
);
5721 end Set_Null_Record_Present
;
5723 procedure Set_Object_Definition
5724 (N
: Node_Id
; Val
: Node_Id
) is
5726 pragma Assert
(False
5727 or else NT
(N
).Nkind
= N_Object_Declaration
);
5728 Set_Node4_With_Parent
(N
, Val
);
5729 end Set_Object_Definition
;
5731 procedure Set_Of_Present
5732 (N
: Node_Id
; Val
: Boolean := True) is
5734 pragma Assert
(False
5735 or else NT
(N
).Nkind
= N_Iterator_Specification
);
5736 Set_Flag16
(N
, Val
);
5739 procedure Set_Original_Discriminant
5740 (N
: Node_Id
; Val
: Node_Id
) is
5742 pragma Assert
(False
5743 or else NT
(N
).Nkind
= N_Identifier
);
5744 Set_Node2
(N
, Val
); -- semantic field, no parent set
5745 end Set_Original_Discriminant
;
5747 procedure Set_Original_Entity
5748 (N
: Node_Id
; Val
: Entity_Id
) is
5750 pragma Assert
(False
5751 or else NT
(N
).Nkind
= N_Integer_Literal
5752 or else NT
(N
).Nkind
= N_Real_Literal
);
5753 Set_Node2
(N
, Val
); -- semantic field, no parent set
5754 end Set_Original_Entity
;
5756 procedure Set_Others_Discrete_Choices
5757 (N
: Node_Id
; Val
: List_Id
) is
5759 pragma Assert
(False
5760 or else NT
(N
).Nkind
= N_Others_Choice
);
5761 Set_List1_With_Parent
(N
, Val
);
5762 end Set_Others_Discrete_Choices
;
5764 procedure Set_Out_Present
5765 (N
: Node_Id
; Val
: Boolean := True) is
5767 pragma Assert
(False
5768 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5769 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5770 Set_Flag17
(N
, Val
);
5771 end Set_Out_Present
;
5773 procedure Set_Parameter_Associations
5774 (N
: Node_Id
; Val
: List_Id
) is
5776 pragma Assert
(False
5777 or else NT
(N
).Nkind
= N_Entry_Call_Statement
5778 or else NT
(N
).Nkind
= N_Function_Call
5779 or else NT
(N
).Nkind
= N_Procedure_Call_Statement
);
5780 Set_List3_With_Parent
(N
, Val
);
5781 end Set_Parameter_Associations
;
5783 procedure Set_Parameter_Specifications
5784 (N
: Node_Id
; Val
: List_Id
) is
5786 pragma Assert
(False
5787 or else NT
(N
).Nkind
= N_Accept_Statement
5788 or else NT
(N
).Nkind
= N_Access_Function_Definition
5789 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
5790 or else NT
(N
).Nkind
= N_Entry_Body_Formal_Part
5791 or else NT
(N
).Nkind
= N_Entry_Declaration
5792 or else NT
(N
).Nkind
= N_Function_Specification
5793 or else NT
(N
).Nkind
= N_Procedure_Specification
);
5794 Set_List3_With_Parent
(N
, Val
);
5795 end Set_Parameter_Specifications
;
5797 procedure Set_Parameter_Type
5798 (N
: Node_Id
; Val
: Node_Id
) is
5800 pragma Assert
(False
5801 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5802 Set_Node2_With_Parent
(N
, Val
);
5803 end Set_Parameter_Type
;
5805 procedure Set_Parent_Spec
5806 (N
: Node_Id
; Val
: Node_Id
) is
5808 pragma Assert
(False
5809 or else NT
(N
).Nkind
= N_Function_Instantiation
5810 or else NT
(N
).Nkind
= N_Generic_Function_Renaming_Declaration
5811 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
5812 or else NT
(N
).Nkind
= N_Generic_Package_Renaming_Declaration
5813 or else NT
(N
).Nkind
= N_Generic_Procedure_Renaming_Declaration
5814 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
5815 or else NT
(N
).Nkind
= N_Package_Declaration
5816 or else NT
(N
).Nkind
= N_Package_Instantiation
5817 or else NT
(N
).Nkind
= N_Package_Renaming_Declaration
5818 or else NT
(N
).Nkind
= N_Procedure_Instantiation
5819 or else NT
(N
).Nkind
= N_Subprogram_Declaration
5820 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
5821 Set_Node4
(N
, Val
); -- semantic field, no parent set
5822 end Set_Parent_Spec
;
5824 procedure Set_Position
5825 (N
: Node_Id
; Val
: Node_Id
) is
5827 pragma Assert
(False
5828 or else NT
(N
).Nkind
= N_Component_Clause
);
5829 Set_Node2_With_Parent
(N
, Val
);
5832 procedure Set_Pragma_Argument_Associations
5833 (N
: Node_Id
; Val
: List_Id
) is
5835 pragma Assert
(False
5836 or else NT
(N
).Nkind
= N_Pragma
);
5837 Set_List2_With_Parent
(N
, Val
);
5838 end Set_Pragma_Argument_Associations
;
5840 procedure Set_Pragma_Identifier
5841 (N
: Node_Id
; Val
: Node_Id
) is
5843 pragma Assert
(False
5844 or else NT
(N
).Nkind
= N_Pragma
);
5845 Set_Node4_With_Parent
(N
, Val
);
5846 end Set_Pragma_Identifier
;
5848 procedure Set_Pragmas_After
5849 (N
: Node_Id
; Val
: List_Id
) is
5851 pragma Assert
(False
5852 or else NT
(N
).Nkind
= N_Compilation_Unit_Aux
5853 or else NT
(N
).Nkind
= N_Terminate_Alternative
);
5854 Set_List5_With_Parent
(N
, Val
);
5855 end Set_Pragmas_After
;
5857 procedure Set_Pragmas_Before
5858 (N
: Node_Id
; Val
: List_Id
) is
5860 pragma Assert
(False
5861 or else NT
(N
).Nkind
= N_Accept_Alternative
5862 or else NT
(N
).Nkind
= N_Delay_Alternative
5863 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
5864 or else NT
(N
).Nkind
= N_Mod_Clause
5865 or else NT
(N
).Nkind
= N_Terminate_Alternative
5866 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
5867 Set_List4_With_Parent
(N
, Val
);
5868 end Set_Pragmas_Before
;
5870 procedure Set_Pre_Post_Conditions
5871 (N
: Node_Id
; Val
: Node_Id
) is
5873 pragma Assert
(False
5874 or else NT
(N
).Nkind
= N_Contract
);
5875 Set_Node1
(N
, Val
); -- semantic field, no parent set
5876 end Set_Pre_Post_Conditions
;
5878 procedure Set_Prefix
5879 (N
: Node_Id
; Val
: Node_Id
) is
5881 pragma Assert
(False
5882 or else NT
(N
).Nkind
= N_Attribute_Reference
5883 or else NT
(N
).Nkind
= N_Expanded_Name
5884 or else NT
(N
).Nkind
= N_Explicit_Dereference
5885 or else NT
(N
).Nkind
= N_Indexed_Component
5886 or else NT
(N
).Nkind
= N_Reference
5887 or else NT
(N
).Nkind
= N_Selected_Component
5888 or else NT
(N
).Nkind
= N_Slice
);
5889 Set_Node3_With_Parent
(N
, Val
);
5892 procedure Set_Premature_Use
5893 (N
: Node_Id
; Val
: Node_Id
) is
5895 pragma Assert
(False
5896 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
);
5898 end Set_Premature_Use
;
5900 procedure Set_Present_Expr
5901 (N
: Node_Id
; Val
: Uint
) is
5903 pragma Assert
(False
5904 or else NT
(N
).Nkind
= N_Variant
);
5906 end Set_Present_Expr
;
5908 procedure Set_Prev_Ids
5909 (N
: Node_Id
; Val
: Boolean := True) is
5911 pragma Assert
(False
5912 or else NT
(N
).Nkind
= N_Component_Declaration
5913 or else NT
(N
).Nkind
= N_Discriminant_Specification
5914 or else NT
(N
).Nkind
= N_Exception_Declaration
5915 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
5916 or else NT
(N
).Nkind
= N_Number_Declaration
5917 or else NT
(N
).Nkind
= N_Object_Declaration
5918 or else NT
(N
).Nkind
= N_Parameter_Specification
);
5922 procedure Set_Print_In_Hex
5923 (N
: Node_Id
; Val
: Boolean := True) is
5925 pragma Assert
(False
5926 or else NT
(N
).Nkind
= N_Integer_Literal
);
5927 Set_Flag13
(N
, Val
);
5928 end Set_Print_In_Hex
;
5930 procedure Set_Private_Declarations
5931 (N
: Node_Id
; Val
: List_Id
) is
5933 pragma Assert
(False
5934 or else NT
(N
).Nkind
= N_Package_Specification
5935 or else NT
(N
).Nkind
= N_Protected_Definition
5936 or else NT
(N
).Nkind
= N_Task_Definition
);
5937 Set_List3_With_Parent
(N
, Val
);
5938 end Set_Private_Declarations
;
5940 procedure Set_Private_Present
5941 (N
: Node_Id
; Val
: Boolean := True) is
5943 pragma Assert
(False
5944 or else NT
(N
).Nkind
= N_Compilation_Unit
5945 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
5946 or else NT
(N
).Nkind
= N_With_Clause
);
5947 Set_Flag15
(N
, Val
);
5948 end Set_Private_Present
;
5950 procedure Set_Procedure_To_Call
5951 (N
: Node_Id
; Val
: Node_Id
) is
5953 pragma Assert
(False
5954 or else NT
(N
).Nkind
= N_Allocator
5955 or else NT
(N
).Nkind
= N_Extended_Return_Statement
5956 or else NT
(N
).Nkind
= N_Free_Statement
5957 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
5958 Set_Node2
(N
, Val
); -- semantic field, no parent set
5959 end Set_Procedure_To_Call
;
5961 procedure Set_Proper_Body
5962 (N
: Node_Id
; Val
: Node_Id
) is
5964 pragma Assert
(False
5965 or else NT
(N
).Nkind
= N_Subunit
);
5966 Set_Node1_With_Parent
(N
, Val
);
5967 end Set_Proper_Body
;
5969 procedure Set_Protected_Definition
5970 (N
: Node_Id
; Val
: Node_Id
) is
5972 pragma Assert
(False
5973 or else NT
(N
).Nkind
= N_Protected_Type_Declaration
5974 or else NT
(N
).Nkind
= N_Single_Protected_Declaration
);
5975 Set_Node3_With_Parent
(N
, Val
);
5976 end Set_Protected_Definition
;
5978 procedure Set_Protected_Present
5979 (N
: Node_Id
; Val
: Boolean := True) is
5981 pragma Assert
(False
5982 or else NT
(N
).Nkind
= N_Access_Function_Definition
5983 or else NT
(N
).Nkind
= N_Access_Procedure_Definition
5984 or else NT
(N
).Nkind
= N_Derived_Type_Definition
5985 or else NT
(N
).Nkind
= N_Record_Definition
);
5987 end Set_Protected_Present
;
5989 procedure Set_Raises_Constraint_Error
5990 (N
: Node_Id
; Val
: Boolean := True) is
5992 pragma Assert
(False
5993 or else NT
(N
).Nkind
in N_Subexpr
);
5995 end Set_Raises_Constraint_Error
;
5997 procedure Set_Range_Constraint
5998 (N
: Node_Id
; Val
: Node_Id
) is
6000 pragma Assert
(False
6001 or else NT
(N
).Nkind
= N_Delta_Constraint
6002 or else NT
(N
).Nkind
= N_Digits_Constraint
);
6003 Set_Node4_With_Parent
(N
, Val
);
6004 end Set_Range_Constraint
;
6006 procedure Set_Range_Expression
6007 (N
: Node_Id
; Val
: Node_Id
) is
6009 pragma Assert
(False
6010 or else NT
(N
).Nkind
= N_Range_Constraint
);
6011 Set_Node4_With_Parent
(N
, Val
);
6012 end Set_Range_Expression
;
6014 procedure Set_Real_Range_Specification
6015 (N
: Node_Id
; Val
: Node_Id
) is
6017 pragma Assert
(False
6018 or else NT
(N
).Nkind
= N_Decimal_Fixed_Point_Definition
6019 or else NT
(N
).Nkind
= N_Floating_Point_Definition
6020 or else NT
(N
).Nkind
= N_Ordinary_Fixed_Point_Definition
);
6021 Set_Node4_With_Parent
(N
, Val
);
6022 end Set_Real_Range_Specification
;
6024 procedure Set_Realval
6025 (N
: Node_Id
; Val
: Ureal
) is
6027 pragma Assert
(False
6028 or else NT
(N
).Nkind
= N_Real_Literal
);
6029 Set_Ureal3
(N
, Val
);
6032 procedure Set_Reason
6033 (N
: Node_Id
; Val
: Uint
) is
6035 pragma Assert
(False
6036 or else NT
(N
).Nkind
= N_Raise_Constraint_Error
6037 or else NT
(N
).Nkind
= N_Raise_Program_Error
6038 or else NT
(N
).Nkind
= N_Raise_Storage_Error
);
6042 procedure Set_Record_Extension_Part
6043 (N
: Node_Id
; Val
: Node_Id
) is
6045 pragma Assert
(False
6046 or else NT
(N
).Nkind
= N_Derived_Type_Definition
);
6047 Set_Node3_With_Parent
(N
, Val
);
6048 end Set_Record_Extension_Part
;
6050 procedure Set_Redundant_Use
6051 (N
: Node_Id
; Val
: Boolean := True) is
6053 pragma Assert
(False
6054 or else NT
(N
).Nkind
= N_Attribute_Reference
6055 or else NT
(N
).Nkind
= N_Expanded_Name
6056 or else NT
(N
).Nkind
= N_Identifier
);
6057 Set_Flag13
(N
, Val
);
6058 end Set_Redundant_Use
;
6060 procedure Set_Renaming_Exception
6061 (N
: Node_Id
; Val
: Node_Id
) is
6063 pragma Assert
(False
6064 or else NT
(N
).Nkind
= N_Exception_Declaration
);
6066 end Set_Renaming_Exception
;
6068 procedure Set_Result_Definition
6069 (N
: Node_Id
; Val
: Node_Id
) is
6071 pragma Assert
(False
6072 or else NT
(N
).Nkind
= N_Access_Function_Definition
6073 or else NT
(N
).Nkind
= N_Function_Specification
);
6074 Set_Node4_With_Parent
(N
, Val
);
6075 end Set_Result_Definition
;
6077 procedure Set_Return_Object_Declarations
6078 (N
: Node_Id
; Val
: List_Id
) is
6080 pragma Assert
(False
6081 or else NT
(N
).Nkind
= N_Extended_Return_Statement
);
6082 Set_List3_With_Parent
(N
, Val
);
6083 end Set_Return_Object_Declarations
;
6085 procedure Set_Return_Statement_Entity
6086 (N
: Node_Id
; Val
: Node_Id
) is
6088 pragma Assert
(False
6089 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6090 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6091 Set_Node5
(N
, Val
); -- semantic field, no parent set
6092 end Set_Return_Statement_Entity
;
6094 procedure Set_Reverse_Present
6095 (N
: Node_Id
; Val
: Boolean := True) is
6097 pragma Assert
(False
6098 or else NT
(N
).Nkind
= N_Iterator_Specification
6099 or else NT
(N
).Nkind
= N_Loop_Parameter_Specification
);
6100 Set_Flag15
(N
, Val
);
6101 end Set_Reverse_Present
;
6103 procedure Set_Right_Opnd
6104 (N
: Node_Id
; Val
: Node_Id
) is
6106 pragma Assert
(False
6107 or else NT
(N
).Nkind
in N_Op
6108 or else NT
(N
).Nkind
= N_And_Then
6109 or else NT
(N
).Nkind
= N_In
6110 or else NT
(N
).Nkind
= N_Not_In
6111 or else NT
(N
).Nkind
= N_Or_Else
);
6112 Set_Node3_With_Parent
(N
, Val
);
6115 procedure Set_Rounded_Result
6116 (N
: Node_Id
; Val
: Boolean := True) is
6118 pragma Assert
(False
6119 or else NT
(N
).Nkind
= N_Op_Divide
6120 or else NT
(N
).Nkind
= N_Op_Multiply
6121 or else NT
(N
).Nkind
= N_Type_Conversion
);
6122 Set_Flag18
(N
, Val
);
6123 end Set_Rounded_Result
;
6125 procedure Set_SCIL_Controlling_Tag
6126 (N
: Node_Id
; Val
: Node_Id
) is
6128 pragma Assert
(False
6129 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
6130 Set_Node5
(N
, Val
); -- semantic field, no parent set
6131 end Set_SCIL_Controlling_Tag
;
6133 procedure Set_SCIL_Entity
6134 (N
: Node_Id
; Val
: Node_Id
) is
6136 pragma Assert
(False
6137 or else NT
(N
).Nkind
= N_SCIL_Dispatch_Table_Tag_Init
6138 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
6139 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
6140 Set_Node4
(N
, Val
); -- semantic field, no parent set
6141 end Set_SCIL_Entity
;
6143 procedure Set_SCIL_Tag_Value
6144 (N
: Node_Id
; Val
: Node_Id
) is
6146 pragma Assert
(False
6147 or else NT
(N
).Nkind
= N_SCIL_Membership_Test
);
6148 Set_Node5
(N
, Val
); -- semantic field, no parent set
6149 end Set_SCIL_Tag_Value
;
6151 procedure Set_SCIL_Target_Prim
6152 (N
: Node_Id
; Val
: Node_Id
) is
6154 pragma Assert
(False
6155 or else NT
(N
).Nkind
= N_SCIL_Dispatching_Call
);
6156 Set_Node2
(N
, Val
); -- semantic field, no parent set
6157 end Set_SCIL_Target_Prim
;
6160 (N
: Node_Id
; Val
: Node_Id
) is
6162 pragma Assert
(False
6163 or else NT
(N
).Nkind
= N_Defining_Character_Literal
6164 or else NT
(N
).Nkind
= N_Defining_Identifier
6165 or else NT
(N
).Nkind
= N_Defining_Operator_Symbol
);
6166 Set_Node3
(N
, Val
); -- semantic field, no parent set
6169 procedure Set_Select_Alternatives
6170 (N
: Node_Id
; Val
: List_Id
) is
6172 pragma Assert
(False
6173 or else NT
(N
).Nkind
= N_Selective_Accept
);
6174 Set_List1_With_Parent
(N
, Val
);
6175 end Set_Select_Alternatives
;
6177 procedure Set_Selector_Name
6178 (N
: Node_Id
; Val
: Node_Id
) is
6180 pragma Assert
(False
6181 or else NT
(N
).Nkind
= N_Expanded_Name
6182 or else NT
(N
).Nkind
= N_Generic_Association
6183 or else NT
(N
).Nkind
= N_Parameter_Association
6184 or else NT
(N
).Nkind
= N_Selected_Component
);
6185 Set_Node2_With_Parent
(N
, Val
);
6186 end Set_Selector_Name
;
6188 procedure Set_Selector_Names
6189 (N
: Node_Id
; Val
: List_Id
) is
6191 pragma Assert
(False
6192 or else NT
(N
).Nkind
= N_Discriminant_Association
);
6193 Set_List1_With_Parent
(N
, Val
);
6194 end Set_Selector_Names
;
6196 procedure Set_Shift_Count_OK
6197 (N
: Node_Id
; Val
: Boolean := True) is
6199 pragma Assert
(False
6200 or else NT
(N
).Nkind
= N_Op_Rotate_Left
6201 or else NT
(N
).Nkind
= N_Op_Rotate_Right
6202 or else NT
(N
).Nkind
= N_Op_Shift_Left
6203 or else NT
(N
).Nkind
= N_Op_Shift_Right
6204 or else NT
(N
).Nkind
= N_Op_Shift_Right_Arithmetic
);
6206 end Set_Shift_Count_OK
;
6208 procedure Set_Source_Type
6209 (N
: Node_Id
; Val
: Entity_Id
) is
6211 pragma Assert
(False
6212 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
6213 Set_Node1
(N
, Val
); -- semantic field, no parent set
6214 end Set_Source_Type
;
6216 procedure Set_Specification
6217 (N
: Node_Id
; Val
: Node_Id
) is
6219 pragma Assert
(False
6220 or else NT
(N
).Nkind
= N_Abstract_Subprogram_Declaration
6221 or else NT
(N
).Nkind
= N_Expression_Function
6222 or else NT
(N
).Nkind
= N_Formal_Abstract_Subprogram_Declaration
6223 or else NT
(N
).Nkind
= N_Formal_Concrete_Subprogram_Declaration
6224 or else NT
(N
).Nkind
= N_Generic_Package_Declaration
6225 or else NT
(N
).Nkind
= N_Generic_Subprogram_Declaration
6226 or else NT
(N
).Nkind
= N_Package_Declaration
6227 or else NT
(N
).Nkind
= N_Subprogram_Body
6228 or else NT
(N
).Nkind
= N_Subprogram_Body_Stub
6229 or else NT
(N
).Nkind
= N_Subprogram_Declaration
6230 or else NT
(N
).Nkind
= N_Subprogram_Renaming_Declaration
);
6231 Set_Node1_With_Parent
(N
, Val
);
6232 end Set_Specification
;
6234 procedure Set_Split_PPC
6235 (N
: Node_Id
; Val
: Boolean) is
6237 pragma Assert
(False
6238 or else NT
(N
).Nkind
= N_Aspect_Specification
6239 or else NT
(N
).Nkind
= N_Pragma
);
6240 Set_Flag17
(N
, Val
);
6243 procedure Set_Statements
6244 (N
: Node_Id
; Val
: List_Id
) is
6246 pragma Assert
(False
6247 or else NT
(N
).Nkind
= N_Abortable_Part
6248 or else NT
(N
).Nkind
= N_Accept_Alternative
6249 or else NT
(N
).Nkind
= N_Case_Statement_Alternative
6250 or else NT
(N
).Nkind
= N_Delay_Alternative
6251 or else NT
(N
).Nkind
= N_Entry_Call_Alternative
6252 or else NT
(N
).Nkind
= N_Exception_Handler
6253 or else NT
(N
).Nkind
= N_Handled_Sequence_Of_Statements
6254 or else NT
(N
).Nkind
= N_Loop_Statement
6255 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
6256 Set_List3_With_Parent
(N
, Val
);
6259 procedure Set_Storage_Pool
6260 (N
: Node_Id
; Val
: Node_Id
) is
6262 pragma Assert
(False
6263 or else NT
(N
).Nkind
= N_Allocator
6264 or else NT
(N
).Nkind
= N_Extended_Return_Statement
6265 or else NT
(N
).Nkind
= N_Free_Statement
6266 or else NT
(N
).Nkind
= N_Simple_Return_Statement
);
6267 Set_Node1
(N
, Val
); -- semantic field, no parent set
6268 end Set_Storage_Pool
;
6270 procedure Set_Subpool_Handle_Name
6271 (N
: Node_Id
; Val
: Node_Id
) is
6273 pragma Assert
(False
6274 or else NT
(N
).Nkind
= N_Allocator
);
6275 Set_Node4_With_Parent
(N
, Val
);
6276 end Set_Subpool_Handle_Name
;
6278 procedure Set_Strval
6279 (N
: Node_Id
; Val
: String_Id
) is
6281 pragma Assert
(False
6282 or else NT
(N
).Nkind
= N_Operator_Symbol
6283 or else NT
(N
).Nkind
= N_String_Literal
);
6287 procedure Set_Subtype_Indication
6288 (N
: Node_Id
; Val
: Node_Id
) is
6290 pragma Assert
(False
6291 or else NT
(N
).Nkind
= N_Access_To_Object_Definition
6292 or else NT
(N
).Nkind
= N_Component_Definition
6293 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6294 or else NT
(N
).Nkind
= N_Iterator_Specification
6295 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6296 or else NT
(N
).Nkind
= N_Subtype_Declaration
);
6297 Set_Node5_With_Parent
(N
, Val
);
6298 end Set_Subtype_Indication
;
6300 procedure Set_Subtype_Mark
6301 (N
: Node_Id
; Val
: Node_Id
) is
6303 pragma Assert
(False
6304 or else NT
(N
).Nkind
= N_Access_Definition
6305 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
6306 or else NT
(N
).Nkind
= N_Formal_Object_Declaration
6307 or else NT
(N
).Nkind
= N_Object_Renaming_Declaration
6308 or else NT
(N
).Nkind
= N_Qualified_Expression
6309 or else NT
(N
).Nkind
= N_Subtype_Indication
6310 or else NT
(N
).Nkind
= N_Type_Conversion
6311 or else NT
(N
).Nkind
= N_Unchecked_Type_Conversion
);
6312 Set_Node4_With_Parent
(N
, Val
);
6313 end Set_Subtype_Mark
;
6315 procedure Set_Subtype_Marks
6316 (N
: Node_Id
; Val
: List_Id
) is
6318 pragma Assert
(False
6319 or else NT
(N
).Nkind
= N_Unconstrained_Array_Definition
6320 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
6321 Set_List2_With_Parent
(N
, Val
);
6322 end Set_Subtype_Marks
;
6324 procedure Set_Suppress_Assignment_Checks
6325 (N
: Node_Id
; Val
: Boolean := True) is
6327 pragma Assert
(False
6328 or else NT
(N
).Nkind
= N_Assignment_Statement
6329 or else NT
(N
).Nkind
= N_Object_Declaration
);
6330 Set_Flag18
(N
, Val
);
6331 end Set_Suppress_Assignment_Checks
;
6333 procedure Set_Suppress_Loop_Warnings
6334 (N
: Node_Id
; Val
: Boolean := True) is
6336 pragma Assert
(False
6337 or else NT
(N
).Nkind
= N_Loop_Statement
);
6338 Set_Flag17
(N
, Val
);
6339 end Set_Suppress_Loop_Warnings
;
6341 procedure Set_Synchronized_Present
6342 (N
: Node_Id
; Val
: Boolean := True) is
6344 pragma Assert
(False
6345 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6346 or else NT
(N
).Nkind
= N_Formal_Derived_Type_Definition
6347 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6348 or else NT
(N
).Nkind
= N_Record_Definition
);
6350 end Set_Synchronized_Present
;
6352 procedure Set_Tagged_Present
6353 (N
: Node_Id
; Val
: Boolean := True) is
6355 pragma Assert
(False
6356 or else NT
(N
).Nkind
= N_Formal_Incomplete_Type_Definition
6357 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
6358 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
6359 or else NT
(N
).Nkind
= N_Private_Type_Declaration
6360 or else NT
(N
).Nkind
= N_Record_Definition
);
6361 Set_Flag15
(N
, Val
);
6362 end Set_Tagged_Present
;
6364 procedure Set_Target_Type
6365 (N
: Node_Id
; Val
: Entity_Id
) is
6367 pragma Assert
(False
6368 or else NT
(N
).Nkind
= N_Validate_Unchecked_Conversion
);
6369 Set_Node2
(N
, Val
); -- semantic field, no parent set
6370 end Set_Target_Type
;
6372 procedure Set_Task_Definition
6373 (N
: Node_Id
; Val
: Node_Id
) is
6375 pragma Assert
(False
6376 or else NT
(N
).Nkind
= N_Single_Task_Declaration
6377 or else NT
(N
).Nkind
= N_Task_Type_Declaration
);
6378 Set_Node3_With_Parent
(N
, Val
);
6379 end Set_Task_Definition
;
6381 procedure Set_Task_Present
6382 (N
: Node_Id
; Val
: Boolean := True) is
6384 pragma Assert
(False
6385 or else NT
(N
).Nkind
= N_Derived_Type_Definition
6386 or else NT
(N
).Nkind
= N_Record_Definition
);
6388 end Set_Task_Present
;
6390 procedure Set_Then_Actions
6391 (N
: Node_Id
; Val
: List_Id
) is
6393 pragma Assert
(False
6394 or else NT
(N
).Nkind
= N_If_Expression
);
6395 Set_List2_With_Parent
(N
, Val
); -- semantic field, but needs parents
6396 end Set_Then_Actions
;
6398 procedure Set_Then_Statements
6399 (N
: Node_Id
; Val
: List_Id
) is
6401 pragma Assert
(False
6402 or else NT
(N
).Nkind
= N_Elsif_Part
6403 or else NT
(N
).Nkind
= N_If_Statement
);
6404 Set_List2_With_Parent
(N
, Val
);
6405 end Set_Then_Statements
;
6407 procedure Set_Treat_Fixed_As_Integer
6408 (N
: Node_Id
; Val
: Boolean := True) is
6410 pragma Assert
(False
6411 or else NT
(N
).Nkind
= N_Op_Divide
6412 or else NT
(N
).Nkind
= N_Op_Mod
6413 or else NT
(N
).Nkind
= N_Op_Multiply
6414 or else NT
(N
).Nkind
= N_Op_Rem
);
6415 Set_Flag14
(N
, Val
);
6416 end Set_Treat_Fixed_As_Integer
;
6418 procedure Set_Triggering_Alternative
6419 (N
: Node_Id
; Val
: Node_Id
) is
6421 pragma Assert
(False
6422 or else NT
(N
).Nkind
= N_Asynchronous_Select
);
6423 Set_Node1_With_Parent
(N
, Val
);
6424 end Set_Triggering_Alternative
;
6426 procedure Set_Triggering_Statement
6427 (N
: Node_Id
; Val
: Node_Id
) is
6429 pragma Assert
(False
6430 or else NT
(N
).Nkind
= N_Triggering_Alternative
);
6431 Set_Node1_With_Parent
(N
, Val
);
6432 end Set_Triggering_Statement
;
6434 procedure Set_TSS_Elist
6435 (N
: Node_Id
; Val
: Elist_Id
) is
6437 pragma Assert
(False
6438 or else NT
(N
).Nkind
= N_Freeze_Entity
);
6439 Set_Elist3
(N
, Val
); -- semantic field, no parent set
6442 procedure Set_Uneval_Old_Accept
6443 (N
: Node_Id
; Val
: Boolean := True) is
6445 pragma Assert
(False
6446 or else NT
(N
).Nkind
= N_Pragma
);
6448 end Set_Uneval_Old_Accept
;
6450 procedure Set_Uneval_Old_Warn
6451 (N
: Node_Id
; Val
: Boolean := True) is
6453 pragma Assert
(False
6454 or else NT
(N
).Nkind
= N_Pragma
);
6455 Set_Flag18
(N
, Val
);
6456 end Set_Uneval_Old_Warn
;
6458 procedure Set_Type_Definition
6459 (N
: Node_Id
; Val
: Node_Id
) is
6461 pragma Assert
(False
6462 or else NT
(N
).Nkind
= N_Full_Type_Declaration
);
6463 Set_Node3_With_Parent
(N
, Val
);
6464 end Set_Type_Definition
;
6467 (N
: Node_Id
; Val
: Node_Id
) is
6469 pragma Assert
(False
6470 or else NT
(N
).Nkind
= N_Compilation_Unit
);
6471 Set_Node2_With_Parent
(N
, Val
);
6474 procedure Set_Unknown_Discriminants_Present
6475 (N
: Node_Id
; Val
: Boolean := True) is
6477 pragma Assert
(False
6478 or else NT
(N
).Nkind
= N_Formal_Type_Declaration
6479 or else NT
(N
).Nkind
= N_Incomplete_Type_Declaration
6480 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
6481 or else NT
(N
).Nkind
= N_Private_Type_Declaration
);
6482 Set_Flag13
(N
, Val
);
6483 end Set_Unknown_Discriminants_Present
;
6485 procedure Set_Unreferenced_In_Spec
6486 (N
: Node_Id
; Val
: Boolean := True) is
6488 pragma Assert
(False
6489 or else NT
(N
).Nkind
= N_With_Clause
);
6491 end Set_Unreferenced_In_Spec
;
6493 procedure Set_Variant_Part
6494 (N
: Node_Id
; Val
: Node_Id
) is
6496 pragma Assert
(False
6497 or else NT
(N
).Nkind
= N_Component_List
);
6498 Set_Node4_With_Parent
(N
, Val
);
6499 end Set_Variant_Part
;
6501 procedure Set_Variants
6502 (N
: Node_Id
; Val
: List_Id
) is
6504 pragma Assert
(False
6505 or else NT
(N
).Nkind
= N_Variant_Part
);
6506 Set_List1_With_Parent
(N
, Val
);
6509 procedure Set_Visible_Declarations
6510 (N
: Node_Id
; Val
: List_Id
) is
6512 pragma Assert
(False
6513 or else NT
(N
).Nkind
= N_Package_Specification
6514 or else NT
(N
).Nkind
= N_Protected_Definition
6515 or else NT
(N
).Nkind
= N_Task_Definition
);
6516 Set_List2_With_Parent
(N
, Val
);
6517 end Set_Visible_Declarations
;
6519 procedure Set_Uninitialized_Variable
6520 (N
: Node_Id
; Val
: Node_Id
) is
6522 pragma Assert
(False
6523 or else NT
(N
).Nkind
= N_Formal_Private_Type_Definition
6524 or else NT
(N
).Nkind
= N_Private_Extension_Declaration
);
6526 end Set_Uninitialized_Variable
;
6528 procedure Set_Used_Operations
6529 (N
: Node_Id
; Val
: Elist_Id
) is
6531 pragma Assert
(False
6532 or else NT
(N
).Nkind
= N_Use_Type_Clause
);
6533 Set_Elist5
(N
, Val
);
6534 end Set_Used_Operations
;
6536 procedure Set_Was_Expression_Function
6537 (N
: Node_Id
; Val
: Boolean := True) is
6539 pragma Assert
(False
6540 or else NT
(N
).Nkind
= N_Subprogram_Body
);
6541 Set_Flag18
(N
, Val
);
6542 end Set_Was_Expression_Function
;
6544 procedure Set_Was_Originally_Stub
6545 (N
: Node_Id
; Val
: Boolean := True) is
6547 pragma Assert
(False
6548 or else NT
(N
).Nkind
= N_Package_Body
6549 or else NT
(N
).Nkind
= N_Protected_Body
6550 or else NT
(N
).Nkind
= N_Subprogram_Body
6551 or else NT
(N
).Nkind
= N_Task_Body
);
6552 Set_Flag13
(N
, Val
);
6553 end Set_Was_Originally_Stub
;
6555 procedure Set_Withed_Body
6556 (N
: Node_Id
; Val
: Node_Id
) is
6558 pragma Assert
(False
6559 or else NT
(N
).Nkind
= N_With_Clause
);
6561 end Set_Withed_Body
;
6563 -------------------------
6564 -- Iterator Procedures --
6565 -------------------------
6567 procedure Next_Entity
(N
: in out Node_Id
) is
6569 N
:= Next_Entity
(N
);
6572 procedure Next_Named_Actual
(N
: in out Node_Id
) is
6574 N
:= Next_Named_Actual
(N
);
6575 end Next_Named_Actual
;
6577 procedure Next_Rep_Item
(N
: in out Node_Id
) is
6579 N
:= Next_Rep_Item
(N
);
6582 procedure Next_Use_Clause
(N
: in out Node_Id
) is
6584 N
:= Next_Use_Clause
(N
);
6585 end Next_Use_Clause
;
6591 function End_Location
(N
: Node_Id
) return Source_Ptr
is
6592 L
: constant Uint
:= End_Span
(N
);
6597 return Source_Ptr
(Int
(Sloc
(N
)) + UI_To_Int
(L
));
6601 --------------------
6602 -- Get_Pragma_Arg --
6603 --------------------
6605 function Get_Pragma_Arg
(Arg
: Node_Id
) return Node_Id
is
6607 if Nkind
(Arg
) = N_Pragma_Argument_Association
then
6608 return Expression
(Arg
);
6614 ----------------------
6615 -- Set_End_Location --
6616 ----------------------
6618 procedure Set_End_Location
(N
: Node_Id
; S
: Source_Ptr
) is
6621 UI_From_Int
(Int
(S
) - Int
(Sloc
(N
))));
6622 end Set_End_Location
;
6631 V2
: Node_Kind
) return Boolean
6634 return T
= V1
or else
6642 V3
: Node_Kind
) return Boolean
6645 return T
= V1
or else
6655 V4
: Node_Kind
) return Boolean
6658 return T
= V1
or else
6670 V5
: Node_Kind
) return Boolean
6673 return T
= V1
or else
6687 V6
: Node_Kind
) return Boolean
6690 return T
= V1
or else
6706 V7
: Node_Kind
) return Boolean
6709 return T
= V1
or else
6727 V8
: Node_Kind
) return Boolean
6730 return T
= V1
or else
6750 V9
: Node_Kind
) return Boolean
6753 return T
= V1
or else
6768 function Pragma_Name
(N
: Node_Id
) return Name_Id
is
6770 return Chars
(Pragma_Identifier
(N
));