PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/tools/errors/liberty_syntax_position.e

http://github.com/tybor/Liberty
Specman e | 47 lines | 26 code | 7 blank | 14 comment | 0 complexity | 6fbd35d17f497ef5ac199464dd080bff 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_SYNTAX_POSITION
16
17inherit
18   LIBERTY_POSITION
19
20create {LIBERTY_ERRORS}
21   make
22
23feature {ANY}
24   source: STRING
25
26feature {ANY}
27   is_unknown: BOOLEAN is False
28
29feature {}
30   make (a_index: like index; a_source: like source; a_file: like file) is
31      require
32         a_source /= Void
33         a_index.in_range(a_source.lower, a_source.upper)
34      do
35         index := a_index
36         source := a_source
37         file := a_file
38      ensure
39         index = a_index
40         source = a_source
41         file = a_file
42      end
43
44invariant
45   source /= Void
46
47end