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

/src/lib/xml/xml_node.e

http://github.com/tybor/Liberty
Specman e | 48 lines | 16 code | 5 blank | 27 comment | 0 complexity | 05fc7e025bb2bced2b67a08578519dcc MD5 | raw file
 1-- See the Copyright notice at the end of this file.
 2--
 3deferred class XML_NODE
 4   --
 5   -- A node in an XML_TREE
 6   --
 7
 8insert
 9   VISITABLE
10
11feature {ANY}
12   line, column: INTEGER
13         -- The position of the node in its source file
14
15   parent: XML_COMPOSITE_NODE
16         -- The parent of the node, Void if it is the root
17
18feature {XML_COMPOSITE_NODE}
19   set_parent (a_parent: like parent)
20      require
21         a_parent /= Void
22      do
23         parent := a_parent
24      ensure
25         parent = a_parent
26      end
27
28end -- class XML_NODE
29--
30-- Copyright (C) 2009-2017: by all the people cited in the AUTHORS file.
31--
32-- Permission is hereby granted, free of charge, to any person obtaining a copy
33-- of this software and associated documentation files (the "Software"), to deal
34-- in the Software without restriction, including without limitation the rights
35-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36-- copies of the Software, and to permit persons to whom the Software is
37-- furnished to do so, subject to the following conditions:
38--
39-- The above copyright notice and this permission notice shall be included in
40-- all copies or substantial portions of the Software.
41--
42-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
48-- THE SOFTWARE.