File indexing completed on 2024-04-14 04:31:34

0001 /* This file is part of kdev-pg-qt
0002    Copyright (C) 2005 Roberto Raggi <roberto@kdevelop.org>
0003    Copyright (C) 2006 Jakob Petsovits <jpetso@gmx.at>
0004 
0005    This library is free software; you can redistribute it and/or
0006    modify it under the terms of the GNU Library General Public
0007    License as published by the Free Software Foundation; either
0008    version 2 of the License, or (at your option) any later version.
0009 
0010    This library is distributed in the hope that it will be useful,
0011    but WITHOUT ANY WARRANTY; without even the implied warranty of
0012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013    Library General Public License for more details.
0014 
0015    You should have received a copy of the GNU Library General Public License
0016    along with this library; see the file COPYING.LIB.  If not, write to
0017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018    Boston, MA 02110-1301, USA.
0019 */
0020 
0021 #include "kdev-pg-default-visitor.h"
0022 
0023 #include "kdev-pg.h"
0024 
0025 namespace KDevPG
0026 {
0027 
0028 void DefaultVisitor::visitZero(Model::ZeroItem *node)
0029 {
0030   Q_UNUSED(node);
0031 }
0032 
0033 void DefaultVisitor::visitSymbol(Model::SymbolItem *node)
0034 {
0035   Q_UNUSED(node);
0036 }
0037 
0038 void DefaultVisitor::visitTerminal(Model::TerminalItem *node)
0039 {
0040   Q_UNUSED(node);
0041 }
0042 
0043 void DefaultVisitor::visitNonTerminal(Model::NonTerminalItem *node)
0044 {
0045   visitNonTerminalIndirectly
0046 }
0047 
0048 void DefaultVisitor::visitInlinedNonTerminal(Model::InlinedNonTerminalItem* node)
0049 {
0050   visitNonTerminalDirectly
0051 }
0052 
0053 void DefaultVisitor::visitPlus(Model::PlusItem *node)
0054 {
0055   visitNode(node->mItem);
0056 }
0057 
0058 void DefaultVisitor::visitStar(Model::StarItem *node)
0059 {
0060   visitNode(node->mItem);
0061 }
0062 
0063 void DefaultVisitor::visitAction(Model::ActionItem *node)
0064 {
0065   visitNode(node->mItem);
0066 }
0067 
0068 void DefaultVisitor::visitAlternative(Model::AlternativeItem *node)
0069 {
0070   visitNode(node->mLeft);
0071   visitNode(node->mRight);
0072 }
0073 
0074 void DefaultVisitor::visitCons(Model::ConsItem *node)
0075 {
0076   visitNode(node->mLeft);
0077   visitNode(node->mRight);
0078 }
0079 
0080 void DefaultVisitor::visitEvolve(Model::EvolveItem *node)
0081 {
0082   visitNode(node->mDeclarations);
0083   visitNode(node->mItem);
0084   visitNode(node->mSymbol);
0085 }
0086 
0087 void DefaultVisitor::visitTryCatch(Model::TryCatchItem *node)
0088 {
0089   visitNode(node->mTryItem);
0090   visitNode(node->mCatchItem);
0091 }
0092 
0093 void DefaultVisitor::visitAlias(Model::AliasItem *node)
0094 {
0095   visitNode(node->mSymbol);
0096 }
0097 
0098 void DefaultVisitor::visitAnnotation(Model::AnnotationItem *node)
0099 {
0100   visitNode(node->mDeclaration);
0101   visitNode(node->mItem);
0102 }
0103 
0104 void DefaultVisitor::visitCondition(Model::ConditionItem *node)
0105 {
0106   visitNode(node->mItem);
0107 }
0108 
0109 void DefaultVisitor::visitVariableDeclaration(Model::VariableDeclarationItem *node)
0110 {
0111   visitNode(node->mNext);
0112 }
0113 
0114 void DefaultVisitor::visitOperator(Model::OperatorItem *node)
0115 {
0116   Q_UNUSED(node);
0117 }
0118 
0119 }