indexing description: "Abstract description of a nested call `target.message' where % %the target is a parenthesized expression. Version for Bench." date: "$Date$" revision: "$Revision$" class NESTED_EXPR_AS inherit CALL_AS redefine is_equivalent, start_location, end_location end create initialize feature {NONE} -- Initialization initialize (t: like target; m: like message) is -- Create a new NESTED CALL AST node. require t_not_void: t /= Void m_not_void: m /= Void do target := t message := m ensure target_set: target = t message_set: message = m end feature -- Visitor process (v: AST_VISITOR) is -- process current element. do v.process_nested_expr_as (Current) end feature -- Attributes target: EXPR_AS -- Target of the call message: CALL_AS -- Message send to the target feature -- Location start_location: LOCATION_AS is -- Start location of Current do Result := target.start_location end end_location: LOCATION_AS is -- End location of Current do Result := message.end_location end feature -- Comparison is_equivalent (other: like Current): BOOLEAN is -- Is `other' equivalent to the current object ? do Result := equivalent (message, other.message) and equivalent (target, other.target) end invariant message_not_void: message /= Void target_not_void: target /= Void end -- class NESTED_EXPR_AS