------------------------------------------- ------------------------------------- -- -- -- OCARINA COMPONENTS -- -- -- -- O C A R I N A . A A D L . P R I N T E R . I D E N T I F I E R S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2005-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 Namet; with Ocarina.Nodes; package body Ocarina.AADL.Printer.Identifiers is use Namet; use Ocarina.Nodes; ---------------------------- -- Print_Entity_Reference -- ---------------------------- procedure Print_Entity_Reference (Node : node_id) is pragma assert (Kind (Node) = k_entity_reference or else Kind (Node) = k_unique_property_type_identifier or else Kind (Node) = k_property_term or else Kind (Node) = k_reference_term or else Kind (Node) = k_component_classifier_term or else Kind (Node) = k_unique_property_const_identifier); begin if Namespace_Identifier (Node) /= No_Node then Print_Identifier (Namespace_Identifier (Node)); Print_Token (t_colon_colon); end if; Print_Identifier (Identifier (Node)); end Print_Entity_Reference; ---------------------- -- Print_Identifier -- ---------------------- procedure Print_Identifier (Node : node_id) is begin Write_Name (Display_Name (Node)); end Print_Identifier; end Ocarina.AADL.Printer.Identifiers;