indexing description: "AST representation of an export item." date: "$Date$" revision: "$Revision $" class EXPORT_ITEM_AS inherit AST_EIFFEL redefine is_equivalent end feature {AST_FACTORY} -- Initialization initialize (c: like clients; f: like features) is -- Create a new EXPORT_ITEM AST node. require c_not_void: c /= Void f_not_void: f /= Void do clients := c features := f ensure clients_set: clients = c features_set: features = f end feature -- Visitor process (v: AST_VISITOR) is -- process current element. do v.process_export_item_as (Current) end feature -- Attributes clients: CLIENT_AS; -- Client list features: FEATURE_SET_AS; -- Feature set feature -- Comparison is_equivalent (other: like Current): BOOLEAN is -- Is `other' equivalent to the current object ? do Result := equivalent (clients, other.clients) and equivalent (features, other.features) end --feature {AST_EIFFEL} -- Output -- -- simple_format (ctxt: FORMAT_CONTEXT) is -- -- Reconstitute text. -- do -- if clients /= Void then -- ctxt.set_separator (ti_Comma); -- ctxt.set_space_between_tokens; -- ctxt.format_ast (clients); -- ctxt.put_space -- end -- ctxt.format_ast (features); -- end end -- class EXPORT_ITEM_AS