/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

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