Changeset 2650
- Timestamp:
- 05/11/08 18:11:40 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tendra/src/producers/ada/asis/asis-gela-overloads-types.adb
r2647 r2650 692 692 Keep : out Boolean) 693 693 is 694 Tipe : Type_Info := Type_Of_Declaration (Decl, Element); 694 Subtipe : Asis.Definition; 695 Tipe : Type_Info := Type_Of_Declaration (Decl, Element); 695 696 begin 696 697 if not Is_Not_Type (Tipe) then … … 698 699 Keep := False; 699 700 elsif Parameterless (Decl) then 700 Tipe := Type_From_Indication (Get_Result_Subtype (Decl), Element); 701 702 if Is_Not_Type (Tipe) then 701 Subtipe := Get_Result_Subtype (Decl); 702 703 if not Assigned (Subtipe) then 704 -- Parameterless procedure 703 705 Keep := True; 704 706 else 707 Tipe := Type_From_Indication (Subtipe, Element); 708 705 709 Add_Expr (Tipe, Call => True, Down => (A_Declaration, Decl)); 706 710