--------------------------------------------- ----------------------------------- -- -- -- OCARINA COMPONENTS -- -- -- -- O C A R I N A . A N A L Y Z E R . M E S S A G E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2007, GET-Telecom Paris. -- -- -- -- Ocarina is free software; you can redistribute it and/or modify -- -- it under terms of the GNU General Public License as published by the -- -- Free Software Foundation; either version 2, or (at your option) any -- -- later version. Ocarina is distributed in the hope that it will be -- -- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -- -- Public License for more details. You should have received a copy of the -- -- GNU General Public License distributed with Ocarina; see file COPYING. -- -- If not, write to the Free Software Foundation, 51 Franklin Street, Fifth -- -- Floor, Boston, MA 02111-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- Ocarina is maintained by the Ocarina team -- -- (ocarina-users@listes.enst.fr) -- -- -- ------------------------------------------------------------------------------ with Locations; use Locations; with Ocarina.Nodes; with Ocarina.Entities.Components; use Ocarina.Entities.Components; with Ocarina.Entities.Messages; package Ocarina.Analyzer.Messages is procedure Debug_Message (Location : String; Message : String); -- Displays Message, specifying it was emitted from Location procedure Display_Node_Link (Node1 : node_id; Node2 : node_id); procedure Display_Analyzer_Error (Node1 : node_id; Message1 : String; Node2 : node_id := No_Node; Message2 : String := ""; Message0 : String := ""; Loc : location := No_Location); procedure DAE (Node1 : node_id; Message1 : String; Node2 : node_id := No_Node; Message2 : String := ""; Message0 : String := ""; Loc : location := No_Location) renames Display_Analyzer_Error; Impl_Separator : constant String := "."; Package_Separator : constant String := "::"; procedure Display_No_Parent_Package (Loc : location; Parent_Name : name_id); procedure Display_Conflict_Declaration (Loc1 : location; Kind : Ocarina.Nodes.node_kind; Name : name_id; Loc2 : location); procedure DCD (Loc1 : location; Kind : Ocarina.Nodes.node_kind; Name : name_id; Loc2 : location) renames Display_Conflict_Declaration; -- Display an output error message: -- Loc1: ... Name_Id conflicts with declaration at procedure Display_Conflict_Declaration (Ident1 : node_id; Ident2 : node_id); procedure DCD (Node1 : node_id; Node2 : node_id) renames Display_Conflict_Declaration; -- Display an output error message: -- Loc1: conflicts with declaration -- at -- NOTE: Ident1 and Ident2 must be identifier nodes procedure Display_Undefined_Item (Loc : location; Kind : Ocarina.Nodes.node_kind; Name : name_id); procedure DUI (Loc : location; Kind : Ocarina.Nodes.node_kind; Name : name_id) renames Display_Undefined_Item; -- Display an output error message: -- Loc: '' is undefined procedure Display_Undefined_Item (Kind : Ocarina.Nodes.node_kind; Item : node_id); procedure DUI (Kind : Ocarina.Nodes.node_kind; Item : node_id) renames Display_Undefined_Item; -- Display an output error message: -- Loc (Item): Item_Name is undefined -- NOTE: Item can be an Identifier, Identifier_With_Package_Name procedure Display_Unexpected_Type (Expected_Type : Ocarina.Nodes.node_kind; Found_Type : Ocarina.Nodes.node_kind; Item : node_id; Loc : location); procedure DUT (Expected_Type : Ocarina.Nodes.node_kind; Found_Type : Ocarina.Nodes.node_kind; Item : node_id; Loc : location) renames Display_Unexpected_Type; -- Display an output error message: -- Loc (Item): expected type , found type -- Item_Name defined at procedure Display_Unexpected_Component_Category (Expected_Cat : component_category; Found_Cat : component_category; Item : node_id; Loc : location); procedure DUCC (Expected_Cat : component_category; Found_Cat : component_category; Item : node_id; Loc : location) renames Display_Unexpected_Component_Category; -- Display an output error message: -- Loc (Item): expected component category , found -- Item_Name defined at procedure Display_Cyclic_Extension (Cycling_Node : node_id); procedure Display_Cyclic_Inversion (Cycling_Node : node_id); procedure Display_Cyclic_Subcomponents (Cycling_Node : node_id); procedure Display_Conflicting_Initial_Modes (Initial_Mode : node_id; Existing_Initial_Mode : node_id); procedure Display_Link_To_Wrong_Node (Node : node_id; Pointed_Node : node_id; Warning : Boolean := False); procedure DLTWN (Node : node_id; Pointed_Node : node_id; Warning : Boolean := False) renames Display_Link_To_Wrong_Node; procedure Display_Incompatible_Property_Types (Property_Association : node_id; Property_Value : node_id; Property_Name : node_id); procedure Display_Inconsistent_Property_Type (Property_Type : node_id); procedure Display_Inconsistency_In_Property_Values (Property_Value1 : node_id; Property_Value2 : node_id; Reference_Property : node_id); procedure Display_Property_List_Discrepancy (Property_Association : node_id; Property_Name : node_id); procedure Display_Conversion_To_Property_List (Property_Association : node_id; Property_Name : node_id); procedure Display_Property_Not_Applicable (Property_Association : node_id; Entity : node_id); function Display_Node_Kind_Error (Node : node_id) return Boolean renames Ocarina.Entities.Messages.Display_Node_Kind_Error; function DNKE (Node : node_id) return Boolean renames Ocarina.Entities.Messages.Display_Node_Kind_Error; private D_Analyzer : constant Boolean := False; end Ocarina.Analyzer.Messages;