PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/tools/compiler/asm/instruction/liberty_asm_invoke.e

http://github.com/tybor/Liberty
Specman e | 56 lines | 34 code | 8 blank | 14 comment | 0 complexity | d6f9435b17dfe45c6d0298b1efff9e6a MD5 | raw file
 1-- This file is part of Liberty Eiffel.
 2--
 3-- Liberty Eiffel is free software: you can redistribute it and/or modify
 4-- it under the terms of the GNU General Public License as published by
 5-- the Free Software Foundation, version 3 of the License.
 6--
 7-- Liberty Eiffel is distributed in the hope that it will be useful,
 8-- but WITHOUT ANY WARRANTY; without even the implied warranty of
 9-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10-- GNU General Public License for more details.
11--
12-- You should have received a copy of the GNU General Public License
13-- along with Liberty Eiffel.  If not, see <http://www.gnu.org/licenses/>.
14--
15class LIBERTY_ASM_INVOKE
16
17inherit
18   LIBERTY_ASM_INSTRUCTION
19      redefine
20         is_equal
21      end
22
23create {ANY}
24   make
25
26feature {ANY}
27   method: LIBERTY_ASM_METHOD
28
29   is_equal (other: like Current): BOOLEAN is
30      do
31         Result := other.method.is_equal(method)
32            and then Precursor(other)
33      end
34
35   accept (visitor: LIBERTY_ASM_VISITOR) is
36      local
37         v: LIBERTY_ASM_INSTRUCTION_VISITOR
38      do
39         v ::= visitor
40         v.visit_invoke(Current)
41      end
42
43feature {}
44   make (a_method: like method) is
45      require
46         a_method /= Void
47      do
48         method := a_method
49      ensure
50         method = a_method
51      end
52
53invariant
54   method /= Void
55
56end -- class LIBERTY_ASM_INVOKE