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

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

http://github.com/tybor/Liberty
Specman e | 37 lines | 18 code | 6 blank | 13 comment | 0 complexity | c94154a7aa4da8a0a57d652affb7f612 MD5 | raw file
 1deferred class TYPED_NODE
 2   -- A Gccxml node with "type" attribute
 3
 4inherit
 5   GCCXML_NODE
 6
 7insert
 8   SHARED_COLLECTIONS
 9
10feature {ANY}
11   type: UNICODE_STRING
12      do
13         Result := attribute_at(once U"type")
14      ensure
15         Result /= Void
16      end
17
18   is_void: BOOLEAN  deferred
19
20   referree: C_TYPE
21         -- The node referred by `type' in `types' dictionary.
22      do
23         Result := types.at(type)
24      end
25
26end -- class TYPED_NODE
27-- Copyright (C) 2008-2017: Paolo Redaelli
28-- wrappers-generator  is free software: you can redistribute it and/or modify it
29-- under the terms of the GNU General Public License as publhed by the Free
30-- Software Foundation, either version 2 of the License, or (at your option)
31-- any later version.
32-- wrappers-generator is distributed in the hope that it will be useful, but
33-- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
34-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
35-- more details.
36-- You should have received a copy of the GNU General Public License along with
37-- th program.  If not, see <http://www.gnu.org/licenses/>.