and then Is_Derived_Type (Etype (E)));
end Is_Inherited_Operation;
- -------------------------------------
- -- Is_Inherited_Operation_For_Type --
- -------------------------------------
-
- function Is_Inherited_Operation_For_Type
- (E : Entity_Id;
- Typ : Entity_Id) return Boolean
- is
- begin
- -- Check that the operation has been created by the type declaration
-
- return Is_Inherited_Operation (E)
- and then Defining_Identifier (Parent (E)) = Typ;
- end Is_Inherited_Operation_For_Type;
-
--------------------------------------
-- Is_Inlinable_Expression_Function --
--------------------------------------
-- E is a subprogram. Return True is E is an implicit operation inherited
-- by a derived type declaration.
- function Is_Inherited_Operation_For_Type
- (E : Entity_Id;
- Typ : Entity_Id) return Boolean;
- -- E is a subprogram. Return True is E is an implicit operation inherited
- -- by the derived type declaration for type Typ.
-
function Is_Inlinable_Expression_Function (Subp : Entity_Id) return Boolean;
-- Return True if Subp is an expression function that fulfills all the
-- following requirements for inlining: