PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/src/tools/wrappers-generator/filed_node.e

http://github.com/tybor/Liberty
Specman e | 53 lines | 31 code | 7 blank | 15 comment | 0 complexity | c6ace2acbef7bd30f1a7b52e29967f8f MD5 | raw file
 1deferred class FILED_NODE
 2   -- A Gccxml node with "file" attribute
 3
 4inherit
 5   GCCXML_NODE
 6
 7insert
 8   SHARED_COLLECTIONS
 9
10feature {ANY}
11   file_id: UNICODE_STRING
12      do
13         Result := attribute_at(once U"file")
14      ensure
15         Result /= Void
16      end
17
18   line_row: UNICODE_STRING
19         -- The line in the source code where Current is defined
20      do
21         Result := attribute_at(once U"line")
22      ensure
23         Result /= Void
24      end
25
26   c_file: C_FILE
27      do
28         Result := files.reference_at(file_id)
29      end
30
31   set_file (a_file: C_FILE)
32         -- Make Current node as if it was defined into `a_file'
33         -- Consider Current as if it wes defined in `a_file_name'.
34      require
35         a_file /= Void
36      do
37         attributes.put(a_file.id, once U"file")
38      ensure
39         set: c_file = a_file
40      end
41
42end -- class FILED_NODE
43-- Copyright (C) 2008-2017: ,2009,2010 Paolo Redaelli
44-- wrappers-generator  is free software: you can redistribute it and/or modify it
45-- under the terms of the GNU General Public License as publhed by the Free
46-- Software Foundation, either version 2 of the License, or (at your option)
47-- any later version.
48-- wrappers-generator is distributed in the hope that it will be useful, but
49-- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
50-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
51-- more details.
52-- You should have received a copy of the GNU General Public License along with
53-- th program.  If not, see <http://www.gnu.org/licenses/>.