diff options
Diffstat (limited to 'TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Enum.cpp')
-rw-r--r-- | TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Enum.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Enum.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Enum.cpp deleted file mode 100644 index a87d87470b2..00000000000 --- a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Enum.cpp +++ /dev/null @@ -1,69 +0,0 @@ -// file : CCF/IDL2/SemanticAction/Impl/Enum.cpp -// author : Boris Kolpackov <boris@dre.vanderbilt.edu> -// cvs-id : $Id$ - -#include "CCF/IDL2/SemanticAction/Impl/Enum.hpp" - -#include <iostream> - -using std::cerr; -using std::endl; - -namespace CCF -{ - namespace IDL2 - { - namespace SemanticAction - { - namespace Impl - { - using namespace SemanticGraph; - - Enum:: - Enum (Context& c) - : Base (c) - { - } - - void Enum:: - begin (SimpleIdentifierPtr const& id) - { - if (ctx.trace ()) cerr << "enum " << id << endl; - - type_ = 0; - - SimpleName name (id->lexeme ()); - - //@@ Need to check for redeclaration of the name. - // - - type_ = &ctx.tu ().new_node<SemanticGraph::Enum> (); - ctx.tu ().new_edge<Defines> (ctx.scope (), *type_, name); - } - - void Enum:: - enumerator (SimpleIdentifierPtr const& id) - { - if (ctx.trace ()) cerr << "enumerator " << id << endl; - - //@@ Need to check for redeclaration of the name. - // - - SimpleName name (id->lexeme ()); - - if (type_ != 0) - { - Enumerator& e (ctx.tu ().new_node<Enumerator> ()); - ctx.tu ().new_edge<Belongs> (e, *type_); - } - } - - void Enum:: - end () - { - if (ctx.trace ()) cerr << "end" << endl; - } - } - } - } -} |