PR tree-optimization/82929
[official-gcc.git] / gcc / ada / sinfo.adb
blob20ff3b26557102538166a60de6f8fe456d3f720e
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 1992-2017, Free Software Foundation, Inc. --
10 -- --
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. --
17 -- --
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. --
21 -- --
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/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks (All_Checks);
33 -- No subprogram ordering check, due to logical grouping
35 with Atree; use Atree;
37 package body Sinfo is
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 Abort_Present
65 (N : Node_Id) return Boolean is
66 begin
67 pragma Assert (False
68 or else NT (N).Nkind = N_Requeue_Statement);
69 return Flag15 (N);
70 end Abort_Present;
72 function Abortable_Part
73 (N : Node_Id) return Node_Id is
74 begin
75 pragma Assert (False
76 or else NT (N).Nkind = N_Asynchronous_Select);
77 return Node2 (N);
78 end Abortable_Part;
80 function Abstract_Present
81 (N : Node_Id) return Boolean is
82 begin
83 pragma Assert (False
84 or else NT (N).Nkind = N_Derived_Type_Definition
85 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
86 or else NT (N).Nkind = N_Formal_Private_Type_Definition
87 or else NT (N).Nkind = N_Private_Extension_Declaration
88 or else NT (N).Nkind = N_Private_Type_Declaration
89 or else NT (N).Nkind = N_Record_Definition);
90 return Flag4 (N);
91 end Abstract_Present;
93 function Accept_Handler_Records
94 (N : Node_Id) return List_Id is
95 begin
96 pragma Assert (False
97 or else NT (N).Nkind = N_Accept_Alternative);
98 return List5 (N);
99 end Accept_Handler_Records;
101 function Accept_Statement
102 (N : Node_Id) return Node_Id is
103 begin
104 pragma Assert (False
105 or else NT (N).Nkind = N_Accept_Alternative);
106 return Node2 (N);
107 end Accept_Statement;
109 function Access_Definition
110 (N : Node_Id) return Node_Id is
111 begin
112 pragma Assert (False
113 or else NT (N).Nkind = N_Component_Definition
114 or else NT (N).Nkind = N_Formal_Object_Declaration
115 or else NT (N).Nkind = N_Object_Renaming_Declaration);
116 return Node3 (N);
117 end Access_Definition;
119 function Access_To_Subprogram_Definition
120 (N : Node_Id) return Node_Id is
121 begin
122 pragma Assert (False
123 or else NT (N).Nkind = N_Access_Definition);
124 return Node3 (N);
125 end Access_To_Subprogram_Definition;
127 function Access_Types_To_Process
128 (N : Node_Id) return Elist_Id is
129 begin
130 pragma Assert (False
131 or else NT (N).Nkind = N_Freeze_Entity);
132 return Elist2 (N);
133 end Access_Types_To_Process;
135 function Actions
136 (N : Node_Id) return List_Id is
137 begin
138 pragma Assert (False
139 or else NT (N).Nkind = N_And_Then
140 or else NT (N).Nkind = N_Case_Expression_Alternative
141 or else NT (N).Nkind = N_Compilation_Unit_Aux
142 or else NT (N).Nkind = N_Compound_Statement
143 or else NT (N).Nkind = N_Expression_With_Actions
144 or else NT (N).Nkind = N_Freeze_Entity
145 or else NT (N).Nkind = N_Or_Else);
146 return List1 (N);
147 end Actions;
149 function Activation_Chain_Entity
150 (N : Node_Id) return Node_Id is
151 begin
152 pragma Assert (False
153 or else NT (N).Nkind = N_Block_Statement
154 or else NT (N).Nkind = N_Entry_Body
155 or else NT (N).Nkind = N_Generic_Package_Declaration
156 or else NT (N).Nkind = N_Package_Declaration
157 or else NT (N).Nkind = N_Subprogram_Body
158 or else NT (N).Nkind = N_Task_Body);
159 return Node3 (N);
160 end Activation_Chain_Entity;
162 function Acts_As_Spec
163 (N : Node_Id) return Boolean is
164 begin
165 pragma Assert (False
166 or else NT (N).Nkind = N_Compilation_Unit
167 or else NT (N).Nkind = N_Subprogram_Body);
168 return Flag4 (N);
169 end Acts_As_Spec;
171 function Actual_Designated_Subtype
172 (N : Node_Id) return Node_Id is
173 begin
174 pragma Assert (False
175 or else NT (N).Nkind = N_Explicit_Dereference
176 or else NT (N).Nkind = N_Free_Statement);
177 return Node4 (N);
178 end Actual_Designated_Subtype;
180 function Address_Warning_Posted
181 (N : Node_Id) return Boolean is
182 begin
183 pragma Assert (False
184 or else NT (N).Nkind = N_Attribute_Definition_Clause);
185 return Flag18 (N);
186 end Address_Warning_Posted;
188 function Aggregate_Bounds
189 (N : Node_Id) return Node_Id is
190 begin
191 pragma Assert (False
192 or else NT (N).Nkind = N_Aggregate);
193 return Node3 (N);
194 end Aggregate_Bounds;
196 function Aliased_Present
197 (N : Node_Id) return Boolean is
198 begin
199 pragma Assert (False
200 or else NT (N).Nkind = N_Component_Definition
201 or else NT (N).Nkind = N_Object_Declaration
202 or else NT (N).Nkind = N_Parameter_Specification);
203 return Flag4 (N);
204 end Aliased_Present;
206 function Alloc_For_BIP_Return
207 (N : Node_Id) return Boolean is
208 begin
209 pragma Assert (False
210 or else NT (N).Nkind = N_Allocator);
211 return Flag1 (N);
212 end Alloc_For_BIP_Return;
214 function All_Others
215 (N : Node_Id) return Boolean is
216 begin
217 pragma Assert (False
218 or else NT (N).Nkind = N_Others_Choice);
219 return Flag11 (N);
220 end All_Others;
222 function All_Present
223 (N : Node_Id) return Boolean is
224 begin
225 pragma Assert (False
226 or else NT (N).Nkind = N_Access_Definition
227 or else NT (N).Nkind = N_Access_To_Object_Definition
228 or else NT (N).Nkind = N_Quantified_Expression
229 or else NT (N).Nkind = N_Use_Type_Clause);
230 return Flag15 (N);
231 end All_Present;
233 function Alternatives
234 (N : Node_Id) return List_Id is
235 begin
236 pragma Assert (False
237 or else NT (N).Nkind = N_Case_Expression
238 or else NT (N).Nkind = N_Case_Statement
239 or else NT (N).Nkind = N_In
240 or else NT (N).Nkind = N_Not_In);
241 return List4 (N);
242 end Alternatives;
244 function Ancestor_Part
245 (N : Node_Id) return Node_Id is
246 begin
247 pragma Assert (False
248 or else NT (N).Nkind = N_Extension_Aggregate);
249 return Node3 (N);
250 end Ancestor_Part;
252 function Atomic_Sync_Required
253 (N : Node_Id) return Boolean is
254 begin
255 pragma Assert (False
256 or else NT (N).Nkind = N_Expanded_Name
257 or else NT (N).Nkind = N_Explicit_Dereference
258 or else NT (N).Nkind = N_Identifier
259 or else NT (N).Nkind = N_Indexed_Component
260 or else NT (N).Nkind = N_Selected_Component);
261 return Flag14 (N);
262 end Atomic_Sync_Required;
264 function Array_Aggregate
265 (N : Node_Id) return Node_Id is
266 begin
267 pragma Assert (False
268 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
269 return Node3 (N);
270 end Array_Aggregate;
272 function Aspect_Rep_Item
273 (N : Node_Id) return Node_Id is
274 begin
275 pragma Assert (False
276 or else NT (N).Nkind = N_Aspect_Specification);
277 return Node2 (N);
278 end Aspect_Rep_Item;
280 function Assignment_OK
281 (N : Node_Id) return Boolean is
282 begin
283 pragma Assert (False
284 or else NT (N).Nkind = N_Object_Declaration
285 or else NT (N).Nkind in N_Subexpr);
286 return Flag15 (N);
287 end Assignment_OK;
289 function Associated_Node
290 (N : Node_Id) return Node_Id is
291 begin
292 pragma Assert (False
293 or else NT (N).Nkind in N_Has_Entity
294 or else NT (N).Nkind = N_Aggregate
295 or else NT (N).Nkind = N_Extension_Aggregate
296 or else NT (N).Nkind = N_Selected_Component
297 or else NT (N).Nkind = N_Use_Package_Clause);
298 return Node4 (N);
299 end Associated_Node;
301 function At_End_Proc
302 (N : Node_Id) return Node_Id is
303 begin
304 pragma Assert (False
305 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
306 return Node1 (N);
307 end At_End_Proc;
309 function Attribute_Name
310 (N : Node_Id) return Name_Id is
311 begin
312 pragma Assert (False
313 or else NT (N).Nkind = N_Attribute_Reference);
314 return Name2 (N);
315 end Attribute_Name;
317 function Aux_Decls_Node
318 (N : Node_Id) return Node_Id is
319 begin
320 pragma Assert (False
321 or else NT (N).Nkind = N_Compilation_Unit);
322 return Node5 (N);
323 end Aux_Decls_Node;
325 function Backwards_OK
326 (N : Node_Id) return Boolean is
327 begin
328 pragma Assert (False
329 or else NT (N).Nkind = N_Assignment_Statement);
330 return Flag6 (N);
331 end Backwards_OK;
333 function Bad_Is_Detected
334 (N : Node_Id) return Boolean is
335 begin
336 pragma Assert (False
337 or else NT (N).Nkind = N_Subprogram_Body);
338 return Flag15 (N);
339 end Bad_Is_Detected;
341 function Body_Required
342 (N : Node_Id) return Boolean is
343 begin
344 pragma Assert (False
345 or else NT (N).Nkind = N_Compilation_Unit);
346 return Flag13 (N);
347 end Body_Required;
349 function Body_To_Inline
350 (N : Node_Id) return Node_Id is
351 begin
352 pragma Assert (False
353 or else NT (N).Nkind = N_Subprogram_Declaration);
354 return Node3 (N);
355 end Body_To_Inline;
357 function Box_Present
358 (N : Node_Id) return Boolean is
359 begin
360 pragma Assert (False
361 or else NT (N).Nkind = N_Component_Association
362 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
363 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
364 or else NT (N).Nkind = N_Formal_Package_Declaration
365 or else NT (N).Nkind = N_Generic_Association
366 or else NT (N).Nkind = N_Iterated_Component_Association);
367 return Flag15 (N);
368 end Box_Present;
370 function By_Ref
371 (N : Node_Id) return Boolean is
372 begin
373 pragma Assert (False
374 or else NT (N).Nkind = N_Extended_Return_Statement
375 or else NT (N).Nkind = N_Simple_Return_Statement);
376 return Flag5 (N);
377 end By_Ref;
379 function Char_Literal_Value
380 (N : Node_Id) return Uint is
381 begin
382 pragma Assert (False
383 or else NT (N).Nkind = N_Character_Literal);
384 return Uint2 (N);
385 end Char_Literal_Value;
387 function Chars
388 (N : Node_Id) return Name_Id is
389 begin
390 pragma Assert (False
391 or else NT (N).Nkind in N_Has_Chars);
392 return Name1 (N);
393 end Chars;
395 function Check_Address_Alignment
396 (N : Node_Id) return Boolean is
397 begin
398 pragma Assert (False
399 or else NT (N).Nkind = N_Attribute_Definition_Clause);
400 return Flag11 (N);
401 end Check_Address_Alignment;
403 function Choice_Parameter
404 (N : Node_Id) return Node_Id is
405 begin
406 pragma Assert (False
407 or else NT (N).Nkind = N_Exception_Handler);
408 return Node2 (N);
409 end Choice_Parameter;
411 function Choices
412 (N : Node_Id) return List_Id is
413 begin
414 pragma Assert (False
415 or else NT (N).Nkind = N_Component_Association);
416 return List1 (N);
417 end Choices;
419 function Class_Present
420 (N : Node_Id) return Boolean is
421 begin
422 pragma Assert (False
423 or else NT (N).Nkind = N_Aspect_Specification
424 or else NT (N).Nkind = N_Pragma);
425 return Flag6 (N);
426 end Class_Present;
428 function Classifications
429 (N : Node_Id) return Node_Id is
430 begin
431 pragma Assert (False
432 or else NT (N).Nkind = N_Contract);
433 return Node3 (N);
434 end Classifications;
436 function Cleanup_Actions
437 (N : Node_Id) return List_Id is
438 begin
439 pragma Assert (False
440 or else NT (N).Nkind = N_Block_Statement);
441 return List5 (N);
442 end Cleanup_Actions;
444 function Comes_From_Extended_Return_Statement
445 (N : Node_Id) return Boolean is
446 begin
447 pragma Assert (False
448 or else NT (N).Nkind = N_Simple_Return_Statement);
449 return Flag18 (N);
450 end Comes_From_Extended_Return_Statement;
452 function Compile_Time_Known_Aggregate
453 (N : Node_Id) return Boolean is
454 begin
455 pragma Assert (False
456 or else NT (N).Nkind = N_Aggregate);
457 return Flag18 (N);
458 end Compile_Time_Known_Aggregate;
460 function Component_Associations
461 (N : Node_Id) return List_Id is
462 begin
463 pragma Assert (False
464 or else NT (N).Nkind = N_Aggregate
465 or else NT (N).Nkind = N_Delta_Aggregate
466 or else NT (N).Nkind = N_Extension_Aggregate);
467 return List2 (N);
468 end Component_Associations;
470 function Component_Clauses
471 (N : Node_Id) return List_Id is
472 begin
473 pragma Assert (False
474 or else NT (N).Nkind = N_Record_Representation_Clause);
475 return List3 (N);
476 end Component_Clauses;
478 function Component_Definition
479 (N : Node_Id) return Node_Id is
480 begin
481 pragma Assert (False
482 or else NT (N).Nkind = N_Component_Declaration
483 or else NT (N).Nkind = N_Constrained_Array_Definition
484 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
485 return Node4 (N);
486 end Component_Definition;
488 function Component_Items
489 (N : Node_Id) return List_Id is
490 begin
491 pragma Assert (False
492 or else NT (N).Nkind = N_Component_List);
493 return List3 (N);
494 end Component_Items;
496 function Component_List
497 (N : Node_Id) return Node_Id is
498 begin
499 pragma Assert (False
500 or else NT (N).Nkind = N_Record_Definition
501 or else NT (N).Nkind = N_Variant);
502 return Node1 (N);
503 end Component_List;
505 function Component_Name
506 (N : Node_Id) return Node_Id is
507 begin
508 pragma Assert (False
509 or else NT (N).Nkind = N_Component_Clause);
510 return Node1 (N);
511 end Component_Name;
513 function Componentwise_Assignment
514 (N : Node_Id) return Boolean is
515 begin
516 pragma Assert (False
517 or else NT (N).Nkind = N_Assignment_Statement);
518 return Flag14 (N);
519 end Componentwise_Assignment;
521 function Condition
522 (N : Node_Id) return Node_Id is
523 begin
524 pragma Assert (False
525 or else NT (N).Nkind = N_Accept_Alternative
526 or else NT (N).Nkind = N_Delay_Alternative
527 or else NT (N).Nkind = N_Elsif_Part
528 or else NT (N).Nkind = N_Entry_Body_Formal_Part
529 or else NT (N).Nkind = N_Exit_Statement
530 or else NT (N).Nkind = N_If_Statement
531 or else NT (N).Nkind = N_Iteration_Scheme
532 or else NT (N).Nkind = N_Quantified_Expression
533 or else NT (N).Nkind = N_Raise_Constraint_Error
534 or else NT (N).Nkind = N_Raise_Program_Error
535 or else NT (N).Nkind = N_Raise_Storage_Error
536 or else NT (N).Nkind = N_Terminate_Alternative);
537 return Node1 (N);
538 end Condition;
540 function Condition_Actions
541 (N : Node_Id) return List_Id is
542 begin
543 pragma Assert (False
544 or else NT (N).Nkind = N_Elsif_Part
545 or else NT (N).Nkind = N_Iteration_Scheme);
546 return List3 (N);
547 end Condition_Actions;
549 function Config_Pragmas
550 (N : Node_Id) return List_Id is
551 begin
552 pragma Assert (False
553 or else NT (N).Nkind = N_Compilation_Unit_Aux);
554 return List4 (N);
555 end Config_Pragmas;
557 function Constant_Present
558 (N : Node_Id) return Boolean is
559 begin
560 pragma Assert (False
561 or else NT (N).Nkind = N_Access_Definition
562 or else NT (N).Nkind = N_Access_To_Object_Definition
563 or else NT (N).Nkind = N_Object_Declaration);
564 return Flag17 (N);
565 end Constant_Present;
567 function Constraint
568 (N : Node_Id) return Node_Id is
569 begin
570 pragma Assert (False
571 or else NT (N).Nkind = N_Subtype_Indication);
572 return Node3 (N);
573 end Constraint;
575 function Constraints
576 (N : Node_Id) return List_Id is
577 begin
578 pragma Assert (False
579 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
580 return List1 (N);
581 end Constraints;
583 function Context_Installed
584 (N : Node_Id) return Boolean is
585 begin
586 pragma Assert (False
587 or else NT (N).Nkind = N_With_Clause);
588 return Flag13 (N);
589 end Context_Installed;
591 function Context_Items
592 (N : Node_Id) return List_Id is
593 begin
594 pragma Assert (False
595 or else NT (N).Nkind = N_Compilation_Unit);
596 return List1 (N);
597 end Context_Items;
599 function Context_Pending
600 (N : Node_Id) return Boolean is
601 begin
602 pragma Assert (False
603 or else NT (N).Nkind = N_Compilation_Unit);
604 return Flag16 (N);
605 end Context_Pending;
607 function Contract_Test_Cases
608 (N : Node_Id) return Node_Id is
609 begin
610 pragma Assert (False
611 or else NT (N).Nkind = N_Contract);
612 return Node2 (N);
613 end Contract_Test_Cases;
615 function Controlling_Argument
616 (N : Node_Id) return Node_Id is
617 begin
618 pragma Assert (False
619 or else NT (N).Nkind = N_Function_Call
620 or else NT (N).Nkind = N_Procedure_Call_Statement);
621 return Node1 (N);
622 end Controlling_Argument;
624 function Conversion_OK
625 (N : Node_Id) return Boolean is
626 begin
627 pragma Assert (False
628 or else NT (N).Nkind = N_Type_Conversion);
629 return Flag14 (N);
630 end Conversion_OK;
632 function Convert_To_Return_False
633 (N : Node_Id) return Boolean is
634 begin
635 pragma Assert (False
636 or else NT (N).Nkind = N_Raise_Expression);
637 return Flag13 (N);
638 end Convert_To_Return_False;
640 function Corresponding_Aspect
641 (N : Node_Id) return Node_Id is
642 begin
643 pragma Assert (False
644 or else NT (N).Nkind = N_Pragma);
645 return Node3 (N);
646 end Corresponding_Aspect;
648 function Corresponding_Body
649 (N : Node_Id) return Node_Id is
650 begin
651 pragma Assert (False
652 or else NT (N).Nkind = N_Entry_Declaration
653 or else NT (N).Nkind = N_Generic_Package_Declaration
654 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
655 or else NT (N).Nkind = N_Package_Body_Stub
656 or else NT (N).Nkind = N_Package_Declaration
657 or else NT (N).Nkind = N_Protected_Body_Stub
658 or else NT (N).Nkind = N_Protected_Type_Declaration
659 or else NT (N).Nkind = N_Subprogram_Body_Stub
660 or else NT (N).Nkind = N_Subprogram_Declaration
661 or else NT (N).Nkind = N_Task_Body_Stub
662 or else NT (N).Nkind = N_Task_Type_Declaration);
663 return Node5 (N);
664 end Corresponding_Body;
666 function Corresponding_Formal_Spec
667 (N : Node_Id) return Node_Id is
668 begin
669 pragma Assert (False
670 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
671 return Node3 (N);
672 end Corresponding_Formal_Spec;
674 function Corresponding_Generic_Association
675 (N : Node_Id) return Node_Id is
676 begin
677 pragma Assert (False
678 or else NT (N).Nkind = N_Object_Declaration
679 or else NT (N).Nkind = N_Object_Renaming_Declaration);
680 return Node5 (N);
681 end Corresponding_Generic_Association;
683 function Corresponding_Integer_Value
684 (N : Node_Id) return Uint is
685 begin
686 pragma Assert (False
687 or else NT (N).Nkind = N_Real_Literal);
688 return Uint4 (N);
689 end Corresponding_Integer_Value;
691 function Corresponding_Spec
692 (N : Node_Id) return Entity_Id is
693 begin
694 pragma Assert (False
695 or else NT (N).Nkind = N_Expression_Function
696 or else NT (N).Nkind = N_Package_Body
697 or else NT (N).Nkind = N_Protected_Body
698 or else NT (N).Nkind = N_Subprogram_Body
699 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
700 or else NT (N).Nkind = N_Task_Body
701 or else NT (N).Nkind = N_With_Clause);
702 return Node5 (N);
703 end Corresponding_Spec;
705 function Corresponding_Spec_Of_Stub
706 (N : Node_Id) return Entity_Id is
707 begin
708 pragma Assert (False
709 or else NT (N).Nkind = N_Package_Body_Stub
710 or else NT (N).Nkind = N_Protected_Body_Stub
711 or else NT (N).Nkind = N_Subprogram_Body_Stub
712 or else NT (N).Nkind = N_Task_Body_Stub);
713 return Node2 (N);
714 end Corresponding_Spec_Of_Stub;
716 function Corresponding_Stub
717 (N : Node_Id) return Node_Id is
718 begin
719 pragma Assert (False
720 or else NT (N).Nkind = N_Subunit);
721 return Node3 (N);
722 end Corresponding_Stub;
724 function Dcheck_Function
725 (N : Node_Id) return Entity_Id is
726 begin
727 pragma Assert (False
728 or else NT (N).Nkind = N_Variant);
729 return Node5 (N);
730 end Dcheck_Function;
732 function Declarations
733 (N : Node_Id) return List_Id is
734 begin
735 pragma Assert (False
736 or else NT (N).Nkind = N_Accept_Statement
737 or else NT (N).Nkind = N_Block_Statement
738 or else NT (N).Nkind = N_Compilation_Unit_Aux
739 or else NT (N).Nkind = N_Entry_Body
740 or else NT (N).Nkind = N_Package_Body
741 or else NT (N).Nkind = N_Protected_Body
742 or else NT (N).Nkind = N_Subprogram_Body
743 or else NT (N).Nkind = N_Task_Body);
744 return List2 (N);
745 end Declarations;
747 function Default_Expression
748 (N : Node_Id) return Node_Id is
749 begin
750 pragma Assert (False
751 or else NT (N).Nkind = N_Formal_Object_Declaration
752 or else NT (N).Nkind = N_Parameter_Specification);
753 return Node5 (N);
754 end Default_Expression;
756 function Default_Storage_Pool
757 (N : Node_Id) return Node_Id is
758 begin
759 pragma Assert (False
760 or else NT (N).Nkind = N_Compilation_Unit_Aux);
761 return Node3 (N);
762 end Default_Storage_Pool;
764 function Default_Name
765 (N : Node_Id) return Node_Id is
766 begin
767 pragma Assert (False
768 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
769 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
770 return Node2 (N);
771 end Default_Name;
773 function Defining_Identifier
774 (N : Node_Id) return Entity_Id is
775 begin
776 pragma Assert (False
777 or else NT (N).Nkind = N_Component_Declaration
778 or else NT (N).Nkind = N_Defining_Program_Unit_Name
779 or else NT (N).Nkind = N_Discriminant_Specification
780 or else NT (N).Nkind = N_Entry_Body
781 or else NT (N).Nkind = N_Entry_Declaration
782 or else NT (N).Nkind = N_Entry_Index_Specification
783 or else NT (N).Nkind = N_Exception_Declaration
784 or else NT (N).Nkind = N_Exception_Renaming_Declaration
785 or else NT (N).Nkind = N_Formal_Object_Declaration
786 or else NT (N).Nkind = N_Formal_Package_Declaration
787 or else NT (N).Nkind = N_Formal_Type_Declaration
788 or else NT (N).Nkind = N_Full_Type_Declaration
789 or else NT (N).Nkind = N_Implicit_Label_Declaration
790 or else NT (N).Nkind = N_Incomplete_Type_Declaration
791 or else NT (N).Nkind = N_Iterated_Component_Association
792 or else NT (N).Nkind = N_Iterator_Specification
793 or else NT (N).Nkind = N_Loop_Parameter_Specification
794 or else NT (N).Nkind = N_Number_Declaration
795 or else NT (N).Nkind = N_Object_Declaration
796 or else NT (N).Nkind = N_Object_Renaming_Declaration
797 or else NT (N).Nkind = N_Package_Body_Stub
798 or else NT (N).Nkind = N_Parameter_Specification
799 or else NT (N).Nkind = N_Private_Extension_Declaration
800 or else NT (N).Nkind = N_Private_Type_Declaration
801 or else NT (N).Nkind = N_Protected_Body
802 or else NT (N).Nkind = N_Protected_Body_Stub
803 or else NT (N).Nkind = N_Protected_Type_Declaration
804 or else NT (N).Nkind = N_Single_Protected_Declaration
805 or else NT (N).Nkind = N_Single_Task_Declaration
806 or else NT (N).Nkind = N_Subtype_Declaration
807 or else NT (N).Nkind = N_Task_Body
808 or else NT (N).Nkind = N_Task_Body_Stub
809 or else NT (N).Nkind = N_Task_Type_Declaration);
810 return Node1 (N);
811 end Defining_Identifier;
813 function Defining_Unit_Name
814 (N : Node_Id) return Node_Id is
815 begin
816 pragma Assert (False
817 or else NT (N).Nkind = N_Function_Instantiation
818 or else NT (N).Nkind = N_Function_Specification
819 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
820 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
821 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
822 or else NT (N).Nkind = N_Package_Body
823 or else NT (N).Nkind = N_Package_Instantiation
824 or else NT (N).Nkind = N_Package_Renaming_Declaration
825 or else NT (N).Nkind = N_Package_Specification
826 or else NT (N).Nkind = N_Procedure_Instantiation
827 or else NT (N).Nkind = N_Procedure_Specification);
828 return Node1 (N);
829 end Defining_Unit_Name;
831 function Delay_Alternative
832 (N : Node_Id) return Node_Id is
833 begin
834 pragma Assert (False
835 or else NT (N).Nkind = N_Timed_Entry_Call);
836 return Node4 (N);
837 end Delay_Alternative;
839 function Delay_Statement
840 (N : Node_Id) return Node_Id is
841 begin
842 pragma Assert (False
843 or else NT (N).Nkind = N_Delay_Alternative);
844 return Node2 (N);
845 end Delay_Statement;
847 function Delta_Expression
848 (N : Node_Id) return Node_Id is
849 begin
850 pragma Assert (False
851 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
852 or else NT (N).Nkind = N_Delta_Constraint
853 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
854 return Node3 (N);
855 end Delta_Expression;
857 function Digits_Expression
858 (N : Node_Id) return Node_Id is
859 begin
860 pragma Assert (False
861 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
862 or else NT (N).Nkind = N_Digits_Constraint
863 or else NT (N).Nkind = N_Floating_Point_Definition);
864 return Node2 (N);
865 end Digits_Expression;
867 function Discr_Check_Funcs_Built
868 (N : Node_Id) return Boolean is
869 begin
870 pragma Assert (False
871 or else NT (N).Nkind = N_Full_Type_Declaration);
872 return Flag11 (N);
873 end Discr_Check_Funcs_Built;
875 function Discrete_Choices
876 (N : Node_Id) return List_Id is
877 begin
878 pragma Assert (False
879 or else NT (N).Nkind = N_Case_Expression_Alternative
880 or else NT (N).Nkind = N_Case_Statement_Alternative
881 or else NT (N).Nkind = N_Iterated_Component_Association
882 or else NT (N).Nkind = N_Variant);
883 return List4 (N);
884 end Discrete_Choices;
886 function Discrete_Range
887 (N : Node_Id) return Node_Id is
888 begin
889 pragma Assert (False
890 or else NT (N).Nkind = N_Slice);
891 return Node4 (N);
892 end Discrete_Range;
894 function Discrete_Subtype_Definition
895 (N : Node_Id) return Node_Id is
896 begin
897 pragma Assert (False
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);
901 return Node4 (N);
902 end Discrete_Subtype_Definition;
904 function Discrete_Subtype_Definitions
905 (N : Node_Id) return List_Id is
906 begin
907 pragma Assert (False
908 or else NT (N).Nkind = N_Constrained_Array_Definition);
909 return List2 (N);
910 end Discrete_Subtype_Definitions;
912 function Discriminant_Specifications
913 (N : Node_Id) return List_Id is
914 begin
915 pragma Assert (False
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);
923 return List4 (N);
924 end Discriminant_Specifications;
926 function Discriminant_Type
927 (N : Node_Id) return Node_Id is
928 begin
929 pragma Assert (False
930 or else NT (N).Nkind = N_Discriminant_Specification);
931 return Node5 (N);
932 end Discriminant_Type;
934 function Do_Accessibility_Check
935 (N : Node_Id) return Boolean is
936 begin
937 pragma Assert (False
938 or else NT (N).Nkind = N_Parameter_Specification);
939 return Flag13 (N);
940 end Do_Accessibility_Check;
942 function Do_Discriminant_Check
943 (N : Node_Id) return Boolean is
944 begin
945 pragma Assert (False
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);
949 return Flag3 (N);
950 end Do_Discriminant_Check;
952 function Do_Division_Check
953 (N : Node_Id) return Boolean is
954 begin
955 pragma Assert (False
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);
959 return Flag13 (N);
960 end Do_Division_Check;
962 function Do_Length_Check
963 (N : Node_Id) return Boolean is
964 begin
965 pragma Assert (False
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);
971 return Flag4 (N);
972 end Do_Length_Check;
974 function Do_Overflow_Check
975 (N : Node_Id) return Boolean is
976 begin
977 pragma Assert (False
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);
983 return Flag17 (N);
984 end Do_Overflow_Check;
986 function Do_Range_Check
987 (N : Node_Id) return Boolean is
988 begin
989 pragma Assert (False
990 or else NT (N).Nkind in N_Subexpr);
991 return Flag9 (N);
992 end Do_Range_Check;
994 function Do_Storage_Check
995 (N : Node_Id) return Boolean is
996 begin
997 pragma Assert (False
998 or else NT (N).Nkind = N_Allocator
999 or else NT (N).Nkind = N_Subprogram_Body);
1000 return Flag17 (N);
1001 end Do_Storage_Check;
1003 function Do_Tag_Check
1004 (N : Node_Id) return Boolean is
1005 begin
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);
1013 return Flag13 (N);
1014 end Do_Tag_Check;
1016 function Elaborate_All_Desirable
1017 (N : Node_Id) return Boolean is
1018 begin
1019 pragma Assert (False
1020 or else NT (N).Nkind = N_With_Clause);
1021 return Flag9 (N);
1022 end Elaborate_All_Desirable;
1024 function Elaborate_All_Present
1025 (N : Node_Id) return Boolean is
1026 begin
1027 pragma Assert (False
1028 or else NT (N).Nkind = N_With_Clause);
1029 return Flag14 (N);
1030 end Elaborate_All_Present;
1032 function Elaborate_Desirable
1033 (N : Node_Id) return Boolean is
1034 begin
1035 pragma Assert (False
1036 or else NT (N).Nkind = N_With_Clause);
1037 return Flag11 (N);
1038 end Elaborate_Desirable;
1040 function Elaborate_Present
1041 (N : Node_Id) return Boolean is
1042 begin
1043 pragma Assert (False
1044 or else NT (N).Nkind = N_With_Clause);
1045 return Flag4 (N);
1046 end Elaborate_Present;
1048 function Else_Actions
1049 (N : Node_Id) return List_Id is
1050 begin
1051 pragma Assert (False
1052 or else NT (N).Nkind = N_If_Expression);
1053 return List3 (N);
1054 end Else_Actions;
1056 function Else_Statements
1057 (N : Node_Id) return List_Id is
1058 begin
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);
1063 return List4 (N);
1064 end Else_Statements;
1066 function Elsif_Parts
1067 (N : Node_Id) return List_Id is
1068 begin
1069 pragma Assert (False
1070 or else NT (N).Nkind = N_If_Statement);
1071 return List3 (N);
1072 end Elsif_Parts;
1074 function Enclosing_Variant
1075 (N : Node_Id) return Node_Id is
1076 begin
1077 pragma Assert (False
1078 or else NT (N).Nkind = N_Variant);
1079 return Node2 (N);
1080 end Enclosing_Variant;
1082 function End_Label
1083 (N : Node_Id) return Node_Id is
1084 begin
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);
1094 return Node4 (N);
1095 end End_Label;
1097 function End_Span
1098 (N : Node_Id) return Uint is
1099 begin
1100 pragma Assert (False
1101 or else NT (N).Nkind = N_Case_Statement
1102 or else NT (N).Nkind = N_If_Statement);
1103 return Uint5 (N);
1104 end End_Span;
1106 function Entity
1107 (N : Node_Id) return Node_Id is
1108 begin
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);
1115 return Node4 (N);
1116 end Entity;
1118 function Entity_Or_Associated_Node
1119 (N : Node_Id) return Node_Id is
1120 begin
1121 pragma Assert (False
1122 or else NT (N).Nkind in N_Has_Entity
1123 or else NT (N).Nkind = N_Freeze_Entity);
1124 return Node4 (N);
1125 end Entity_Or_Associated_Node;
1127 function Entry_Body_Formal_Part
1128 (N : Node_Id) return Node_Id is
1129 begin
1130 pragma Assert (False
1131 or else NT (N).Nkind = N_Entry_Body);
1132 return Node5 (N);
1133 end Entry_Body_Formal_Part;
1135 function Entry_Call_Alternative
1136 (N : Node_Id) return Node_Id is
1137 begin
1138 pragma Assert (False
1139 or else NT (N).Nkind = N_Conditional_Entry_Call
1140 or else NT (N).Nkind = N_Timed_Entry_Call);
1141 return Node1 (N);
1142 end Entry_Call_Alternative;
1144 function Entry_Call_Statement
1145 (N : Node_Id) return Node_Id is
1146 begin
1147 pragma Assert (False
1148 or else NT (N).Nkind = N_Entry_Call_Alternative);
1149 return Node1 (N);
1150 end Entry_Call_Statement;
1152 function Entry_Direct_Name
1153 (N : Node_Id) return Node_Id is
1154 begin
1155 pragma Assert (False
1156 or else NT (N).Nkind = N_Accept_Statement);
1157 return Node1 (N);
1158 end Entry_Direct_Name;
1160 function Entry_Index
1161 (N : Node_Id) return Node_Id is
1162 begin
1163 pragma Assert (False
1164 or else NT (N).Nkind = N_Accept_Statement);
1165 return Node5 (N);
1166 end Entry_Index;
1168 function Entry_Index_Specification
1169 (N : Node_Id) return Node_Id is
1170 begin
1171 pragma Assert (False
1172 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1173 return Node4 (N);
1174 end Entry_Index_Specification;
1176 function Etype
1177 (N : Node_Id) return Node_Id is
1178 begin
1179 pragma Assert (False
1180 or else NT (N).Nkind in N_Has_Etype);
1181 return Node5 (N);
1182 end Etype;
1184 function Exception_Choices
1185 (N : Node_Id) return List_Id is
1186 begin
1187 pragma Assert (False
1188 or else NT (N).Nkind = N_Exception_Handler);
1189 return List4 (N);
1190 end Exception_Choices;
1192 function Exception_Handlers
1193 (N : Node_Id) return List_Id is
1194 begin
1195 pragma Assert (False
1196 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1197 return List5 (N);
1198 end Exception_Handlers;
1200 function Exception_Junk
1201 (N : Node_Id) return Boolean is
1202 begin
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);
1209 return Flag8 (N);
1210 end Exception_Junk;
1212 function Exception_Label
1213 (N : Node_Id) return Node_Id is
1214 begin
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);
1220 return Node5 (N);
1221 end Exception_Label;
1223 function Expansion_Delayed
1224 (N : Node_Id) return Boolean is
1225 begin
1226 pragma Assert (False
1227 or else NT (N).Nkind = N_Aggregate
1228 or else NT (N).Nkind = N_Extension_Aggregate);
1229 return Flag11 (N);
1230 end Expansion_Delayed;
1232 function Explicit_Actual_Parameter
1233 (N : Node_Id) return Node_Id is
1234 begin
1235 pragma Assert (False
1236 or else NT (N).Nkind = N_Parameter_Association);
1237 return Node3 (N);
1238 end Explicit_Actual_Parameter;
1240 function Explicit_Generic_Actual_Parameter
1241 (N : Node_Id) return Node_Id is
1242 begin
1243 pragma Assert (False
1244 or else NT (N).Nkind = N_Generic_Association);
1245 return Node1 (N);
1246 end Explicit_Generic_Actual_Parameter;
1248 function Expression
1249 (N : Node_Id) return Node_Id is
1250 begin
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_Delta_Aggregate
1266 or else NT (N).Nkind = N_Discriminant_Association
1267 or else NT (N).Nkind = N_Discriminant_Specification
1268 or else NT (N).Nkind = N_Exception_Declaration
1269 or else NT (N).Nkind = N_Expression_Function
1270 or else NT (N).Nkind = N_Expression_With_Actions
1271 or else NT (N).Nkind = N_Free_Statement
1272 or else NT (N).Nkind = N_Iterated_Component_Association
1273 or else NT (N).Nkind = N_Mod_Clause
1274 or else NT (N).Nkind = N_Modular_Type_Definition
1275 or else NT (N).Nkind = N_Number_Declaration
1276 or else NT (N).Nkind = N_Object_Declaration
1277 or else NT (N).Nkind = N_Parameter_Specification
1278 or else NT (N).Nkind = N_Pragma_Argument_Association
1279 or else NT (N).Nkind = N_Qualified_Expression
1280 or else NT (N).Nkind = N_Raise_Expression
1281 or else NT (N).Nkind = N_Raise_Statement
1282 or else NT (N).Nkind = N_Simple_Return_Statement
1283 or else NT (N).Nkind = N_Type_Conversion
1284 or else NT (N).Nkind = N_Unchecked_Expression
1285 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1286 return Node3 (N);
1287 end Expression;
1289 function Expression_Copy
1290 (N : Node_Id) return Node_Id is
1291 begin
1292 pragma Assert (False
1293 or else NT (N).Nkind = N_Pragma_Argument_Association);
1294 return Node2 (N);
1295 end Expression_Copy;
1297 function Expressions
1298 (N : Node_Id) return List_Id is
1299 begin
1300 pragma Assert (False
1301 or else NT (N).Nkind = N_Aggregate
1302 or else NT (N).Nkind = N_Attribute_Reference
1303 or else NT (N).Nkind = N_Extension_Aggregate
1304 or else NT (N).Nkind = N_If_Expression
1305 or else NT (N).Nkind = N_Indexed_Component);
1306 return List1 (N);
1307 end Expressions;
1309 function First_Bit
1310 (N : Node_Id) return Node_Id is
1311 begin
1312 pragma Assert (False
1313 or else NT (N).Nkind = N_Component_Clause);
1314 return Node3 (N);
1315 end First_Bit;
1317 function First_Inlined_Subprogram
1318 (N : Node_Id) return Entity_Id is
1319 begin
1320 pragma Assert (False
1321 or else NT (N).Nkind = N_Compilation_Unit);
1322 return Node3 (N);
1323 end First_Inlined_Subprogram;
1325 function First_Name
1326 (N : Node_Id) return Boolean is
1327 begin
1328 pragma Assert (False
1329 or else NT (N).Nkind = N_With_Clause);
1330 return Flag5 (N);
1331 end First_Name;
1333 function First_Named_Actual
1334 (N : Node_Id) return Node_Id is
1335 begin
1336 pragma Assert (False
1337 or else NT (N).Nkind = N_Entry_Call_Statement
1338 or else NT (N).Nkind = N_Function_Call
1339 or else NT (N).Nkind = N_Procedure_Call_Statement);
1340 return Node4 (N);
1341 end First_Named_Actual;
1343 function First_Real_Statement
1344 (N : Node_Id) return Node_Id is
1345 begin
1346 pragma Assert (False
1347 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1348 return Node2 (N);
1349 end First_Real_Statement;
1351 function First_Subtype_Link
1352 (N : Node_Id) return Entity_Id is
1353 begin
1354 pragma Assert (False
1355 or else NT (N).Nkind = N_Freeze_Entity);
1356 return Node5 (N);
1357 end First_Subtype_Link;
1359 function Float_Truncate
1360 (N : Node_Id) return Boolean is
1361 begin
1362 pragma Assert (False
1363 or else NT (N).Nkind = N_Type_Conversion);
1364 return Flag11 (N);
1365 end Float_Truncate;
1367 function Formal_Type_Definition
1368 (N : Node_Id) return Node_Id is
1369 begin
1370 pragma Assert (False
1371 or else NT (N).Nkind = N_Formal_Type_Declaration);
1372 return Node3 (N);
1373 end Formal_Type_Definition;
1375 function Forwards_OK
1376 (N : Node_Id) return Boolean is
1377 begin
1378 pragma Assert (False
1379 or else NT (N).Nkind = N_Assignment_Statement);
1380 return Flag5 (N);
1381 end Forwards_OK;
1383 function From_Aspect_Specification
1384 (N : Node_Id) return Boolean is
1385 begin
1386 pragma Assert (False
1387 or else NT (N).Nkind = N_Attribute_Definition_Clause
1388 or else NT (N).Nkind = N_Pragma);
1389 return Flag13 (N);
1390 end From_Aspect_Specification;
1392 function From_At_End
1393 (N : Node_Id) return Boolean is
1394 begin
1395 pragma Assert (False
1396 or else NT (N).Nkind = N_Raise_Statement);
1397 return Flag4 (N);
1398 end From_At_End;
1400 function From_At_Mod
1401 (N : Node_Id) return Boolean is
1402 begin
1403 pragma Assert (False
1404 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1405 return Flag4 (N);
1406 end From_At_Mod;
1408 function From_Conditional_Expression
1409 (N : Node_Id) return Boolean is
1410 begin
1411 pragma Assert (False
1412 or else NT (N).Nkind = N_Case_Statement
1413 or else NT (N).Nkind = N_If_Statement);
1414 return Flag1 (N);
1415 end From_Conditional_Expression;
1417 function From_Default
1418 (N : Node_Id) return Boolean is
1419 begin
1420 pragma Assert (False
1421 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1422 return Flag6 (N);
1423 end From_Default;
1425 function Generalized_Indexing
1426 (N : Node_Id) return Node_Id is
1427 begin
1428 pragma Assert (False
1429 or else NT (N).Nkind = N_Indexed_Component);
1430 return Node4 (N);
1431 end Generalized_Indexing;
1433 function Generic_Associations
1434 (N : Node_Id) return List_Id is
1435 begin
1436 pragma Assert (False
1437 or else NT (N).Nkind = N_Formal_Package_Declaration
1438 or else NT (N).Nkind = N_Function_Instantiation
1439 or else NT (N).Nkind = N_Package_Instantiation
1440 or else NT (N).Nkind = N_Procedure_Instantiation);
1441 return List3 (N);
1442 end Generic_Associations;
1444 function Generic_Formal_Declarations
1445 (N : Node_Id) return List_Id is
1446 begin
1447 pragma Assert (False
1448 or else NT (N).Nkind = N_Generic_Package_Declaration
1449 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1450 return List2 (N);
1451 end Generic_Formal_Declarations;
1453 function Generic_Parent
1454 (N : Node_Id) return Node_Id is
1455 begin
1456 pragma Assert (False
1457 or else NT (N).Nkind = N_Function_Specification
1458 or else NT (N).Nkind = N_Package_Specification
1459 or else NT (N).Nkind = N_Procedure_Specification);
1460 return Node5 (N);
1461 end Generic_Parent;
1463 function Generic_Parent_Type
1464 (N : Node_Id) return Node_Id is
1465 begin
1466 pragma Assert (False
1467 or else NT (N).Nkind = N_Subtype_Declaration);
1468 return Node4 (N);
1469 end Generic_Parent_Type;
1471 function Handled_Statement_Sequence
1472 (N : Node_Id) return Node_Id is
1473 begin
1474 pragma Assert (False
1475 or else NT (N).Nkind = N_Accept_Statement
1476 or else NT (N).Nkind = N_Block_Statement
1477 or else NT (N).Nkind = N_Entry_Body
1478 or else NT (N).Nkind = N_Extended_Return_Statement
1479 or else NT (N).Nkind = N_Package_Body
1480 or else NT (N).Nkind = N_Subprogram_Body
1481 or else NT (N).Nkind = N_Task_Body);
1482 return Node4 (N);
1483 end Handled_Statement_Sequence;
1485 function Handler_List_Entry
1486 (N : Node_Id) return Node_Id is
1487 begin
1488 pragma Assert (False
1489 or else NT (N).Nkind = N_Object_Declaration);
1490 return Node2 (N);
1491 end Handler_List_Entry;
1493 function Has_Created_Identifier
1494 (N : Node_Id) return Boolean is
1495 begin
1496 pragma Assert (False
1497 or else NT (N).Nkind = N_Block_Statement
1498 or else NT (N).Nkind = N_Loop_Statement);
1499 return Flag15 (N);
1500 end Has_Created_Identifier;
1502 function Has_Dereference_Action
1503 (N : Node_Id) return Boolean is
1504 begin
1505 pragma Assert (False
1506 or else NT (N).Nkind = N_Explicit_Dereference);
1507 return Flag13 (N);
1508 end Has_Dereference_Action;
1510 function Has_Dynamic_Length_Check
1511 (N : Node_Id) return Boolean is
1512 begin
1513 pragma Assert (False
1514 or else NT (N).Nkind in N_Subexpr);
1515 return Flag10 (N);
1516 end Has_Dynamic_Length_Check;
1518 function Has_Dynamic_Range_Check
1519 (N : Node_Id) return Boolean is
1520 begin
1521 pragma Assert (False
1522 or else NT (N).Nkind = N_Subtype_Declaration
1523 or else NT (N).Nkind in N_Subexpr);
1524 return Flag12 (N);
1525 end Has_Dynamic_Range_Check;
1527 function Has_Init_Expression
1528 (N : Node_Id) return Boolean is
1529 begin
1530 pragma Assert (False
1531 or else NT (N).Nkind = N_Object_Declaration);
1532 return Flag14 (N);
1533 end Has_Init_Expression;
1535 function Has_Local_Raise
1536 (N : Node_Id) return Boolean is
1537 begin
1538 pragma Assert (False
1539 or else NT (N).Nkind = N_Exception_Handler);
1540 return Flag8 (N);
1541 end Has_Local_Raise;
1543 function Has_No_Elaboration_Code
1544 (N : Node_Id) return Boolean is
1545 begin
1546 pragma Assert (False
1547 or else NT (N).Nkind = N_Compilation_Unit);
1548 return Flag17 (N);
1549 end Has_No_Elaboration_Code;
1551 function Has_Pragma_Suppress_All
1552 (N : Node_Id) return Boolean is
1553 begin
1554 pragma Assert (False
1555 or else NT (N).Nkind = N_Compilation_Unit);
1556 return Flag14 (N);
1557 end Has_Pragma_Suppress_All;
1559 function Has_Private_View
1560 (N : Node_Id) return Boolean is
1561 begin
1562 pragma Assert (False
1563 or else NT (N).Nkind in N_Op
1564 or else NT (N).Nkind = N_Character_Literal
1565 or else NT (N).Nkind = N_Expanded_Name
1566 or else NT (N).Nkind = N_Identifier
1567 or else NT (N).Nkind = N_Operator_Symbol);
1568 return Flag11 (N);
1569 end Has_Private_View;
1571 function Has_Relative_Deadline_Pragma
1572 (N : Node_Id) return Boolean is
1573 begin
1574 pragma Assert (False
1575 or else NT (N).Nkind = N_Subprogram_Body
1576 or else NT (N).Nkind = N_Task_Definition);
1577 return Flag9 (N);
1578 end Has_Relative_Deadline_Pragma;
1580 function Has_Self_Reference
1581 (N : Node_Id) return Boolean is
1582 begin
1583 pragma Assert (False
1584 or else NT (N).Nkind = N_Aggregate
1585 or else NT (N).Nkind = N_Extension_Aggregate);
1586 return Flag13 (N);
1587 end Has_Self_Reference;
1589 function Has_SP_Choice
1590 (N : Node_Id) return Boolean is
1591 begin
1592 pragma Assert (False
1593 or else NT (N).Nkind = N_Case_Expression_Alternative
1594 or else NT (N).Nkind = N_Case_Statement_Alternative
1595 or else NT (N).Nkind = N_Variant);
1596 return Flag15 (N);
1597 end Has_SP_Choice;
1599 function Has_Storage_Size_Pragma
1600 (N : Node_Id) return Boolean is
1601 begin
1602 pragma Assert (False
1603 or else NT (N).Nkind = N_Task_Definition);
1604 return Flag5 (N);
1605 end Has_Storage_Size_Pragma;
1607 function Has_Target_Names
1608 (N : Node_Id) return Boolean is
1609 begin
1610 pragma Assert (False
1611 or else NT (N).Nkind = N_Assignment_Statement);
1612 return Flag8 (N);
1613 end Has_Target_Names;
1615 function Has_Wide_Character
1616 (N : Node_Id) return Boolean is
1617 begin
1618 pragma Assert (False
1619 or else NT (N).Nkind = N_String_Literal);
1620 return Flag11 (N);
1621 end Has_Wide_Character;
1623 function Has_Wide_Wide_Character
1624 (N : Node_Id) return Boolean is
1625 begin
1626 pragma Assert (False
1627 or else NT (N).Nkind = N_String_Literal);
1628 return Flag13 (N);
1629 end Has_Wide_Wide_Character;
1631 function Header_Size_Added
1632 (N : Node_Id) return Boolean is
1633 begin
1634 pragma Assert (False
1635 or else NT (N).Nkind = N_Attribute_Reference);
1636 return Flag11 (N);
1637 end Header_Size_Added;
1639 function Hidden_By_Use_Clause
1640 (N : Node_Id) return Elist_Id is
1641 begin
1642 pragma Assert (False
1643 or else NT (N).Nkind = N_Use_Package_Clause
1644 or else NT (N).Nkind = N_Use_Type_Clause);
1645 return Elist5 (N);
1646 end Hidden_By_Use_Clause;
1648 function High_Bound
1649 (N : Node_Id) return Node_Id is
1650 begin
1651 pragma Assert (False
1652 or else NT (N).Nkind = N_Range
1653 or else NT (N).Nkind = N_Real_Range_Specification
1654 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1655 return Node2 (N);
1656 end High_Bound;
1658 function Identifier
1659 (N : Node_Id) return Node_Id is
1660 begin
1661 pragma Assert (False
1662 or else NT (N).Nkind = N_Aspect_Specification
1663 or else NT (N).Nkind = N_At_Clause
1664 or else NT (N).Nkind = N_Block_Statement
1665 or else NT (N).Nkind = N_Designator
1666 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1667 or else NT (N).Nkind = N_Label
1668 or else NT (N).Nkind = N_Loop_Statement
1669 or else NT (N).Nkind = N_Record_Representation_Clause);
1670 return Node1 (N);
1671 end Identifier;
1673 function Implicit_With
1674 (N : Node_Id) return Boolean is
1675 begin
1676 pragma Assert (False
1677 or else NT (N).Nkind = N_With_Clause);
1678 return Flag16 (N);
1679 end Implicit_With;
1681 function Implicit_With_From_Instantiation
1682 (N : Node_Id) return Boolean is
1683 begin
1684 pragma Assert (False
1685 or else NT (N).Nkind = N_With_Clause);
1686 return Flag12 (N);
1687 end Implicit_With_From_Instantiation;
1689 function Interface_List
1690 (N : Node_Id) return List_Id is
1691 begin
1692 pragma Assert (False
1693 or else NT (N).Nkind = N_Derived_Type_Definition
1694 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1695 or else NT (N).Nkind = N_Private_Extension_Declaration
1696 or else NT (N).Nkind = N_Protected_Type_Declaration
1697 or else NT (N).Nkind = N_Record_Definition
1698 or else NT (N).Nkind = N_Single_Protected_Declaration
1699 or else NT (N).Nkind = N_Single_Task_Declaration
1700 or else NT (N).Nkind = N_Task_Type_Declaration);
1701 return List2 (N);
1702 end Interface_List;
1704 function Interface_Present
1705 (N : Node_Id) return Boolean is
1706 begin
1707 pragma Assert (False
1708 or else NT (N).Nkind = N_Derived_Type_Definition
1709 or else NT (N).Nkind = N_Record_Definition);
1710 return Flag16 (N);
1711 end Interface_Present;
1713 function Import_Interface_Present
1714 (N : Node_Id) return Boolean is
1715 begin
1716 pragma Assert (False
1717 or else NT (N).Nkind = N_Pragma);
1718 return Flag16 (N);
1719 end Import_Interface_Present;
1721 function In_Present
1722 (N : Node_Id) return Boolean is
1723 begin
1724 pragma Assert (False
1725 or else NT (N).Nkind = N_Formal_Object_Declaration
1726 or else NT (N).Nkind = N_Parameter_Specification);
1727 return Flag15 (N);
1728 end In_Present;
1730 function Includes_Infinities
1731 (N : Node_Id) return Boolean is
1732 begin
1733 pragma Assert (False
1734 or else NT (N).Nkind = N_Range);
1735 return Flag11 (N);
1736 end Includes_Infinities;
1738 function Incomplete_View
1739 (N : Node_Id) return Node_Id is
1740 begin
1741 pragma Assert (False
1742 or else NT (N).Nkind = N_Full_Type_Declaration);
1743 return Node2 (N);
1744 end Incomplete_View;
1746 function Inherited_Discriminant
1747 (N : Node_Id) return Boolean is
1748 begin
1749 pragma Assert (False
1750 or else NT (N).Nkind = N_Component_Association);
1751 return Flag13 (N);
1752 end Inherited_Discriminant;
1754 function Instance_Spec
1755 (N : Node_Id) return Node_Id is
1756 begin
1757 pragma Assert (False
1758 or else NT (N).Nkind = N_Formal_Package_Declaration
1759 or else NT (N).Nkind = N_Function_Instantiation
1760 or else NT (N).Nkind = N_Package_Instantiation
1761 or else NT (N).Nkind = N_Procedure_Instantiation);
1762 return Node5 (N);
1763 end Instance_Spec;
1765 function Intval
1766 (N : Node_Id) return Uint is
1767 begin
1768 pragma Assert (False
1769 or else NT (N).Nkind = N_Integer_Literal);
1770 return Uint3 (N);
1771 end Intval;
1773 function Is_Abort_Block
1774 (N : Node_Id) return Boolean is
1775 begin
1776 pragma Assert (False
1777 or else NT (N).Nkind = N_Block_Statement);
1778 return Flag4 (N);
1779 end Is_Abort_Block;
1781 function Is_Accessibility_Actual
1782 (N : Node_Id) return Boolean is
1783 begin
1784 pragma Assert (False
1785 or else NT (N).Nkind = N_Parameter_Association);
1786 return Flag13 (N);
1787 end Is_Accessibility_Actual;
1789 function Is_Analyzed_Pragma
1790 (N : Node_Id) return Boolean is
1791 begin
1792 pragma Assert (False
1793 or else NT (N).Nkind = N_Pragma);
1794 return Flag5 (N);
1795 end Is_Analyzed_Pragma;
1797 function Is_Asynchronous_Call_Block
1798 (N : Node_Id) return Boolean is
1799 begin
1800 pragma Assert (False
1801 or else NT (N).Nkind = N_Block_Statement);
1802 return Flag7 (N);
1803 end Is_Asynchronous_Call_Block;
1805 function Is_Boolean_Aspect
1806 (N : Node_Id) return Boolean is
1807 begin
1808 pragma Assert (False
1809 or else NT (N).Nkind = N_Aspect_Specification);
1810 return Flag16 (N);
1811 end Is_Boolean_Aspect;
1813 function Is_Checked
1814 (N : Node_Id) return Boolean is
1815 begin
1816 pragma Assert (False
1817 or else NT (N).Nkind = N_Aspect_Specification
1818 or else NT (N).Nkind = N_Pragma);
1819 return Flag11 (N);
1820 end Is_Checked;
1822 function Is_Checked_Ghost_Pragma
1823 (N : Node_Id) return Boolean is
1824 begin
1825 pragma Assert (False
1826 or else NT (N).Nkind = N_Pragma);
1827 return Flag3 (N);
1828 end Is_Checked_Ghost_Pragma;
1830 function Is_Component_Left_Opnd
1831 (N : Node_Id) return Boolean is
1832 begin
1833 pragma Assert (False
1834 or else NT (N).Nkind = N_Op_Concat);
1835 return Flag13 (N);
1836 end Is_Component_Left_Opnd;
1838 function Is_Component_Right_Opnd
1839 (N : Node_Id) return Boolean is
1840 begin
1841 pragma Assert (False
1842 or else NT (N).Nkind = N_Op_Concat);
1843 return Flag14 (N);
1844 end Is_Component_Right_Opnd;
1846 function Is_Controlling_Actual
1847 (N : Node_Id) return Boolean is
1848 begin
1849 pragma Assert (False
1850 or else NT (N).Nkind in N_Subexpr);
1851 return Flag16 (N);
1852 end Is_Controlling_Actual;
1854 function Is_Declaration_Level_Node
1855 (N : Node_Id) return Boolean is
1856 begin
1857 pragma Assert (False
1858 or else NT (N).Nkind = N_Call_Marker
1859 or else NT (N).Nkind = N_Function_Instantiation
1860 or else NT (N).Nkind = N_Package_Instantiation
1861 or else NT (N).Nkind = N_Procedure_Instantiation);
1862 return Flag5 (N);
1863 end Is_Declaration_Level_Node;
1865 function Is_Delayed_Aspect
1866 (N : Node_Id) return Boolean is
1867 begin
1868 pragma Assert (False
1869 or else NT (N).Nkind = N_Aspect_Specification
1870 or else NT (N).Nkind = N_Attribute_Definition_Clause
1871 or else NT (N).Nkind = N_Pragma);
1872 return Flag14 (N);
1873 end Is_Delayed_Aspect;
1875 function Is_Disabled
1876 (N : Node_Id) return Boolean is
1877 begin
1878 pragma Assert (False
1879 or else NT (N).Nkind = N_Aspect_Specification
1880 or else NT (N).Nkind = N_Pragma);
1881 return Flag15 (N);
1882 end Is_Disabled;
1884 function Is_Dispatching_Call
1885 (N : Node_Id) return Boolean is
1886 begin
1887 pragma Assert (False
1888 or else NT (N).Nkind = N_Call_Marker);
1889 return Flag3 (N);
1890 end Is_Dispatching_Call;
1892 function Is_Dynamic_Coextension
1893 (N : Node_Id) return Boolean is
1894 begin
1895 pragma Assert (False
1896 or else NT (N).Nkind = N_Allocator);
1897 return Flag18 (N);
1898 end Is_Dynamic_Coextension;
1900 function Is_Effective_Use_Clause
1901 (N : Node_Id) return Boolean is
1902 begin
1903 pragma Assert (False
1904 or else NT (N).Nkind = N_Use_Package_Clause
1905 or else NT (N).Nkind = N_Use_Type_Clause);
1906 return Flag1 (N);
1907 end Is_Effective_Use_Clause;
1909 function Is_Elaboration_Checks_OK_Node
1910 (N : Node_Id) return Boolean is
1911 begin
1912 pragma Assert (False
1913 or else NT (N).Nkind = N_Assignment_Statement
1914 or else NT (N).Nkind = N_Attribute_Reference
1915 or else NT (N).Nkind = N_Call_Marker
1916 or else NT (N).Nkind = N_Entry_Call_Statement
1917 or else NT (N).Nkind = N_Expanded_Name
1918 or else NT (N).Nkind = N_Function_Call
1919 or else NT (N).Nkind = N_Function_Instantiation
1920 or else NT (N).Nkind = N_Identifier
1921 or else NT (N).Nkind = N_Package_Instantiation
1922 or else NT (N).Nkind = N_Procedure_Call_Statement
1923 or else NT (N).Nkind = N_Procedure_Instantiation
1924 or else NT (N).Nkind = N_Requeue_Statement);
1925 return Flag1 (N);
1926 end Is_Elaboration_Checks_OK_Node;
1928 function Is_Elsif
1929 (N : Node_Id) return Boolean is
1930 begin
1931 pragma Assert (False
1932 or else NT (N).Nkind = N_If_Expression);
1933 return Flag13 (N);
1934 end Is_Elsif;
1936 function Is_Entry_Barrier_Function
1937 (N : Node_Id) return Boolean is
1938 begin
1939 pragma Assert (False
1940 or else NT (N).Nkind = N_Subprogram_Body
1941 or else NT (N).Nkind = N_Subprogram_Declaration);
1942 return Flag8 (N);
1943 end Is_Entry_Barrier_Function;
1945 function Is_Expanded_Build_In_Place_Call
1946 (N : Node_Id) return Boolean is
1947 begin
1948 pragma Assert (False
1949 or else NT (N).Nkind = N_Function_Call);
1950 return Flag11 (N);
1951 end Is_Expanded_Build_In_Place_Call;
1953 function Is_Expanded_Contract
1954 (N : Node_Id) return Boolean is
1955 begin
1956 pragma Assert (False
1957 or else NT (N).Nkind = N_Contract);
1958 return Flag1 (N);
1959 end Is_Expanded_Contract;
1961 function Is_Finalization_Wrapper
1962 (N : Node_Id) return Boolean is
1963 begin
1964 pragma Assert (False
1965 or else NT (N).Nkind = N_Block_Statement);
1966 return Flag9 (N);
1967 end Is_Finalization_Wrapper;
1969 function Is_Folded_In_Parser
1970 (N : Node_Id) return Boolean is
1971 begin
1972 pragma Assert (False
1973 or else NT (N).Nkind = N_String_Literal);
1974 return Flag4 (N);
1975 end Is_Folded_In_Parser;
1977 function Is_Generic_Contract_Pragma
1978 (N : Node_Id) return Boolean is
1979 begin
1980 pragma Assert (False
1981 or else NT (N).Nkind = N_Pragma);
1982 return Flag2 (N);
1983 end Is_Generic_Contract_Pragma;
1985 function Is_Ignored
1986 (N : Node_Id) return Boolean is
1987 begin
1988 pragma Assert (False
1989 or else NT (N).Nkind = N_Aspect_Specification
1990 or else NT (N).Nkind = N_Pragma);
1991 return Flag9 (N);
1992 end Is_Ignored;
1994 function Is_Ignored_Ghost_Pragma
1995 (N : Node_Id) return Boolean is
1996 begin
1997 pragma Assert (False
1998 or else NT (N).Nkind = N_Pragma);
1999 return Flag8 (N);
2000 end Is_Ignored_Ghost_Pragma;
2002 function Is_In_Discriminant_Check
2003 (N : Node_Id) return Boolean is
2004 begin
2005 pragma Assert (False
2006 or else NT (N).Nkind = N_Selected_Component);
2007 return Flag11 (N);
2008 end Is_In_Discriminant_Check;
2010 function Is_Inherited_Pragma
2011 (N : Node_Id) return Boolean is
2012 begin
2013 pragma Assert (False
2014 or else NT (N).Nkind = N_Pragma);
2015 return Flag4 (N);
2016 end Is_Inherited_Pragma;
2018 function Is_Initialization_Block
2019 (N : Node_Id) return Boolean is
2020 begin
2021 pragma Assert (False
2022 or else NT (N).Nkind = N_Block_Statement);
2023 return Flag1 (N);
2024 end Is_Initialization_Block;
2026 function Is_Known_Guaranteed_ABE
2027 (N : Node_Id) return Boolean is
2028 begin
2029 pragma Assert (False
2030 or else NT (N).Nkind = N_Call_Marker
2031 or else NT (N).Nkind = N_Function_Instantiation
2032 or else NT (N).Nkind = N_Package_Instantiation
2033 or else NT (N).Nkind = N_Procedure_Instantiation);
2034 return Flag18 (N);
2035 end Is_Known_Guaranteed_ABE;
2037 function Is_Machine_Number
2038 (N : Node_Id) return Boolean is
2039 begin
2040 pragma Assert (False
2041 or else NT (N).Nkind = N_Real_Literal);
2042 return Flag11 (N);
2043 end Is_Machine_Number;
2045 function Is_Null_Loop
2046 (N : Node_Id) return Boolean is
2047 begin
2048 pragma Assert (False
2049 or else NT (N).Nkind = N_Loop_Statement);
2050 return Flag16 (N);
2051 end Is_Null_Loop;
2053 function Is_Overloaded
2054 (N : Node_Id) return Boolean is
2055 begin
2056 pragma Assert (False
2057 or else NT (N).Nkind in N_Subexpr);
2058 return Flag5 (N);
2059 end Is_Overloaded;
2061 function Is_Power_Of_2_For_Shift
2062 (N : Node_Id) return Boolean is
2063 begin
2064 pragma Assert (False
2065 or else NT (N).Nkind = N_Op_Expon);
2066 return Flag13 (N);
2067 end Is_Power_Of_2_For_Shift;
2069 function Is_Prefixed_Call
2070 (N : Node_Id) return Boolean is
2071 begin
2072 pragma Assert (False
2073 or else NT (N).Nkind = N_Selected_Component);
2074 return Flag17 (N);
2075 end Is_Prefixed_Call;
2077 function Is_Protected_Subprogram_Body
2078 (N : Node_Id) return Boolean is
2079 begin
2080 pragma Assert (False
2081 or else NT (N).Nkind = N_Subprogram_Body);
2082 return Flag7 (N);
2083 end Is_Protected_Subprogram_Body;
2085 function Is_Qualified_Universal_Literal
2086 (N : Node_Id) return Boolean is
2087 begin
2088 pragma Assert (False
2089 or else NT (N).Nkind = N_Qualified_Expression);
2090 return Flag4 (N);
2091 end Is_Qualified_Universal_Literal;
2093 function Is_Read
2094 (N : Node_Id) return Boolean is
2095 begin
2096 pragma Assert (False
2097 or else NT (N).Nkind = N_Variable_Reference_Marker);
2098 return Flag1 (N);
2099 end Is_Read;
2101 function Is_Source_Call
2102 (N : Node_Id) return Boolean is
2103 begin
2104 pragma Assert (False
2105 or else NT (N).Nkind = N_Call_Marker);
2106 return Flag4 (N);
2107 end Is_Source_Call;
2109 function Is_SPARK_Mode_On_Node
2110 (N : Node_Id) return Boolean is
2111 begin
2112 pragma Assert (False
2113 or else NT (N).Nkind = N_Assignment_Statement
2114 or else NT (N).Nkind = N_Attribute_Reference
2115 or else NT (N).Nkind = N_Call_Marker
2116 or else NT (N).Nkind = N_Entry_Call_Statement
2117 or else NT (N).Nkind = N_Expanded_Name
2118 or else NT (N).Nkind = N_Function_Call
2119 or else NT (N).Nkind = N_Function_Instantiation
2120 or else NT (N).Nkind = N_Identifier
2121 or else NT (N).Nkind = N_Package_Instantiation
2122 or else NT (N).Nkind = N_Procedure_Call_Statement
2123 or else NT (N).Nkind = N_Procedure_Instantiation
2124 or else NT (N).Nkind = N_Requeue_Statement);
2125 return Flag2 (N);
2126 end Is_SPARK_Mode_On_Node;
2128 function Is_Static_Coextension
2129 (N : Node_Id) return Boolean is
2130 begin
2131 pragma Assert (False
2132 or else NT (N).Nkind = N_Allocator);
2133 return Flag14 (N);
2134 end Is_Static_Coextension;
2136 function Is_Static_Expression
2137 (N : Node_Id) return Boolean is
2138 begin
2139 pragma Assert (False
2140 or else NT (N).Nkind in N_Subexpr);
2141 return Flag6 (N);
2142 end Is_Static_Expression;
2144 function Is_Subprogram_Descriptor
2145 (N : Node_Id) return Boolean is
2146 begin
2147 pragma Assert (False
2148 or else NT (N).Nkind = N_Object_Declaration);
2149 return Flag16 (N);
2150 end Is_Subprogram_Descriptor;
2152 function Is_Task_Allocation_Block
2153 (N : Node_Id) return Boolean is
2154 begin
2155 pragma Assert (False
2156 or else NT (N).Nkind = N_Block_Statement);
2157 return Flag6 (N);
2158 end Is_Task_Allocation_Block;
2160 function Is_Task_Body_Procedure
2161 (N : Node_Id) return Boolean is
2162 begin
2163 pragma Assert (False
2164 or else NT (N).Nkind = N_Subprogram_Body
2165 or else NT (N).Nkind = N_Subprogram_Declaration);
2166 return Flag1 (N);
2167 end Is_Task_Body_Procedure;
2169 function Is_Task_Master
2170 (N : Node_Id) return Boolean is
2171 begin
2172 pragma Assert (False
2173 or else NT (N).Nkind = N_Block_Statement
2174 or else NT (N).Nkind = N_Subprogram_Body
2175 or else NT (N).Nkind = N_Task_Body);
2176 return Flag5 (N);
2177 end Is_Task_Master;
2179 function Is_Write
2180 (N : Node_Id) return Boolean is
2181 begin
2182 pragma Assert (False
2183 or else NT (N).Nkind = N_Variable_Reference_Marker);
2184 return Flag2 (N);
2185 end Is_Write;
2187 function Iteration_Scheme
2188 (N : Node_Id) return Node_Id is
2189 begin
2190 pragma Assert (False
2191 or else NT (N).Nkind = N_Loop_Statement);
2192 return Node2 (N);
2193 end Iteration_Scheme;
2195 function Iterator_Specification
2196 (N : Node_Id) return Node_Id is
2197 begin
2198 pragma Assert (False
2199 or else NT (N).Nkind = N_Iteration_Scheme
2200 or else NT (N).Nkind = N_Quantified_Expression);
2201 return Node2 (N);
2202 end Iterator_Specification;
2204 function Itype
2205 (N : Node_Id) return Node_Id is
2206 begin
2207 pragma Assert (False
2208 or else NT (N).Nkind = N_Itype_Reference);
2209 return Node1 (N);
2210 end Itype;
2212 function Kill_Range_Check
2213 (N : Node_Id) return Boolean is
2214 begin
2215 pragma Assert (False
2216 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2217 return Flag11 (N);
2218 end Kill_Range_Check;
2220 function Label_Construct
2221 (N : Node_Id) return Node_Id is
2222 begin
2223 pragma Assert (False
2224 or else NT (N).Nkind = N_Implicit_Label_Declaration);
2225 return Node2 (N);
2226 end Label_Construct;
2228 function Last_Bit
2229 (N : Node_Id) return Node_Id is
2230 begin
2231 pragma Assert (False
2232 or else NT (N).Nkind = N_Component_Clause);
2233 return Node4 (N);
2234 end Last_Bit;
2236 function Last_Name
2237 (N : Node_Id) return Boolean is
2238 begin
2239 pragma Assert (False
2240 or else NT (N).Nkind = N_With_Clause);
2241 return Flag6 (N);
2242 end Last_Name;
2244 function Left_Opnd
2245 (N : Node_Id) return Node_Id is
2246 begin
2247 pragma Assert (False
2248 or else NT (N).Nkind = N_And_Then
2249 or else NT (N).Nkind = N_In
2250 or else NT (N).Nkind = N_Not_In
2251 or else NT (N).Nkind = N_Or_Else
2252 or else NT (N).Nkind in N_Binary_Op);
2253 return Node2 (N);
2254 end Left_Opnd;
2256 function Library_Unit
2257 (N : Node_Id) return Node_Id is
2258 begin
2259 pragma Assert (False
2260 or else NT (N).Nkind = N_Compilation_Unit
2261 or else NT (N).Nkind = N_Package_Body_Stub
2262 or else NT (N).Nkind = N_Protected_Body_Stub
2263 or else NT (N).Nkind = N_Subprogram_Body_Stub
2264 or else NT (N).Nkind = N_Task_Body_Stub
2265 or else NT (N).Nkind = N_With_Clause);
2266 return Node4 (N);
2267 end Library_Unit;
2269 function Limited_View_Installed
2270 (N : Node_Id) return Boolean is
2271 begin
2272 pragma Assert (False
2273 or else NT (N).Nkind = N_Package_Specification
2274 or else NT (N).Nkind = N_With_Clause);
2275 return Flag18 (N);
2276 end Limited_View_Installed;
2278 function Limited_Present
2279 (N : Node_Id) return Boolean is
2280 begin
2281 pragma Assert (False
2282 or else NT (N).Nkind = N_Derived_Type_Definition
2283 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2284 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2285 or else NT (N).Nkind = N_Private_Extension_Declaration
2286 or else NT (N).Nkind = N_Private_Type_Declaration
2287 or else NT (N).Nkind = N_Record_Definition
2288 or else NT (N).Nkind = N_With_Clause);
2289 return Flag17 (N);
2290 end Limited_Present;
2292 function Literals
2293 (N : Node_Id) return List_Id is
2294 begin
2295 pragma Assert (False
2296 or else NT (N).Nkind = N_Enumeration_Type_Definition);
2297 return List1 (N);
2298 end Literals;
2300 function Local_Raise_Not_OK
2301 (N : Node_Id) return Boolean is
2302 begin
2303 pragma Assert (False
2304 or else NT (N).Nkind = N_Exception_Handler);
2305 return Flag7 (N);
2306 end Local_Raise_Not_OK;
2308 function Local_Raise_Statements
2309 (N : Node_Id) return Elist_Id is
2310 begin
2311 pragma Assert (False
2312 or else NT (N).Nkind = N_Exception_Handler);
2313 return Elist1 (N);
2314 end Local_Raise_Statements;
2316 function Loop_Actions
2317 (N : Node_Id) return List_Id is
2318 begin
2319 pragma Assert (False
2320 or else NT (N).Nkind = N_Component_Association
2321 or else NT (N).Nkind = N_Iterated_Component_Association);
2322 return List2 (N);
2323 end Loop_Actions;
2325 function Loop_Parameter_Specification
2326 (N : Node_Id) return Node_Id is
2327 begin
2328 pragma Assert (False
2329 or else NT (N).Nkind = N_Iteration_Scheme
2330 or else NT (N).Nkind = N_Quantified_Expression);
2331 return Node4 (N);
2332 end Loop_Parameter_Specification;
2334 function Low_Bound
2335 (N : Node_Id) return Node_Id is
2336 begin
2337 pragma Assert (False
2338 or else NT (N).Nkind = N_Range
2339 or else NT (N).Nkind = N_Real_Range_Specification
2340 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
2341 return Node1 (N);
2342 end Low_Bound;
2344 function Mod_Clause
2345 (N : Node_Id) return Node_Id is
2346 begin
2347 pragma Assert (False
2348 or else NT (N).Nkind = N_Record_Representation_Clause);
2349 return Node2 (N);
2350 end Mod_Clause;
2352 function More_Ids
2353 (N : Node_Id) return Boolean is
2354 begin
2355 pragma Assert (False
2356 or else NT (N).Nkind = N_Component_Declaration
2357 or else NT (N).Nkind = N_Discriminant_Specification
2358 or else NT (N).Nkind = N_Exception_Declaration
2359 or else NT (N).Nkind = N_Formal_Object_Declaration
2360 or else NT (N).Nkind = N_Number_Declaration
2361 or else NT (N).Nkind = N_Object_Declaration
2362 or else NT (N).Nkind = N_Parameter_Specification
2363 or else NT (N).Nkind = N_Use_Package_Clause
2364 or else NT (N).Nkind = N_Use_Type_Clause);
2365 return Flag5 (N);
2366 end More_Ids;
2368 function Must_Be_Byte_Aligned
2369 (N : Node_Id) return Boolean is
2370 begin
2371 pragma Assert (False
2372 or else NT (N).Nkind = N_Attribute_Reference);
2373 return Flag14 (N);
2374 end Must_Be_Byte_Aligned;
2376 function Must_Not_Freeze
2377 (N : Node_Id) return Boolean is
2378 begin
2379 pragma Assert (False
2380 or else NT (N).Nkind = N_Subtype_Indication
2381 or else NT (N).Nkind in N_Subexpr);
2382 return Flag8 (N);
2383 end Must_Not_Freeze;
2385 function Must_Not_Override
2386 (N : Node_Id) return Boolean is
2387 begin
2388 pragma Assert (False
2389 or else NT (N).Nkind = N_Entry_Declaration
2390 or else NT (N).Nkind = N_Function_Instantiation
2391 or else NT (N).Nkind = N_Function_Specification
2392 or else NT (N).Nkind = N_Procedure_Instantiation
2393 or else NT (N).Nkind = N_Procedure_Specification);
2394 return Flag15 (N);
2395 end Must_Not_Override;
2397 function Must_Override
2398 (N : Node_Id) return Boolean is
2399 begin
2400 pragma Assert (False
2401 or else NT (N).Nkind = N_Entry_Declaration
2402 or else NT (N).Nkind = N_Function_Instantiation
2403 or else NT (N).Nkind = N_Function_Specification
2404 or else NT (N).Nkind = N_Procedure_Instantiation
2405 or else NT (N).Nkind = N_Procedure_Specification);
2406 return Flag14 (N);
2407 end Must_Override;
2409 function Name
2410 (N : Node_Id) return Node_Id is
2411 begin
2412 pragma Assert (False
2413 or else NT (N).Nkind = N_Assignment_Statement
2414 or else NT (N).Nkind = N_Attribute_Definition_Clause
2415 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2416 or else NT (N).Nkind = N_Designator
2417 or else NT (N).Nkind = N_Entry_Call_Statement
2418 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2419 or else NT (N).Nkind = N_Exit_Statement
2420 or else NT (N).Nkind = N_Formal_Package_Declaration
2421 or else NT (N).Nkind = N_Function_Call
2422 or else NT (N).Nkind = N_Function_Instantiation
2423 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2424 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2425 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2426 or else NT (N).Nkind = N_Goto_Statement
2427 or else NT (N).Nkind = N_Iterator_Specification
2428 or else NT (N).Nkind = N_Object_Renaming_Declaration
2429 or else NT (N).Nkind = N_Package_Instantiation
2430 or else NT (N).Nkind = N_Package_Renaming_Declaration
2431 or else NT (N).Nkind = N_Procedure_Call_Statement
2432 or else NT (N).Nkind = N_Procedure_Instantiation
2433 or else NT (N).Nkind = N_Raise_Expression
2434 or else NT (N).Nkind = N_Raise_Statement
2435 or else NT (N).Nkind = N_Requeue_Statement
2436 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2437 or else NT (N).Nkind = N_Subunit
2438 or else NT (N).Nkind = N_Use_Package_Clause
2439 or else NT (N).Nkind = N_Variant_Part
2440 or else NT (N).Nkind = N_With_Clause);
2441 return Node2 (N);
2442 end Name;
2444 function Names
2445 (N : Node_Id) return List_Id is
2446 begin
2447 pragma Assert (False
2448 or else NT (N).Nkind = N_Abort_Statement);
2449 return List2 (N);
2450 end Names;
2452 function Next_Entity
2453 (N : Node_Id) return Node_Id is
2454 begin
2455 pragma Assert (False
2456 or else NT (N).Nkind = N_Defining_Character_Literal
2457 or else NT (N).Nkind = N_Defining_Identifier
2458 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2459 return Node2 (N);
2460 end Next_Entity;
2462 function Next_Exit_Statement
2463 (N : Node_Id) return Node_Id is
2464 begin
2465 pragma Assert (False
2466 or else NT (N).Nkind = N_Exit_Statement);
2467 return Node3 (N);
2468 end Next_Exit_Statement;
2470 function Next_Implicit_With
2471 (N : Node_Id) return Node_Id is
2472 begin
2473 pragma Assert (False
2474 or else NT (N).Nkind = N_With_Clause);
2475 return Node3 (N);
2476 end Next_Implicit_With;
2478 function Next_Named_Actual
2479 (N : Node_Id) return Node_Id is
2480 begin
2481 pragma Assert (False
2482 or else NT (N).Nkind = N_Parameter_Association);
2483 return Node4 (N);
2484 end Next_Named_Actual;
2486 function Next_Pragma
2487 (N : Node_Id) return Node_Id is
2488 begin
2489 pragma Assert (False
2490 or else NT (N).Nkind = N_Pragma);
2491 return Node1 (N);
2492 end Next_Pragma;
2494 function Next_Rep_Item
2495 (N : Node_Id) return Node_Id is
2496 begin
2497 pragma Assert (False
2498 or else NT (N).Nkind = N_Aspect_Specification
2499 or else NT (N).Nkind = N_Attribute_Definition_Clause
2500 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2501 or else NT (N).Nkind = N_Pragma
2502 or else NT (N).Nkind = N_Record_Representation_Clause);
2503 return Node5 (N);
2504 end Next_Rep_Item;
2506 function Next_Use_Clause
2507 (N : Node_Id) return Node_Id is
2508 begin
2509 pragma Assert (False
2510 or else NT (N).Nkind = N_Use_Package_Clause
2511 or else NT (N).Nkind = N_Use_Type_Clause);
2512 return Node3 (N);
2513 end Next_Use_Clause;
2515 function No_Ctrl_Actions
2516 (N : Node_Id) return Boolean is
2517 begin
2518 pragma Assert (False
2519 or else NT (N).Nkind = N_Assignment_Statement);
2520 return Flag7 (N);
2521 end No_Ctrl_Actions;
2523 function No_Entities_Ref_In_Spec
2524 (N : Node_Id) return Boolean is
2525 begin
2526 pragma Assert (False
2527 or else NT (N).Nkind = N_With_Clause);
2528 return Flag8 (N);
2529 end No_Entities_Ref_In_Spec;
2531 function No_Initialization
2532 (N : Node_Id) return Boolean is
2533 begin
2534 pragma Assert (False
2535 or else NT (N).Nkind = N_Allocator
2536 or else NT (N).Nkind = N_Object_Declaration);
2537 return Flag13 (N);
2538 end No_Initialization;
2540 function No_Minimize_Eliminate
2541 (N : Node_Id) return Boolean is
2542 begin
2543 pragma Assert (False
2544 or else NT (N).Nkind = N_In
2545 or else NT (N).Nkind = N_Not_In);
2546 return Flag17 (N);
2547 end No_Minimize_Eliminate;
2549 function No_Side_Effect_Removal
2550 (N : Node_Id) return Boolean is
2551 begin
2552 pragma Assert (False
2553 or else NT (N).Nkind = N_Function_Call);
2554 return Flag17 (N);
2555 end No_Side_Effect_Removal;
2557 function No_Truncation
2558 (N : Node_Id) return Boolean is
2559 begin
2560 pragma Assert (False
2561 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2562 return Flag17 (N);
2563 end No_Truncation;
2565 function Null_Excluding_Subtype
2566 (N : Node_Id) return Boolean is
2567 begin
2568 pragma Assert (False
2569 or else NT (N).Nkind = N_Access_To_Object_Definition);
2570 return Flag16 (N);
2571 end Null_Excluding_Subtype;
2573 function Null_Exclusion_Present
2574 (N : Node_Id) return Boolean is
2575 begin
2576 pragma Assert (False
2577 or else NT (N).Nkind = N_Access_Definition
2578 or else NT (N).Nkind = N_Access_Function_Definition
2579 or else NT (N).Nkind = N_Access_Procedure_Definition
2580 or else NT (N).Nkind = N_Access_To_Object_Definition
2581 or else NT (N).Nkind = N_Allocator
2582 or else NT (N).Nkind = N_Component_Definition
2583 or else NT (N).Nkind = N_Derived_Type_Definition
2584 or else NT (N).Nkind = N_Discriminant_Specification
2585 or else NT (N).Nkind = N_Formal_Object_Declaration
2586 or else NT (N).Nkind = N_Function_Specification
2587 or else NT (N).Nkind = N_Object_Declaration
2588 or else NT (N).Nkind = N_Object_Renaming_Declaration
2589 or else NT (N).Nkind = N_Parameter_Specification
2590 or else NT (N).Nkind = N_Subtype_Declaration);
2591 return Flag11 (N);
2592 end Null_Exclusion_Present;
2594 function Null_Exclusion_In_Return_Present
2595 (N : Node_Id) return Boolean is
2596 begin
2597 pragma Assert (False
2598 or else NT (N).Nkind = N_Access_Function_Definition);
2599 return Flag14 (N);
2600 end Null_Exclusion_In_Return_Present;
2602 function Null_Present
2603 (N : Node_Id) return Boolean is
2604 begin
2605 pragma Assert (False
2606 or else NT (N).Nkind = N_Component_List
2607 or else NT (N).Nkind = N_Procedure_Specification
2608 or else NT (N).Nkind = N_Record_Definition);
2609 return Flag13 (N);
2610 end Null_Present;
2612 function Null_Record_Present
2613 (N : Node_Id) return Boolean is
2614 begin
2615 pragma Assert (False
2616 or else NT (N).Nkind = N_Aggregate
2617 or else NT (N).Nkind = N_Extension_Aggregate);
2618 return Flag17 (N);
2619 end Null_Record_Present;
2621 function Null_Statement
2622 (N : Node_Id) return Node_Id is
2623 begin
2624 pragma Assert (False
2625 or else NT (N).Nkind = N_Procedure_Specification);
2626 return Node2 (N);
2627 end Null_Statement;
2629 function Object_Definition
2630 (N : Node_Id) return Node_Id is
2631 begin
2632 pragma Assert (False
2633 or else NT (N).Nkind = N_Object_Declaration);
2634 return Node4 (N);
2635 end Object_Definition;
2637 function Of_Present
2638 (N : Node_Id) return Boolean is
2639 begin
2640 pragma Assert (False
2641 or else NT (N).Nkind = N_Iterator_Specification);
2642 return Flag16 (N);
2643 end Of_Present;
2645 function Original_Discriminant
2646 (N : Node_Id) return Node_Id is
2647 begin
2648 pragma Assert (False
2649 or else NT (N).Nkind = N_Identifier);
2650 return Node2 (N);
2651 end Original_Discriminant;
2653 function Original_Entity
2654 (N : Node_Id) return Entity_Id is
2655 begin
2656 pragma Assert (False
2657 or else NT (N).Nkind = N_Integer_Literal
2658 or else NT (N).Nkind = N_Real_Literal);
2659 return Node2 (N);
2660 end Original_Entity;
2662 function Others_Discrete_Choices
2663 (N : Node_Id) return List_Id is
2664 begin
2665 pragma Assert (False
2666 or else NT (N).Nkind = N_Others_Choice);
2667 return List1 (N);
2668 end Others_Discrete_Choices;
2670 function Out_Present
2671 (N : Node_Id) return Boolean is
2672 begin
2673 pragma Assert (False
2674 or else NT (N).Nkind = N_Formal_Object_Declaration
2675 or else NT (N).Nkind = N_Parameter_Specification);
2676 return Flag17 (N);
2677 end Out_Present;
2679 function Parameter_Associations
2680 (N : Node_Id) return List_Id is
2681 begin
2682 pragma Assert (False
2683 or else NT (N).Nkind = N_Entry_Call_Statement
2684 or else NT (N).Nkind = N_Function_Call
2685 or else NT (N).Nkind = N_Procedure_Call_Statement);
2686 return List3 (N);
2687 end Parameter_Associations;
2689 function Parameter_Specifications
2690 (N : Node_Id) return List_Id is
2691 begin
2692 pragma Assert (False
2693 or else NT (N).Nkind = N_Accept_Statement
2694 or else NT (N).Nkind = N_Access_Function_Definition
2695 or else NT (N).Nkind = N_Access_Procedure_Definition
2696 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2697 or else NT (N).Nkind = N_Entry_Declaration
2698 or else NT (N).Nkind = N_Function_Specification
2699 or else NT (N).Nkind = N_Procedure_Specification);
2700 return List3 (N);
2701 end Parameter_Specifications;
2703 function Parameter_Type
2704 (N : Node_Id) return Node_Id is
2705 begin
2706 pragma Assert (False
2707 or else NT (N).Nkind = N_Parameter_Specification);
2708 return Node2 (N);
2709 end Parameter_Type;
2711 function Parent_Spec
2712 (N : Node_Id) return Node_Id is
2713 begin
2714 pragma Assert (False
2715 or else NT (N).Nkind = N_Function_Instantiation
2716 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2717 or else NT (N).Nkind = N_Generic_Package_Declaration
2718 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2719 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2720 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2721 or else NT (N).Nkind = N_Package_Declaration
2722 or else NT (N).Nkind = N_Package_Instantiation
2723 or else NT (N).Nkind = N_Package_Renaming_Declaration
2724 or else NT (N).Nkind = N_Procedure_Instantiation
2725 or else NT (N).Nkind = N_Subprogram_Declaration
2726 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2727 return Node4 (N);
2728 end Parent_Spec;
2730 function Position
2731 (N : Node_Id) return Node_Id is
2732 begin
2733 pragma Assert (False
2734 or else NT (N).Nkind = N_Component_Clause);
2735 return Node2 (N);
2736 end Position;
2738 function Pragma_Argument_Associations
2739 (N : Node_Id) return List_Id is
2740 begin
2741 pragma Assert (False
2742 or else NT (N).Nkind = N_Pragma);
2743 return List2 (N);
2744 end Pragma_Argument_Associations;
2746 function Pragma_Identifier
2747 (N : Node_Id) return Node_Id is
2748 begin
2749 pragma Assert (False
2750 or else NT (N).Nkind = N_Pragma);
2751 return Node4 (N);
2752 end Pragma_Identifier;
2754 function Pragmas_After
2755 (N : Node_Id) return List_Id is
2756 begin
2757 pragma Assert (False
2758 or else NT (N).Nkind = N_Compilation_Unit_Aux
2759 or else NT (N).Nkind = N_Terminate_Alternative);
2760 return List5 (N);
2761 end Pragmas_After;
2763 function Pragmas_Before
2764 (N : Node_Id) return List_Id is
2765 begin
2766 pragma Assert (False
2767 or else NT (N).Nkind = N_Accept_Alternative
2768 or else NT (N).Nkind = N_Delay_Alternative
2769 or else NT (N).Nkind = N_Entry_Call_Alternative
2770 or else NT (N).Nkind = N_Mod_Clause
2771 or else NT (N).Nkind = N_Terminate_Alternative
2772 or else NT (N).Nkind = N_Triggering_Alternative);
2773 return List4 (N);
2774 end Pragmas_Before;
2776 function Pre_Post_Conditions
2777 (N : Node_Id) return Node_Id is
2778 begin
2779 pragma Assert (False
2780 or else NT (N).Nkind = N_Contract);
2781 return Node1 (N);
2782 end Pre_Post_Conditions;
2784 function Prefix
2785 (N : Node_Id) return Node_Id is
2786 begin
2787 pragma Assert (False
2788 or else NT (N).Nkind = N_Attribute_Reference
2789 or else NT (N).Nkind = N_Expanded_Name
2790 or else NT (N).Nkind = N_Explicit_Dereference
2791 or else NT (N).Nkind = N_Indexed_Component
2792 or else NT (N).Nkind = N_Reference
2793 or else NT (N).Nkind = N_Selected_Component
2794 or else NT (N).Nkind = N_Slice);
2795 return Node3 (N);
2796 end Prefix;
2798 function Premature_Use
2799 (N : Node_Id) return Node_Id is
2800 begin
2801 pragma Assert (False
2802 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
2803 return Node5 (N);
2804 end Premature_Use;
2806 function Present_Expr
2807 (N : Node_Id) return Uint is
2808 begin
2809 pragma Assert (False
2810 or else NT (N).Nkind = N_Variant);
2811 return Uint3 (N);
2812 end Present_Expr;
2814 function Prev_Ids
2815 (N : Node_Id) return Boolean is
2816 begin
2817 pragma Assert (False
2818 or else NT (N).Nkind = N_Component_Declaration
2819 or else NT (N).Nkind = N_Discriminant_Specification
2820 or else NT (N).Nkind = N_Exception_Declaration
2821 or else NT (N).Nkind = N_Formal_Object_Declaration
2822 or else NT (N).Nkind = N_Number_Declaration
2823 or else NT (N).Nkind = N_Object_Declaration
2824 or else NT (N).Nkind = N_Parameter_Specification
2825 or else NT (N).Nkind = N_Use_Package_Clause
2826 or else NT (N).Nkind = N_Use_Type_Clause);
2827 return Flag6 (N);
2828 end Prev_Ids;
2830 function Prev_Use_Clause
2831 (N : Node_Id) return Node_Id is
2832 begin
2833 pragma Assert (False
2834 or else NT (N).Nkind = N_Use_Package_Clause
2835 or else NT (N).Nkind = N_Use_Type_Clause);
2836 return Node1 (N);
2837 end Prev_Use_Clause;
2839 function Print_In_Hex
2840 (N : Node_Id) return Boolean is
2841 begin
2842 pragma Assert (False
2843 or else NT (N).Nkind = N_Integer_Literal);
2844 return Flag13 (N);
2845 end Print_In_Hex;
2847 function Private_Declarations
2848 (N : Node_Id) return List_Id is
2849 begin
2850 pragma Assert (False
2851 or else NT (N).Nkind = N_Package_Specification
2852 or else NT (N).Nkind = N_Protected_Definition
2853 or else NT (N).Nkind = N_Task_Definition);
2854 return List3 (N);
2855 end Private_Declarations;
2857 function Private_Present
2858 (N : Node_Id) return Boolean is
2859 begin
2860 pragma Assert (False
2861 or else NT (N).Nkind = N_Compilation_Unit
2862 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2863 or else NT (N).Nkind = N_With_Clause);
2864 return Flag15 (N);
2865 end Private_Present;
2867 function Procedure_To_Call
2868 (N : Node_Id) return Node_Id is
2869 begin
2870 pragma Assert (False
2871 or else NT (N).Nkind = N_Allocator
2872 or else NT (N).Nkind = N_Extended_Return_Statement
2873 or else NT (N).Nkind = N_Free_Statement
2874 or else NT (N).Nkind = N_Simple_Return_Statement);
2875 return Node2 (N);
2876 end Procedure_To_Call;
2878 function Proper_Body
2879 (N : Node_Id) return Node_Id is
2880 begin
2881 pragma Assert (False
2882 or else NT (N).Nkind = N_Subunit);
2883 return Node1 (N);
2884 end Proper_Body;
2886 function Protected_Definition
2887 (N : Node_Id) return Node_Id is
2888 begin
2889 pragma Assert (False
2890 or else NT (N).Nkind = N_Protected_Type_Declaration
2891 or else NT (N).Nkind = N_Single_Protected_Declaration);
2892 return Node3 (N);
2893 end Protected_Definition;
2895 function Protected_Present
2896 (N : Node_Id) return Boolean is
2897 begin
2898 pragma Assert (False
2899 or else NT (N).Nkind = N_Access_Function_Definition
2900 or else NT (N).Nkind = N_Access_Procedure_Definition
2901 or else NT (N).Nkind = N_Derived_Type_Definition
2902 or else NT (N).Nkind = N_Record_Definition);
2903 return Flag6 (N);
2904 end Protected_Present;
2906 function Raises_Constraint_Error
2907 (N : Node_Id) return Boolean is
2908 begin
2909 pragma Assert (False
2910 or else NT (N).Nkind in N_Subexpr);
2911 return Flag7 (N);
2912 end Raises_Constraint_Error;
2914 function Range_Constraint
2915 (N : Node_Id) return Node_Id is
2916 begin
2917 pragma Assert (False
2918 or else NT (N).Nkind = N_Delta_Constraint
2919 or else NT (N).Nkind = N_Digits_Constraint);
2920 return Node4 (N);
2921 end Range_Constraint;
2923 function Range_Expression
2924 (N : Node_Id) return Node_Id is
2925 begin
2926 pragma Assert (False
2927 or else NT (N).Nkind = N_Range_Constraint);
2928 return Node4 (N);
2929 end Range_Expression;
2931 function Real_Range_Specification
2932 (N : Node_Id) return Node_Id is
2933 begin
2934 pragma Assert (False
2935 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2936 or else NT (N).Nkind = N_Floating_Point_Definition
2937 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2938 return Node4 (N);
2939 end Real_Range_Specification;
2941 function Realval
2942 (N : Node_Id) return Ureal is
2943 begin
2944 pragma Assert (False
2945 or else NT (N).Nkind = N_Real_Literal);
2946 return Ureal3 (N);
2947 end Realval;
2949 function Reason
2950 (N : Node_Id) return Uint is
2951 begin
2952 pragma Assert (False
2953 or else NT (N).Nkind = N_Raise_Constraint_Error
2954 or else NT (N).Nkind = N_Raise_Program_Error
2955 or else NT (N).Nkind = N_Raise_Storage_Error);
2956 return Uint3 (N);
2957 end Reason;
2959 function Record_Extension_Part
2960 (N : Node_Id) return Node_Id is
2961 begin
2962 pragma Assert (False
2963 or else NT (N).Nkind = N_Derived_Type_Definition);
2964 return Node3 (N);
2965 end Record_Extension_Part;
2967 function Redundant_Use
2968 (N : Node_Id) return Boolean is
2969 begin
2970 pragma Assert (False
2971 or else NT (N).Nkind = N_Attribute_Reference
2972 or else NT (N).Nkind = N_Expanded_Name
2973 or else NT (N).Nkind = N_Identifier);
2974 return Flag13 (N);
2975 end Redundant_Use;
2977 function Renaming_Exception
2978 (N : Node_Id) return Node_Id is
2979 begin
2980 pragma Assert (False
2981 or else NT (N).Nkind = N_Exception_Declaration);
2982 return Node2 (N);
2983 end Renaming_Exception;
2985 function Result_Definition
2986 (N : Node_Id) return Node_Id is
2987 begin
2988 pragma Assert (False
2989 or else NT (N).Nkind = N_Access_Function_Definition
2990 or else NT (N).Nkind = N_Function_Specification);
2991 return Node4 (N);
2992 end Result_Definition;
2994 function Return_Object_Declarations
2995 (N : Node_Id) return List_Id is
2996 begin
2997 pragma Assert (False
2998 or else NT (N).Nkind = N_Extended_Return_Statement);
2999 return List3 (N);
3000 end Return_Object_Declarations;
3002 function Return_Statement_Entity
3003 (N : Node_Id) return Node_Id is
3004 begin
3005 pragma Assert (False
3006 or else NT (N).Nkind = N_Extended_Return_Statement
3007 or else NT (N).Nkind = N_Simple_Return_Statement);
3008 return Node5 (N);
3009 end Return_Statement_Entity;
3011 function Reverse_Present
3012 (N : Node_Id) return Boolean is
3013 begin
3014 pragma Assert (False
3015 or else NT (N).Nkind = N_Iterator_Specification
3016 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3017 return Flag15 (N);
3018 end Reverse_Present;
3020 function Right_Opnd
3021 (N : Node_Id) return Node_Id is
3022 begin
3023 pragma Assert (False
3024 or else NT (N).Nkind in N_Op
3025 or else NT (N).Nkind = N_And_Then
3026 or else NT (N).Nkind = N_In
3027 or else NT (N).Nkind = N_Not_In
3028 or else NT (N).Nkind = N_Or_Else);
3029 return Node3 (N);
3030 end Right_Opnd;
3032 function Rounded_Result
3033 (N : Node_Id) return Boolean is
3034 begin
3035 pragma Assert (False
3036 or else NT (N).Nkind = N_Op_Divide
3037 or else NT (N).Nkind = N_Op_Multiply
3038 or else NT (N).Nkind = N_Type_Conversion);
3039 return Flag18 (N);
3040 end Rounded_Result;
3042 function SCIL_Controlling_Tag
3043 (N : Node_Id) return Node_Id is
3044 begin
3045 pragma Assert (False
3046 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
3047 return Node5 (N);
3048 end SCIL_Controlling_Tag;
3050 function SCIL_Entity
3051 (N : Node_Id) return Node_Id is
3052 begin
3053 pragma Assert (False
3054 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
3055 or else NT (N).Nkind = N_SCIL_Dispatching_Call
3056 or else NT (N).Nkind = N_SCIL_Membership_Test);
3057 return Node4 (N);
3058 end SCIL_Entity;
3060 function SCIL_Tag_Value
3061 (N : Node_Id) return Node_Id is
3062 begin
3063 pragma Assert (False
3064 or else NT (N).Nkind = N_SCIL_Membership_Test);
3065 return Node5 (N);
3066 end SCIL_Tag_Value;
3068 function SCIL_Target_Prim
3069 (N : Node_Id) return Node_Id is
3070 begin
3071 pragma Assert (False
3072 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
3073 return Node2 (N);
3074 end SCIL_Target_Prim;
3076 function Scope
3077 (N : Node_Id) return Node_Id is
3078 begin
3079 pragma Assert (False
3080 or else NT (N).Nkind = N_Defining_Character_Literal
3081 or else NT (N).Nkind = N_Defining_Identifier
3082 or else NT (N).Nkind = N_Defining_Operator_Symbol);
3083 return Node3 (N);
3084 end Scope;
3086 function Select_Alternatives
3087 (N : Node_Id) return List_Id is
3088 begin
3089 pragma Assert (False
3090 or else NT (N).Nkind = N_Selective_Accept);
3091 return List1 (N);
3092 end Select_Alternatives;
3094 function Selector_Name
3095 (N : Node_Id) return Node_Id is
3096 begin
3097 pragma Assert (False
3098 or else NT (N).Nkind = N_Expanded_Name
3099 or else NT (N).Nkind = N_Generic_Association
3100 or else NT (N).Nkind = N_Parameter_Association
3101 or else NT (N).Nkind = N_Selected_Component);
3102 return Node2 (N);
3103 end Selector_Name;
3105 function Selector_Names
3106 (N : Node_Id) return List_Id is
3107 begin
3108 pragma Assert (False
3109 or else NT (N).Nkind = N_Discriminant_Association);
3110 return List1 (N);
3111 end Selector_Names;
3113 function Shift_Count_OK
3114 (N : Node_Id) return Boolean is
3115 begin
3116 pragma Assert (False
3117 or else NT (N).Nkind = N_Op_Rotate_Left
3118 or else NT (N).Nkind = N_Op_Rotate_Right
3119 or else NT (N).Nkind = N_Op_Shift_Left
3120 or else NT (N).Nkind = N_Op_Shift_Right
3121 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
3122 return Flag4 (N);
3123 end Shift_Count_OK;
3125 function Source_Type
3126 (N : Node_Id) return Entity_Id is
3127 begin
3128 pragma Assert (False
3129 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
3130 return Node1 (N);
3131 end Source_Type;
3133 function Specification
3134 (N : Node_Id) return Node_Id is
3135 begin
3136 pragma Assert (False
3137 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
3138 or else NT (N).Nkind = N_Expression_Function
3139 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3140 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3141 or else NT (N).Nkind = N_Generic_Package_Declaration
3142 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3143 or else NT (N).Nkind = N_Package_Declaration
3144 or else NT (N).Nkind = N_Subprogram_Body
3145 or else NT (N).Nkind = N_Subprogram_Body_Stub
3146 or else NT (N).Nkind = N_Subprogram_Declaration
3147 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3148 return Node1 (N);
3149 end Specification;
3151 function Split_PPC
3152 (N : Node_Id) return Boolean is
3153 begin
3154 pragma Assert (False
3155 or else NT (N).Nkind = N_Aspect_Specification
3156 or else NT (N).Nkind = N_Pragma);
3157 return Flag17 (N);
3158 end Split_PPC;
3160 function Statements
3161 (N : Node_Id) return List_Id is
3162 begin
3163 pragma Assert (False
3164 or else NT (N).Nkind = N_Abortable_Part
3165 or else NT (N).Nkind = N_Accept_Alternative
3166 or else NT (N).Nkind = N_Case_Statement_Alternative
3167 or else NT (N).Nkind = N_Delay_Alternative
3168 or else NT (N).Nkind = N_Entry_Call_Alternative
3169 or else NT (N).Nkind = N_Exception_Handler
3170 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
3171 or else NT (N).Nkind = N_Loop_Statement
3172 or else NT (N).Nkind = N_Triggering_Alternative);
3173 return List3 (N);
3174 end Statements;
3176 function Storage_Pool
3177 (N : Node_Id) return Node_Id is
3178 begin
3179 pragma Assert (False
3180 or else NT (N).Nkind = N_Allocator
3181 or else NT (N).Nkind = N_Extended_Return_Statement
3182 or else NT (N).Nkind = N_Free_Statement
3183 or else NT (N).Nkind = N_Simple_Return_Statement);
3184 return Node1 (N);
3185 end Storage_Pool;
3187 function Subpool_Handle_Name
3188 (N : Node_Id) return Node_Id is
3189 begin
3190 pragma Assert (False
3191 or else NT (N).Nkind = N_Allocator);
3192 return Node4 (N);
3193 end Subpool_Handle_Name;
3195 function Strval
3196 (N : Node_Id) return String_Id is
3197 begin
3198 pragma Assert (False
3199 or else NT (N).Nkind = N_Operator_Symbol
3200 or else NT (N).Nkind = N_String_Literal);
3201 return Str3 (N);
3202 end Strval;
3204 function Subtype_Indication
3205 (N : Node_Id) return Node_Id is
3206 begin
3207 pragma Assert (False
3208 or else NT (N).Nkind = N_Access_To_Object_Definition
3209 or else NT (N).Nkind = N_Component_Definition
3210 or else NT (N).Nkind = N_Derived_Type_Definition
3211 or else NT (N).Nkind = N_Iterator_Specification
3212 or else NT (N).Nkind = N_Private_Extension_Declaration
3213 or else NT (N).Nkind = N_Subtype_Declaration);
3214 return Node5 (N);
3215 end Subtype_Indication;
3217 function Suppress_Assignment_Checks
3218 (N : Node_Id) return Boolean is
3219 begin
3220 pragma Assert (False
3221 or else NT (N).Nkind = N_Assignment_Statement
3222 or else NT (N).Nkind = N_Object_Declaration);
3223 return Flag18 (N);
3224 end Suppress_Assignment_Checks;
3226 function Suppress_Loop_Warnings
3227 (N : Node_Id) return Boolean is
3228 begin
3229 pragma Assert (False
3230 or else NT (N).Nkind = N_Loop_Statement);
3231 return Flag17 (N);
3232 end Suppress_Loop_Warnings;
3234 function Subtype_Mark
3235 (N : Node_Id) return Node_Id is
3236 begin
3237 pragma Assert (False
3238 or else NT (N).Nkind = N_Access_Definition
3239 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3240 or else NT (N).Nkind = N_Formal_Object_Declaration
3241 or else NT (N).Nkind = N_Object_Renaming_Declaration
3242 or else NT (N).Nkind = N_Qualified_Expression
3243 or else NT (N).Nkind = N_Subtype_Indication
3244 or else NT (N).Nkind = N_Type_Conversion
3245 or else NT (N).Nkind = N_Unchecked_Type_Conversion
3246 or else NT (N).Nkind = N_Use_Type_Clause);
3247 return Node4 (N);
3248 end Subtype_Mark;
3250 function Subtype_Marks
3251 (N : Node_Id) return List_Id is
3252 begin
3253 pragma Assert (False
3254 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3255 return List2 (N);
3256 end Subtype_Marks;
3258 function Synchronized_Present
3259 (N : Node_Id) return Boolean is
3260 begin
3261 pragma Assert (False
3262 or else NT (N).Nkind = N_Derived_Type_Definition
3263 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3264 or else NT (N).Nkind = N_Private_Extension_Declaration
3265 or else NT (N).Nkind = N_Record_Definition);
3266 return Flag7 (N);
3267 end Synchronized_Present;
3269 function Tagged_Present
3270 (N : Node_Id) return Boolean is
3271 begin
3272 pragma Assert (False
3273 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
3274 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3275 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3276 or else NT (N).Nkind = N_Private_Type_Declaration
3277 or else NT (N).Nkind = N_Record_Definition);
3278 return Flag15 (N);
3279 end Tagged_Present;
3281 function Target
3282 (N : Node_Id) return Entity_Id is
3283 begin
3284 pragma Assert (False
3285 or else NT (N).Nkind = N_Call_Marker
3286 or else NT (N).Nkind = N_Variable_Reference_Marker);
3287 return Node1 (N);
3288 end Target;
3290 function Target_Type
3291 (N : Node_Id) return Entity_Id is
3292 begin
3293 pragma Assert (False
3294 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
3295 return Node2 (N);
3296 end Target_Type;
3298 function Task_Definition
3299 (N : Node_Id) return Node_Id is
3300 begin
3301 pragma Assert (False
3302 or else NT (N).Nkind = N_Single_Task_Declaration
3303 or else NT (N).Nkind = N_Task_Type_Declaration);
3304 return Node3 (N);
3305 end Task_Definition;
3307 function Task_Present
3308 (N : Node_Id) return Boolean is
3309 begin
3310 pragma Assert (False
3311 or else NT (N).Nkind = N_Derived_Type_Definition
3312 or else NT (N).Nkind = N_Record_Definition);
3313 return Flag5 (N);
3314 end Task_Present;
3316 function Then_Actions
3317 (N : Node_Id) return List_Id is
3318 begin
3319 pragma Assert (False
3320 or else NT (N).Nkind = N_If_Expression);
3321 return List2 (N);
3322 end Then_Actions;
3324 function Then_Statements
3325 (N : Node_Id) return List_Id is
3326 begin
3327 pragma Assert (False
3328 or else NT (N).Nkind = N_Elsif_Part
3329 or else NT (N).Nkind = N_If_Statement);
3330 return List2 (N);
3331 end Then_Statements;
3333 function Treat_Fixed_As_Integer
3334 (N : Node_Id) return Boolean is
3335 begin
3336 pragma Assert (False
3337 or else NT (N).Nkind = N_Op_Divide
3338 or else NT (N).Nkind = N_Op_Mod
3339 or else NT (N).Nkind = N_Op_Multiply
3340 or else NT (N).Nkind = N_Op_Rem);
3341 return Flag14 (N);
3342 end Treat_Fixed_As_Integer;
3344 function Triggering_Alternative
3345 (N : Node_Id) return Node_Id is
3346 begin
3347 pragma Assert (False
3348 or else NT (N).Nkind = N_Asynchronous_Select);
3349 return Node1 (N);
3350 end Triggering_Alternative;
3352 function Triggering_Statement
3353 (N : Node_Id) return Node_Id is
3354 begin
3355 pragma Assert (False
3356 or else NT (N).Nkind = N_Triggering_Alternative);
3357 return Node1 (N);
3358 end Triggering_Statement;
3360 function TSS_Elist
3361 (N : Node_Id) return Elist_Id is
3362 begin
3363 pragma Assert (False
3364 or else NT (N).Nkind = N_Freeze_Entity);
3365 return Elist3 (N);
3366 end TSS_Elist;
3368 function Type_Definition
3369 (N : Node_Id) return Node_Id is
3370 begin
3371 pragma Assert (False
3372 or else NT (N).Nkind = N_Full_Type_Declaration);
3373 return Node3 (N);
3374 end Type_Definition;
3376 function Uneval_Old_Accept
3377 (N : Node_Id) return Boolean is
3378 begin
3379 pragma Assert (False
3380 or else NT (N).Nkind = N_Pragma);
3381 return Flag7 (N);
3382 end Uneval_Old_Accept;
3384 function Uneval_Old_Warn
3385 (N : Node_Id) return Boolean is
3386 begin
3387 pragma Assert (False
3388 or else NT (N).Nkind = N_Pragma);
3389 return Flag18 (N);
3390 end Uneval_Old_Warn;
3392 function Unit
3393 (N : Node_Id) return Node_Id is
3394 begin
3395 pragma Assert (False
3396 or else NT (N).Nkind = N_Compilation_Unit);
3397 return Node2 (N);
3398 end Unit;
3400 function Unknown_Discriminants_Present
3401 (N : Node_Id) return Boolean is
3402 begin
3403 pragma Assert (False
3404 or else NT (N).Nkind = N_Formal_Type_Declaration
3405 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3406 or else NT (N).Nkind = N_Private_Extension_Declaration
3407 or else NT (N).Nkind = N_Private_Type_Declaration);
3408 return Flag13 (N);
3409 end Unknown_Discriminants_Present;
3411 function Unreferenced_In_Spec
3412 (N : Node_Id) return Boolean is
3413 begin
3414 pragma Assert (False
3415 or else NT (N).Nkind = N_With_Clause);
3416 return Flag7 (N);
3417 end Unreferenced_In_Spec;
3419 function Variant_Part
3420 (N : Node_Id) return Node_Id is
3421 begin
3422 pragma Assert (False
3423 or else NT (N).Nkind = N_Component_List);
3424 return Node4 (N);
3425 end Variant_Part;
3427 function Variants
3428 (N : Node_Id) return List_Id is
3429 begin
3430 pragma Assert (False
3431 or else NT (N).Nkind = N_Variant_Part);
3432 return List1 (N);
3433 end Variants;
3435 function Visible_Declarations
3436 (N : Node_Id) return List_Id is
3437 begin
3438 pragma Assert (False
3439 or else NT (N).Nkind = N_Package_Specification
3440 or else NT (N).Nkind = N_Protected_Definition
3441 or else NT (N).Nkind = N_Task_Definition);
3442 return List2 (N);
3443 end Visible_Declarations;
3445 function Uninitialized_Variable
3446 (N : Node_Id) return Node_Id is
3447 begin
3448 pragma Assert (False
3449 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3450 or else NT (N).Nkind = N_Private_Extension_Declaration);
3451 return Node3 (N);
3452 end Uninitialized_Variable;
3454 function Used_Operations
3455 (N : Node_Id) return Elist_Id is
3456 begin
3457 pragma Assert (False
3458 or else NT (N).Nkind = N_Use_Type_Clause);
3459 return Elist2 (N);
3460 end Used_Operations;
3462 function Was_Attribute_Reference
3463 (N : Node_Id) return Boolean is
3464 begin
3465 pragma Assert (False
3466 or else NT (N).Nkind = N_Subprogram_Body);
3467 return Flag2 (N);
3468 end Was_Attribute_Reference;
3470 function Was_Expression_Function
3471 (N : Node_Id) return Boolean is
3472 begin
3473 pragma Assert (False
3474 or else NT (N).Nkind = N_Subprogram_Body);
3475 return Flag18 (N);
3476 end Was_Expression_Function;
3478 function Was_Originally_Stub
3479 (N : Node_Id) return Boolean is
3480 begin
3481 pragma Assert (False
3482 or else NT (N).Nkind = N_Package_Body
3483 or else NT (N).Nkind = N_Protected_Body
3484 or else NT (N).Nkind = N_Subprogram_Body
3485 or else NT (N).Nkind = N_Task_Body);
3486 return Flag13 (N);
3487 end Was_Originally_Stub;
3489 function Withed_Body
3490 (N : Node_Id) return Node_Id is
3491 begin
3492 pragma Assert (False
3493 or else NT (N).Nkind = N_With_Clause);
3494 return Node1 (N);
3495 end Withed_Body;
3497 --------------------------
3498 -- Field Set Procedures --
3499 --------------------------
3501 procedure Set_Abort_Present
3502 (N : Node_Id; Val : Boolean := True) is
3503 begin
3504 pragma Assert (False
3505 or else NT (N).Nkind = N_Requeue_Statement);
3506 Set_Flag15 (N, Val);
3507 end Set_Abort_Present;
3509 procedure Set_Abortable_Part
3510 (N : Node_Id; Val : Node_Id) is
3511 begin
3512 pragma Assert (False
3513 or else NT (N).Nkind = N_Asynchronous_Select);
3514 Set_Node2_With_Parent (N, Val);
3515 end Set_Abortable_Part;
3517 procedure Set_Abstract_Present
3518 (N : Node_Id; Val : Boolean := True) is
3519 begin
3520 pragma Assert (False
3521 or else NT (N).Nkind = N_Derived_Type_Definition
3522 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3523 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3524 or else NT (N).Nkind = N_Private_Extension_Declaration
3525 or else NT (N).Nkind = N_Private_Type_Declaration
3526 or else NT (N).Nkind = N_Record_Definition);
3527 Set_Flag4 (N, Val);
3528 end Set_Abstract_Present;
3530 procedure Set_Accept_Handler_Records
3531 (N : Node_Id; Val : List_Id) is
3532 begin
3533 pragma Assert (False
3534 or else NT (N).Nkind = N_Accept_Alternative);
3535 Set_List5 (N, Val); -- semantic field, no parent set
3536 end Set_Accept_Handler_Records;
3538 procedure Set_Accept_Statement
3539 (N : Node_Id; Val : Node_Id) is
3540 begin
3541 pragma Assert (False
3542 or else NT (N).Nkind = N_Accept_Alternative);
3543 Set_Node2_With_Parent (N, Val);
3544 end Set_Accept_Statement;
3546 procedure Set_Access_Definition
3547 (N : Node_Id; Val : Node_Id) is
3548 begin
3549 pragma Assert (False
3550 or else NT (N).Nkind = N_Component_Definition
3551 or else NT (N).Nkind = N_Formal_Object_Declaration
3552 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3553 Set_Node3_With_Parent (N, Val);
3554 end Set_Access_Definition;
3556 procedure Set_Access_To_Subprogram_Definition
3557 (N : Node_Id; Val : Node_Id) is
3558 begin
3559 pragma Assert (False
3560 or else NT (N).Nkind = N_Access_Definition);
3561 Set_Node3_With_Parent (N, Val);
3562 end Set_Access_To_Subprogram_Definition;
3564 procedure Set_Access_Types_To_Process
3565 (N : Node_Id; Val : Elist_Id) is
3566 begin
3567 pragma Assert (False
3568 or else NT (N).Nkind = N_Freeze_Entity);
3569 Set_Elist2 (N, Val); -- semantic field, no parent set
3570 end Set_Access_Types_To_Process;
3572 procedure Set_Actions
3573 (N : Node_Id; Val : List_Id) is
3574 begin
3575 pragma Assert (False
3576 or else NT (N).Nkind = N_And_Then
3577 or else NT (N).Nkind = N_Case_Expression_Alternative
3578 or else NT (N).Nkind = N_Compilation_Unit_Aux
3579 or else NT (N).Nkind = N_Compound_Statement
3580 or else NT (N).Nkind = N_Expression_With_Actions
3581 or else NT (N).Nkind = N_Freeze_Entity
3582 or else NT (N).Nkind = N_Or_Else);
3583 Set_List1_With_Parent (N, Val);
3584 end Set_Actions;
3586 procedure Set_Activation_Chain_Entity
3587 (N : Node_Id; Val : Node_Id) is
3588 begin
3589 pragma Assert (False
3590 or else NT (N).Nkind = N_Block_Statement
3591 or else NT (N).Nkind = N_Entry_Body
3592 or else NT (N).Nkind = N_Generic_Package_Declaration
3593 or else NT (N).Nkind = N_Package_Declaration
3594 or else NT (N).Nkind = N_Subprogram_Body
3595 or else NT (N).Nkind = N_Task_Body);
3596 Set_Node3 (N, Val); -- semantic field, no parent set
3597 end Set_Activation_Chain_Entity;
3599 procedure Set_Acts_As_Spec
3600 (N : Node_Id; Val : Boolean := True) is
3601 begin
3602 pragma Assert (False
3603 or else NT (N).Nkind = N_Compilation_Unit
3604 or else NT (N).Nkind = N_Subprogram_Body);
3605 Set_Flag4 (N, Val);
3606 end Set_Acts_As_Spec;
3608 procedure Set_Actual_Designated_Subtype
3609 (N : Node_Id; Val : Node_Id) is
3610 begin
3611 pragma Assert (False
3612 or else NT (N).Nkind = N_Explicit_Dereference
3613 or else NT (N).Nkind = N_Free_Statement);
3614 Set_Node4 (N, Val);
3615 end Set_Actual_Designated_Subtype;
3617 procedure Set_Address_Warning_Posted
3618 (N : Node_Id; Val : Boolean := True) is
3619 begin
3620 pragma Assert (False
3621 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3622 Set_Flag18 (N, Val);
3623 end Set_Address_Warning_Posted;
3625 procedure Set_Aggregate_Bounds
3626 (N : Node_Id; Val : Node_Id) is
3627 begin
3628 pragma Assert (False
3629 or else NT (N).Nkind = N_Aggregate);
3630 Set_Node3 (N, Val); -- semantic field, no parent set
3631 end Set_Aggregate_Bounds;
3633 procedure Set_Aliased_Present
3634 (N : Node_Id; Val : Boolean := True) is
3635 begin
3636 pragma Assert (False
3637 or else NT (N).Nkind = N_Component_Definition
3638 or else NT (N).Nkind = N_Object_Declaration
3639 or else NT (N).Nkind = N_Parameter_Specification);
3640 Set_Flag4 (N, Val);
3641 end Set_Aliased_Present;
3643 procedure Set_Alloc_For_BIP_Return
3644 (N : Node_Id; Val : Boolean := True) is
3645 begin
3646 pragma Assert (False
3647 or else NT (N).Nkind = N_Allocator);
3648 Set_Flag1 (N, Val);
3649 end Set_Alloc_For_BIP_Return;
3651 procedure Set_All_Others
3652 (N : Node_Id; Val : Boolean := True) is
3653 begin
3654 pragma Assert (False
3655 or else NT (N).Nkind = N_Others_Choice);
3656 Set_Flag11 (N, Val);
3657 end Set_All_Others;
3659 procedure Set_All_Present
3660 (N : Node_Id; Val : Boolean := True) is
3661 begin
3662 pragma Assert (False
3663 or else NT (N).Nkind = N_Access_Definition
3664 or else NT (N).Nkind = N_Access_To_Object_Definition
3665 or else NT (N).Nkind = N_Quantified_Expression
3666 or else NT (N).Nkind = N_Use_Type_Clause);
3667 Set_Flag15 (N, Val);
3668 end Set_All_Present;
3670 procedure Set_Alternatives
3671 (N : Node_Id; Val : List_Id) is
3672 begin
3673 pragma Assert (False
3674 or else NT (N).Nkind = N_Case_Expression
3675 or else NT (N).Nkind = N_Case_Statement
3676 or else NT (N).Nkind = N_In
3677 or else NT (N).Nkind = N_Not_In);
3678 Set_List4_With_Parent (N, Val);
3679 end Set_Alternatives;
3681 procedure Set_Ancestor_Part
3682 (N : Node_Id; Val : Node_Id) is
3683 begin
3684 pragma Assert (False
3685 or else NT (N).Nkind = N_Extension_Aggregate);
3686 Set_Node3_With_Parent (N, Val);
3687 end Set_Ancestor_Part;
3689 procedure Set_Atomic_Sync_Required
3690 (N : Node_Id; Val : Boolean := True) is
3691 begin
3692 pragma Assert (False
3693 or else NT (N).Nkind = N_Expanded_Name
3694 or else NT (N).Nkind = N_Explicit_Dereference
3695 or else NT (N).Nkind = N_Identifier
3696 or else NT (N).Nkind = N_Indexed_Component
3697 or else NT (N).Nkind = N_Selected_Component);
3698 Set_Flag14 (N, Val);
3699 end Set_Atomic_Sync_Required;
3701 procedure Set_Array_Aggregate
3702 (N : Node_Id; Val : Node_Id) is
3703 begin
3704 pragma Assert (False
3705 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3706 Set_Node3_With_Parent (N, Val);
3707 end Set_Array_Aggregate;
3709 procedure Set_Aspect_Rep_Item
3710 (N : Node_Id; Val : Node_Id) is
3711 begin
3712 pragma Assert (False
3713 or else NT (N).Nkind = N_Aspect_Specification);
3714 Set_Node2 (N, Val);
3715 end Set_Aspect_Rep_Item;
3717 procedure Set_Assignment_OK
3718 (N : Node_Id; Val : Boolean := True) is
3719 begin
3720 pragma Assert (False
3721 or else NT (N).Nkind = N_Object_Declaration
3722 or else NT (N).Nkind in N_Subexpr);
3723 Set_Flag15 (N, Val);
3724 end Set_Assignment_OK;
3726 procedure Set_Associated_Node
3727 (N : Node_Id; Val : Node_Id) is
3728 begin
3729 pragma Assert (False
3730 or else NT (N).Nkind in N_Has_Entity
3731 or else NT (N).Nkind = N_Aggregate
3732 or else NT (N).Nkind = N_Extension_Aggregate
3733 or else NT (N).Nkind = N_Selected_Component
3734 or else NT (N).Nkind = N_Use_Package_Clause);
3735 Set_Node4 (N, Val); -- semantic field, no parent set
3736 end Set_Associated_Node;
3738 procedure Set_At_End_Proc
3739 (N : Node_Id; Val : Node_Id) is
3740 begin
3741 pragma Assert (False
3742 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3743 Set_Node1 (N, Val);
3744 end Set_At_End_Proc;
3746 procedure Set_Attribute_Name
3747 (N : Node_Id; Val : Name_Id) is
3748 begin
3749 pragma Assert (False
3750 or else NT (N).Nkind = N_Attribute_Reference);
3751 Set_Name2 (N, Val);
3752 end Set_Attribute_Name;
3754 procedure Set_Aux_Decls_Node
3755 (N : Node_Id; Val : Node_Id) is
3756 begin
3757 pragma Assert (False
3758 or else NT (N).Nkind = N_Compilation_Unit);
3759 Set_Node5_With_Parent (N, Val);
3760 end Set_Aux_Decls_Node;
3762 procedure Set_Backwards_OK
3763 (N : Node_Id; Val : Boolean := True) is
3764 begin
3765 pragma Assert (False
3766 or else NT (N).Nkind = N_Assignment_Statement);
3767 Set_Flag6 (N, Val);
3768 end Set_Backwards_OK;
3770 procedure Set_Bad_Is_Detected
3771 (N : Node_Id; Val : Boolean := True) is
3772 begin
3773 pragma Assert (False
3774 or else NT (N).Nkind = N_Subprogram_Body);
3775 Set_Flag15 (N, Val);
3776 end Set_Bad_Is_Detected;
3778 procedure Set_Body_Required
3779 (N : Node_Id; Val : Boolean := True) is
3780 begin
3781 pragma Assert (False
3782 or else NT (N).Nkind = N_Compilation_Unit);
3783 Set_Flag13 (N, Val);
3784 end Set_Body_Required;
3786 procedure Set_Body_To_Inline
3787 (N : Node_Id; Val : Node_Id) is
3788 begin
3789 pragma Assert (False
3790 or else NT (N).Nkind = N_Subprogram_Declaration);
3791 Set_Node3 (N, Val);
3792 end Set_Body_To_Inline;
3794 procedure Set_Box_Present
3795 (N : Node_Id; Val : Boolean := True) is
3796 begin
3797 pragma Assert (False
3798 or else NT (N).Nkind = N_Component_Association
3799 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3800 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3801 or else NT (N).Nkind = N_Formal_Package_Declaration
3802 or else NT (N).Nkind = N_Generic_Association
3803 or else NT (N).Nkind = N_Iterated_Component_Association);
3804 Set_Flag15 (N, Val);
3805 end Set_Box_Present;
3807 procedure Set_By_Ref
3808 (N : Node_Id; Val : Boolean := True) is
3809 begin
3810 pragma Assert (False
3811 or else NT (N).Nkind = N_Extended_Return_Statement
3812 or else NT (N).Nkind = N_Simple_Return_Statement);
3813 Set_Flag5 (N, Val);
3814 end Set_By_Ref;
3816 procedure Set_Char_Literal_Value
3817 (N : Node_Id; Val : Uint) is
3818 begin
3819 pragma Assert (False
3820 or else NT (N).Nkind = N_Character_Literal);
3821 Set_Uint2 (N, Val);
3822 end Set_Char_Literal_Value;
3824 procedure Set_Chars
3825 (N : Node_Id; Val : Name_Id) is
3826 begin
3827 pragma Assert (False
3828 or else NT (N).Nkind in N_Has_Chars);
3829 Set_Name1 (N, Val);
3830 end Set_Chars;
3832 procedure Set_Check_Address_Alignment
3833 (N : Node_Id; Val : Boolean := True) is
3834 begin
3835 pragma Assert (False
3836 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3837 Set_Flag11 (N, Val);
3838 end Set_Check_Address_Alignment;
3840 procedure Set_Choice_Parameter
3841 (N : Node_Id; Val : Node_Id) is
3842 begin
3843 pragma Assert (False
3844 or else NT (N).Nkind = N_Exception_Handler);
3845 Set_Node2_With_Parent (N, Val);
3846 end Set_Choice_Parameter;
3848 procedure Set_Choices
3849 (N : Node_Id; Val : List_Id) is
3850 begin
3851 pragma Assert (False
3852 or else NT (N).Nkind = N_Component_Association);
3853 Set_List1_With_Parent (N, Val);
3854 end Set_Choices;
3856 procedure Set_Class_Present
3857 (N : Node_Id; Val : Boolean := True) is
3858 begin
3859 pragma Assert (False
3860 or else NT (N).Nkind = N_Aspect_Specification
3861 or else NT (N).Nkind = N_Pragma);
3862 Set_Flag6 (N, Val);
3863 end Set_Class_Present;
3865 procedure Set_Classifications
3866 (N : Node_Id; Val : Node_Id) is
3867 begin
3868 pragma Assert (False
3869 or else NT (N).Nkind = N_Contract);
3870 Set_Node3 (N, Val); -- semantic field, no parent set
3871 end Set_Classifications;
3873 procedure Set_Cleanup_Actions
3874 (N : Node_Id; Val : List_Id) is
3875 begin
3876 pragma Assert (False
3877 or else NT (N).Nkind = N_Block_Statement);
3878 Set_List5 (N, Val); -- semantic field, no parent set
3879 end Set_Cleanup_Actions;
3881 procedure Set_Comes_From_Extended_Return_Statement
3882 (N : Node_Id; Val : Boolean := True) is
3883 begin
3884 pragma Assert (False
3885 or else NT (N).Nkind = N_Simple_Return_Statement);
3886 Set_Flag18 (N, Val);
3887 end Set_Comes_From_Extended_Return_Statement;
3889 procedure Set_Compile_Time_Known_Aggregate
3890 (N : Node_Id; Val : Boolean := True) is
3891 begin
3892 pragma Assert (False
3893 or else NT (N).Nkind = N_Aggregate);
3894 Set_Flag18 (N, Val);
3895 end Set_Compile_Time_Known_Aggregate;
3897 procedure Set_Component_Associations
3898 (N : Node_Id; Val : List_Id) is
3899 begin
3900 pragma Assert (False
3901 or else NT (N).Nkind = N_Aggregate
3902 or else NT (N).Nkind = N_Delta_Aggregate
3903 or else NT (N).Nkind = N_Extension_Aggregate);
3904 Set_List2_With_Parent (N, Val);
3905 end Set_Component_Associations;
3907 procedure Set_Component_Clauses
3908 (N : Node_Id; Val : List_Id) is
3909 begin
3910 pragma Assert (False
3911 or else NT (N).Nkind = N_Record_Representation_Clause);
3912 Set_List3_With_Parent (N, Val);
3913 end Set_Component_Clauses;
3915 procedure Set_Component_Definition
3916 (N : Node_Id; Val : Node_Id) is
3917 begin
3918 pragma Assert (False
3919 or else NT (N).Nkind = N_Component_Declaration
3920 or else NT (N).Nkind = N_Constrained_Array_Definition
3921 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3922 Set_Node4_With_Parent (N, Val);
3923 end Set_Component_Definition;
3925 procedure Set_Component_Items
3926 (N : Node_Id; Val : List_Id) is
3927 begin
3928 pragma Assert (False
3929 or else NT (N).Nkind = N_Component_List);
3930 Set_List3_With_Parent (N, Val);
3931 end Set_Component_Items;
3933 procedure Set_Component_List
3934 (N : Node_Id; Val : Node_Id) is
3935 begin
3936 pragma Assert (False
3937 or else NT (N).Nkind = N_Record_Definition
3938 or else NT (N).Nkind = N_Variant);
3939 Set_Node1_With_Parent (N, Val);
3940 end Set_Component_List;
3942 procedure Set_Component_Name
3943 (N : Node_Id; Val : Node_Id) is
3944 begin
3945 pragma Assert (False
3946 or else NT (N).Nkind = N_Component_Clause);
3947 Set_Node1_With_Parent (N, Val);
3948 end Set_Component_Name;
3950 procedure Set_Componentwise_Assignment
3951 (N : Node_Id; Val : Boolean := True) is
3952 begin
3953 pragma Assert (False
3954 or else NT (N).Nkind = N_Assignment_Statement);
3955 Set_Flag14 (N, Val);
3956 end Set_Componentwise_Assignment;
3958 procedure Set_Condition
3959 (N : Node_Id; Val : Node_Id) is
3960 begin
3961 pragma Assert (False
3962 or else NT (N).Nkind = N_Accept_Alternative
3963 or else NT (N).Nkind = N_Delay_Alternative
3964 or else NT (N).Nkind = N_Elsif_Part
3965 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3966 or else NT (N).Nkind = N_Exit_Statement
3967 or else NT (N).Nkind = N_If_Statement
3968 or else NT (N).Nkind = N_Iteration_Scheme
3969 or else NT (N).Nkind = N_Quantified_Expression
3970 or else NT (N).Nkind = N_Raise_Constraint_Error
3971 or else NT (N).Nkind = N_Raise_Program_Error
3972 or else NT (N).Nkind = N_Raise_Storage_Error
3973 or else NT (N).Nkind = N_Terminate_Alternative);
3974 Set_Node1_With_Parent (N, Val);
3975 end Set_Condition;
3977 procedure Set_Condition_Actions
3978 (N : Node_Id; Val : List_Id) is
3979 begin
3980 pragma Assert (False
3981 or else NT (N).Nkind = N_Elsif_Part
3982 or else NT (N).Nkind = N_Iteration_Scheme);
3983 Set_List3 (N, Val); -- semantic field, no parent set
3984 end Set_Condition_Actions;
3986 procedure Set_Config_Pragmas
3987 (N : Node_Id; Val : List_Id) is
3988 begin
3989 pragma Assert (False
3990 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3991 Set_List4_With_Parent (N, Val);
3992 end Set_Config_Pragmas;
3994 procedure Set_Constant_Present
3995 (N : Node_Id; Val : Boolean := True) is
3996 begin
3997 pragma Assert (False
3998 or else NT (N).Nkind = N_Access_Definition
3999 or else NT (N).Nkind = N_Access_To_Object_Definition
4000 or else NT (N).Nkind = N_Object_Declaration);
4001 Set_Flag17 (N, Val);
4002 end Set_Constant_Present;
4004 procedure Set_Constraint
4005 (N : Node_Id; Val : Node_Id) is
4006 begin
4007 pragma Assert (False
4008 or else NT (N).Nkind = N_Subtype_Indication);
4009 Set_Node3_With_Parent (N, Val);
4010 end Set_Constraint;
4012 procedure Set_Constraints
4013 (N : Node_Id; Val : List_Id) is
4014 begin
4015 pragma Assert (False
4016 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
4017 Set_List1_With_Parent (N, Val);
4018 end Set_Constraints;
4020 procedure Set_Context_Installed
4021 (N : Node_Id; Val : Boolean := True) is
4022 begin
4023 pragma Assert (False
4024 or else NT (N).Nkind = N_With_Clause);
4025 Set_Flag13 (N, Val);
4026 end Set_Context_Installed;
4028 procedure Set_Context_Items
4029 (N : Node_Id; Val : List_Id) is
4030 begin
4031 pragma Assert (False
4032 or else NT (N).Nkind = N_Compilation_Unit);
4033 Set_List1_With_Parent (N, Val);
4034 end Set_Context_Items;
4036 procedure Set_Context_Pending
4037 (N : Node_Id; Val : Boolean := True) is
4038 begin
4039 pragma Assert (False
4040 or else NT (N).Nkind = N_Compilation_Unit);
4041 Set_Flag16 (N, Val);
4042 end Set_Context_Pending;
4044 procedure Set_Contract_Test_Cases
4045 (N : Node_Id; Val : Node_Id) is
4046 begin
4047 pragma Assert (False
4048 or else NT (N).Nkind = N_Contract);
4049 Set_Node2 (N, Val); -- semantic field, no parent set
4050 end Set_Contract_Test_Cases;
4052 procedure Set_Controlling_Argument
4053 (N : Node_Id; Val : Node_Id) is
4054 begin
4055 pragma Assert (False
4056 or else NT (N).Nkind = N_Function_Call
4057 or else NT (N).Nkind = N_Procedure_Call_Statement);
4058 Set_Node1 (N, Val); -- semantic field, no parent set
4059 end Set_Controlling_Argument;
4061 procedure Set_Conversion_OK
4062 (N : Node_Id; Val : Boolean := True) is
4063 begin
4064 pragma Assert (False
4065 or else NT (N).Nkind = N_Type_Conversion);
4066 Set_Flag14 (N, Val);
4067 end Set_Conversion_OK;
4069 procedure Set_Convert_To_Return_False
4070 (N : Node_Id; Val : Boolean := True) is
4071 begin
4072 pragma Assert (False
4073 or else NT (N).Nkind = N_Raise_Expression);
4074 Set_Flag13 (N, Val);
4075 end Set_Convert_To_Return_False;
4077 procedure Set_Corresponding_Aspect
4078 (N : Node_Id; Val : Node_Id) is
4079 begin
4080 pragma Assert (False
4081 or else NT (N).Nkind = N_Pragma);
4082 Set_Node3 (N, Val);
4083 end Set_Corresponding_Aspect;
4085 procedure Set_Corresponding_Body
4086 (N : Node_Id; Val : Node_Id) is
4087 begin
4088 pragma Assert (False
4089 or else NT (N).Nkind = N_Entry_Declaration
4090 or else NT (N).Nkind = N_Generic_Package_Declaration
4091 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
4092 or else NT (N).Nkind = N_Package_Body_Stub
4093 or else NT (N).Nkind = N_Package_Declaration
4094 or else NT (N).Nkind = N_Protected_Body_Stub
4095 or else NT (N).Nkind = N_Protected_Type_Declaration
4096 or else NT (N).Nkind = N_Subprogram_Body_Stub
4097 or else NT (N).Nkind = N_Subprogram_Declaration
4098 or else NT (N).Nkind = N_Task_Body_Stub
4099 or else NT (N).Nkind = N_Task_Type_Declaration);
4100 Set_Node5 (N, Val); -- semantic field, no parent set
4101 end Set_Corresponding_Body;
4103 procedure Set_Corresponding_Formal_Spec
4104 (N : Node_Id; Val : Node_Id) is
4105 begin
4106 pragma Assert (False
4107 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4108 Set_Node3 (N, Val); -- semantic field, no parent set
4109 end Set_Corresponding_Formal_Spec;
4111 procedure Set_Corresponding_Generic_Association
4112 (N : Node_Id; Val : Node_Id) is
4113 begin
4114 pragma Assert (False
4115 or else NT (N).Nkind = N_Object_Declaration
4116 or else NT (N).Nkind = N_Object_Renaming_Declaration);
4117 Set_Node5 (N, Val); -- semantic field, no parent set
4118 end Set_Corresponding_Generic_Association;
4120 procedure Set_Corresponding_Integer_Value
4121 (N : Node_Id; Val : Uint) is
4122 begin
4123 pragma Assert (False
4124 or else NT (N).Nkind = N_Real_Literal);
4125 Set_Uint4 (N, Val); -- semantic field, no parent set
4126 end Set_Corresponding_Integer_Value;
4128 procedure Set_Corresponding_Spec
4129 (N : Node_Id; Val : Entity_Id) is
4130 begin
4131 pragma Assert (False
4132 or else NT (N).Nkind = N_Expression_Function
4133 or else NT (N).Nkind = N_Package_Body
4134 or else NT (N).Nkind = N_Protected_Body
4135 or else NT (N).Nkind = N_Subprogram_Body
4136 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
4137 or else NT (N).Nkind = N_Task_Body
4138 or else NT (N).Nkind = N_With_Clause);
4139 Set_Node5 (N, Val); -- semantic field, no parent set
4140 end Set_Corresponding_Spec;
4142 procedure Set_Corresponding_Spec_Of_Stub
4143 (N : Node_Id; Val : Entity_Id) is
4144 begin
4145 pragma Assert (False
4146 or else NT (N).Nkind = N_Package_Body_Stub
4147 or else NT (N).Nkind = N_Protected_Body_Stub
4148 or else NT (N).Nkind = N_Subprogram_Body_Stub
4149 or else NT (N).Nkind = N_Task_Body_Stub);
4150 Set_Node2 (N, Val); -- semantic field, no parent set
4151 end Set_Corresponding_Spec_Of_Stub;
4153 procedure Set_Corresponding_Stub
4154 (N : Node_Id; Val : Node_Id) is
4155 begin
4156 pragma Assert (False
4157 or else NT (N).Nkind = N_Subunit);
4158 Set_Node3 (N, Val);
4159 end Set_Corresponding_Stub;
4161 procedure Set_Dcheck_Function
4162 (N : Node_Id; Val : Entity_Id) is
4163 begin
4164 pragma Assert (False
4165 or else NT (N).Nkind = N_Variant);
4166 Set_Node5 (N, Val); -- semantic field, no parent set
4167 end Set_Dcheck_Function;
4169 procedure Set_Declarations
4170 (N : Node_Id; Val : List_Id) is
4171 begin
4172 pragma Assert (False
4173 or else NT (N).Nkind = N_Accept_Statement
4174 or else NT (N).Nkind = N_Block_Statement
4175 or else NT (N).Nkind = N_Compilation_Unit_Aux
4176 or else NT (N).Nkind = N_Entry_Body
4177 or else NT (N).Nkind = N_Package_Body
4178 or else NT (N).Nkind = N_Protected_Body
4179 or else NT (N).Nkind = N_Subprogram_Body
4180 or else NT (N).Nkind = N_Task_Body);
4181 Set_List2_With_Parent (N, Val);
4182 end Set_Declarations;
4184 procedure Set_Default_Expression
4185 (N : Node_Id; Val : Node_Id) is
4186 begin
4187 pragma Assert (False
4188 or else NT (N).Nkind = N_Formal_Object_Declaration
4189 or else NT (N).Nkind = N_Parameter_Specification);
4190 Set_Node5 (N, Val); -- semantic field, no parent set
4191 end Set_Default_Expression;
4193 procedure Set_Default_Storage_Pool
4194 (N : Node_Id; Val : Node_Id) is
4195 begin
4196 pragma Assert (False
4197 or else NT (N).Nkind = N_Compilation_Unit_Aux);
4198 Set_Node3 (N, Val); -- semantic field, no parent set
4199 end Set_Default_Storage_Pool;
4201 procedure Set_Default_Name
4202 (N : Node_Id; Val : Node_Id) is
4203 begin
4204 pragma Assert (False
4205 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
4206 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
4207 Set_Node2_With_Parent (N, Val);
4208 end Set_Default_Name;
4210 procedure Set_Defining_Identifier
4211 (N : Node_Id; Val : Entity_Id) is
4212 begin
4213 pragma Assert (False
4214 or else NT (N).Nkind = N_Component_Declaration
4215 or else NT (N).Nkind = N_Defining_Program_Unit_Name
4216 or else NT (N).Nkind = N_Discriminant_Specification
4217 or else NT (N).Nkind = N_Entry_Body
4218 or else NT (N).Nkind = N_Entry_Declaration
4219 or else NT (N).Nkind = N_Entry_Index_Specification
4220 or else NT (N).Nkind = N_Exception_Declaration
4221 or else NT (N).Nkind = N_Exception_Renaming_Declaration
4222 or else NT (N).Nkind = N_Formal_Object_Declaration
4223 or else NT (N).Nkind = N_Formal_Package_Declaration
4224 or else NT (N).Nkind = N_Formal_Type_Declaration
4225 or else NT (N).Nkind = N_Full_Type_Declaration
4226 or else NT (N).Nkind = N_Implicit_Label_Declaration
4227 or else NT (N).Nkind = N_Incomplete_Type_Declaration
4228 or else NT (N).Nkind = N_Iterated_Component_Association
4229 or else NT (N).Nkind = N_Iterator_Specification
4230 or else NT (N).Nkind = N_Loop_Parameter_Specification
4231 or else NT (N).Nkind = N_Number_Declaration
4232 or else NT (N).Nkind = N_Object_Declaration
4233 or else NT (N).Nkind = N_Object_Renaming_Declaration
4234 or else NT (N).Nkind = N_Package_Body_Stub
4235 or else NT (N).Nkind = N_Parameter_Specification
4236 or else NT (N).Nkind = N_Private_Extension_Declaration
4237 or else NT (N).Nkind = N_Private_Type_Declaration
4238 or else NT (N).Nkind = N_Protected_Body
4239 or else NT (N).Nkind = N_Protected_Body_Stub
4240 or else NT (N).Nkind = N_Protected_Type_Declaration
4241 or else NT (N).Nkind = N_Single_Protected_Declaration
4242 or else NT (N).Nkind = N_Single_Task_Declaration
4243 or else NT (N).Nkind = N_Subtype_Declaration
4244 or else NT (N).Nkind = N_Task_Body
4245 or else NT (N).Nkind = N_Task_Body_Stub
4246 or else NT (N).Nkind = N_Task_Type_Declaration);
4247 Set_Node1_With_Parent (N, Val);
4248 end Set_Defining_Identifier;
4250 procedure Set_Defining_Unit_Name
4251 (N : Node_Id; Val : Node_Id) is
4252 begin
4253 pragma Assert (False
4254 or else NT (N).Nkind = N_Function_Instantiation
4255 or else NT (N).Nkind = N_Function_Specification
4256 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4257 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4258 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4259 or else NT (N).Nkind = N_Package_Body
4260 or else NT (N).Nkind = N_Package_Instantiation
4261 or else NT (N).Nkind = N_Package_Renaming_Declaration
4262 or else NT (N).Nkind = N_Package_Specification
4263 or else NT (N).Nkind = N_Procedure_Instantiation
4264 or else NT (N).Nkind = N_Procedure_Specification);
4265 Set_Node1_With_Parent (N, Val);
4266 end Set_Defining_Unit_Name;
4268 procedure Set_Delay_Alternative
4269 (N : Node_Id; Val : Node_Id) is
4270 begin
4271 pragma Assert (False
4272 or else NT (N).Nkind = N_Timed_Entry_Call);
4273 Set_Node4_With_Parent (N, Val);
4274 end Set_Delay_Alternative;
4276 procedure Set_Delay_Statement
4277 (N : Node_Id; Val : Node_Id) is
4278 begin
4279 pragma Assert (False
4280 or else NT (N).Nkind = N_Delay_Alternative);
4281 Set_Node2_With_Parent (N, Val);
4282 end Set_Delay_Statement;
4284 procedure Set_Delta_Expression
4285 (N : Node_Id; Val : Node_Id) is
4286 begin
4287 pragma Assert (False
4288 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4289 or else NT (N).Nkind = N_Delta_Constraint
4290 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
4291 Set_Node3_With_Parent (N, Val);
4292 end Set_Delta_Expression;
4294 procedure Set_Digits_Expression
4295 (N : Node_Id; Val : Node_Id) is
4296 begin
4297 pragma Assert (False
4298 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4299 or else NT (N).Nkind = N_Digits_Constraint
4300 or else NT (N).Nkind = N_Floating_Point_Definition);
4301 Set_Node2_With_Parent (N, Val);
4302 end Set_Digits_Expression;
4304 procedure Set_Discr_Check_Funcs_Built
4305 (N : Node_Id; Val : Boolean := True) is
4306 begin
4307 pragma Assert (False
4308 or else NT (N).Nkind = N_Full_Type_Declaration);
4309 Set_Flag11 (N, Val);
4310 end Set_Discr_Check_Funcs_Built;
4312 procedure Set_Discrete_Choices
4313 (N : Node_Id; Val : List_Id) is
4314 begin
4315 pragma Assert (False
4316 or else NT (N).Nkind = N_Case_Expression_Alternative
4317 or else NT (N).Nkind = N_Case_Statement_Alternative
4318 or else NT (N).Nkind = N_Iterated_Component_Association
4319 or else NT (N).Nkind = N_Variant);
4320 Set_List4_With_Parent (N, Val);
4321 end Set_Discrete_Choices;
4323 procedure Set_Discrete_Range
4324 (N : Node_Id; Val : Node_Id) is
4325 begin
4326 pragma Assert (False
4327 or else NT (N).Nkind = N_Slice);
4328 Set_Node4_With_Parent (N, Val);
4329 end Set_Discrete_Range;
4331 procedure Set_Discrete_Subtype_Definition
4332 (N : Node_Id; Val : Node_Id) is
4333 begin
4334 pragma Assert (False
4335 or else NT (N).Nkind = N_Entry_Declaration
4336 or else NT (N).Nkind = N_Entry_Index_Specification
4337 or else NT (N).Nkind = N_Loop_Parameter_Specification);
4338 Set_Node4_With_Parent (N, Val);
4339 end Set_Discrete_Subtype_Definition;
4341 procedure Set_Discrete_Subtype_Definitions
4342 (N : Node_Id; Val : List_Id) is
4343 begin
4344 pragma Assert (False
4345 or else NT (N).Nkind = N_Constrained_Array_Definition);
4346 Set_List2_With_Parent (N, Val);
4347 end Set_Discrete_Subtype_Definitions;
4349 procedure Set_Discriminant_Specifications
4350 (N : Node_Id; Val : List_Id) is
4351 begin
4352 pragma Assert (False
4353 or else NT (N).Nkind = N_Formal_Type_Declaration
4354 or else NT (N).Nkind = N_Full_Type_Declaration
4355 or else NT (N).Nkind = N_Incomplete_Type_Declaration
4356 or else NT (N).Nkind = N_Private_Extension_Declaration
4357 or else NT (N).Nkind = N_Private_Type_Declaration
4358 or else NT (N).Nkind = N_Protected_Type_Declaration
4359 or else NT (N).Nkind = N_Task_Type_Declaration);
4360 Set_List4_With_Parent (N, Val);
4361 end Set_Discriminant_Specifications;
4363 procedure Set_Discriminant_Type
4364 (N : Node_Id; Val : Node_Id) is
4365 begin
4366 pragma Assert (False
4367 or else NT (N).Nkind = N_Discriminant_Specification);
4368 Set_Node5_With_Parent (N, Val);
4369 end Set_Discriminant_Type;
4371 procedure Set_Do_Accessibility_Check
4372 (N : Node_Id; Val : Boolean := True) is
4373 begin
4374 pragma Assert (False
4375 or else NT (N).Nkind = N_Parameter_Specification);
4376 Set_Flag13 (N, Val);
4377 end Set_Do_Accessibility_Check;
4379 procedure Set_Do_Discriminant_Check
4380 (N : Node_Id; Val : Boolean := True) is
4381 begin
4382 pragma Assert (False
4383 or else NT (N).Nkind = N_Assignment_Statement
4384 or else NT (N).Nkind = N_Selected_Component
4385 or else NT (N).Nkind = N_Type_Conversion);
4386 Set_Flag3 (N, Val);
4387 end Set_Do_Discriminant_Check;
4389 procedure Set_Do_Division_Check
4390 (N : Node_Id; Val : Boolean := True) is
4391 begin
4392 pragma Assert (False
4393 or else NT (N).Nkind = N_Op_Divide
4394 or else NT (N).Nkind = N_Op_Mod
4395 or else NT (N).Nkind = N_Op_Rem);
4396 Set_Flag13 (N, Val);
4397 end Set_Do_Division_Check;
4399 procedure Set_Do_Length_Check
4400 (N : Node_Id; Val : Boolean := True) is
4401 begin
4402 pragma Assert (False
4403 or else NT (N).Nkind = N_Assignment_Statement
4404 or else NT (N).Nkind = N_Op_And
4405 or else NT (N).Nkind = N_Op_Or
4406 or else NT (N).Nkind = N_Op_Xor
4407 or else NT (N).Nkind = N_Type_Conversion);
4408 Set_Flag4 (N, Val);
4409 end Set_Do_Length_Check;
4411 procedure Set_Do_Overflow_Check
4412 (N : Node_Id; Val : Boolean := True) is
4413 begin
4414 pragma Assert (False
4415 or else NT (N).Nkind in N_Op
4416 or else NT (N).Nkind = N_Attribute_Reference
4417 or else NT (N).Nkind = N_Case_Expression
4418 or else NT (N).Nkind = N_If_Expression
4419 or else NT (N).Nkind = N_Type_Conversion);
4420 Set_Flag17 (N, Val);
4421 end Set_Do_Overflow_Check;
4423 procedure Set_Do_Range_Check
4424 (N : Node_Id; Val : Boolean := True) is
4425 begin
4426 pragma Assert (False
4427 or else NT (N).Nkind in N_Subexpr);
4428 Set_Flag9 (N, Val);
4429 end Set_Do_Range_Check;
4431 procedure Set_Do_Storage_Check
4432 (N : Node_Id; Val : Boolean := True) is
4433 begin
4434 pragma Assert (False
4435 or else NT (N).Nkind = N_Allocator
4436 or else NT (N).Nkind = N_Subprogram_Body);
4437 Set_Flag17 (N, Val);
4438 end Set_Do_Storage_Check;
4440 procedure Set_Do_Tag_Check
4441 (N : Node_Id; Val : Boolean := True) is
4442 begin
4443 pragma Assert (False
4444 or else NT (N).Nkind = N_Assignment_Statement
4445 or else NT (N).Nkind = N_Extended_Return_Statement
4446 or else NT (N).Nkind = N_Function_Call
4447 or else NT (N).Nkind = N_Procedure_Call_Statement
4448 or else NT (N).Nkind = N_Simple_Return_Statement
4449 or else NT (N).Nkind = N_Type_Conversion);
4450 Set_Flag13 (N, Val);
4451 end Set_Do_Tag_Check;
4453 procedure Set_Elaborate_All_Desirable
4454 (N : Node_Id; Val : Boolean := True) is
4455 begin
4456 pragma Assert (False
4457 or else NT (N).Nkind = N_With_Clause);
4458 Set_Flag9 (N, Val);
4459 end Set_Elaborate_All_Desirable;
4461 procedure Set_Elaborate_All_Present
4462 (N : Node_Id; Val : Boolean := True) is
4463 begin
4464 pragma Assert (False
4465 or else NT (N).Nkind = N_With_Clause);
4466 Set_Flag14 (N, Val);
4467 end Set_Elaborate_All_Present;
4469 procedure Set_Elaborate_Desirable
4470 (N : Node_Id; Val : Boolean := True) is
4471 begin
4472 pragma Assert (False
4473 or else NT (N).Nkind = N_With_Clause);
4474 Set_Flag11 (N, Val);
4475 end Set_Elaborate_Desirable;
4477 procedure Set_Elaborate_Present
4478 (N : Node_Id; Val : Boolean := True) is
4479 begin
4480 pragma Assert (False
4481 or else NT (N).Nkind = N_With_Clause);
4482 Set_Flag4 (N, Val);
4483 end Set_Elaborate_Present;
4485 procedure Set_Else_Actions
4486 (N : Node_Id; Val : List_Id) is
4487 begin
4488 pragma Assert (False
4489 or else NT (N).Nkind = N_If_Expression);
4490 Set_List3_With_Parent (N, Val); -- semantic field, but needs parents
4491 end Set_Else_Actions;
4493 procedure Set_Else_Statements
4494 (N : Node_Id; Val : List_Id) is
4495 begin
4496 pragma Assert (False
4497 or else NT (N).Nkind = N_Conditional_Entry_Call
4498 or else NT (N).Nkind = N_If_Statement
4499 or else NT (N).Nkind = N_Selective_Accept);
4500 Set_List4_With_Parent (N, Val);
4501 end Set_Else_Statements;
4503 procedure Set_Elsif_Parts
4504 (N : Node_Id; Val : List_Id) is
4505 begin
4506 pragma Assert (False
4507 or else NT (N).Nkind = N_If_Statement);
4508 Set_List3_With_Parent (N, Val);
4509 end Set_Elsif_Parts;
4511 procedure Set_Enclosing_Variant
4512 (N : Node_Id; Val : Node_Id) is
4513 begin
4514 pragma Assert (False
4515 or else NT (N).Nkind = N_Variant);
4516 Set_Node2 (N, Val); -- semantic field, no parent set
4517 end Set_Enclosing_Variant;
4519 procedure Set_End_Label
4520 (N : Node_Id; Val : Node_Id) is
4521 begin
4522 pragma Assert (False
4523 or else NT (N).Nkind = N_Enumeration_Type_Definition
4524 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4525 or else NT (N).Nkind = N_Loop_Statement
4526 or else NT (N).Nkind = N_Package_Specification
4527 or else NT (N).Nkind = N_Protected_Body
4528 or else NT (N).Nkind = N_Protected_Definition
4529 or else NT (N).Nkind = N_Record_Definition
4530 or else NT (N).Nkind = N_Task_Definition);
4531 Set_Node4_With_Parent (N, Val);
4532 end Set_End_Label;
4534 procedure Set_End_Span
4535 (N : Node_Id; Val : Uint) is
4536 begin
4537 pragma Assert (False
4538 or else NT (N).Nkind = N_Case_Statement
4539 or else NT (N).Nkind = N_If_Statement);
4540 Set_Uint5 (N, Val);
4541 end Set_End_Span;
4543 procedure Set_Entity
4544 (N : Node_Id; Val : Node_Id) is
4545 begin
4546 pragma Assert (False
4547 or else NT (N).Nkind in N_Has_Entity
4548 or else NT (N).Nkind = N_Aspect_Specification
4549 or else NT (N).Nkind = N_Attribute_Definition_Clause
4550 or else NT (N).Nkind = N_Freeze_Entity
4551 or else NT (N).Nkind = N_Freeze_Generic_Entity);
4552 Set_Node4 (N, Val); -- semantic field, no parent set
4553 end Set_Entity;
4555 procedure Set_Entry_Body_Formal_Part
4556 (N : Node_Id; Val : Node_Id) is
4557 begin
4558 pragma Assert (False
4559 or else NT (N).Nkind = N_Entry_Body);
4560 Set_Node5_With_Parent (N, Val);
4561 end Set_Entry_Body_Formal_Part;
4563 procedure Set_Entry_Call_Alternative
4564 (N : Node_Id; Val : Node_Id) is
4565 begin
4566 pragma Assert (False
4567 or else NT (N).Nkind = N_Conditional_Entry_Call
4568 or else NT (N).Nkind = N_Timed_Entry_Call);
4569 Set_Node1_With_Parent (N, Val);
4570 end Set_Entry_Call_Alternative;
4572 procedure Set_Entry_Call_Statement
4573 (N : Node_Id; Val : Node_Id) is
4574 begin
4575 pragma Assert (False
4576 or else NT (N).Nkind = N_Entry_Call_Alternative);
4577 Set_Node1_With_Parent (N, Val);
4578 end Set_Entry_Call_Statement;
4580 procedure Set_Entry_Direct_Name
4581 (N : Node_Id; Val : Node_Id) is
4582 begin
4583 pragma Assert (False
4584 or else NT (N).Nkind = N_Accept_Statement);
4585 Set_Node1_With_Parent (N, Val);
4586 end Set_Entry_Direct_Name;
4588 procedure Set_Entry_Index
4589 (N : Node_Id; Val : Node_Id) is
4590 begin
4591 pragma Assert (False
4592 or else NT (N).Nkind = N_Accept_Statement);
4593 Set_Node5_With_Parent (N, Val);
4594 end Set_Entry_Index;
4596 procedure Set_Entry_Index_Specification
4597 (N : Node_Id; Val : Node_Id) is
4598 begin
4599 pragma Assert (False
4600 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4601 Set_Node4_With_Parent (N, Val);
4602 end Set_Entry_Index_Specification;
4604 procedure Set_Etype
4605 (N : Node_Id; Val : Node_Id) is
4606 begin
4607 pragma Assert (False
4608 or else NT (N).Nkind in N_Has_Etype);
4609 Set_Node5 (N, Val); -- semantic field, no parent set
4610 end Set_Etype;
4612 procedure Set_Exception_Choices
4613 (N : Node_Id; Val : List_Id) is
4614 begin
4615 pragma Assert (False
4616 or else NT (N).Nkind = N_Exception_Handler);
4617 Set_List4_With_Parent (N, Val);
4618 end Set_Exception_Choices;
4620 procedure Set_Exception_Handlers
4621 (N : Node_Id; Val : List_Id) is
4622 begin
4623 pragma Assert (False
4624 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4625 Set_List5_With_Parent (N, Val);
4626 end Set_Exception_Handlers;
4628 procedure Set_Exception_Junk
4629 (N : Node_Id; Val : Boolean := True) is
4630 begin
4631 pragma Assert (False
4632 or else NT (N).Nkind = N_Block_Statement
4633 or else NT (N).Nkind = N_Goto_Statement
4634 or else NT (N).Nkind = N_Label
4635 or else NT (N).Nkind = N_Object_Declaration
4636 or else NT (N).Nkind = N_Subtype_Declaration);
4637 Set_Flag8 (N, Val);
4638 end Set_Exception_Junk;
4640 procedure Set_Exception_Label
4641 (N : Node_Id; Val : Node_Id) is
4642 begin
4643 pragma Assert (False
4644 or else NT (N).Nkind = N_Exception_Handler
4645 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4646 or else NT (N).Nkind = N_Push_Program_Error_Label
4647 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4648 Set_Node5 (N, Val); -- semantic field, no parent set
4649 end Set_Exception_Label;
4651 procedure Set_Expansion_Delayed
4652 (N : Node_Id; Val : Boolean := True) is
4653 begin
4654 pragma Assert (False
4655 or else NT (N).Nkind = N_Aggregate
4656 or else NT (N).Nkind = N_Extension_Aggregate);
4657 Set_Flag11 (N, Val);
4658 end Set_Expansion_Delayed;
4660 procedure Set_Explicit_Actual_Parameter
4661 (N : Node_Id; Val : Node_Id) is
4662 begin
4663 pragma Assert (False
4664 or else NT (N).Nkind = N_Parameter_Association);
4665 Set_Node3_With_Parent (N, Val);
4666 end Set_Explicit_Actual_Parameter;
4668 procedure Set_Explicit_Generic_Actual_Parameter
4669 (N : Node_Id; Val : Node_Id) is
4670 begin
4671 pragma Assert (False
4672 or else NT (N).Nkind = N_Generic_Association);
4673 Set_Node1_With_Parent (N, Val);
4674 end Set_Explicit_Generic_Actual_Parameter;
4676 procedure Set_Expression
4677 (N : Node_Id; Val : Node_Id) is
4678 begin
4679 pragma Assert (False
4680 or else NT (N).Nkind = N_Allocator
4681 or else NT (N).Nkind = N_Aspect_Specification
4682 or else NT (N).Nkind = N_Assignment_Statement
4683 or else NT (N).Nkind = N_At_Clause
4684 or else NT (N).Nkind = N_Attribute_Definition_Clause
4685 or else NT (N).Nkind = N_Case_Expression
4686 or else NT (N).Nkind = N_Case_Expression_Alternative
4687 or else NT (N).Nkind = N_Case_Statement
4688 or else NT (N).Nkind = N_Code_Statement
4689 or else NT (N).Nkind = N_Component_Association
4690 or else NT (N).Nkind = N_Component_Declaration
4691 or else NT (N).Nkind = N_Delay_Relative_Statement
4692 or else NT (N).Nkind = N_Delay_Until_Statement
4693 or else NT (N).Nkind = N_Delta_Aggregate
4694 or else NT (N).Nkind = N_Discriminant_Association
4695 or else NT (N).Nkind = N_Discriminant_Specification
4696 or else NT (N).Nkind = N_Exception_Declaration
4697 or else NT (N).Nkind = N_Expression_Function
4698 or else NT (N).Nkind = N_Expression_With_Actions
4699 or else NT (N).Nkind = N_Free_Statement
4700 or else NT (N).Nkind = N_Iterated_Component_Association
4701 or else NT (N).Nkind = N_Mod_Clause
4702 or else NT (N).Nkind = N_Modular_Type_Definition
4703 or else NT (N).Nkind = N_Number_Declaration
4704 or else NT (N).Nkind = N_Object_Declaration
4705 or else NT (N).Nkind = N_Parameter_Specification
4706 or else NT (N).Nkind = N_Pragma_Argument_Association
4707 or else NT (N).Nkind = N_Qualified_Expression
4708 or else NT (N).Nkind = N_Raise_Expression
4709 or else NT (N).Nkind = N_Raise_Statement
4710 or else NT (N).Nkind = N_Simple_Return_Statement
4711 or else NT (N).Nkind = N_Type_Conversion
4712 or else NT (N).Nkind = N_Unchecked_Expression
4713 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4714 Set_Node3_With_Parent (N, Val);
4715 end Set_Expression;
4717 procedure Set_Expression_Copy
4718 (N : Node_Id; Val : Node_Id) is
4719 begin
4720 pragma Assert (False
4721 or else NT (N).Nkind = N_Pragma_Argument_Association);
4722 Set_Node2 (N, Val); -- semantic field, no parent set
4723 end Set_Expression_Copy;
4725 procedure Set_Expressions
4726 (N : Node_Id; Val : List_Id) is
4727 begin
4728 pragma Assert (False
4729 or else NT (N).Nkind = N_Aggregate
4730 or else NT (N).Nkind = N_Attribute_Reference
4731 or else NT (N).Nkind = N_Extension_Aggregate
4732 or else NT (N).Nkind = N_If_Expression
4733 or else NT (N).Nkind = N_Indexed_Component);
4734 Set_List1_With_Parent (N, Val);
4735 end Set_Expressions;
4737 procedure Set_First_Bit
4738 (N : Node_Id; Val : Node_Id) is
4739 begin
4740 pragma Assert (False
4741 or else NT (N).Nkind = N_Component_Clause);
4742 Set_Node3_With_Parent (N, Val);
4743 end Set_First_Bit;
4745 procedure Set_First_Inlined_Subprogram
4746 (N : Node_Id; Val : Entity_Id) is
4747 begin
4748 pragma Assert (False
4749 or else NT (N).Nkind = N_Compilation_Unit);
4750 Set_Node3 (N, Val); -- semantic field, no parent set
4751 end Set_First_Inlined_Subprogram;
4753 procedure Set_First_Name
4754 (N : Node_Id; Val : Boolean := True) is
4755 begin
4756 pragma Assert (False
4757 or else NT (N).Nkind = N_With_Clause);
4758 Set_Flag5 (N, Val);
4759 end Set_First_Name;
4761 procedure Set_First_Named_Actual
4762 (N : Node_Id; Val : Node_Id) is
4763 begin
4764 pragma Assert (False
4765 or else NT (N).Nkind = N_Entry_Call_Statement
4766 or else NT (N).Nkind = N_Function_Call
4767 or else NT (N).Nkind = N_Procedure_Call_Statement);
4768 Set_Node4 (N, Val); -- semantic field, no parent set
4769 end Set_First_Named_Actual;
4771 procedure Set_First_Real_Statement
4772 (N : Node_Id; Val : Node_Id) is
4773 begin
4774 pragma Assert (False
4775 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4776 Set_Node2 (N, Val); -- semantic field, no parent set
4777 end Set_First_Real_Statement;
4779 procedure Set_First_Subtype_Link
4780 (N : Node_Id; Val : Entity_Id) is
4781 begin
4782 pragma Assert (False
4783 or else NT (N).Nkind = N_Freeze_Entity);
4784 Set_Node5 (N, Val); -- semantic field, no parent set
4785 end Set_First_Subtype_Link;
4787 procedure Set_Float_Truncate
4788 (N : Node_Id; Val : Boolean := True) is
4789 begin
4790 pragma Assert (False
4791 or else NT (N).Nkind = N_Type_Conversion);
4792 Set_Flag11 (N, Val);
4793 end Set_Float_Truncate;
4795 procedure Set_Formal_Type_Definition
4796 (N : Node_Id; Val : Node_Id) is
4797 begin
4798 pragma Assert (False
4799 or else NT (N).Nkind = N_Formal_Type_Declaration);
4800 Set_Node3_With_Parent (N, Val);
4801 end Set_Formal_Type_Definition;
4803 procedure Set_Forwards_OK
4804 (N : Node_Id; Val : Boolean := True) is
4805 begin
4806 pragma Assert (False
4807 or else NT (N).Nkind = N_Assignment_Statement);
4808 Set_Flag5 (N, Val);
4809 end Set_Forwards_OK;
4811 procedure Set_From_Aspect_Specification
4812 (N : Node_Id; Val : Boolean := True) is
4813 begin
4814 pragma Assert (False
4815 or else NT (N).Nkind = N_Attribute_Definition_Clause
4816 or else NT (N).Nkind = N_Pragma);
4817 Set_Flag13 (N, Val);
4818 end Set_From_Aspect_Specification;
4820 procedure Set_From_At_End
4821 (N : Node_Id; Val : Boolean := True) is
4822 begin
4823 pragma Assert (False
4824 or else NT (N).Nkind = N_Raise_Statement);
4825 Set_Flag4 (N, Val);
4826 end Set_From_At_End;
4828 procedure Set_From_At_Mod
4829 (N : Node_Id; Val : Boolean := True) is
4830 begin
4831 pragma Assert (False
4832 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4833 Set_Flag4 (N, Val);
4834 end Set_From_At_Mod;
4836 procedure Set_From_Conditional_Expression
4837 (N : Node_Id; Val : Boolean := True) is
4838 begin
4839 pragma Assert (False
4840 or else NT (N).Nkind = N_Case_Statement
4841 or else NT (N).Nkind = N_If_Statement);
4842 Set_Flag1 (N, Val);
4843 end Set_From_Conditional_Expression;
4845 procedure Set_From_Default
4846 (N : Node_Id; Val : Boolean := True) is
4847 begin
4848 pragma Assert (False
4849 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4850 Set_Flag6 (N, Val);
4851 end Set_From_Default;
4853 procedure Set_Generalized_Indexing
4854 (N : Node_Id; Val : Node_Id) is
4855 begin
4856 pragma Assert (False
4857 or else NT (N).Nkind = N_Indexed_Component);
4858 Set_Node4 (N, Val);
4859 end Set_Generalized_Indexing;
4861 procedure Set_Generic_Associations
4862 (N : Node_Id; Val : List_Id) is
4863 begin
4864 pragma Assert (False
4865 or else NT (N).Nkind = N_Formal_Package_Declaration
4866 or else NT (N).Nkind = N_Function_Instantiation
4867 or else NT (N).Nkind = N_Package_Instantiation
4868 or else NT (N).Nkind = N_Procedure_Instantiation);
4869 Set_List3_With_Parent (N, Val);
4870 end Set_Generic_Associations;
4872 procedure Set_Generic_Formal_Declarations
4873 (N : Node_Id; Val : List_Id) is
4874 begin
4875 pragma Assert (False
4876 or else NT (N).Nkind = N_Generic_Package_Declaration
4877 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4878 Set_List2_With_Parent (N, Val);
4879 end Set_Generic_Formal_Declarations;
4881 procedure Set_Generic_Parent
4882 (N : Node_Id; Val : Node_Id) is
4883 begin
4884 pragma Assert (False
4885 or else NT (N).Nkind = N_Function_Specification
4886 or else NT (N).Nkind = N_Package_Specification
4887 or else NT (N).Nkind = N_Procedure_Specification);
4888 Set_Node5 (N, Val);
4889 end Set_Generic_Parent;
4891 procedure Set_Generic_Parent_Type
4892 (N : Node_Id; Val : Node_Id) is
4893 begin
4894 pragma Assert (False
4895 or else NT (N).Nkind = N_Subtype_Declaration);
4896 Set_Node4 (N, Val);
4897 end Set_Generic_Parent_Type;
4899 procedure Set_Handled_Statement_Sequence
4900 (N : Node_Id; Val : Node_Id) is
4901 begin
4902 pragma Assert (False
4903 or else NT (N).Nkind = N_Accept_Statement
4904 or else NT (N).Nkind = N_Block_Statement
4905 or else NT (N).Nkind = N_Entry_Body
4906 or else NT (N).Nkind = N_Extended_Return_Statement
4907 or else NT (N).Nkind = N_Package_Body
4908 or else NT (N).Nkind = N_Subprogram_Body
4909 or else NT (N).Nkind = N_Task_Body);
4910 Set_Node4_With_Parent (N, Val);
4911 end Set_Handled_Statement_Sequence;
4913 procedure Set_Handler_List_Entry
4914 (N : Node_Id; Val : Node_Id) is
4915 begin
4916 pragma Assert (False
4917 or else NT (N).Nkind = N_Object_Declaration);
4918 Set_Node2 (N, Val);
4919 end Set_Handler_List_Entry;
4921 procedure Set_Has_Created_Identifier
4922 (N : Node_Id; Val : Boolean := True) is
4923 begin
4924 pragma Assert (False
4925 or else NT (N).Nkind = N_Block_Statement
4926 or else NT (N).Nkind = N_Loop_Statement);
4927 Set_Flag15 (N, Val);
4928 end Set_Has_Created_Identifier;
4930 procedure Set_Has_Dereference_Action
4931 (N : Node_Id; Val : Boolean := True) is
4932 begin
4933 pragma Assert (False
4934 or else NT (N).Nkind = N_Explicit_Dereference);
4935 Set_Flag13 (N, Val);
4936 end Set_Has_Dereference_Action;
4938 procedure Set_Has_Dynamic_Length_Check
4939 (N : Node_Id; Val : Boolean := True) is
4940 begin
4941 pragma Assert (False
4942 or else NT (N).Nkind in N_Subexpr);
4943 Set_Flag10 (N, Val);
4944 end Set_Has_Dynamic_Length_Check;
4946 procedure Set_Has_Dynamic_Range_Check
4947 (N : Node_Id; Val : Boolean := True) is
4948 begin
4949 pragma Assert (False
4950 or else NT (N).Nkind = N_Subtype_Declaration
4951 or else NT (N).Nkind in N_Subexpr);
4952 Set_Flag12 (N, Val);
4953 end Set_Has_Dynamic_Range_Check;
4955 procedure Set_Has_Init_Expression
4956 (N : Node_Id; Val : Boolean := True) is
4957 begin
4958 pragma Assert (False
4959 or else NT (N).Nkind = N_Object_Declaration);
4960 Set_Flag14 (N, Val);
4961 end Set_Has_Init_Expression;
4963 procedure Set_Has_Local_Raise
4964 (N : Node_Id; Val : Boolean := True) is
4965 begin
4966 pragma Assert (False
4967 or else NT (N).Nkind = N_Exception_Handler);
4968 Set_Flag8 (N, Val);
4969 end Set_Has_Local_Raise;
4971 procedure Set_Has_No_Elaboration_Code
4972 (N : Node_Id; Val : Boolean := True) is
4973 begin
4974 pragma Assert (False
4975 or else NT (N).Nkind = N_Compilation_Unit);
4976 Set_Flag17 (N, Val);
4977 end Set_Has_No_Elaboration_Code;
4979 procedure Set_Has_Pragma_Suppress_All
4980 (N : Node_Id; Val : Boolean := True) is
4981 begin
4982 pragma Assert (False
4983 or else NT (N).Nkind = N_Compilation_Unit);
4984 Set_Flag14 (N, Val);
4985 end Set_Has_Pragma_Suppress_All;
4987 procedure Set_Has_Private_View
4988 (N : Node_Id; Val : Boolean := True) is
4989 begin
4990 pragma Assert (False
4991 or else NT (N).Nkind in N_Op
4992 or else NT (N).Nkind = N_Character_Literal
4993 or else NT (N).Nkind = N_Expanded_Name
4994 or else NT (N).Nkind = N_Identifier
4995 or else NT (N).Nkind = N_Operator_Symbol);
4996 Set_Flag11 (N, Val);
4997 end Set_Has_Private_View;
4999 procedure Set_Has_Relative_Deadline_Pragma
5000 (N : Node_Id; Val : Boolean := True) is
5001 begin
5002 pragma Assert (False
5003 or else NT (N).Nkind = N_Subprogram_Body
5004 or else NT (N).Nkind = N_Task_Definition);
5005 Set_Flag9 (N, Val);
5006 end Set_Has_Relative_Deadline_Pragma;
5008 procedure Set_Has_Self_Reference
5009 (N : Node_Id; Val : Boolean := True) is
5010 begin
5011 pragma Assert (False
5012 or else NT (N).Nkind = N_Aggregate
5013 or else NT (N).Nkind = N_Extension_Aggregate);
5014 Set_Flag13 (N, Val);
5015 end Set_Has_Self_Reference;
5017 procedure Set_Has_SP_Choice
5018 (N : Node_Id; Val : Boolean := True) is
5019 begin
5020 pragma Assert (False
5021 or else NT (N).Nkind = N_Case_Expression_Alternative
5022 or else NT (N).Nkind = N_Case_Statement_Alternative
5023 or else NT (N).Nkind = N_Variant);
5024 Set_Flag15 (N, Val);
5025 end Set_Has_SP_Choice;
5027 procedure Set_Has_Storage_Size_Pragma
5028 (N : Node_Id; Val : Boolean := True) is
5029 begin
5030 pragma Assert (False
5031 or else NT (N).Nkind = N_Task_Definition);
5032 Set_Flag5 (N, Val);
5033 end Set_Has_Storage_Size_Pragma;
5035 procedure Set_Has_Target_Names
5036 (N : Node_Id; Val : Boolean := True) is
5037 begin
5038 pragma Assert (False
5039 or else NT (N).Nkind = N_Assignment_Statement);
5040 Set_Flag8 (N, Val);
5041 end Set_Has_Target_Names;
5043 procedure Set_Has_Wide_Character
5044 (N : Node_Id; Val : Boolean := True) is
5045 begin
5046 pragma Assert (False
5047 or else NT (N).Nkind = N_String_Literal);
5048 Set_Flag11 (N, Val);
5049 end Set_Has_Wide_Character;
5051 procedure Set_Has_Wide_Wide_Character
5052 (N : Node_Id; Val : Boolean := True) is
5053 begin
5054 pragma Assert (False
5055 or else NT (N).Nkind = N_String_Literal);
5056 Set_Flag13 (N, Val);
5057 end Set_Has_Wide_Wide_Character;
5059 procedure Set_Header_Size_Added
5060 (N : Node_Id; Val : Boolean := True) is
5061 begin
5062 pragma Assert (False
5063 or else NT (N).Nkind = N_Attribute_Reference);
5064 Set_Flag11 (N, Val);
5065 end Set_Header_Size_Added;
5067 procedure Set_Hidden_By_Use_Clause
5068 (N : Node_Id; Val : Elist_Id) is
5069 begin
5070 pragma Assert (False
5071 or else NT (N).Nkind = N_Use_Package_Clause
5072 or else NT (N).Nkind = N_Use_Type_Clause);
5073 Set_Elist5 (N, Val);
5074 end Set_Hidden_By_Use_Clause;
5076 procedure Set_High_Bound
5077 (N : Node_Id; Val : Node_Id) is
5078 begin
5079 pragma Assert (False
5080 or else NT (N).Nkind = N_Range
5081 or else NT (N).Nkind = N_Real_Range_Specification
5082 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5083 Set_Node2_With_Parent (N, Val);
5084 end Set_High_Bound;
5086 procedure Set_Identifier
5087 (N : Node_Id; Val : Node_Id) is
5088 begin
5089 pragma Assert (False
5090 or else NT (N).Nkind = N_Aspect_Specification
5091 or else NT (N).Nkind = N_At_Clause
5092 or else NT (N).Nkind = N_Block_Statement
5093 or else NT (N).Nkind = N_Designator
5094 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5095 or else NT (N).Nkind = N_Label
5096 or else NT (N).Nkind = N_Loop_Statement
5097 or else NT (N).Nkind = N_Record_Representation_Clause);
5098 Set_Node1_With_Parent (N, Val);
5099 end Set_Identifier;
5101 procedure Set_Implicit_With
5102 (N : Node_Id; Val : Boolean := True) is
5103 begin
5104 pragma Assert (False
5105 or else NT (N).Nkind = N_With_Clause);
5106 Set_Flag16 (N, Val);
5107 end Set_Implicit_With;
5109 procedure Set_Implicit_With_From_Instantiation
5110 (N : Node_Id; Val : Boolean := True) is
5111 begin
5112 pragma Assert (False
5113 or else NT (N).Nkind = N_With_Clause);
5114 Set_Flag12 (N, Val);
5115 end Set_Implicit_With_From_Instantiation;
5117 procedure Set_Interface_List
5118 (N : Node_Id; Val : List_Id) is
5119 begin
5120 pragma Assert (False
5121 or else NT (N).Nkind = N_Derived_Type_Definition
5122 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5123 or else NT (N).Nkind = N_Private_Extension_Declaration
5124 or else NT (N).Nkind = N_Protected_Type_Declaration
5125 or else NT (N).Nkind = N_Record_Definition
5126 or else NT (N).Nkind = N_Single_Protected_Declaration
5127 or else NT (N).Nkind = N_Single_Task_Declaration
5128 or else NT (N).Nkind = N_Task_Type_Declaration);
5129 Set_List2_With_Parent (N, Val);
5130 end Set_Interface_List;
5132 procedure Set_Interface_Present
5133 (N : Node_Id; Val : Boolean := True) is
5134 begin
5135 pragma Assert (False
5136 or else NT (N).Nkind = N_Derived_Type_Definition
5137 or else NT (N).Nkind = N_Record_Definition);
5138 Set_Flag16 (N, Val);
5139 end Set_Interface_Present;
5141 procedure Set_Import_Interface_Present
5142 (N : Node_Id; Val : Boolean := True) is
5143 begin
5144 pragma Assert (False
5145 or else NT (N).Nkind = N_Pragma);
5146 Set_Flag16 (N, Val);
5147 end Set_Import_Interface_Present;
5149 procedure Set_In_Present
5150 (N : Node_Id; Val : Boolean := True) is
5151 begin
5152 pragma Assert (False
5153 or else NT (N).Nkind = N_Formal_Object_Declaration
5154 or else NT (N).Nkind = N_Parameter_Specification);
5155 Set_Flag15 (N, Val);
5156 end Set_In_Present;
5158 procedure Set_Includes_Infinities
5159 (N : Node_Id; Val : Boolean := True) is
5160 begin
5161 pragma Assert (False
5162 or else NT (N).Nkind = N_Range);
5163 Set_Flag11 (N, Val);
5164 end Set_Includes_Infinities;
5166 procedure Set_Incomplete_View
5167 (N : Node_Id; Val : Node_Id) is
5168 begin
5169 pragma Assert (False
5170 or else NT (N).Nkind = N_Full_Type_Declaration);
5171 Set_Node2 (N, Val); -- semantic field, no Parent set
5172 end Set_Incomplete_View;
5174 procedure Set_Inherited_Discriminant
5175 (N : Node_Id; Val : Boolean := True) is
5176 begin
5177 pragma Assert (False
5178 or else NT (N).Nkind = N_Component_Association);
5179 Set_Flag13 (N, Val);
5180 end Set_Inherited_Discriminant;
5182 procedure Set_Instance_Spec
5183 (N : Node_Id; Val : Node_Id) is
5184 begin
5185 pragma Assert (False
5186 or else NT (N).Nkind = N_Formal_Package_Declaration
5187 or else NT (N).Nkind = N_Function_Instantiation
5188 or else NT (N).Nkind = N_Package_Instantiation
5189 or else NT (N).Nkind = N_Procedure_Instantiation);
5190 Set_Node5 (N, Val); -- semantic field, no Parent set
5191 end Set_Instance_Spec;
5193 procedure Set_Intval
5194 (N : Node_Id; Val : Uint) is
5195 begin
5196 pragma Assert (False
5197 or else NT (N).Nkind = N_Integer_Literal);
5198 Set_Uint3 (N, Val);
5199 end Set_Intval;
5201 procedure Set_Is_Abort_Block
5202 (N : Node_Id; Val : Boolean := True) is
5203 begin
5204 pragma Assert (False
5205 or else NT (N).Nkind = N_Block_Statement);
5206 Set_Flag4 (N, Val);
5207 end Set_Is_Abort_Block;
5209 procedure Set_Is_Accessibility_Actual
5210 (N : Node_Id; Val : Boolean := True) is
5211 begin
5212 pragma Assert (False
5213 or else NT (N).Nkind = N_Parameter_Association);
5214 Set_Flag13 (N, Val);
5215 end Set_Is_Accessibility_Actual;
5217 procedure Set_Is_Analyzed_Pragma
5218 (N : Node_Id; Val : Boolean := True) is
5219 begin
5220 pragma Assert (False
5221 or else NT (N).Nkind = N_Pragma);
5222 Set_Flag5 (N, Val);
5223 end Set_Is_Analyzed_Pragma;
5225 procedure Set_Is_Asynchronous_Call_Block
5226 (N : Node_Id; Val : Boolean := True) is
5227 begin
5228 pragma Assert (False
5229 or else NT (N).Nkind = N_Block_Statement);
5230 Set_Flag7 (N, Val);
5231 end Set_Is_Asynchronous_Call_Block;
5233 procedure Set_Is_Boolean_Aspect
5234 (N : Node_Id; Val : Boolean := True) is
5235 begin
5236 pragma Assert (False
5237 or else NT (N).Nkind = N_Aspect_Specification);
5238 Set_Flag16 (N, Val);
5239 end Set_Is_Boolean_Aspect;
5241 procedure Set_Is_Checked
5242 (N : Node_Id; Val : Boolean := True) is
5243 begin
5244 pragma Assert (False
5245 or else NT (N).Nkind = N_Aspect_Specification
5246 or else NT (N).Nkind = N_Pragma);
5247 Set_Flag11 (N, Val);
5248 end Set_Is_Checked;
5250 procedure Set_Is_Checked_Ghost_Pragma
5251 (N : Node_Id; Val : Boolean := True) is
5252 begin
5253 pragma Assert (False
5254 or else NT (N).Nkind = N_Pragma);
5255 Set_Flag3 (N, Val);
5256 end Set_Is_Checked_Ghost_Pragma;
5258 procedure Set_Is_Component_Left_Opnd
5259 (N : Node_Id; Val : Boolean := True) is
5260 begin
5261 pragma Assert (False
5262 or else NT (N).Nkind = N_Op_Concat);
5263 Set_Flag13 (N, Val);
5264 end Set_Is_Component_Left_Opnd;
5266 procedure Set_Is_Component_Right_Opnd
5267 (N : Node_Id; Val : Boolean := True) is
5268 begin
5269 pragma Assert (False
5270 or else NT (N).Nkind = N_Op_Concat);
5271 Set_Flag14 (N, Val);
5272 end Set_Is_Component_Right_Opnd;
5274 procedure Set_Is_Controlling_Actual
5275 (N : Node_Id; Val : Boolean := True) is
5276 begin
5277 pragma Assert (False
5278 or else NT (N).Nkind in N_Subexpr);
5279 Set_Flag16 (N, Val);
5280 end Set_Is_Controlling_Actual;
5282 procedure Set_Is_Declaration_Level_Node
5283 (N : Node_Id; Val : Boolean := True) is
5284 begin
5285 pragma Assert (False
5286 or else NT (N).Nkind = N_Call_Marker
5287 or else NT (N).Nkind = N_Function_Instantiation
5288 or else NT (N).Nkind = N_Package_Instantiation
5289 or else NT (N).Nkind = N_Procedure_Instantiation);
5290 Set_Flag5 (N, Val);
5291 end Set_Is_Declaration_Level_Node;
5293 procedure Set_Is_Delayed_Aspect
5294 (N : Node_Id; Val : Boolean := True) is
5295 begin
5296 pragma Assert (False
5297 or else NT (N).Nkind = N_Aspect_Specification
5298 or else NT (N).Nkind = N_Attribute_Definition_Clause
5299 or else NT (N).Nkind = N_Pragma);
5300 Set_Flag14 (N, Val);
5301 end Set_Is_Delayed_Aspect;
5303 procedure Set_Is_Disabled
5304 (N : Node_Id; Val : Boolean := True) is
5305 begin
5306 pragma Assert (False
5307 or else NT (N).Nkind = N_Aspect_Specification
5308 or else NT (N).Nkind = N_Pragma);
5309 Set_Flag15 (N, Val);
5310 end Set_Is_Disabled;
5312 procedure Set_Is_Dispatching_Call
5313 (N : Node_Id; Val : Boolean := True) is
5314 begin
5315 pragma Assert (False
5316 or else NT (N).Nkind = N_Call_Marker);
5317 Set_Flag3 (N, Val);
5318 end Set_Is_Dispatching_Call;
5320 procedure Set_Is_Dynamic_Coextension
5321 (N : Node_Id; Val : Boolean := True) is
5322 begin
5323 pragma Assert (False
5324 or else NT (N).Nkind = N_Allocator);
5325 Set_Flag18 (N, Val);
5326 end Set_Is_Dynamic_Coextension;
5328 procedure Set_Is_Effective_Use_Clause
5329 (N : Node_Id; Val : Boolean := True) is
5330 begin
5331 pragma Assert (False
5332 or else NT (N).Nkind = N_Use_Package_Clause
5333 or else NT (N).Nkind = N_Use_Type_Clause);
5334 Set_Flag1 (N, Val);
5335 end Set_Is_Effective_Use_Clause;
5337 procedure Set_Is_Elaboration_Checks_OK_Node
5338 (N : Node_Id; Val : Boolean := True) is
5339 begin
5340 pragma Assert (False
5341 or else NT (N).Nkind = N_Assignment_Statement
5342 or else NT (N).Nkind = N_Attribute_Reference
5343 or else NT (N).Nkind = N_Call_Marker
5344 or else NT (N).Nkind = N_Entry_Call_Statement
5345 or else NT (N).Nkind = N_Expanded_Name
5346 or else NT (N).Nkind = N_Function_Call
5347 or else NT (N).Nkind = N_Function_Instantiation
5348 or else NT (N).Nkind = N_Identifier
5349 or else NT (N).Nkind = N_Package_Instantiation
5350 or else NT (N).Nkind = N_Procedure_Call_Statement
5351 or else NT (N).Nkind = N_Procedure_Instantiation
5352 or else NT (N).Nkind = N_Requeue_Statement);
5353 Set_Flag1 (N, Val);
5354 end Set_Is_Elaboration_Checks_OK_Node;
5356 procedure Set_Is_Elsif
5357 (N : Node_Id; Val : Boolean := True) is
5358 begin
5359 pragma Assert (False
5360 or else NT (N).Nkind = N_If_Expression);
5361 Set_Flag13 (N, Val);
5362 end Set_Is_Elsif;
5364 procedure Set_Is_Entry_Barrier_Function
5365 (N : Node_Id; Val : Boolean := True) is
5366 begin
5367 pragma Assert (False
5368 or else NT (N).Nkind = N_Subprogram_Body
5369 or else NT (N).Nkind = N_Subprogram_Declaration);
5370 Set_Flag8 (N, Val);
5371 end Set_Is_Entry_Barrier_Function;
5373 procedure Set_Is_Expanded_Build_In_Place_Call
5374 (N : Node_Id; Val : Boolean := True) is
5375 begin
5376 pragma Assert (False
5377 or else NT (N).Nkind = N_Function_Call);
5378 Set_Flag11 (N, Val);
5379 end Set_Is_Expanded_Build_In_Place_Call;
5381 procedure Set_Is_Expanded_Contract
5382 (N : Node_Id; Val : Boolean := True) is
5383 begin
5384 pragma Assert (False
5385 or else NT (N).Nkind = N_Contract);
5386 Set_Flag1 (N, Val);
5387 end Set_Is_Expanded_Contract;
5389 procedure Set_Is_Finalization_Wrapper
5390 (N : Node_Id; Val : Boolean := True) is
5391 begin
5392 pragma Assert (False
5393 or else NT (N).Nkind = N_Block_Statement);
5394 Set_Flag9 (N, Val);
5395 end Set_Is_Finalization_Wrapper;
5397 procedure Set_Is_Folded_In_Parser
5398 (N : Node_Id; Val : Boolean := True) is
5399 begin
5400 pragma Assert (False
5401 or else NT (N).Nkind = N_String_Literal);
5402 Set_Flag4 (N, Val);
5403 end Set_Is_Folded_In_Parser;
5405 procedure Set_Is_Generic_Contract_Pragma
5406 (N : Node_Id; Val : Boolean := True) is
5407 begin
5408 pragma Assert (False
5409 or else NT (N).Nkind = N_Pragma);
5410 Set_Flag2 (N, Val);
5411 end Set_Is_Generic_Contract_Pragma;
5413 procedure Set_Is_Ignored
5414 (N : Node_Id; Val : Boolean := True) is
5415 begin
5416 pragma Assert (False
5417 or else NT (N).Nkind = N_Aspect_Specification
5418 or else NT (N).Nkind = N_Pragma);
5419 Set_Flag9 (N, Val);
5420 end Set_Is_Ignored;
5422 procedure Set_Is_Ignored_Ghost_Pragma
5423 (N : Node_Id; Val : Boolean := True) is
5424 begin
5425 pragma Assert (False
5426 or else NT (N).Nkind = N_Pragma);
5427 Set_Flag8 (N, Val);
5428 end Set_Is_Ignored_Ghost_Pragma;
5430 procedure Set_Is_In_Discriminant_Check
5431 (N : Node_Id; Val : Boolean := True) is
5432 begin
5433 pragma Assert (False
5434 or else NT (N).Nkind = N_Selected_Component);
5435 Set_Flag11 (N, Val);
5436 end Set_Is_In_Discriminant_Check;
5438 procedure Set_Is_Inherited_Pragma
5439 (N : Node_Id; Val : Boolean := True) is
5440 begin
5441 pragma Assert (False
5442 or else NT (N).Nkind = N_Pragma);
5443 Set_Flag4 (N, Val);
5444 end Set_Is_Inherited_Pragma;
5446 procedure Set_Is_Initialization_Block
5447 (N : Node_Id; Val : Boolean := True) is
5448 begin
5449 pragma Assert (False
5450 or else NT (N).Nkind = N_Block_Statement);
5451 Set_Flag1 (N, Val);
5452 end Set_Is_Initialization_Block;
5454 procedure Set_Is_Known_Guaranteed_ABE
5455 (N : Node_Id; Val : Boolean := True) is
5456 begin
5457 pragma Assert (False
5458 or else NT (N).Nkind = N_Call_Marker
5459 or else NT (N).Nkind = N_Function_Instantiation
5460 or else NT (N).Nkind = N_Package_Instantiation
5461 or else NT (N).Nkind = N_Procedure_Instantiation);
5462 Set_Flag18 (N, Val);
5463 end Set_Is_Known_Guaranteed_ABE;
5465 procedure Set_Is_Machine_Number
5466 (N : Node_Id; Val : Boolean := True) is
5467 begin
5468 pragma Assert (False
5469 or else NT (N).Nkind = N_Real_Literal);
5470 Set_Flag11 (N, Val);
5471 end Set_Is_Machine_Number;
5473 procedure Set_Is_Null_Loop
5474 (N : Node_Id; Val : Boolean := True) is
5475 begin
5476 pragma Assert (False
5477 or else NT (N).Nkind = N_Loop_Statement);
5478 Set_Flag16 (N, Val);
5479 end Set_Is_Null_Loop;
5481 procedure Set_Is_Overloaded
5482 (N : Node_Id; Val : Boolean := True) is
5483 begin
5484 pragma Assert (False
5485 or else NT (N).Nkind in N_Subexpr);
5486 Set_Flag5 (N, Val);
5487 end Set_Is_Overloaded;
5489 procedure Set_Is_Power_Of_2_For_Shift
5490 (N : Node_Id; Val : Boolean := True) is
5491 begin
5492 pragma Assert (False
5493 or else NT (N).Nkind = N_Op_Expon);
5494 Set_Flag13 (N, Val);
5495 end Set_Is_Power_Of_2_For_Shift;
5497 procedure Set_Is_Prefixed_Call
5498 (N : Node_Id; Val : Boolean := True) is
5499 begin
5500 pragma Assert (False
5501 or else NT (N).Nkind = N_Selected_Component);
5502 Set_Flag17 (N, Val);
5503 end Set_Is_Prefixed_Call;
5505 procedure Set_Is_Protected_Subprogram_Body
5506 (N : Node_Id; Val : Boolean := True) is
5507 begin
5508 pragma Assert (False
5509 or else NT (N).Nkind = N_Subprogram_Body);
5510 Set_Flag7 (N, Val);
5511 end Set_Is_Protected_Subprogram_Body;
5513 procedure Set_Is_Qualified_Universal_Literal
5514 (N : Node_Id; Val : Boolean := True) is
5515 begin
5516 pragma Assert (False
5517 or else NT (N).Nkind = N_Qualified_Expression);
5518 Set_Flag4 (N, Val);
5519 end Set_Is_Qualified_Universal_Literal;
5521 procedure Set_Is_Read
5522 (N : Node_Id; Val : Boolean := True) is
5523 begin
5524 pragma Assert (False
5525 or else NT (N).Nkind = N_Variable_Reference_Marker);
5526 Set_Flag1 (N, Val);
5527 end Set_Is_Read;
5529 procedure Set_Is_Source_Call
5530 (N : Node_Id; Val : Boolean := True) is
5531 begin
5532 pragma Assert (False
5533 or else NT (N).Nkind = N_Call_Marker);
5534 Set_Flag4 (N, Val);
5535 end Set_Is_Source_Call;
5537 procedure Set_Is_SPARK_Mode_On_Node
5538 (N : Node_Id; Val : Boolean := True) is
5539 begin
5540 pragma Assert (False
5541 or else NT (N).Nkind = N_Assignment_Statement
5542 or else NT (N).Nkind = N_Attribute_Reference
5543 or else NT (N).Nkind = N_Call_Marker
5544 or else NT (N).Nkind = N_Entry_Call_Statement
5545 or else NT (N).Nkind = N_Expanded_Name
5546 or else NT (N).Nkind = N_Function_Call
5547 or else NT (N).Nkind = N_Function_Instantiation
5548 or else NT (N).Nkind = N_Identifier
5549 or else NT (N).Nkind = N_Package_Instantiation
5550 or else NT (N).Nkind = N_Procedure_Call_Statement
5551 or else NT (N).Nkind = N_Procedure_Instantiation
5552 or else NT (N).Nkind = N_Requeue_Statement);
5553 Set_Flag2 (N, Val);
5554 end Set_Is_SPARK_Mode_On_Node;
5556 procedure Set_Is_Static_Coextension
5557 (N : Node_Id; Val : Boolean := True) is
5558 begin
5559 pragma Assert (False
5560 or else NT (N).Nkind = N_Allocator);
5561 Set_Flag14 (N, Val);
5562 end Set_Is_Static_Coextension;
5564 procedure Set_Is_Static_Expression
5565 (N : Node_Id; Val : Boolean := True) is
5566 begin
5567 pragma Assert (False
5568 or else NT (N).Nkind in N_Subexpr);
5569 Set_Flag6 (N, Val);
5570 end Set_Is_Static_Expression;
5572 procedure Set_Is_Subprogram_Descriptor
5573 (N : Node_Id; Val : Boolean := True) is
5574 begin
5575 pragma Assert (False
5576 or else NT (N).Nkind = N_Object_Declaration);
5577 Set_Flag16 (N, Val);
5578 end Set_Is_Subprogram_Descriptor;
5580 procedure Set_Is_Task_Allocation_Block
5581 (N : Node_Id; Val : Boolean := True) is
5582 begin
5583 pragma Assert (False
5584 or else NT (N).Nkind = N_Block_Statement);
5585 Set_Flag6 (N, Val);
5586 end Set_Is_Task_Allocation_Block;
5588 procedure Set_Is_Task_Body_Procedure
5589 (N : Node_Id; Val : Boolean := True) is
5590 begin
5591 pragma Assert (False
5592 or else NT (N).Nkind = N_Subprogram_Body
5593 or else NT (N).Nkind = N_Subprogram_Declaration);
5594 Set_Flag1 (N, Val);
5595 end Set_Is_Task_Body_Procedure;
5597 procedure Set_Is_Task_Master
5598 (N : Node_Id; Val : Boolean := True) is
5599 begin
5600 pragma Assert (False
5601 or else NT (N).Nkind = N_Block_Statement
5602 or else NT (N).Nkind = N_Subprogram_Body
5603 or else NT (N).Nkind = N_Task_Body);
5604 Set_Flag5 (N, Val);
5605 end Set_Is_Task_Master;
5607 procedure Set_Is_Write
5608 (N : Node_Id; Val : Boolean := True) is
5609 begin
5610 pragma Assert (False
5611 or else NT (N).Nkind = N_Variable_Reference_Marker);
5612 Set_Flag2 (N, Val);
5613 end Set_Is_Write;
5615 procedure Set_Iteration_Scheme
5616 (N : Node_Id; Val : Node_Id) is
5617 begin
5618 pragma Assert (False
5619 or else NT (N).Nkind = N_Loop_Statement);
5620 Set_Node2_With_Parent (N, Val);
5621 end Set_Iteration_Scheme;
5623 procedure Set_Iterator_Specification
5624 (N : Node_Id; Val : Node_Id) is
5625 begin
5626 pragma Assert (False
5627 or else NT (N).Nkind = N_Iteration_Scheme
5628 or else NT (N).Nkind = N_Quantified_Expression);
5629 Set_Node2_With_Parent (N, Val);
5630 end Set_Iterator_Specification;
5632 procedure Set_Itype
5633 (N : Node_Id; Val : Entity_Id) is
5634 begin
5635 pragma Assert (False
5636 or else NT (N).Nkind = N_Itype_Reference);
5637 Set_Node1 (N, Val); -- no parent, semantic field
5638 end Set_Itype;
5640 procedure Set_Kill_Range_Check
5641 (N : Node_Id; Val : Boolean := True) is
5642 begin
5643 pragma Assert (False
5644 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5645 Set_Flag11 (N, Val);
5646 end Set_Kill_Range_Check;
5648 procedure Set_Label_Construct
5649 (N : Node_Id; Val : Node_Id) is
5650 begin
5651 pragma Assert (False
5652 or else NT (N).Nkind = N_Implicit_Label_Declaration);
5653 Set_Node2 (N, Val); -- semantic field, no parent set
5654 end Set_Label_Construct;
5656 procedure Set_Last_Bit
5657 (N : Node_Id; Val : Node_Id) is
5658 begin
5659 pragma Assert (False
5660 or else NT (N).Nkind = N_Component_Clause);
5661 Set_Node4_With_Parent (N, Val);
5662 end Set_Last_Bit;
5664 procedure Set_Last_Name
5665 (N : Node_Id; Val : Boolean := True) is
5666 begin
5667 pragma Assert (False
5668 or else NT (N).Nkind = N_With_Clause);
5669 Set_Flag6 (N, Val);
5670 end Set_Last_Name;
5672 procedure Set_Left_Opnd
5673 (N : Node_Id; Val : Node_Id) is
5674 begin
5675 pragma Assert (False
5676 or else NT (N).Nkind = N_And_Then
5677 or else NT (N).Nkind = N_In
5678 or else NT (N).Nkind = N_Not_In
5679 or else NT (N).Nkind = N_Or_Else
5680 or else NT (N).Nkind in N_Binary_Op);
5681 Set_Node2_With_Parent (N, Val);
5682 end Set_Left_Opnd;
5684 procedure Set_Library_Unit
5685 (N : Node_Id; Val : Node_Id) is
5686 begin
5687 pragma Assert (False
5688 or else NT (N).Nkind = N_Compilation_Unit
5689 or else NT (N).Nkind = N_Package_Body_Stub
5690 or else NT (N).Nkind = N_Protected_Body_Stub
5691 or else NT (N).Nkind = N_Subprogram_Body_Stub
5692 or else NT (N).Nkind = N_Task_Body_Stub
5693 or else NT (N).Nkind = N_With_Clause);
5694 Set_Node4 (N, Val); -- semantic field, no parent set
5695 end Set_Library_Unit;
5697 procedure Set_Limited_View_Installed
5698 (N : Node_Id; Val : Boolean := True) is
5699 begin
5700 pragma Assert (False
5701 or else NT (N).Nkind = N_Package_Specification
5702 or else NT (N).Nkind = N_With_Clause);
5703 Set_Flag18 (N, Val);
5704 end Set_Limited_View_Installed;
5706 procedure Set_Limited_Present
5707 (N : Node_Id; Val : Boolean := True) is
5708 begin
5709 pragma Assert (False
5710 or else NT (N).Nkind = N_Derived_Type_Definition
5711 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5712 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5713 or else NT (N).Nkind = N_Private_Extension_Declaration
5714 or else NT (N).Nkind = N_Private_Type_Declaration
5715 or else NT (N).Nkind = N_Record_Definition
5716 or else NT (N).Nkind = N_With_Clause);
5717 Set_Flag17 (N, Val);
5718 end Set_Limited_Present;
5720 procedure Set_Literals
5721 (N : Node_Id; Val : List_Id) is
5722 begin
5723 pragma Assert (False
5724 or else NT (N).Nkind = N_Enumeration_Type_Definition);
5725 Set_List1_With_Parent (N, Val);
5726 end Set_Literals;
5728 procedure Set_Local_Raise_Not_OK
5729 (N : Node_Id; Val : Boolean := True) is
5730 begin
5731 pragma Assert (False
5732 or else NT (N).Nkind = N_Exception_Handler);
5733 Set_Flag7 (N, Val);
5734 end Set_Local_Raise_Not_OK;
5736 procedure Set_Local_Raise_Statements
5737 (N : Node_Id; Val : Elist_Id) is
5738 begin
5739 pragma Assert (False
5740 or else NT (N).Nkind = N_Exception_Handler);
5741 Set_Elist1 (N, Val);
5742 end Set_Local_Raise_Statements;
5744 procedure Set_Loop_Actions
5745 (N : Node_Id; Val : List_Id) is
5746 begin
5747 pragma Assert (False
5748 or else NT (N).Nkind = N_Component_Association
5749 or else NT (N).Nkind = N_Iterated_Component_Association);
5750 Set_List2 (N, Val); -- semantic field, no parent set
5751 end Set_Loop_Actions;
5753 procedure Set_Loop_Parameter_Specification
5754 (N : Node_Id; Val : Node_Id) is
5755 begin
5756 pragma Assert (False
5757 or else NT (N).Nkind = N_Iteration_Scheme
5758 or else NT (N).Nkind = N_Quantified_Expression);
5759 Set_Node4_With_Parent (N, Val);
5760 end Set_Loop_Parameter_Specification;
5762 procedure Set_Low_Bound
5763 (N : Node_Id; Val : Node_Id) is
5764 begin
5765 pragma Assert (False
5766 or else NT (N).Nkind = N_Range
5767 or else NT (N).Nkind = N_Real_Range_Specification
5768 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5769 Set_Node1_With_Parent (N, Val);
5770 end Set_Low_Bound;
5772 procedure Set_Mod_Clause
5773 (N : Node_Id; Val : Node_Id) is
5774 begin
5775 pragma Assert (False
5776 or else NT (N).Nkind = N_Record_Representation_Clause);
5777 Set_Node2_With_Parent (N, Val);
5778 end Set_Mod_Clause;
5780 procedure Set_More_Ids
5781 (N : Node_Id; Val : Boolean := True) is
5782 begin
5783 pragma Assert (False
5784 or else NT (N).Nkind = N_Component_Declaration
5785 or else NT (N).Nkind = N_Discriminant_Specification
5786 or else NT (N).Nkind = N_Exception_Declaration
5787 or else NT (N).Nkind = N_Formal_Object_Declaration
5788 or else NT (N).Nkind = N_Number_Declaration
5789 or else NT (N).Nkind = N_Object_Declaration
5790 or else NT (N).Nkind = N_Parameter_Specification
5791 or else NT (N).Nkind = N_Use_Package_Clause
5792 or else NT (N).Nkind = N_Use_Type_Clause);
5793 Set_Flag5 (N, Val);
5794 end Set_More_Ids;
5796 procedure Set_Must_Be_Byte_Aligned
5797 (N : Node_Id; Val : Boolean := True) is
5798 begin
5799 pragma Assert (False
5800 or else NT (N).Nkind = N_Attribute_Reference);
5801 Set_Flag14 (N, Val);
5802 end Set_Must_Be_Byte_Aligned;
5804 procedure Set_Must_Not_Freeze
5805 (N : Node_Id; Val : Boolean := True) is
5806 begin
5807 pragma Assert (False
5808 or else NT (N).Nkind = N_Subtype_Indication
5809 or else NT (N).Nkind in N_Subexpr);
5810 Set_Flag8 (N, Val);
5811 end Set_Must_Not_Freeze;
5813 procedure Set_Must_Not_Override
5814 (N : Node_Id; Val : Boolean := True) is
5815 begin
5816 pragma Assert (False
5817 or else NT (N).Nkind = N_Entry_Declaration
5818 or else NT (N).Nkind = N_Function_Instantiation
5819 or else NT (N).Nkind = N_Function_Specification
5820 or else NT (N).Nkind = N_Procedure_Instantiation
5821 or else NT (N).Nkind = N_Procedure_Specification);
5822 Set_Flag15 (N, Val);
5823 end Set_Must_Not_Override;
5825 procedure Set_Must_Override
5826 (N : Node_Id; Val : Boolean := True) is
5827 begin
5828 pragma Assert (False
5829 or else NT (N).Nkind = N_Entry_Declaration
5830 or else NT (N).Nkind = N_Function_Instantiation
5831 or else NT (N).Nkind = N_Function_Specification
5832 or else NT (N).Nkind = N_Procedure_Instantiation
5833 or else NT (N).Nkind = N_Procedure_Specification);
5834 Set_Flag14 (N, Val);
5835 end Set_Must_Override;
5837 procedure Set_Name
5838 (N : Node_Id; Val : Node_Id) is
5839 begin
5840 pragma Assert (False
5841 or else NT (N).Nkind = N_Assignment_Statement
5842 or else NT (N).Nkind = N_Attribute_Definition_Clause
5843 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5844 or else NT (N).Nkind = N_Designator
5845 or else NT (N).Nkind = N_Entry_Call_Statement
5846 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5847 or else NT (N).Nkind = N_Exit_Statement
5848 or else NT (N).Nkind = N_Formal_Package_Declaration
5849 or else NT (N).Nkind = N_Function_Call
5850 or else NT (N).Nkind = N_Function_Instantiation
5851 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5852 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5853 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5854 or else NT (N).Nkind = N_Goto_Statement
5855 or else NT (N).Nkind = N_Iterator_Specification
5856 or else NT (N).Nkind = N_Object_Renaming_Declaration
5857 or else NT (N).Nkind = N_Package_Instantiation
5858 or else NT (N).Nkind = N_Package_Renaming_Declaration
5859 or else NT (N).Nkind = N_Procedure_Call_Statement
5860 or else NT (N).Nkind = N_Procedure_Instantiation
5861 or else NT (N).Nkind = N_Raise_Expression
5862 or else NT (N).Nkind = N_Raise_Statement
5863 or else NT (N).Nkind = N_Requeue_Statement
5864 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5865 or else NT (N).Nkind = N_Subunit
5866 or else NT (N).Nkind = N_Use_Package_Clause
5867 or else NT (N).Nkind = N_Variant_Part
5868 or else NT (N).Nkind = N_With_Clause);
5869 Set_Node2_With_Parent (N, Val);
5870 end Set_Name;
5872 procedure Set_Names
5873 (N : Node_Id; Val : List_Id) is
5874 begin
5875 pragma Assert (False
5876 or else NT (N).Nkind = N_Abort_Statement);
5877 Set_List2_With_Parent (N, Val);
5878 end Set_Names;
5880 procedure Set_Next_Entity
5881 (N : Node_Id; Val : Node_Id) is
5882 begin
5883 pragma Assert (False
5884 or else NT (N).Nkind = N_Defining_Character_Literal
5885 or else NT (N).Nkind = N_Defining_Identifier
5886 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5887 Set_Node2 (N, Val); -- semantic field, no parent set
5888 end Set_Next_Entity;
5890 procedure Set_Next_Exit_Statement
5891 (N : Node_Id; Val : Node_Id) is
5892 begin
5893 pragma Assert (False
5894 or else NT (N).Nkind = N_Exit_Statement);
5895 Set_Node3 (N, Val); -- semantic field, no parent set
5896 end Set_Next_Exit_Statement;
5898 procedure Set_Next_Implicit_With
5899 (N : Node_Id; Val : Node_Id) is
5900 begin
5901 pragma Assert (False
5902 or else NT (N).Nkind = N_With_Clause);
5903 Set_Node3 (N, Val); -- semantic field, no parent set
5904 end Set_Next_Implicit_With;
5906 procedure Set_Next_Named_Actual
5907 (N : Node_Id; Val : Node_Id) is
5908 begin
5909 pragma Assert (False
5910 or else NT (N).Nkind = N_Parameter_Association);
5911 Set_Node4 (N, Val); -- semantic field, no parent set
5912 end Set_Next_Named_Actual;
5914 procedure Set_Next_Pragma
5915 (N : Node_Id; Val : Node_Id) is
5916 begin
5917 pragma Assert (False
5918 or else NT (N).Nkind = N_Pragma);
5919 Set_Node1 (N, Val); -- semantic field, no parent set
5920 end Set_Next_Pragma;
5922 procedure Set_Next_Rep_Item
5923 (N : Node_Id; Val : Node_Id) is
5924 begin
5925 pragma Assert (False
5926 or else NT (N).Nkind = N_Aspect_Specification
5927 or else NT (N).Nkind = N_Attribute_Definition_Clause
5928 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5929 or else NT (N).Nkind = N_Pragma
5930 or else NT (N).Nkind = N_Record_Representation_Clause);
5931 Set_Node5 (N, Val); -- semantic field, no parent set
5932 end Set_Next_Rep_Item;
5934 procedure Set_Next_Use_Clause
5935 (N : Node_Id; Val : Node_Id) is
5936 begin
5937 pragma Assert (False
5938 or else NT (N).Nkind = N_Use_Package_Clause
5939 or else NT (N).Nkind = N_Use_Type_Clause);
5940 Set_Node3 (N, Val); -- semantic field, no parent set
5941 end Set_Next_Use_Clause;
5943 procedure Set_No_Ctrl_Actions
5944 (N : Node_Id; Val : Boolean := True) is
5945 begin
5946 pragma Assert (False
5947 or else NT (N).Nkind = N_Assignment_Statement);
5948 Set_Flag7 (N, Val);
5949 end Set_No_Ctrl_Actions;
5951 procedure Set_No_Entities_Ref_In_Spec
5952 (N : Node_Id; Val : Boolean := True) is
5953 begin
5954 pragma Assert (False
5955 or else NT (N).Nkind = N_With_Clause);
5956 Set_Flag8 (N, Val);
5957 end Set_No_Entities_Ref_In_Spec;
5959 procedure Set_No_Initialization
5960 (N : Node_Id; Val : Boolean := True) is
5961 begin
5962 pragma Assert (False
5963 or else NT (N).Nkind = N_Allocator
5964 or else NT (N).Nkind = N_Object_Declaration);
5965 Set_Flag13 (N, Val);
5966 end Set_No_Initialization;
5968 procedure Set_No_Minimize_Eliminate
5969 (N : Node_Id; Val : Boolean := True) is
5970 begin
5971 pragma Assert (False
5972 or else NT (N).Nkind = N_In
5973 or else NT (N).Nkind = N_Not_In);
5974 Set_Flag17 (N, Val);
5975 end Set_No_Minimize_Eliminate;
5977 procedure Set_No_Side_Effect_Removal
5978 (N : Node_Id; Val : Boolean := True) is
5979 begin
5980 pragma Assert (False
5981 or else NT (N).Nkind = N_Function_Call);
5982 Set_Flag17 (N, Val);
5983 end Set_No_Side_Effect_Removal;
5985 procedure Set_No_Truncation
5986 (N : Node_Id; Val : Boolean := True) is
5987 begin
5988 pragma Assert (False
5989 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5990 Set_Flag17 (N, Val);
5991 end Set_No_Truncation;
5993 procedure Set_Null_Excluding_Subtype
5994 (N : Node_Id; Val : Boolean := True) is
5995 begin
5996 pragma Assert (False
5997 or else NT (N).Nkind = N_Access_To_Object_Definition);
5998 Set_Flag16 (N, Val);
5999 end Set_Null_Excluding_Subtype;
6001 procedure Set_Null_Exclusion_Present
6002 (N : Node_Id; Val : Boolean := True) is
6003 begin
6004 pragma Assert (False
6005 or else NT (N).Nkind = N_Access_Definition
6006 or else NT (N).Nkind = N_Access_Function_Definition
6007 or else NT (N).Nkind = N_Access_Procedure_Definition
6008 or else NT (N).Nkind = N_Access_To_Object_Definition
6009 or else NT (N).Nkind = N_Allocator
6010 or else NT (N).Nkind = N_Component_Definition
6011 or else NT (N).Nkind = N_Derived_Type_Definition
6012 or else NT (N).Nkind = N_Discriminant_Specification
6013 or else NT (N).Nkind = N_Formal_Object_Declaration
6014 or else NT (N).Nkind = N_Function_Specification
6015 or else NT (N).Nkind = N_Object_Declaration
6016 or else NT (N).Nkind = N_Object_Renaming_Declaration
6017 or else NT (N).Nkind = N_Parameter_Specification
6018 or else NT (N).Nkind = N_Subtype_Declaration);
6019 Set_Flag11 (N, Val);
6020 end Set_Null_Exclusion_Present;
6022 procedure Set_Null_Exclusion_In_Return_Present
6023 (N : Node_Id; Val : Boolean := True) is
6024 begin
6025 pragma Assert (False
6026 or else NT (N).Nkind = N_Access_Function_Definition);
6027 Set_Flag14 (N, Val);
6028 end Set_Null_Exclusion_In_Return_Present;
6030 procedure Set_Null_Present
6031 (N : Node_Id; Val : Boolean := True) is
6032 begin
6033 pragma Assert (False
6034 or else NT (N).Nkind = N_Component_List
6035 or else NT (N).Nkind = N_Procedure_Specification
6036 or else NT (N).Nkind = N_Record_Definition);
6037 Set_Flag13 (N, Val);
6038 end Set_Null_Present;
6040 procedure Set_Null_Record_Present
6041 (N : Node_Id; Val : Boolean := True) is
6042 begin
6043 pragma Assert (False
6044 or else NT (N).Nkind = N_Aggregate
6045 or else NT (N).Nkind = N_Extension_Aggregate);
6046 Set_Flag17 (N, Val);
6047 end Set_Null_Record_Present;
6049 procedure Set_Null_Statement
6050 (N : Node_Id; Val : Node_Id) is
6051 begin
6052 pragma Assert (False
6053 or else NT (N).Nkind = N_Procedure_Specification);
6054 Set_Node2 (N, Val);
6055 end Set_Null_Statement;
6057 procedure Set_Object_Definition
6058 (N : Node_Id; Val : Node_Id) is
6059 begin
6060 pragma Assert (False
6061 or else NT (N).Nkind = N_Object_Declaration);
6062 Set_Node4_With_Parent (N, Val);
6063 end Set_Object_Definition;
6065 procedure Set_Of_Present
6066 (N : Node_Id; Val : Boolean := True) is
6067 begin
6068 pragma Assert (False
6069 or else NT (N).Nkind = N_Iterator_Specification);
6070 Set_Flag16 (N, Val);
6071 end Set_Of_Present;
6073 procedure Set_Original_Discriminant
6074 (N : Node_Id; Val : Node_Id) is
6075 begin
6076 pragma Assert (False
6077 or else NT (N).Nkind = N_Identifier);
6078 Set_Node2 (N, Val); -- semantic field, no parent set
6079 end Set_Original_Discriminant;
6081 procedure Set_Original_Entity
6082 (N : Node_Id; Val : Entity_Id) is
6083 begin
6084 pragma Assert (False
6085 or else NT (N).Nkind = N_Integer_Literal
6086 or else NT (N).Nkind = N_Real_Literal);
6087 Set_Node2 (N, Val); -- semantic field, no parent set
6088 end Set_Original_Entity;
6090 procedure Set_Others_Discrete_Choices
6091 (N : Node_Id; Val : List_Id) is
6092 begin
6093 pragma Assert (False
6094 or else NT (N).Nkind = N_Others_Choice);
6095 Set_List1_With_Parent (N, Val);
6096 end Set_Others_Discrete_Choices;
6098 procedure Set_Out_Present
6099 (N : Node_Id; Val : Boolean := True) is
6100 begin
6101 pragma Assert (False
6102 or else NT (N).Nkind = N_Formal_Object_Declaration
6103 or else NT (N).Nkind = N_Parameter_Specification);
6104 Set_Flag17 (N, Val);
6105 end Set_Out_Present;
6107 procedure Set_Parameter_Associations
6108 (N : Node_Id; Val : List_Id) is
6109 begin
6110 pragma Assert (False
6111 or else NT (N).Nkind = N_Entry_Call_Statement
6112 or else NT (N).Nkind = N_Function_Call
6113 or else NT (N).Nkind = N_Procedure_Call_Statement);
6114 Set_List3_With_Parent (N, Val);
6115 end Set_Parameter_Associations;
6117 procedure Set_Parameter_Specifications
6118 (N : Node_Id; Val : List_Id) is
6119 begin
6120 pragma Assert (False
6121 or else NT (N).Nkind = N_Accept_Statement
6122 or else NT (N).Nkind = N_Access_Function_Definition
6123 or else NT (N).Nkind = N_Access_Procedure_Definition
6124 or else NT (N).Nkind = N_Entry_Body_Formal_Part
6125 or else NT (N).Nkind = N_Entry_Declaration
6126 or else NT (N).Nkind = N_Function_Specification
6127 or else NT (N).Nkind = N_Procedure_Specification);
6128 Set_List3_With_Parent (N, Val);
6129 end Set_Parameter_Specifications;
6131 procedure Set_Parameter_Type
6132 (N : Node_Id; Val : Node_Id) is
6133 begin
6134 pragma Assert (False
6135 or else NT (N).Nkind = N_Parameter_Specification);
6136 Set_Node2_With_Parent (N, Val);
6137 end Set_Parameter_Type;
6139 procedure Set_Parent_Spec
6140 (N : Node_Id; Val : Node_Id) is
6141 begin
6142 pragma Assert (False
6143 or else NT (N).Nkind = N_Function_Instantiation
6144 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
6145 or else NT (N).Nkind = N_Generic_Package_Declaration
6146 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
6147 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
6148 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
6149 or else NT (N).Nkind = N_Package_Declaration
6150 or else NT (N).Nkind = N_Package_Instantiation
6151 or else NT (N).Nkind = N_Package_Renaming_Declaration
6152 or else NT (N).Nkind = N_Procedure_Instantiation
6153 or else NT (N).Nkind = N_Subprogram_Declaration
6154 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
6155 Set_Node4 (N, Val); -- semantic field, no parent set
6156 end Set_Parent_Spec;
6158 procedure Set_Position
6159 (N : Node_Id; Val : Node_Id) is
6160 begin
6161 pragma Assert (False
6162 or else NT (N).Nkind = N_Component_Clause);
6163 Set_Node2_With_Parent (N, Val);
6164 end Set_Position;
6166 procedure Set_Pragma_Argument_Associations
6167 (N : Node_Id; Val : List_Id) is
6168 begin
6169 pragma Assert (False
6170 or else NT (N).Nkind = N_Pragma);
6171 Set_List2_With_Parent (N, Val);
6172 end Set_Pragma_Argument_Associations;
6174 procedure Set_Pragma_Identifier
6175 (N : Node_Id; Val : Node_Id) is
6176 begin
6177 pragma Assert (False
6178 or else NT (N).Nkind = N_Pragma);
6179 Set_Node4_With_Parent (N, Val);
6180 end Set_Pragma_Identifier;
6182 procedure Set_Pragmas_After
6183 (N : Node_Id; Val : List_Id) is
6184 begin
6185 pragma Assert (False
6186 or else NT (N).Nkind = N_Compilation_Unit_Aux
6187 or else NT (N).Nkind = N_Terminate_Alternative);
6188 Set_List5_With_Parent (N, Val);
6189 end Set_Pragmas_After;
6191 procedure Set_Pragmas_Before
6192 (N : Node_Id; Val : List_Id) is
6193 begin
6194 pragma Assert (False
6195 or else NT (N).Nkind = N_Accept_Alternative
6196 or else NT (N).Nkind = N_Delay_Alternative
6197 or else NT (N).Nkind = N_Entry_Call_Alternative
6198 or else NT (N).Nkind = N_Mod_Clause
6199 or else NT (N).Nkind = N_Terminate_Alternative
6200 or else NT (N).Nkind = N_Triggering_Alternative);
6201 Set_List4_With_Parent (N, Val);
6202 end Set_Pragmas_Before;
6204 procedure Set_Pre_Post_Conditions
6205 (N : Node_Id; Val : Node_Id) is
6206 begin
6207 pragma Assert (False
6208 or else NT (N).Nkind = N_Contract);
6209 Set_Node1 (N, Val); -- semantic field, no parent set
6210 end Set_Pre_Post_Conditions;
6212 procedure Set_Prefix
6213 (N : Node_Id; Val : Node_Id) is
6214 begin
6215 pragma Assert (False
6216 or else NT (N).Nkind = N_Attribute_Reference
6217 or else NT (N).Nkind = N_Expanded_Name
6218 or else NT (N).Nkind = N_Explicit_Dereference
6219 or else NT (N).Nkind = N_Indexed_Component
6220 or else NT (N).Nkind = N_Reference
6221 or else NT (N).Nkind = N_Selected_Component
6222 or else NT (N).Nkind = N_Slice);
6223 Set_Node3_With_Parent (N, Val);
6224 end Set_Prefix;
6226 procedure Set_Premature_Use
6227 (N : Node_Id; Val : Node_Id) is
6228 begin
6229 pragma Assert (False
6230 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
6231 Set_Node5 (N, Val);
6232 end Set_Premature_Use;
6234 procedure Set_Present_Expr
6235 (N : Node_Id; Val : Uint) is
6236 begin
6237 pragma Assert (False
6238 or else NT (N).Nkind = N_Variant);
6239 Set_Uint3 (N, Val);
6240 end Set_Present_Expr;
6242 procedure Set_Prev_Ids
6243 (N : Node_Id; Val : Boolean := True) is
6244 begin
6245 pragma Assert (False
6246 or else NT (N).Nkind = N_Component_Declaration
6247 or else NT (N).Nkind = N_Discriminant_Specification
6248 or else NT (N).Nkind = N_Exception_Declaration
6249 or else NT (N).Nkind = N_Formal_Object_Declaration
6250 or else NT (N).Nkind = N_Number_Declaration
6251 or else NT (N).Nkind = N_Object_Declaration
6252 or else NT (N).Nkind = N_Parameter_Specification
6253 or else NT (N).Nkind = N_Use_Package_Clause
6254 or else NT (N).Nkind = N_Use_Type_Clause);
6255 Set_Flag6 (N, Val);
6256 end Set_Prev_Ids;
6258 procedure Set_Prev_Use_Clause
6259 (N : Node_Id; Val : Node_Id) is
6260 begin
6261 pragma Assert (False
6262 or else NT (N).Nkind = N_Use_Package_Clause
6263 or else NT (N).Nkind = N_Use_Type_Clause);
6264 Set_Node1 (N, Val); -- semantic field, no parent set
6265 end Set_Prev_Use_Clause;
6267 procedure Set_Print_In_Hex
6268 (N : Node_Id; Val : Boolean := True) is
6269 begin
6270 pragma Assert (False
6271 or else NT (N).Nkind = N_Integer_Literal);
6272 Set_Flag13 (N, Val);
6273 end Set_Print_In_Hex;
6275 procedure Set_Private_Declarations
6276 (N : Node_Id; Val : List_Id) is
6277 begin
6278 pragma Assert (False
6279 or else NT (N).Nkind = N_Package_Specification
6280 or else NT (N).Nkind = N_Protected_Definition
6281 or else NT (N).Nkind = N_Task_Definition);
6282 Set_List3_With_Parent (N, Val);
6283 end Set_Private_Declarations;
6285 procedure Set_Private_Present
6286 (N : Node_Id; Val : Boolean := True) is
6287 begin
6288 pragma Assert (False
6289 or else NT (N).Nkind = N_Compilation_Unit
6290 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6291 or else NT (N).Nkind = N_With_Clause);
6292 Set_Flag15 (N, Val);
6293 end Set_Private_Present;
6295 procedure Set_Procedure_To_Call
6296 (N : Node_Id; Val : Node_Id) is
6297 begin
6298 pragma Assert (False
6299 or else NT (N).Nkind = N_Allocator
6300 or else NT (N).Nkind = N_Extended_Return_Statement
6301 or else NT (N).Nkind = N_Free_Statement
6302 or else NT (N).Nkind = N_Simple_Return_Statement);
6303 Set_Node2 (N, Val); -- semantic field, no parent set
6304 end Set_Procedure_To_Call;
6306 procedure Set_Proper_Body
6307 (N : Node_Id; Val : Node_Id) is
6308 begin
6309 pragma Assert (False
6310 or else NT (N).Nkind = N_Subunit);
6311 Set_Node1_With_Parent (N, Val);
6312 end Set_Proper_Body;
6314 procedure Set_Protected_Definition
6315 (N : Node_Id; Val : Node_Id) is
6316 begin
6317 pragma Assert (False
6318 or else NT (N).Nkind = N_Protected_Type_Declaration
6319 or else NT (N).Nkind = N_Single_Protected_Declaration);
6320 Set_Node3_With_Parent (N, Val);
6321 end Set_Protected_Definition;
6323 procedure Set_Protected_Present
6324 (N : Node_Id; Val : Boolean := True) is
6325 begin
6326 pragma Assert (False
6327 or else NT (N).Nkind = N_Access_Function_Definition
6328 or else NT (N).Nkind = N_Access_Procedure_Definition
6329 or else NT (N).Nkind = N_Derived_Type_Definition
6330 or else NT (N).Nkind = N_Record_Definition);
6331 Set_Flag6 (N, Val);
6332 end Set_Protected_Present;
6334 procedure Set_Raises_Constraint_Error
6335 (N : Node_Id; Val : Boolean := True) is
6336 begin
6337 pragma Assert (False
6338 or else NT (N).Nkind in N_Subexpr);
6339 Set_Flag7 (N, Val);
6340 end Set_Raises_Constraint_Error;
6342 procedure Set_Range_Constraint
6343 (N : Node_Id; Val : Node_Id) is
6344 begin
6345 pragma Assert (False
6346 or else NT (N).Nkind = N_Delta_Constraint
6347 or else NT (N).Nkind = N_Digits_Constraint);
6348 Set_Node4_With_Parent (N, Val);
6349 end Set_Range_Constraint;
6351 procedure Set_Range_Expression
6352 (N : Node_Id; Val : Node_Id) is
6353 begin
6354 pragma Assert (False
6355 or else NT (N).Nkind = N_Range_Constraint);
6356 Set_Node4_With_Parent (N, Val);
6357 end Set_Range_Expression;
6359 procedure Set_Real_Range_Specification
6360 (N : Node_Id; Val : Node_Id) is
6361 begin
6362 pragma Assert (False
6363 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
6364 or else NT (N).Nkind = N_Floating_Point_Definition
6365 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
6366 Set_Node4_With_Parent (N, Val);
6367 end Set_Real_Range_Specification;
6369 procedure Set_Realval
6370 (N : Node_Id; Val : Ureal) is
6371 begin
6372 pragma Assert (False
6373 or else NT (N).Nkind = N_Real_Literal);
6374 Set_Ureal3 (N, Val);
6375 end Set_Realval;
6377 procedure Set_Reason
6378 (N : Node_Id; Val : Uint) is
6379 begin
6380 pragma Assert (False
6381 or else NT (N).Nkind = N_Raise_Constraint_Error
6382 or else NT (N).Nkind = N_Raise_Program_Error
6383 or else NT (N).Nkind = N_Raise_Storage_Error);
6384 Set_Uint3 (N, Val);
6385 end Set_Reason;
6387 procedure Set_Record_Extension_Part
6388 (N : Node_Id; Val : Node_Id) is
6389 begin
6390 pragma Assert (False
6391 or else NT (N).Nkind = N_Derived_Type_Definition);
6392 Set_Node3_With_Parent (N, Val);
6393 end Set_Record_Extension_Part;
6395 procedure Set_Redundant_Use
6396 (N : Node_Id; Val : Boolean := True) is
6397 begin
6398 pragma Assert (False
6399 or else NT (N).Nkind = N_Attribute_Reference
6400 or else NT (N).Nkind = N_Expanded_Name
6401 or else NT (N).Nkind = N_Identifier);
6402 Set_Flag13 (N, Val);
6403 end Set_Redundant_Use;
6405 procedure Set_Renaming_Exception
6406 (N : Node_Id; Val : Node_Id) is
6407 begin
6408 pragma Assert (False
6409 or else NT (N).Nkind = N_Exception_Declaration);
6410 Set_Node2 (N, Val);
6411 end Set_Renaming_Exception;
6413 procedure Set_Result_Definition
6414 (N : Node_Id; Val : Node_Id) is
6415 begin
6416 pragma Assert (False
6417 or else NT (N).Nkind = N_Access_Function_Definition
6418 or else NT (N).Nkind = N_Function_Specification);
6419 Set_Node4_With_Parent (N, Val);
6420 end Set_Result_Definition;
6422 procedure Set_Return_Object_Declarations
6423 (N : Node_Id; Val : List_Id) is
6424 begin
6425 pragma Assert (False
6426 or else NT (N).Nkind = N_Extended_Return_Statement);
6427 Set_List3_With_Parent (N, Val);
6428 end Set_Return_Object_Declarations;
6430 procedure Set_Return_Statement_Entity
6431 (N : Node_Id; Val : Node_Id) is
6432 begin
6433 pragma Assert (False
6434 or else NT (N).Nkind = N_Extended_Return_Statement
6435 or else NT (N).Nkind = N_Simple_Return_Statement);
6436 Set_Node5 (N, Val); -- semantic field, no parent set
6437 end Set_Return_Statement_Entity;
6439 procedure Set_Reverse_Present
6440 (N : Node_Id; Val : Boolean := True) is
6441 begin
6442 pragma Assert (False
6443 or else NT (N).Nkind = N_Iterator_Specification
6444 or else NT (N).Nkind = N_Loop_Parameter_Specification);
6445 Set_Flag15 (N, Val);
6446 end Set_Reverse_Present;
6448 procedure Set_Right_Opnd
6449 (N : Node_Id; Val : Node_Id) is
6450 begin
6451 pragma Assert (False
6452 or else NT (N).Nkind in N_Op
6453 or else NT (N).Nkind = N_And_Then
6454 or else NT (N).Nkind = N_In
6455 or else NT (N).Nkind = N_Not_In
6456 or else NT (N).Nkind = N_Or_Else);
6457 Set_Node3_With_Parent (N, Val);
6458 end Set_Right_Opnd;
6460 procedure Set_Rounded_Result
6461 (N : Node_Id; Val : Boolean := True) is
6462 begin
6463 pragma Assert (False
6464 or else NT (N).Nkind = N_Op_Divide
6465 or else NT (N).Nkind = N_Op_Multiply
6466 or else NT (N).Nkind = N_Type_Conversion);
6467 Set_Flag18 (N, Val);
6468 end Set_Rounded_Result;
6470 procedure Set_SCIL_Controlling_Tag
6471 (N : Node_Id; Val : Node_Id) is
6472 begin
6473 pragma Assert (False
6474 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
6475 Set_Node5 (N, Val); -- semantic field, no parent set
6476 end Set_SCIL_Controlling_Tag;
6478 procedure Set_SCIL_Entity
6479 (N : Node_Id; Val : Node_Id) is
6480 begin
6481 pragma Assert (False
6482 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
6483 or else NT (N).Nkind = N_SCIL_Dispatching_Call
6484 or else NT (N).Nkind = N_SCIL_Membership_Test);
6485 Set_Node4 (N, Val); -- semantic field, no parent set
6486 end Set_SCIL_Entity;
6488 procedure Set_SCIL_Tag_Value
6489 (N : Node_Id; Val : Node_Id) is
6490 begin
6491 pragma Assert (False
6492 or else NT (N).Nkind = N_SCIL_Membership_Test);
6493 Set_Node5 (N, Val); -- semantic field, no parent set
6494 end Set_SCIL_Tag_Value;
6496 procedure Set_SCIL_Target_Prim
6497 (N : Node_Id; Val : Node_Id) is
6498 begin
6499 pragma Assert (False
6500 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
6501 Set_Node2 (N, Val); -- semantic field, no parent set
6502 end Set_SCIL_Target_Prim;
6504 procedure Set_Scope
6505 (N : Node_Id; Val : Node_Id) is
6506 begin
6507 pragma Assert (False
6508 or else NT (N).Nkind = N_Defining_Character_Literal
6509 or else NT (N).Nkind = N_Defining_Identifier
6510 or else NT (N).Nkind = N_Defining_Operator_Symbol);
6511 Set_Node3 (N, Val); -- semantic field, no parent set
6512 end Set_Scope;
6514 procedure Set_Select_Alternatives
6515 (N : Node_Id; Val : List_Id) is
6516 begin
6517 pragma Assert (False
6518 or else NT (N).Nkind = N_Selective_Accept);
6519 Set_List1_With_Parent (N, Val);
6520 end Set_Select_Alternatives;
6522 procedure Set_Selector_Name
6523 (N : Node_Id; Val : Node_Id) is
6524 begin
6525 pragma Assert (False
6526 or else NT (N).Nkind = N_Expanded_Name
6527 or else NT (N).Nkind = N_Generic_Association
6528 or else NT (N).Nkind = N_Parameter_Association
6529 or else NT (N).Nkind = N_Selected_Component);
6530 Set_Node2_With_Parent (N, Val);
6531 end Set_Selector_Name;
6533 procedure Set_Selector_Names
6534 (N : Node_Id; Val : List_Id) is
6535 begin
6536 pragma Assert (False
6537 or else NT (N).Nkind = N_Discriminant_Association);
6538 Set_List1_With_Parent (N, Val);
6539 end Set_Selector_Names;
6541 procedure Set_Shift_Count_OK
6542 (N : Node_Id; Val : Boolean := True) is
6543 begin
6544 pragma Assert (False
6545 or else NT (N).Nkind = N_Op_Rotate_Left
6546 or else NT (N).Nkind = N_Op_Rotate_Right
6547 or else NT (N).Nkind = N_Op_Shift_Left
6548 or else NT (N).Nkind = N_Op_Shift_Right
6549 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
6550 Set_Flag4 (N, Val);
6551 end Set_Shift_Count_OK;
6553 procedure Set_Source_Type
6554 (N : Node_Id; Val : Entity_Id) is
6555 begin
6556 pragma Assert (False
6557 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6558 Set_Node1 (N, Val); -- semantic field, no parent set
6559 end Set_Source_Type;
6561 procedure Set_Specification
6562 (N : Node_Id; Val : Node_Id) is
6563 begin
6564 pragma Assert (False
6565 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
6566 or else NT (N).Nkind = N_Expression_Function
6567 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
6568 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
6569 or else NT (N).Nkind = N_Generic_Package_Declaration
6570 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
6571 or else NT (N).Nkind = N_Package_Declaration
6572 or else NT (N).Nkind = N_Subprogram_Body
6573 or else NT (N).Nkind = N_Subprogram_Body_Stub
6574 or else NT (N).Nkind = N_Subprogram_Declaration
6575 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
6576 Set_Node1_With_Parent (N, Val);
6577 end Set_Specification;
6579 procedure Set_Split_PPC
6580 (N : Node_Id; Val : Boolean) is
6581 begin
6582 pragma Assert (False
6583 or else NT (N).Nkind = N_Aspect_Specification
6584 or else NT (N).Nkind = N_Pragma);
6585 Set_Flag17 (N, Val);
6586 end Set_Split_PPC;
6588 procedure Set_Statements
6589 (N : Node_Id; Val : List_Id) is
6590 begin
6591 pragma Assert (False
6592 or else NT (N).Nkind = N_Abortable_Part
6593 or else NT (N).Nkind = N_Accept_Alternative
6594 or else NT (N).Nkind = N_Case_Statement_Alternative
6595 or else NT (N).Nkind = N_Delay_Alternative
6596 or else NT (N).Nkind = N_Entry_Call_Alternative
6597 or else NT (N).Nkind = N_Exception_Handler
6598 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
6599 or else NT (N).Nkind = N_Loop_Statement
6600 or else NT (N).Nkind = N_Triggering_Alternative);
6601 Set_List3_With_Parent (N, Val);
6602 end Set_Statements;
6604 procedure Set_Storage_Pool
6605 (N : Node_Id; Val : Node_Id) is
6606 begin
6607 pragma Assert (False
6608 or else NT (N).Nkind = N_Allocator
6609 or else NT (N).Nkind = N_Extended_Return_Statement
6610 or else NT (N).Nkind = N_Free_Statement
6611 or else NT (N).Nkind = N_Simple_Return_Statement);
6612 Set_Node1 (N, Val); -- semantic field, no parent set
6613 end Set_Storage_Pool;
6615 procedure Set_Subpool_Handle_Name
6616 (N : Node_Id; Val : Node_Id) is
6617 begin
6618 pragma Assert (False
6619 or else NT (N).Nkind = N_Allocator);
6620 Set_Node4_With_Parent (N, Val);
6621 end Set_Subpool_Handle_Name;
6623 procedure Set_Strval
6624 (N : Node_Id; Val : String_Id) is
6625 begin
6626 pragma Assert (False
6627 or else NT (N).Nkind = N_Operator_Symbol
6628 or else NT (N).Nkind = N_String_Literal);
6629 Set_Str3 (N, Val);
6630 end Set_Strval;
6632 procedure Set_Subtype_Indication
6633 (N : Node_Id; Val : Node_Id) is
6634 begin
6635 pragma Assert (False
6636 or else NT (N).Nkind = N_Access_To_Object_Definition
6637 or else NT (N).Nkind = N_Component_Definition
6638 or else NT (N).Nkind = N_Derived_Type_Definition
6639 or else NT (N).Nkind = N_Iterator_Specification
6640 or else NT (N).Nkind = N_Private_Extension_Declaration
6641 or else NT (N).Nkind = N_Subtype_Declaration);
6642 Set_Node5_With_Parent (N, Val);
6643 end Set_Subtype_Indication;
6645 procedure Set_Subtype_Mark
6646 (N : Node_Id; Val : Node_Id) is
6647 begin
6648 pragma Assert (False
6649 or else NT (N).Nkind = N_Access_Definition
6650 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6651 or else NT (N).Nkind = N_Formal_Object_Declaration
6652 or else NT (N).Nkind = N_Object_Renaming_Declaration
6653 or else NT (N).Nkind = N_Qualified_Expression
6654 or else NT (N).Nkind = N_Subtype_Indication
6655 or else NT (N).Nkind = N_Type_Conversion
6656 or else NT (N).Nkind = N_Unchecked_Type_Conversion
6657 or else NT (N).Nkind = N_Use_Type_Clause);
6658 Set_Node4_With_Parent (N, Val);
6659 end Set_Subtype_Mark;
6661 procedure Set_Subtype_Marks
6662 (N : Node_Id; Val : List_Id) is
6663 begin
6664 pragma Assert (False
6665 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
6666 Set_List2_With_Parent (N, Val);
6667 end Set_Subtype_Marks;
6669 procedure Set_Suppress_Assignment_Checks
6670 (N : Node_Id; Val : Boolean := True) is
6671 begin
6672 pragma Assert (False
6673 or else NT (N).Nkind = N_Assignment_Statement
6674 or else NT (N).Nkind = N_Object_Declaration);
6675 Set_Flag18 (N, Val);
6676 end Set_Suppress_Assignment_Checks;
6678 procedure Set_Suppress_Loop_Warnings
6679 (N : Node_Id; Val : Boolean := True) is
6680 begin
6681 pragma Assert (False
6682 or else NT (N).Nkind = N_Loop_Statement);
6683 Set_Flag17 (N, Val);
6684 end Set_Suppress_Loop_Warnings;
6686 procedure Set_Synchronized_Present
6687 (N : Node_Id; Val : Boolean := True) is
6688 begin
6689 pragma Assert (False
6690 or else NT (N).Nkind = N_Derived_Type_Definition
6691 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6692 or else NT (N).Nkind = N_Private_Extension_Declaration
6693 or else NT (N).Nkind = N_Record_Definition);
6694 Set_Flag7 (N, Val);
6695 end Set_Synchronized_Present;
6697 procedure Set_Tagged_Present
6698 (N : Node_Id; Val : Boolean := True) is
6699 begin
6700 pragma Assert (False
6701 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
6702 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6703 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6704 or else NT (N).Nkind = N_Private_Type_Declaration
6705 or else NT (N).Nkind = N_Record_Definition);
6706 Set_Flag15 (N, Val);
6707 end Set_Tagged_Present;
6709 procedure Set_Target
6710 (N : Node_Id; Val : Entity_Id) is
6711 begin
6712 pragma Assert (False
6713 or else NT (N).Nkind = N_Call_Marker
6714 or else NT (N).Nkind = N_Variable_Reference_Marker);
6715 Set_Node1 (N, Val); -- semantic field, no parent set
6716 end Set_Target;
6718 procedure Set_Target_Type
6719 (N : Node_Id; Val : Entity_Id) is
6720 begin
6721 pragma Assert (False
6722 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6723 Set_Node2 (N, Val); -- semantic field, no parent set
6724 end Set_Target_Type;
6726 procedure Set_Task_Definition
6727 (N : Node_Id; Val : Node_Id) is
6728 begin
6729 pragma Assert (False
6730 or else NT (N).Nkind = N_Single_Task_Declaration
6731 or else NT (N).Nkind = N_Task_Type_Declaration);
6732 Set_Node3_With_Parent (N, Val);
6733 end Set_Task_Definition;
6735 procedure Set_Task_Present
6736 (N : Node_Id; Val : Boolean := True) is
6737 begin
6738 pragma Assert (False
6739 or else NT (N).Nkind = N_Derived_Type_Definition
6740 or else NT (N).Nkind = N_Record_Definition);
6741 Set_Flag5 (N, Val);
6742 end Set_Task_Present;
6744 procedure Set_Then_Actions
6745 (N : Node_Id; Val : List_Id) is
6746 begin
6747 pragma Assert (False
6748 or else NT (N).Nkind = N_If_Expression);
6749 Set_List2_With_Parent (N, Val); -- semantic field, but needs parents
6750 end Set_Then_Actions;
6752 procedure Set_Then_Statements
6753 (N : Node_Id; Val : List_Id) is
6754 begin
6755 pragma Assert (False
6756 or else NT (N).Nkind = N_Elsif_Part
6757 or else NT (N).Nkind = N_If_Statement);
6758 Set_List2_With_Parent (N, Val);
6759 end Set_Then_Statements;
6761 procedure Set_Treat_Fixed_As_Integer
6762 (N : Node_Id; Val : Boolean := True) is
6763 begin
6764 pragma Assert (False
6765 or else NT (N).Nkind = N_Op_Divide
6766 or else NT (N).Nkind = N_Op_Mod
6767 or else NT (N).Nkind = N_Op_Multiply
6768 or else NT (N).Nkind = N_Op_Rem);
6769 Set_Flag14 (N, Val);
6770 end Set_Treat_Fixed_As_Integer;
6772 procedure Set_Triggering_Alternative
6773 (N : Node_Id; Val : Node_Id) is
6774 begin
6775 pragma Assert (False
6776 or else NT (N).Nkind = N_Asynchronous_Select);
6777 Set_Node1_With_Parent (N, Val);
6778 end Set_Triggering_Alternative;
6780 procedure Set_Triggering_Statement
6781 (N : Node_Id; Val : Node_Id) is
6782 begin
6783 pragma Assert (False
6784 or else NT (N).Nkind = N_Triggering_Alternative);
6785 Set_Node1_With_Parent (N, Val);
6786 end Set_Triggering_Statement;
6788 procedure Set_TSS_Elist
6789 (N : Node_Id; Val : Elist_Id) is
6790 begin
6791 pragma Assert (False
6792 or else NT (N).Nkind = N_Freeze_Entity);
6793 Set_Elist3 (N, Val); -- semantic field, no parent set
6794 end Set_TSS_Elist;
6796 procedure Set_Uneval_Old_Accept
6797 (N : Node_Id; Val : Boolean := True) is
6798 begin
6799 pragma Assert (False
6800 or else NT (N).Nkind = N_Pragma);
6801 Set_Flag7 (N, Val);
6802 end Set_Uneval_Old_Accept;
6804 procedure Set_Uneval_Old_Warn
6805 (N : Node_Id; Val : Boolean := True) is
6806 begin
6807 pragma Assert (False
6808 or else NT (N).Nkind = N_Pragma);
6809 Set_Flag18 (N, Val);
6810 end Set_Uneval_Old_Warn;
6812 procedure Set_Type_Definition
6813 (N : Node_Id; Val : Node_Id) is
6814 begin
6815 pragma Assert (False
6816 or else NT (N).Nkind = N_Full_Type_Declaration);
6817 Set_Node3_With_Parent (N, Val);
6818 end Set_Type_Definition;
6820 procedure Set_Unit
6821 (N : Node_Id; Val : Node_Id) is
6822 begin
6823 pragma Assert (False
6824 or else NT (N).Nkind = N_Compilation_Unit);
6825 Set_Node2_With_Parent (N, Val);
6826 end Set_Unit;
6828 procedure Set_Unknown_Discriminants_Present
6829 (N : Node_Id; Val : Boolean := True) is
6830 begin
6831 pragma Assert (False
6832 or else NT (N).Nkind = N_Formal_Type_Declaration
6833 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6834 or else NT (N).Nkind = N_Private_Extension_Declaration
6835 or else NT (N).Nkind = N_Private_Type_Declaration);
6836 Set_Flag13 (N, Val);
6837 end Set_Unknown_Discriminants_Present;
6839 procedure Set_Unreferenced_In_Spec
6840 (N : Node_Id; Val : Boolean := True) is
6841 begin
6842 pragma Assert (False
6843 or else NT (N).Nkind = N_With_Clause);
6844 Set_Flag7 (N, Val);
6845 end Set_Unreferenced_In_Spec;
6847 procedure Set_Variant_Part
6848 (N : Node_Id; Val : Node_Id) is
6849 begin
6850 pragma Assert (False
6851 or else NT (N).Nkind = N_Component_List);
6852 Set_Node4_With_Parent (N, Val);
6853 end Set_Variant_Part;
6855 procedure Set_Variants
6856 (N : Node_Id; Val : List_Id) is
6857 begin
6858 pragma Assert (False
6859 or else NT (N).Nkind = N_Variant_Part);
6860 Set_List1_With_Parent (N, Val);
6861 end Set_Variants;
6863 procedure Set_Visible_Declarations
6864 (N : Node_Id; Val : List_Id) is
6865 begin
6866 pragma Assert (False
6867 or else NT (N).Nkind = N_Package_Specification
6868 or else NT (N).Nkind = N_Protected_Definition
6869 or else NT (N).Nkind = N_Task_Definition);
6870 Set_List2_With_Parent (N, Val);
6871 end Set_Visible_Declarations;
6873 procedure Set_Uninitialized_Variable
6874 (N : Node_Id; Val : Node_Id) is
6875 begin
6876 pragma Assert (False
6877 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6878 or else NT (N).Nkind = N_Private_Extension_Declaration);
6879 Set_Node3 (N, Val);
6880 end Set_Uninitialized_Variable;
6882 procedure Set_Used_Operations
6883 (N : Node_Id; Val : Elist_Id) is
6884 begin
6885 pragma Assert (False
6886 or else NT (N).Nkind = N_Use_Type_Clause);
6887 Set_Elist2 (N, Val);
6888 end Set_Used_Operations;
6890 procedure Set_Was_Attribute_Reference
6891 (N : Node_Id; Val : Boolean := True) is
6892 begin
6893 pragma Assert (False
6894 or else NT (N).Nkind = N_Subprogram_Body);
6895 Set_Flag2 (N, Val);
6896 end Set_Was_Attribute_Reference;
6898 procedure Set_Was_Expression_Function
6899 (N : Node_Id; Val : Boolean := True) is
6900 begin
6901 pragma Assert (False
6902 or else NT (N).Nkind = N_Subprogram_Body);
6903 Set_Flag18 (N, Val);
6904 end Set_Was_Expression_Function;
6906 procedure Set_Was_Originally_Stub
6907 (N : Node_Id; Val : Boolean := True) is
6908 begin
6909 pragma Assert (False
6910 or else NT (N).Nkind = N_Package_Body
6911 or else NT (N).Nkind = N_Protected_Body
6912 or else NT (N).Nkind = N_Subprogram_Body
6913 or else NT (N).Nkind = N_Task_Body);
6914 Set_Flag13 (N, Val);
6915 end Set_Was_Originally_Stub;
6917 procedure Set_Withed_Body
6918 (N : Node_Id; Val : Node_Id) is
6919 begin
6920 pragma Assert (False
6921 or else NT (N).Nkind = N_With_Clause);
6922 Set_Node1 (N, Val);
6923 end Set_Withed_Body;
6925 -------------------------
6926 -- Iterator Procedures --
6927 -------------------------
6929 procedure Next_Entity (N : in out Node_Id) is
6930 begin
6931 N := Next_Entity (N);
6932 end Next_Entity;
6934 procedure Next_Named_Actual (N : in out Node_Id) is
6935 begin
6936 N := Next_Named_Actual (N);
6937 end Next_Named_Actual;
6939 procedure Next_Rep_Item (N : in out Node_Id) is
6940 begin
6941 N := Next_Rep_Item (N);
6942 end Next_Rep_Item;
6944 procedure Next_Use_Clause (N : in out Node_Id) is
6945 begin
6946 N := Next_Use_Clause (N);
6947 end Next_Use_Clause;
6949 ------------------
6950 -- End_Location --
6951 ------------------
6953 function End_Location (N : Node_Id) return Source_Ptr is
6954 L : constant Uint := End_Span (N);
6955 begin
6956 if L = No_Uint then
6957 return No_Location;
6958 else
6959 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6960 end if;
6961 end End_Location;
6963 --------------------
6964 -- Get_Pragma_Arg --
6965 --------------------
6967 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6968 begin
6969 if Nkind (Arg) = N_Pragma_Argument_Association then
6970 return Expression (Arg);
6971 else
6972 return Arg;
6973 end if;
6974 end Get_Pragma_Arg;
6976 ----------------------
6977 -- Set_End_Location --
6978 ----------------------
6980 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6981 begin
6982 Set_End_Span (N,
6983 UI_From_Int (Int (S) - Int (Sloc (N))));
6984 end Set_End_Location;
6986 --------------
6987 -- Nkind_In --
6988 --------------
6990 function Nkind_In
6991 (T : Node_Kind;
6992 V1 : Node_Kind;
6993 V2 : Node_Kind) return Boolean
6995 begin
6996 return T = V1 or else
6997 T = V2;
6998 end Nkind_In;
7000 function Nkind_In
7001 (T : Node_Kind;
7002 V1 : Node_Kind;
7003 V2 : Node_Kind;
7004 V3 : Node_Kind) return Boolean
7006 begin
7007 return T = V1 or else
7008 T = V2 or else
7009 T = V3;
7010 end Nkind_In;
7012 function Nkind_In
7013 (T : Node_Kind;
7014 V1 : Node_Kind;
7015 V2 : Node_Kind;
7016 V3 : Node_Kind;
7017 V4 : Node_Kind) return Boolean
7019 begin
7020 return T = V1 or else
7021 T = V2 or else
7022 T = V3 or else
7023 T = V4;
7024 end Nkind_In;
7026 function Nkind_In
7027 (T : Node_Kind;
7028 V1 : Node_Kind;
7029 V2 : Node_Kind;
7030 V3 : Node_Kind;
7031 V4 : Node_Kind;
7032 V5 : Node_Kind) return Boolean
7034 begin
7035 return T = V1 or else
7036 T = V2 or else
7037 T = V3 or else
7038 T = V4 or else
7039 T = V5;
7040 end Nkind_In;
7042 function Nkind_In
7043 (T : Node_Kind;
7044 V1 : Node_Kind;
7045 V2 : Node_Kind;
7046 V3 : Node_Kind;
7047 V4 : Node_Kind;
7048 V5 : Node_Kind;
7049 V6 : Node_Kind) return Boolean
7051 begin
7052 return T = V1 or else
7053 T = V2 or else
7054 T = V3 or else
7055 T = V4 or else
7056 T = V5 or else
7057 T = V6;
7058 end Nkind_In;
7060 function Nkind_In
7061 (T : Node_Kind;
7062 V1 : Node_Kind;
7063 V2 : Node_Kind;
7064 V3 : Node_Kind;
7065 V4 : Node_Kind;
7066 V5 : Node_Kind;
7067 V6 : Node_Kind;
7068 V7 : Node_Kind) return Boolean
7070 begin
7071 return T = V1 or else
7072 T = V2 or else
7073 T = V3 or else
7074 T = V4 or else
7075 T = V5 or else
7076 T = V6 or else
7077 T = V7;
7078 end Nkind_In;
7080 function Nkind_In
7081 (T : Node_Kind;
7082 V1 : Node_Kind;
7083 V2 : Node_Kind;
7084 V3 : Node_Kind;
7085 V4 : Node_Kind;
7086 V5 : Node_Kind;
7087 V6 : Node_Kind;
7088 V7 : Node_Kind;
7089 V8 : Node_Kind) return Boolean
7091 begin
7092 return T = V1 or else
7093 T = V2 or else
7094 T = V3 or else
7095 T = V4 or else
7096 T = V5 or else
7097 T = V6 or else
7098 T = V7 or else
7099 T = V8;
7100 end Nkind_In;
7102 function Nkind_In
7103 (T : Node_Kind;
7104 V1 : Node_Kind;
7105 V2 : Node_Kind;
7106 V3 : Node_Kind;
7107 V4 : Node_Kind;
7108 V5 : Node_Kind;
7109 V6 : Node_Kind;
7110 V7 : Node_Kind;
7111 V8 : Node_Kind;
7112 V9 : Node_Kind) return Boolean
7114 begin
7115 return T = V1 or else
7116 T = V2 or else
7117 T = V3 or else
7118 T = V4 or else
7119 T = V5 or else
7120 T = V6 or else
7121 T = V7 or else
7122 T = V8 or else
7123 T = V9;
7124 end Nkind_In;
7126 -----------------
7127 -- Pragma_Name --
7128 -----------------
7130 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id is
7131 begin
7132 return Chars (Pragma_Identifier (N));
7133 end Pragma_Name_Unmapped;
7135 ---------------------
7136 -- Map_Pragma_Name --
7137 ---------------------
7139 -- We don't want to introduce a dependence on some hash table package or
7140 -- similar, so we use a simple array of Key => Value pairs, and do a linear
7141 -- search. Linear search is plenty efficient, given that we don't expect
7142 -- more than a couple of entries in the mapping.
7144 type Name_Pair is record
7145 Key : Name_Id;
7146 Value : Name_Id;
7147 end record;
7149 type Pragma_Map_Index is range 1 .. 100;
7150 Pragma_Map : array (Pragma_Map_Index) of Name_Pair;
7151 Last_Pair : Pragma_Map_Index'Base range 0 .. Pragma_Map_Index'Last := 0;
7153 procedure Map_Pragma_Name (From, To : Name_Id) is
7154 begin
7155 if Last_Pair = Pragma_Map'Last then
7156 raise Too_Many_Pragma_Mappings;
7157 end if;
7159 Last_Pair := Last_Pair + 1;
7160 Pragma_Map (Last_Pair) := (Key => From, Value => To);
7161 end Map_Pragma_Name;
7163 -----------------
7164 -- Pragma_Name --
7165 -----------------
7167 function Pragma_Name (N : Node_Id) return Name_Id is
7168 Result : constant Name_Id := Pragma_Name_Unmapped (N);
7169 begin
7170 for J in Pragma_Map'First .. Last_Pair loop
7171 if Result = Pragma_Map (J).Key then
7172 return Pragma_Map (J).Value;
7173 end if;
7174 end loop;
7176 return Result;
7177 end Pragma_Name;
7179 end Sinfo;