indexing description: "AST representation of an Eiffel function pointer for Result types."; date: "$Date$"; revision: "$Revision$" class ADDRESS_RESULT_AS inherit EXPR_AS redefine type_check, byte_node end SHARED_TYPES feature {AST_FACTORY} -- Initialization initialize is -- Create a new ADDRESS_RESULT AST node. do -- Do nothing. end feature -- Visitor process (v: AST_VISITOR) is -- process current element. do v.process_address_result_as (Current) end feature -- Comparison is_equivalent (other: like Current): BOOLEAN is -- Is `other' equivalent to the current object ? do Result := True end feature -- Type check, byte code and dead code removal type_check is -- Type check an adress access on Current do context.put (create {TYPED_POINTER_A}.make_typed (Context.feature_type)) end byte_node: HECTOR_B is -- Byte code for current node do create Result.make (create {RESULT_B}) end feature {AST_EIFFEL} -- Output simple_format (ctxt: FORMAT_CONTEXT) is -- Reconstitute text. do ctxt.put_text_item_without_tabs (ti_Dollar) ctxt.put_text_item_without_tabs (ti_Result) end end -- class ADDRESS_RESULT_AS