or_actual_visitors.cc

Go to the documentation of this file.
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 /*! \file
00029  *
00030  * This file contains implementaion of visitors used in overload resoltuion.
00031  * Now this means only visitor on or_or_functional
00032  * \author jikos
00033  */
00034 
00035 #include <lestes/lang/cplus/sem/or_visitor.v.g.hh>
00036 #include <lestes/lang/cplus/sem/or_or.g.hh>
00037 #include <lestes/std/source_location.hh>
00038 #include <lestes/lang/cplus/sem/or_actual_visitors.g.hh>
00039 
00040 package(lestes);
00041 package(lang);
00042 package(cplus);
00043 package(sem);
00044 
00045 void or_or_functional_to_enum::visit_or_or_functional_concrete(ptr< or_or_functional_concrete> )
00046 {
00047         result_set(OR_OR_FUNCTIONAL_CONCRETE);
00048 }
00049 
00050 void or_or_functional_to_enum::visit_or_or_functional_comma(ptr< or_or_functional_comma> )
00051 {
00052         result_set(OR_OR_FUNCTIONAL_COMMA);
00053 }
00054 
00055 void or_or_functional_to_enum::visit_or_or_functional_addrof(ptr< or_or_functional_addrof> )
00056 {
00057         result_set(OR_OR_FUNCTIONAL_ADDROF);
00058 }
00059 
00060 void or_or_functional_to_enum::visit_or_or_functional_literal(ptr< or_or_functional_literal> )
00061 {
00062         result_set(OR_OR_FUNCTIONAL_LITERAL);
00063 }
00064 
00065 void or_or_functional_to_enum::visit_or_or_functional_this(ptr< or_or_functional_this> )
00066 {
00067         result_set(OR_OR_FUNCTIONAL_THIS);
00068 }
00069 
00070 void or_or_functional_to_enum::visit_or_or_functional_ambiguous(ptr< or_or_functional_ambiguous> )
00071 {
00072         result_set(OR_OR_FUNCTIONAL_AMBIGUOUS);
00073 }
00074 
00075 void or_or_functional_to_enum::visit_or_or_functional_noviable(ptr< or_or_functional_noviable> )
00076 {
00077         result_set(OR_OR_FUNCTIONAL_NOVIABLE);
00078 }
00079 
00080 void or_or_functional_to_enum::visit_or_or_functional_func_decl_set(ptr< or_or_functional_func_decl_set> )
00081 {
00082         result_set(OR_OR_FUNCTIONAL_FUNC_DECL_SET);
00083 }
00084 
00085 void or_or_functional_to_enum::visit_or_or_functional_decl(ptr< or_or_functional_decl> )
00086 {
00087         result_set(OR_OR_FUNCTIONAL_DECL);
00088 }
00089 
00090 
00091 
00092 
00093 end_package(sem);
00094 end_package(cplus);
00095 end_package(lang);
00096 end_package(lestes);
00097 

Generated on Mon Feb 12 18:22:42 2007 for lestes by doxygen 1.5.1-20070107