Expr := Empty;
- -- Attribute 'Valid_Scalars is not supported on private tagged types
+ -- Attribute 'Valid_Scalars is not supported on private tagged types;
+ -- see a detailed explanation where this attribute is analyzed.
if Is_Private_Type (Ptyp) and then Is_Tagged_Type (Ptyp) then
null;
-- types due to a code generation issue. Is_Visible_Component
-- does not allow for a component of a private tagged type to
-- be successfully retrieved.
+ -- ??? This attribute should simply ignore type privacy
+ -- (see Validated_View). It should examine components of the
+ -- tagged type extensions (if any) and recursively examine
+ -- 'Valid_Scalars of the parent's type (if any).
-- Do not use Error_Attr_P because this bypasses any subsequent
-- processing and leaves the attribute with type Any_Type. This
-- conversions, and unchecked conversions.
function Validated_View (Typ : Entity_Id) return Entity_Id;
- -- Obtain the "validated view" of arbitrary type Typ which is suitable
- -- for verification by attributes 'Valid and 'Valid_Scalars. This view
- -- is the type itself or its full view while stripping away concurrency,
- -- derivations, and privacy.
+ -- Obtain the "validated view" of arbitrary type Typ which is suitable for
+ -- verification by attributes 'Valid_Scalars. This view is the type itself
+ -- or its full view while stripping away concurrency, derivations, and
+ -- privacy.
function Visible_Ancestors (Typ : Entity_Id) return Elist_Id;
-- [Ada 2012:AI-0125-1]: Collect all the visible parents and progenitors