2011-05-16 12:45:28 +02:00
|
|
|
// Copyright (c) 2008 Roberto Raggi <roberto.raggi@gmail.com>
|
|
|
|
//
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
|
|
// in the Software without restriction, including without limitation the rights
|
|
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
|
|
// furnished to do so, subject to the following conditions:
|
|
|
|
//
|
|
|
|
// The above copyright notice and this permission notice shall be included in
|
|
|
|
// all copies or substantial portions of the Software.
|
|
|
|
//
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
// THE SOFTWARE.
|
2009-06-17 14:13:21 +02:00
|
|
|
|
2010-02-04 12:03:34 +01:00
|
|
|
//
|
|
|
|
// W A R N I N G
|
|
|
|
// -------------
|
|
|
|
//
|
|
|
|
// This file is automatically generated.
|
|
|
|
// Changes will be lost.
|
|
|
|
//
|
|
|
|
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
#include "AST.h"
|
|
|
|
#include "ASTVisitor.h"
|
|
|
|
|
2009-10-20 11:21:25 +02:00
|
|
|
using namespace CPlusPlus;
|
2009-06-17 14:13:21 +02:00
|
|
|
|
2010-02-23 17:43:40 +01:00
|
|
|
void ObjCSelectorArgumentAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCSelectorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(selector_argument_list, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void SimpleSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AttributeSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AttributeAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:19:52 +01:00
|
|
|
accept(expression_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TypeofSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
2009-06-17 16:08:01 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2012-02-10 14:41:58 +01:00
|
|
|
void DecltypeSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void DeclaratorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
|
|
|
accept(ptr_operator_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(core_declarator, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(postfix_declarator_list, visitor);
|
|
|
|
accept(post_attribute_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(initializer, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SimpleDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(decl_specifier_list, visitor);
|
|
|
|
accept(declarator_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void EmptyDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AccessDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-03-17 14:35:48 +01:00
|
|
|
void QtObjectTagAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtPrivateSlotAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-08-26 15:55:31 +02:00
|
|
|
accept(type_specifier_list, visitor);
|
2010-03-17 14:35:48 +01:00
|
|
|
accept(declarator, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-02-16 16:54:39 +01:00
|
|
|
void QtPropertyDeclarationItemAST::accept0(ASTVisitor *visitor)
|
2010-02-06 15:47:46 +01:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-02-16 16:54:39 +01:00
|
|
|
accept(expression, visitor);
|
2010-02-06 15:47:46 +01:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-02-06 11:05:43 +01:00
|
|
|
void QtPropertyDeclarationAST::accept0(ASTVisitor *visitor)
|
2010-01-19 15:26:08 +10:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-12-08 15:08:03 +01:00
|
|
|
accept(expression, visitor);
|
2010-02-06 11:05:43 +01:00
|
|
|
accept(type_id, visitor);
|
2010-02-06 14:32:25 +01:00
|
|
|
accept(property_name, visitor);
|
2010-08-26 15:55:31 +02:00
|
|
|
accept(property_declaration_item_list, visitor);
|
2010-01-19 15:26:08 +10:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-02-06 11:05:43 +01:00
|
|
|
void QtEnumDeclarationAST::accept0(ASTVisitor *visitor)
|
2010-01-19 15:26:08 +10:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-02-04 12:03:34 +01:00
|
|
|
accept(enumerator_list, visitor);
|
2010-01-19 15:26:08 +10:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-02-06 11:05:43 +01:00
|
|
|
void QtFlagsDeclarationAST::accept0(ASTVisitor *visitor)
|
2010-01-19 15:26:08 +10:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-02-06 11:38:54 +01:00
|
|
|
accept(flag_enums_list, visitor);
|
2010-01-19 15:26:08 +10:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-03-16 17:29:40 +01:00
|
|
|
void QtInterfaceNameAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(interface_name, visitor);
|
|
|
|
accept(constraint_list, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtInterfacesDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(interface_name_list, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void AsmDefinitionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void BaseSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
2010-02-04 14:55:18 +01:00
|
|
|
}
|
|
|
|
|
2010-08-02 12:04:59 +02:00
|
|
|
void IdExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-02-04 14:55:18 +01:00
|
|
|
void CompoundExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-03-23 10:22:41 +01:00
|
|
|
accept(statement, visitor);
|
2010-02-04 14:55:18 +01:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CompoundLiteralAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(type_id, visitor);
|
|
|
|
accept(initializer, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QtMethodAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(declarator, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-11-30 16:30:21 +01:00
|
|
|
void QtMemberDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(type_id, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void BinaryExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(left_expression, visitor);
|
|
|
|
accept(right_expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CastExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(type_id, visitor);
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ClassSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(name, visitor);
|
2009-11-10 14:03:40 +01:00
|
|
|
accept(base_clause_list, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(member_specifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CaseStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
accept(statement, visitor);
|
2009-06-17 16:08:01 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void CompoundStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(statement_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConditionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(declarator, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConditionalExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(condition, visitor);
|
|
|
|
accept(left_expression, visitor);
|
|
|
|
accept(right_expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CppCastExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(type_id, visitor);
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CtorInitializerAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(member_initializer_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void DeclarationStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(declaration, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void DeclaratorIdAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NestedDeclaratorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(declarator, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void FunctionDeclaratorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-08-26 15:55:31 +02:00
|
|
|
accept(parameter_declaration_clause, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(cv_qualifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(exception_specification, visitor);
|
2010-03-24 14:56:30 +01:00
|
|
|
accept(trailing_return_type, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(as_cpp_initializer, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ArrayDeclaratorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void DeleteExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void DoStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(statement, visitor);
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NamedTypeSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ElaboratedTypeSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-03-22 18:23:17 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void EnumSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(enumerator_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void EnumeratorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExceptionDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(declarator, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2012-02-02 11:40:01 +01:00
|
|
|
void DynamicExceptionSpecificationAST::accept0(ASTVisitor *visitor)
|
2009-06-17 14:13:21 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_id_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2012-02-02 11:40:01 +01:00
|
|
|
void NoExceptSpecificationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void ExpressionOrDeclarationStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
accept(declaration, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExpressionStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void FunctionDefinitionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(decl_specifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(declarator, visitor);
|
|
|
|
accept(ctor_initializer, visitor);
|
|
|
|
accept(function_body, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-03 09:11:52 +02:00
|
|
|
void ForeachStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
2009-07-03 09:11:52 +02:00
|
|
|
accept(declarator, visitor);
|
|
|
|
accept(initializer, visitor);
|
|
|
|
accept(expression, visitor);
|
|
|
|
accept(statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void ForStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(initializer, visitor);
|
|
|
|
accept(condition, visitor);
|
|
|
|
accept(expression, visitor);
|
|
|
|
accept(statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void IfStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(condition, visitor);
|
|
|
|
accept(statement, visitor);
|
|
|
|
accept(else_statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ArrayInitializerAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:19:52 +01:00
|
|
|
accept(expression_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LabeledStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LinkageBodyAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(declaration_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LinkageSpecificationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(declaration, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void MemInitializerAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
2009-11-13 12:36:51 +01:00
|
|
|
accept(expression_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NestedNameSpecifierAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(class_or_namespace_name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QualifiedNameAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(nested_name_specifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(unqualified_name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void OperatorFunctionIdAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(op, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConversionFunctionIdAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
|
|
|
accept(ptr_operator_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SimpleNameAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void DestructorNameAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TemplateIdAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(template_argument_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NamespaceAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(linkage_body, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NamespaceAliasDefinitionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NewPlacementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:19:52 +01:00
|
|
|
accept(expression_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NewArrayDeclaratorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NewExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(new_placement, visitor);
|
|
|
|
accept(type_id, visitor);
|
|
|
|
accept(new_type_id, visitor);
|
|
|
|
accept(new_initializer, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NewInitializerAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NewTypeIdAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
|
|
|
accept(ptr_operator_list, visitor);
|
|
|
|
accept(new_array_declarator_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void OperatorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ParameterDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(declarator, visitor);
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ParameterDeclarationClauseAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(parameter_declaration_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CallAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-06-23 14:38:41 +02:00
|
|
|
accept(base_expression, visitor);
|
2009-11-10 16:19:52 +01:00
|
|
|
accept(expression_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ArrayAccessAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-06-23 14:38:41 +02:00
|
|
|
accept(base_expression, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void PostIncrDecrAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-06-23 14:38:41 +02:00
|
|
|
accept(base_expression, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void MemberAccessAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2010-06-23 14:38:41 +02:00
|
|
|
accept(base_expression, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(member_name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TypeidExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TypenameCallExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
2009-11-10 16:19:52 +01:00
|
|
|
accept(expression_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TypeConstructorCallAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
2009-11-10 16:00:22 +01:00
|
|
|
accept(expression_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void PointerToMemberAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(nested_name_specifier_list, visitor);
|
|
|
|
accept(cv_qualifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void PointerAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(cv_qualifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ReferenceAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void BreakStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ContinueStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GotoStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ReturnStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SizeofExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2011-11-18 13:33:26 +01:00
|
|
|
void PointerLiteralAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void NumericLiteralAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void BoolLiteralAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ThisExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NestedExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2012-02-02 13:39:24 +01:00
|
|
|
void StaticAssertDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
accept(string_literal, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-06-17 14:13:21 +02:00
|
|
|
void StringLiteralAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SwitchStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(condition, visitor);
|
|
|
|
accept(statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TemplateDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(template_parameter_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(declaration, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ThrowExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TranslationUnitAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(declaration_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TryBlockStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(statement, visitor);
|
2009-11-10 15:15:51 +01:00
|
|
|
accept(catch_clause_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CatchClauseAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(exception_declaration, visitor);
|
|
|
|
accept(statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TypeIdAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(declarator, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TypenameTypeParameterAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
accept(type_id, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TemplateTypeParameterAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(template_parameter_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
accept(name, visitor);
|
|
|
|
accept(type_id, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void UnaryExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void UsingAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void UsingDirectiveAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(name, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void WhileStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(condition, visitor);
|
|
|
|
accept(statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-08-05 17:14:08 +02:00
|
|
|
void ObjCClassForwardDeclarationAST::accept0(ASTVisitor *visitor)
|
2009-06-17 14:13:21 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-11-10 16:00:22 +01:00
|
|
|
accept(identifier_list, visitor);
|
2009-06-17 14:13:21 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-08-05 17:14:08 +02:00
|
|
|
void ObjCClassDeclarationAST::accept0(ASTVisitor *visitor)
|
2009-07-13 09:45:28 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(class_name, visitor);
|
2009-08-05 17:14:08 +02:00
|
|
|
accept(category_name, visitor);
|
|
|
|
accept(superclass, visitor);
|
2009-07-13 09:45:28 +02:00
|
|
|
accept(protocol_refs, visitor);
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(inst_vars_decl, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(member_declaration_list, visitor);
|
2009-07-13 09:45:28 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-08-05 17:14:08 +02:00
|
|
|
void ObjCProtocolForwardDeclarationAST::accept0(ASTVisitor *visitor)
|
2009-07-13 09:45:28 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-11-10 16:00:22 +01:00
|
|
|
accept(identifier_list, visitor);
|
2009-07-13 09:45:28 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-08-05 17:14:08 +02:00
|
|
|
void ObjCProtocolDeclarationAST::accept0(ASTVisitor *visitor)
|
2009-07-13 09:45:28 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(name, visitor);
|
|
|
|
accept(protocol_refs, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(member_declaration_list, visitor);
|
2009-07-13 09:45:28 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCProtocolRefsAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:00:22 +01:00
|
|
|
accept(identifier_list, visitor);
|
2009-07-13 09:45:28 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-08-03 14:42:25 +02:00
|
|
|
void ObjCMessageArgumentAST::accept0(ASTVisitor *visitor)
|
2009-07-13 09:45:28 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(parameter_value_expression, visitor);
|
2009-07-15 12:11:07 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-08-03 14:42:25 +02:00
|
|
|
void ObjCMessageExpressionAST::accept0(ASTVisitor *visitor)
|
2009-07-15 12:11:07 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(receiver_expression, visitor);
|
|
|
|
accept(selector, visitor);
|
2009-11-10 16:19:52 +01:00
|
|
|
accept(argument_list, visitor);
|
2009-07-13 09:45:28 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-16 12:18:05 +02:00
|
|
|
void ObjCProtocolExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-16 12:44:47 +02:00
|
|
|
void ObjCTypeNameAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(type_id, visitor);
|
2009-07-16 12:44:47 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCEncodeExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(type_name, visitor);
|
2009-07-16 12:44:47 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-28 16:34:15 +02:00
|
|
|
void ObjCSelectorExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(selector, visitor);
|
2009-07-28 16:34:15 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-16 14:31:13 +02:00
|
|
|
void ObjCInstanceVariablesDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(instance_variable_list, visitor);
|
2009-07-16 14:31:13 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCVisibilityDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-28 16:34:15 +02:00
|
|
|
void ObjCPropertyAttributeAST::accept0(ASTVisitor *visitor)
|
2009-07-16 15:50:42 +02:00
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(method_selector, visitor);
|
2009-07-16 15:50:42 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCPropertyDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
|
|
|
accept(property_attribute_list, visitor);
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(simple_declaration, visitor);
|
2009-07-16 15:50:42 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-16 17:38:24 +02:00
|
|
|
void ObjCMessageArgumentDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(type_name, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(attribute_list, visitor);
|
2010-02-08 09:34:51 +01:00
|
|
|
accept(param_name, visitor);
|
2009-07-16 17:38:24 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCMethodPrototypeAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(type_name, visitor);
|
|
|
|
accept(selector, visitor);
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(argument_list, visitor);
|
|
|
|
accept(attribute_list, visitor);
|
2009-07-16 17:38:24 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-20 11:46:59 +02:00
|
|
|
void ObjCMethodDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(method_prototype, visitor);
|
|
|
|
accept(function_body, visitor);
|
2009-07-20 11:46:59 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-20 10:04:44 +02:00
|
|
|
void ObjCSynthesizedPropertyAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCSynthesizedPropertiesDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(property_identifier_list, visitor);
|
2009-07-20 10:04:44 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCDynamicPropertiesDeclarationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(property_identifier_list, visitor);
|
2009-07-20 10:04:44 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ObjCFastEnumerationAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-11-10 16:47:16 +01:00
|
|
|
accept(type_specifier_list, visitor);
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(declarator, visitor);
|
|
|
|
accept(initializer, visitor);
|
|
|
|
accept(fast_enumeratable_expression, visitor);
|
2010-01-09 18:00:25 +01:00
|
|
|
accept(statement, visitor);
|
2009-07-20 10:04:44 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2009-07-31 16:53:05 +02:00
|
|
|
void ObjCSynchronizedStatementAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
2009-08-03 14:42:25 +02:00
|
|
|
accept(synchronized_object, visitor);
|
|
|
|
accept(statement, visitor);
|
2009-07-31 16:53:05 +02:00
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-03-24 12:54:25 +01:00
|
|
|
void LambdaExpressionAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(lambda_introducer, visitor);
|
|
|
|
accept(lambda_declarator, visitor);
|
|
|
|
accept(statement, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LambdaIntroducerAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(lambda_capture, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LambdaCaptureAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(capture_list, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CaptureAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LambdaDeclaratorAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(parameter_declaration_clause, visitor);
|
|
|
|
accept(attributes, visitor);
|
|
|
|
accept(exception_specification, visitor);
|
|
|
|
accept(trailing_return_type, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TrailingReturnTypeAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(attributes, visitor);
|
2010-08-26 15:55:31 +02:00
|
|
|
accept(type_specifier_list, visitor);
|
2010-03-24 12:54:25 +01:00
|
|
|
accept(declarator, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|
2010-03-25 12:15:38 +01:00
|
|
|
void BracedInitializerAST::accept0(ASTVisitor *visitor)
|
|
|
|
{
|
|
|
|
if (visitor->visit(this)) {
|
|
|
|
accept(expression_list, visitor);
|
|
|
|
}
|
|
|
|
visitor->endVisit(this);
|
|
|
|
}
|
|
|
|
|