indexing legal: "See notice at end of class." status: "See notice at end of class." class INLINED_CURRENT_B inherit CURRENT_B redefine enlarged, propagate, analyze, generate, free_register, print_register, Current_register, register_name, is_current, is_inlined_current, used end feature enlarged: INLINED_CURRENT_B is do Result := Current end is_inlined_current: BOOLEAN is True -- Current is the inlined current register. is_current: BOOLEAN is -- `is_current' is used for dtype optimization -- hence it should return false for inlined code do end used (r: REGISTRABLE): BOOLEAN is -- Is `r' the "Current" entity ? do Result := r.is_inlined_current end feature -- Register and code generation Current_register: INLINED_CURRENT_B is once create Result end propagate (r: REGISTRABLE) is -- Do nothing do end; analyze is -- Do nothing do end; generate is -- Do nothing do end; free_register is -- Do nothing do end; print_register is local inlined_feature: INLINED_FEAT_B context_class_type: CLASS_TYPE written_class_type: CLASS_TYPE current_reg: REGISTRABLE do --Context.current_register.print_register --System.remover.inliner.inlined_feature.current_reg.print_register inlined_feature := System.remover.inliner.inlined_feature written_class_type := Context.class_type context_class_type := Context.context_class_type current_reg := Context.inlined_current_register Context.restore_class_type_context Context.set_inlined_current_register (Void) inlined_feature.current_reg.print_register Context.change_class_type_context (context_class_type, written_class_type) Context.set_inlined_current_register (current_reg) end; register_name: STRING is do --Result := Context.current_register.register_name Result := System.remover.inliner.inlined_feature.current_reg.register_name end 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