/src/tools/errors/liberty_unknown_position.e
http://github.com/tybor/Liberty · Specman e · 51 lines · 28 code · 9 blank · 14 comment · 0 complexity · 2f409b0640f7197d855f08b3bfc6b286 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_UNKNOWN_POSITION
- inherit
- LIBERTY_POSITION
- redefine
- emit
- end
- insert
- EIFFEL_NODE_HANDLER
- create {LIBERTY_ERRORS}
- make
- feature {ANY}
- is_unknown: BOOLEAN is True
- feature {LIBERTY_ERROR}
- emit (stream: OUTPUT_STREAM) is
- do
- stream.put_line(once "Unknown position")
- end
- feature {}
- make is
- do
- file := unknown_file
- end
- source: STRING is ""
- unknown_file: FIXED_STRING is
- once
- Result := "Unknown file".intern
- end
- end