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

/src/tools/semantics/reachable/liberty_reachable_collection_marker.e

http://github.com/tybor/Liberty
Specman e | 34 lines | 18 code | 2 blank | 14 comment | 0 complexity | 5e59b8a16a7d5d737d53711106358899 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--
15expanded class LIBERTY_REACHABLE_COLLECTION_MARKER[E_ -> LIBERTY_REACHABLE]
16
17feature {LIBERTY_REACHABLE}
18   mark_reachable_code (mark: INTEGER; elements: INDEXABLE[E_]) is
19      require
20         elements /= Void
21      local
22         i: INTEGER
23      do
24         from
25            i := elements.lower
26         until
27            i > elements.upper
28         loop
29            elements.item(i).mark_reachable_code(mark)
30            i := i + 1
31         end
32      end
33
34end -- class LIBERTY_REACHABLE_COLLECTION_MARKER