00001 /* 00002 The lestes compiler suite 00003 Copyright (C) 2002, 2003, 2004, 2005 Miroslav Tichy 00004 Copyright (C) 2002, 2003, 2004, 2005 Petr Zika 00005 Copyright (C) 2002, 2003, 2004, 2005 Vojtech Hala 00006 Copyright (C) 2002, 2003, 2004, 2005 Jiri Kosina 00007 Copyright (C) 2002, 2003, 2004, 2005 Pavel Sanda 00008 Copyright (C) 2002, 2003, 2004, 2005 Jan Zouhar 00009 Copyright (C) 2002, 2003, 2004, 2005 Rudolf Thomas 00010 00011 This program is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU General Public License as published by 00013 the Free Software Foundation; version 2 of the License. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 See the full text of the GNU General Public License version 2, and 00021 the limitations in the file doc/LICENSE. 00022 00023 By accepting the license the licensee waives any and all claims 00024 against the copyright holder(s) related in whole or in part to the 00025 work, its use, and/or the inability to use it. 00026 00027 */ 00028 /*! 00029 \file 00030 \brief Visitors returning ulint value for ss_declaration. 00031 \author jaz 00032 */ 00033 00034 #include <lestes/lang/cplus/sem/ss_decl2ulint_base.g.hh> 00035 #include <lestes/lang/cplus/sem/ss_declaration.g.hh> 00036 00037 package(lestes); 00038 package(lang); 00039 package(cplus); 00040 package(sem); 00041 00042 ptr< ss_decl2id > ss_decl2id::instance(){ 00043 if ( !singleton_instance ) { 00044 singleton_instance = ss_decl2id::create(); 00045 } 00046 return singleton_instance; 00047 } 00048 00049 ulint ss_decl2id::visit_ss_namespace_definition(ptr< ::lestes::lang::cplus::sem::ss_namespace_definition >) { 00050 return NAMESPACE; 00051 } 00052 00053 ulint ss_decl2id::visit_ss_object_declaration(ptr< ::lestes::lang::cplus::sem::ss_object_declaration >) { 00054 return OBJECT; 00055 } 00056 00057 ulint ss_decl2id::visit_ss_bitfield_declaration(ptr< ::lestes::lang::cplus::sem::ss_bitfield_declaration >) { 00058 return BITFIELD; 00059 } 00060 00061 ulint ss_decl2id::visit_ss_parameter_declaration(ptr< ::lestes::lang::cplus::sem::ss_parameter_declaration >) { 00062 return PARAMETER; 00063 } 00064 00065 ulint ss_decl2id::visit_ss_structure_declaration(ptr< ::lestes::lang::cplus::sem::ss_structure_declaration >) { 00066 return TYPE; 00067 } 00068 00069 ulint ss_decl2id::visit_ss_enum_definition(ptr< ::lestes::lang::cplus::sem::ss_enum_definition >) { 00070 return ENUM; 00071 } 00072 00073 ulint ss_decl2id::visit_ss_typedef_definition(ptr< ::lestes::lang::cplus::sem::ss_typedef_definition >) { 00074 return TYPEDEF; 00075 } 00076 00077 ulint ss_decl2id::visit_ss_function_declaration(ptr< ::lestes::lang::cplus::sem::ss_function_declaration >) { 00078 return FUNCTION; 00079 } 00080 00081 ulint ss_decl2id::visit_ss_enumerator_declaration(ptr< ::lestes::lang::cplus::sem::ss_enumerator_declaration >) { 00082 return ENUMERATOR; 00083 } 00084 00085 00086 ulint ss_decl2id::visit_ss_using_declaration(ptr< ::lestes::lang::cplus::sem::ss_using_declaration >) { 00087 return USING; 00088 } 00089 00090 ulint ss_decl2id::visit_ss_builtin_operator_declaration(ptr< ::lestes::lang::cplus::sem::ss_builtin_operator_declaration >) { 00091 return BUILTIN_OPERATOR; 00092 } 00093 00094 00095 ulint ss_decl2id::visit_ss_compound_stmt_declaration(ptr< ::lestes::lang::cplus::sem::ss_compound_stmt_declaration >){ 00096 return COMPOUND_STATEMENT; 00097 } 00098 00099 00100 ulint ss_decl2id::visit_ss_method_declaration(ptr< ::lestes::lang::cplus::sem::ss_method_declaration >){ 00101 return METHOD; 00102 } 00103 00104 ulint ss_decl2id::visit_ss_fake_declaration(ptr< ::lestes::lang::cplus::sem::ss_fake_declaration >){ 00105 lassert(false); 00106 return 0; 00107 } 00108 00109 ulint ss_decl2id::visit_ss_injected_class_declaration(ptr< ::lestes::lang::cplus::sem::ss_injected_class_declaration >){ 00110 lassert(false); 00111 return 0; 00112 } 00113 00114 00115 00116 00117 end_package(sem); 00118 end_package(cplus); 00119 end_package(lang); 00120 end_package(lestes); 00121
1.5.1-20070107