1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2023, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
24 ------------------------------------------------------------------------------
26 with Types
; use Types
;
29 procedure Analyze_Aggregate
(N
: Node_Id
);
30 procedure Analyze_Allocator
(N
: Node_Id
);
31 procedure Analyze_Arithmetic_Op
(N
: Node_Id
);
32 procedure Analyze_Call
(N
: Node_Id
);
33 procedure Analyze_Case_Expression
(N
: Node_Id
);
34 procedure Analyze_Comparison_Equality_Op
(N
: Node_Id
);
35 procedure Analyze_Concatenation
(N
: Node_Id
);
36 procedure Analyze_Explicit_Dereference
(N
: Node_Id
);
37 procedure Analyze_Expression_With_Actions
(N
: Node_Id
);
38 procedure Analyze_If_Expression
(N
: Node_Id
);
39 procedure Analyze_Logical_Op
(N
: Node_Id
);
40 procedure Analyze_Membership_Op
(N
: Node_Id
);
41 procedure Analyze_Mod
(N
: Node_Id
);
42 procedure Analyze_Negation
(N
: Node_Id
);
43 procedure Analyze_Null
(N
: Node_Id
);
44 procedure Analyze_Qualified_Expression
(N
: Node_Id
);
45 procedure Analyze_Quantified_Expression
(N
: Node_Id
);
46 procedure Analyze_Range
(N
: Node_Id
);
47 procedure Analyze_Reference
(N
: Node_Id
);
48 procedure Analyze_Selected_Component
(N
: Node_Id
);
49 procedure Analyze_Short_Circuit
(N
: Node_Id
);
50 procedure Analyze_Slice
(N
: Node_Id
);
51 procedure Analyze_Type_Conversion
(N
: Node_Id
);
52 procedure Analyze_Unary_Op
(N
: Node_Id
);
53 procedure Analyze_Unchecked_Expression
(N
: Node_Id
);
54 procedure Analyze_Unchecked_Type_Conversion
(N
: Node_Id
);
56 procedure Ambiguous_Operands
(N
: Node_Id
);
57 -- Give an error for comparison, equality and membership operators with
58 -- ambiguous operands, and list possible interpretations.
60 procedure Analyze_Indexed_Component_Form
(N
: Node_Id
);
61 -- Prior to semantic analysis, an indexed component node can denote any
62 -- of the following syntactic constructs:
63 -- a) An indexed component of an array
67 -- The resolution of the construct requires some semantic information
68 -- on the prefix and the indexes.
70 procedure Nondispatching_Call_To_Abstract_Operation
72 Abstract_Op
: Entity_Id
);
73 -- Give an error, or a warning and rewrite N to raise Program_Error because
74 -- it is a nondispatching call to an abstract operation.
76 function Try_Object_Operation
78 CW_Test_Only
: Boolean := False;
79 Allow_Extensions
: Boolean := False) return Boolean;
80 -- Ada 2005 (AI-252): Support the object.operation notation. If node N is
81 -- a call in this notation, it is transformed into a normal subprogram call
82 -- where the prefix is a parameter, and True is returned. If node N is not
83 -- of this form, it is unchanged, and False is returned. If CW_Test_Only is
84 -- true then N is an N_Selected_Component node which is part of a call to
85 -- an entry or procedure of a tagged concurrent type and this routine is
86 -- invoked to search for class-wide subprograms conflicting with the target
87 -- entity. If Allow_Extensions is True, then a prefixed call of a primitive
88 -- of a non-tagged type is allowed as if Extensions_Allowed returned True.
89 -- This is used to issue better error messages.
91 procedure Unresolved_Operator
(N
: Node_Id
);
92 -- Give an error for an unresolved operator