/src/tools/semantics/code/instructions/liberty_assignment.e
http://github.com/tybor/Liberty · Specman e · 51 lines · 31 code · 6 blank · 14 comment · 0 complexity · 647f1b03341b926f874bea6b746fbda5 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/>.
- --
- deferred class LIBERTY_ASSIGNMENT
- inherit
- LIBERTY_INSTRUCTION
- feature {ANY}
- writable: LIBERTY_WRITABLE
- expression: LIBERTY_EXPRESSION
- feature {LIBERTY_REACHABLE, LIBERTY_REACHABLE_COLLECTION_MARKER}
- mark_reachable_code (mark: INTEGER) is
- do
- writable.mark_reachable_code(mark)
- expression.mark_reachable_code(mark)
- end
- feature {}
- make (a_writable: like writable; a_expression: like expression; a_position: like position) is
- require
- a_writable /= Void
- a_expression /= Void
- a_position /= Void
- do
- writable := a_writable
- expression := a_expression
- position := a_position
- ensure
- writable = a_writable
- expression = a_expression
- position = a_position
- end
- invariant
- writable /= Void
- expression /= Void
- end