/test/language/unclassified/test_in_out_visitor.e

http://github.com/tybor/Liberty · Specman e · 88 lines · 51 code · 14 blank · 23 comment · 1 complexity · 954d7291b6fdbd3577216d402cfc05d8 MD5 · raw file

  1. -- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries.
  2. -- See the Copyright notice at the end of this file.
  3. --
  4. class TEST_IN_OUT_VISITOR
  5. inherit
  6. IN_OUT_VISITOR
  7. redefine enter_class_text, exit_class_text
  8. end
  9. insert
  10. EXTERNAL_TOOL
  11. GLOBALS
  12. EIFFELTEST_TOOLS
  13. create {}
  14. make
  15. feature {}
  16. class_text: CLASS_TEXT
  17. done: SET[STRING]
  18. make
  19. local
  20. cn: CLASS_NAME
  21. do
  22. bootstrap
  23. create {HASHED_SET[STRING]} done.make
  24. create cn.unknown_position(ace.root_class_name, False)
  25. class_text := smart_eiffel.class_text(cn)
  26. assert(class_text /= Void)
  27. class_text.accept(Current)
  28. assert(done.fast_has(class_text.name.to_string))
  29. end
  30. enter_class_text (visited: CLASS_TEXT): BOOLEAN
  31. local
  32. cn: STRING
  33. do
  34. cn := visited.name.to_string
  35. Result := not done.has(cn)
  36. if Result then
  37. done.add(cn)
  38. end
  39. end
  40. exit_class_text (visited: CLASS_TEXT)
  41. do
  42. -- std_output.put_string(visited.name.to_string)
  43. -- std_output.put_new_line
  44. end
  45. parse_arguments
  46. do
  47. root_class_name := "STRING"
  48. root_procedure_name := "make_empty"
  49. end
  50. use_short_mode: BOOLEAN False
  51. is_valid_argument_for_ace_mode (arg: STRING): BOOLEAN
  52. do
  53. end
  54. usage: STRING ""
  55. valid_argument_for_ace_mode: STRING ""
  56. end -- class TEST_IN_OUT_VISITOR
  57. --
  58. -- ------------------------------------------------------------------------------------------------------------------------------
  59. -- Copyright notice below. Please read.
  60. --
  61. -- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
  62. -- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
  63. -- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
  64. -- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
  65. -- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
  66. -- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  67. --
  68. -- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE
  69. -- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
  70. --
  71. -- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
  72. --
  73. -- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
  74. -- ------------------------------------------------------------------------------------------------------------------------------