indexing description: "Object that represents an inherit clause: rename, export, undefine, redefine or select" legal: "See notice at end of class." status: "See notice at end of class." author: "" date: "$Date$" revision: "$Revision$" deferred class INHERIT_CLAUSE_AS [G -> EIFFEL_LIST [AST_EIFFEL]] inherit AST_EIFFEL EIFFEL_LIST_WRAPPER_AS [G] feature{NONE} -- Initialization make (l: like content; k_as: KEYWORD_AS) is -- Initialize. require l_valid: l /= Void implies not l.is_empty do content := l clause_keyword := k_as ensure content_set: content = l clause_keyword_set: clause_keyword = k_as end feature -- Roundtrip/Token first_token (a_list: LEAF_AS_LIST): LEAF_AS is do if a_list = Void then if content /= Void then Result := content.first_token (a_list) end else Result := clause_keyword.first_token (a_list) end end last_token (a_list: LEAF_AS_LIST): LEAF_AS is do if content /= Void then Result := content.last_token (a_list) end if (Result = Void or Result.is_null) and a_list /= Void then check clause_keyword /= Void end Result := clause_keyword.last_token (a_list) end end feature -- Comparison is_equivalent (other: like Current): BOOLEAN is -- Is `other' equivalent to the current object ? do if meaningful_content = Void then Result := other.meaningful_content = Void else Result := content.is_equivalent (other.meaningful_content) end end feature -- Roundtrip clause_keyword: KEYWORD_AS; -- Keyword "rename", "export", "undefine", "redefine" or "select" associated with current AST node indexing copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment 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 along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end