/src/tools/semantics/code/expressions/liberty_prefix_operator.e
http://github.com/tybor/Liberty · Specman e · 66 lines · 43 code · 9 blank · 14 comment · 0 complexity · 656152963900ccce19829aa766698791 MD5 · raw file
- -- This file is part of Liberty Eiffel.
- --
- -- Liberty Eiffel 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 3 of the License.
- --
- -- Liberty Eiffel 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 Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
- --
- class LIBERTY_PREFIX_OPERATOR
- inherit
- LIBERTY_PREFIX_CALL
- rename
- make as prefix_make
- end
- create {LIBERTY_BUILDER_TOOLS}
- make
- create {LIBERTY_PREFIX_OPERATOR}
- new
- feature {}
- make (a_target: like target; a_entity: like entity; a_position: like position) is
- require
- a_target /= Void
- a_entity.feature_name.is_prefix
- a_position /= Void
- do
- target := a_target
- entity := a_entity
- position := a_position
- ensure
- position = a_position
- end
- the_prefix_name: FIXED_STRING is
- do
- check False end
- end
- make_new (a_target: like target; a_entity: like entity; a_actuals: like actuals_list; a_position: like position): like Current is
- do
- create Result.new(a_target, a_entity, a_actuals, a_position)
- end
- feature {ANY}
- accept (v: VISITOR) is
- local
- v0: LIBERTY_PREFIX_OPERATOR_VISITOR
- do
- v0 ::= v
- v0.visit_liberty_prefix_operator(Current)
- end
- invariant
- actuals.is_empty
- not is_implicit_current
- end