File indexing completed on 2024-05-19 04:41:36

0001 /*
0002     SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "qmakeastvisitor.h"
0008 #include "ast.h"
0009 
0010 namespace QMake {
0011 
0012 ASTVisitor::parser_fun_t ASTVisitor::_S_parser_table[] = {
0013     reinterpret_cast<parser_fun_t>(&ASTVisitor::visitProject),
0014     reinterpret_cast<parser_fun_t>(&ASTVisitor::visitScopeBody),
0015     reinterpret_cast<parser_fun_t>(&ASTVisitor::visitAssignment),
0016     reinterpret_cast<parser_fun_t>(&ASTVisitor::visitFunctionCall),
0017     reinterpret_cast<parser_fun_t>(&ASTVisitor::visitSimpleScope),
0018     reinterpret_cast<parser_fun_t>(&ASTVisitor::visitOr),
0019     reinterpret_cast<parser_fun_t>(&ASTVisitor::visitValue),
0020 }; // _S_parser_table[]
0021 
0022 ASTVisitor::~ASTVisitor()
0023 {
0024 }
0025 
0026 void ASTVisitor::visitNode(AST* node)
0027 {
0028     if (node) {
0029         (this->*_S_parser_table[node->type])(node);
0030     }
0031 }
0032 
0033 void ASTVisitor::visitProject(ProjectAST*)
0034 {
0035 }
0036 
0037 void ASTVisitor::visitAssignment(AssignmentAST*)
0038 {
0039 }
0040 
0041 void ASTVisitor::visitValue(ValueAST*)
0042 {
0043 }
0044 
0045 void ASTVisitor::visitFunctionCall(FunctionCallAST*)
0046 {
0047 }
0048 
0049 void ASTVisitor::visitScopeBody(ScopeBodyAST*)
0050 {
0051 }
0052 
0053 void ASTVisitor::visitOr(OrAST*)
0054 {
0055 }
0056 
0057 void ASTVisitor::visitSimpleScope(SimpleScopeAST*)
0058 {
0059 }
0060 }