+2018-07-16 Javier Miranda <miranda@adacore.com>
+
+ * sem_util.ads, sem_util.adb (Has_Prefix): Move this function to the
+ public part of this package.
+
2018-07-16 Yannick Moy <moy@adacore.com>
* sem_res.adb (Resolve_Call): Do not inline calls inside
Obj1 : Node_Id := A1;
Obj2 : Node_Id := A2;
- function Has_Prefix (N : Node_Id) return Boolean;
- -- Return True if N has attribute Prefix
-
function Is_Renaming (N : Node_Id) return Boolean;
-- Return true if N names a renaming entity
-- renamed object_name contains references to variables or calls on
-- nonstatic functions; otherwise return True (RM 6.4.1(6.10/3))
- ----------------
- -- Has_Prefix --
- ----------------
-
- function Has_Prefix (N : Node_Id) return Boolean is
- begin
- return
- Nkind_In (N,
- N_Attribute_Reference,
- N_Expanded_Name,
- N_Explicit_Dereference,
- N_Indexed_Component,
- N_Reference,
- N_Selected_Component,
- N_Slice);
- end Has_Prefix;
-
-----------------
-- Is_Renaming --
-----------------
return Has_PE;
end Has_Preelaborable_Initialization;
+ ----------------
+ -- Has_Prefix --
+ ----------------
+
+ function Has_Prefix (N : Node_Id) return Boolean is
+ begin
+ return
+ Nkind_In (N,
+ N_Attribute_Reference,
+ N_Expanded_Name,
+ N_Explicit_Dereference,
+ N_Indexed_Component,
+ N_Reference,
+ N_Selected_Component,
+ N_Slice);
+ end Has_Prefix;
+
---------------------------
-- Has_Private_Component --
---------------------------
-- Return True iff type E has preelaborable initialization as defined in
-- Ada 2005 (see AI-161 for details of the definition of this attribute).
+ function Has_Prefix (N : Node_Id) return Boolean;
+ -- Return True if N has attribute Prefix
+
function Has_Private_Component (Type_Id : Entity_Id) return Boolean;
-- Check if a type has a (sub)component of a private type that has not
-- yet received a full declaration.