Commit bfa16936 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Regenerated the AST, now including constructors.

parent e4f07e9f
......@@ -301,6 +301,9 @@ protected:
class CPLUSPLUS_EXPORT StatementAST: public AST
{
public:
StatementAST()
{}
virtual StatementAST *asStatement() { return this; }
virtual StatementAST *clone(MemoryPool *pool) const = 0;
......@@ -309,6 +312,9 @@ public:
class CPLUSPLUS_EXPORT ExpressionAST: public AST
{
public:
ExpressionAST()
{}
virtual ExpressionAST *asExpression() { return this; }
virtual ExpressionAST *clone(MemoryPool *pool) const = 0;
......@@ -317,6 +323,9 @@ public:
class CPLUSPLUS_EXPORT DeclarationAST: public AST
{
public:
DeclarationAST()
{}
virtual DeclarationAST *asDeclaration() { return this; }
virtual DeclarationAST *clone(MemoryPool *pool) const = 0;
......@@ -328,6 +337,10 @@ public: // annotations
const Name *name;
public:
NameAST()
: name(0)
{}
virtual NameAST *asName() { return this; }
virtual NameAST *clone(MemoryPool *pool) const = 0;
......@@ -336,6 +349,9 @@ public:
class CPLUSPLUS_EXPORT SpecifierAST: public AST
{
public:
SpecifierAST()
{}
virtual SpecifierAST *asSpecifier() { return this; }
virtual SpecifierAST *clone(MemoryPool *pool) const = 0;
......@@ -344,6 +360,9 @@ public:
class CPLUSPLUS_EXPORT PtrOperatorAST: public AST
{
public:
PtrOperatorAST()
{}
virtual PtrOperatorAST *asPtrOperator() { return this; }
virtual PtrOperatorAST *clone(MemoryPool *pool) const = 0;
......@@ -352,6 +371,9 @@ public:
class CPLUSPLUS_EXPORT PostfixAST: public AST
{
public:
PostfixAST()
{}
virtual PostfixAST *asPostfix() { return this; }
virtual PostfixAST *clone(MemoryPool *pool) const = 0;
......@@ -360,6 +382,9 @@ public:
class CPLUSPLUS_EXPORT CoreDeclaratorAST: public AST
{
public:
CoreDeclaratorAST()
{}
virtual CoreDeclaratorAST *asCoreDeclarator() { return this; }
virtual CoreDeclaratorAST *clone(MemoryPool *pool) const = 0;
......@@ -368,6 +393,9 @@ public:
class CPLUSPLUS_EXPORT PostfixDeclaratorAST: public AST
{
public:
PostfixDeclaratorAST()
{}
virtual PostfixDeclaratorAST *asPostfixDeclarator() { return this; }
virtual PostfixDeclaratorAST *clone(MemoryPool *pool) const = 0;
......@@ -380,6 +408,11 @@ public:
unsigned colon_token;
public:
ObjCSelectorArgumentAST()
: name_token(0)
, colon_token(0)
{}
virtual ObjCSelectorArgumentAST *asObjCSelectorArgument() { return this; }
virtual unsigned firstToken() const;
......@@ -398,6 +431,10 @@ public:
ObjCSelectorArgumentListAST *selector_argument_list;
public:
ObjCSelectorAST()
: selector_argument_list(0)
{}
virtual ObjCSelectorAST *asObjCSelector() { return this; }
virtual unsigned firstToken() const;
......@@ -416,6 +453,10 @@ public:
unsigned specifier_token;
public:
SimpleSpecifierAST()
: specifier_token(0)
{}
virtual SimpleSpecifierAST *asSimpleSpecifier() { return this; }
virtual unsigned firstToken() const;
......@@ -439,6 +480,15 @@ public:
unsigned second_rparen_token;
public:
AttributeSpecifierAST()
: attribute_token(0)
, first_lparen_token(0)
, second_lparen_token(0)
, attribute_list(0)
, first_rparen_token(0)
, second_rparen_token(0)
{}
virtual AttributeSpecifierAST *asAttributeSpecifier() { return this; }
virtual unsigned firstToken() const;
......@@ -461,6 +511,14 @@ public:
unsigned rparen_token;
public:
AttributeAST()
: identifier_token(0)
, lparen_token(0)
, tag_token(0)
, expression_list(0)
, rparen_token(0)
{}
virtual AttributeAST *asAttribute() { return this; }
virtual unsigned firstToken() const;
......@@ -482,6 +540,13 @@ public:
unsigned rparen_token;
public:
TypeofSpecifierAST()
: typeof_token(0)
, lparen_token(0)
, expression(0)
, rparen_token(0)
{}
virtual TypeofSpecifierAST *asTypeofSpecifier() { return this; }
virtual unsigned firstToken() const;
......@@ -506,6 +571,16 @@ public:
ExpressionAST *initializer;
public:
DeclaratorAST()
: attribute_list(0)
, ptr_operator_list(0)
, core_declarator(0)
, postfix_declarator_list(0)
, post_attribute_list(0)
, equals_token(0)
, initializer(0)
{}
virtual DeclaratorAST *asDeclarator() { return this; }
virtual unsigned firstToken() const;
......@@ -530,6 +605,14 @@ public:
List<Declaration *> *symbols;
public:
SimpleDeclarationAST()
: qt_invokable_token(0)
, decl_specifier_list(0)
, declarator_list(0)
, semicolon_token(0)
, symbols(0)
{}
virtual SimpleDeclarationAST *asSimpleDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -548,6 +631,10 @@ public:
unsigned semicolon_token;
public:
EmptyDeclarationAST()
: semicolon_token(0)
{}
virtual EmptyDeclarationAST *asEmptyDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -568,6 +655,12 @@ public:
unsigned colon_token;
public:
AccessDeclarationAST()
: access_specifier_token(0)
, slots_token(0)
, colon_token(0)
{}
virtual AccessDeclarationAST *asAccessDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -586,6 +679,10 @@ public:
unsigned q_object_token;
public:
QtObjectTagAST()
: q_object_token(0)
{}
virtual QtObjectTagAST *asQtObjectTag() { return this; }
virtual unsigned firstToken() const;
......@@ -612,6 +709,18 @@ public:
unsigned rparen_token;
public:
QtPrivateSlotAST()
: q_private_slot_token(0)
, lparen_token(0)
, dptr_token(0)
, dptr_lparen_token(0)
, dptr_rparen_token(0)
, comma_token(0)
, type_specifiers(0)
, declarator(0)
, rparen_token(0)
{}
virtual QtPrivateSlotAST *asQtPrivateSlot() { return this; }
virtual unsigned firstToken() const;
......@@ -631,6 +740,11 @@ public:
ExpressionAST *expression;
public:
QtPropertyDeclarationItemAST()
: item_name_token(0)
, expression(0)
{}
virtual QtPropertyDeclarationItemAST *asQtPropertyDeclarationItem() { return this; }
virtual unsigned firstToken() const;
......@@ -654,6 +768,15 @@ public:
unsigned rparen_token;
public:
QtPropertyDeclarationAST()
: property_specifier_token(0)
, lparen_token(0)
, type_id(0)
, property_name(0)
, property_declaration_items(0)
, rparen_token(0)
{}
virtual QtPropertyDeclarationAST *asQtPropertyDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -675,6 +798,13 @@ public:
unsigned rparen_token;
public:
QtEnumDeclarationAST()
: enum_specifier_token(0)
, lparen_token(0)
, enumerator_list(0)
, rparen_token(0)
{}
virtual QtEnumDeclarationAST *asQtEnumDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -696,6 +826,13 @@ public:
unsigned rparen_token;
public:
QtFlagsDeclarationAST()
: flags_specifier_token(0)
, lparen_token(0)
, flag_enums_list(0)
, rparen_token(0)
{}
virtual QtFlagsDeclarationAST *asQtFlagsDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -715,6 +852,11 @@ public:
NameListAST *constraint_list;
public:
QtInterfaceNameAST()
: interface_name(0)
, constraint_list(0)
{}
virtual QtInterfaceNameAST *asQtInterfaceName() { return this; }
virtual unsigned firstToken() const;
......@@ -736,6 +878,13 @@ public:
unsigned rparen_token;
public:
QtInterfacesDeclarationAST()
: interfaces_token(0)
, lparen_token(0)
, interface_name_list(0)
, rparen_token(0)
{}
virtual QtInterfacesDeclarationAST *asQtInterfacesDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -760,6 +909,14 @@ public:
unsigned semicolon_token;
public:
AsmDefinitionAST()
: asm_token(0)
, volatile_token(0)
, lparen_token(0)
, rparen_token(0)
, semicolon_token(0)
{}
virtual AsmDefinitionAST *asAsmDefinition() { return this; }
virtual unsigned firstToken() const;
......@@ -783,6 +940,13 @@ public: // annotations
BaseClass *symbol;
public:
BaseSpecifierAST()
: virtual_token(0)
, access_specifier_token(0)
, name(0)
, symbol(0)
{}
virtual BaseSpecifierAST *asBaseSpecifier() { return this; }
virtual unsigned firstToken() const;
......@@ -803,6 +967,12 @@ public:
unsigned rparen_token;
public:
CompoundExpressionAST()
: lparen_token(0)
, compoundStatement(0)
, rparen_token(0)
{}
virtual CompoundExpressionAST *asCompoundExpression() { return this; }
virtual unsigned firstToken() const;
......@@ -824,6 +994,13 @@ public:
ExpressionAST *initializer;
public:
CompoundLiteralAST()
: lparen_token(0)
, type_id(0)
, rparen_token(0)
, initializer(0)
{}
virtual CompoundLiteralAST *asCompoundLiteral() { return this; }
virtual unsigned firstToken() const;
......@@ -845,6 +1022,13 @@ public:
unsigned rparen_token;
public:
QtMethodAST()
: method_token(0)
, lparen_token(0)
, declarator(0)
, rparen_token(0)
{}
virtual QtMethodAST *asQtMethod() { return this; }
virtual unsigned firstToken() const;
......@@ -866,6 +1050,13 @@ public:
unsigned rparen_token;
public:
QtMemberDeclarationAST()
: q_token(0)
, lparen_token(0)
, type_id(0)
, rparen_token(0)
{}
virtual QtMemberDeclarationAST *asQtMemberDeclaration() { return this; }
virtual unsigned firstToken() const;
......@@ -886,6 +1077,12 @@ public:
ExpressionAST *right_expression;
public:
BinaryExpressionAST()
: left_expression(0)
, binary_op_token(0)
, right_expression(0)
{}
virtual BinaryExpressionAST *asBinaryExpression() { return this; }
virtual unsigned firstToken() const;
......@@ -907,6 +1104,13 @@ public:
ExpressionAST *expression;
public:
CastExpressionAST()
: lparen_token(0)
, type_id(0)
, rparen_token(0)
, expression(0)
{}
virtual CastExpressionAST *asCastExpression() { return this; }
virtual unsigned firstToken() const;
......@@ -935,6 +1139,18 @@ public: // annotations
Class *symbol;
public:
ClassSpecifierAST()
: classkey_token(0)
, attribute_list(0)
, name(0)
, colon_token(0)
, base_clause_list(0)
, lbrace_token(0)
, member_specifier_list(0)
, rbrace_token(0)
, symbol(0)
{}
virtual ClassSpecifierAST *asClassSpecifier() { return this; }
virtual unsigned firstToken() const;
......@@ -956,6 +1172,13 @@ public:
StatementAST *statement;
public:
CaseStatementAST()
: case_token(0)
, expression(0)
, colon_token(0)
, statement(0)
{}
virtual CaseStatementAST *asCaseStatement() { return this; }
virtual unsigned firstToken() const;
......@@ -979,6 +1202,13 @@ public: // annotations
Block *symbol;
public:
CompoundStatementAST()
: lbrace_token(0)
, statement_list(0)
, rbrace_token(0)
, symbol(0)
{}
virtual CompoundStatementAST *asCompoundStatement() { return this; }
virtual unsigned firstToken() const;
......@@ -998,6 +1228,11 @@ public:
DeclaratorAST *declarator;
public:
ConditionAST()
: type_specifier_list(0)
, declarator(0)
{}
virtual ConditionAST *asCondition() { return this; }
virtual unsigned firstToken() const;
......@@ -1020,6 +1255,14 @@ public:
ExpressionAST *right_expression;
public:
ConditionalExpressionAST()
: condition(0)
, question_token(0)
, left_expression(0)
, colon_token(0)
, right_expression(0)
{}
virtual ConditionalExpressionAST *asConditionalExpression() { return this; }
virtual unsigned firstToken() const;
......@@ -1044,6 +1287,16 @@ public:
unsigned rparen_token;
public:
CppCastExpressionAST()
: cast_token(0)
, less_token(0)
, type_id(0)
, greater_token(0)
, lparen_token(0)
, expression(0)
, rparen_token(0)
{}
virtual CppCastExpressionAST *asCppCastExpression() { return this; }
virtual unsigned firstToken() const;
......@@ -1063,6 +1316,11 @@ public:
MemInitializerListAST *member_initializer_list;
public:
CtorInitializerAST()
: colon_token(0)
, member_initializer_list(0)
{}
virtual CtorInitializerAST *asCtorInitializer() { return this; }
virtual unsigned firstToken() const;
......@@ -1081,6 +1339,10 @@ public:
DeclarationAST *declaration;
public:
DeclarationStatementAST()
: declaration(0)
{}
virtual DeclarationStatementAST *asDeclarationStatement() { return this; }
virtual unsigned firstToken() const;
......@@ -1099,6 +1361,10 @@ public:
NameAST *name;
public:
DeclaratorIdAST()
: name(0)
{}
virtual DeclaratorIdAST *asDeclaratorId() { return this; }
virtual unsigned firstToken() const;
......@@ -1119,6 +1385,12 @@ public:
unsigned rparen_token;
public:
NestedDeclaratorAST()
: lparen_token(0)
, declarator(0)
, rparen_token(0)
{}
virtual NestedDeclaratorAST *asNestedDeclarator() { return this; }
virtual unsigned firstToken() const;
......@@ -1145,6 +1417,16 @@ public: // annotations
Function *symbol;
public:
FunctionDeclaratorAST()
: lparen_token(0)
, parameters(0)
, rparen_token(0)
, cv_qualifier_list(0)
, exception_specification(0)
, as_cpp_initializer(0)
, symbol(0)
{}
virtual FunctionDeclaratorAST *asFunctionDeclarator() { return this; }
virtual unsigned firstToken() const;
......@@ -1165,6 +1447,12 @@ public:
unsigned rbracket_token;
public:
ArrayDeclaratorAST()
: lbracket_token(0)
, expression(0)
, rbracket_token(0)
{}
virtual ArrayDeclaratorAST *asArrayDeclarator() { return this; }
virtual unsigned firstToken() const;
......@@ -1187,6 +1475,14 @@ public:
ExpressionAST *expression;
public:
DeleteExpressionAST()
: scope_token(0)
, delete_token(0)
, lbracket_token(0)
, rbracket_token(0)
, expression(0)
{}
virtual DeleteExpressionAST *asDeleteExpression() { return this; }
virtual unsigned firstToken() const;
......@@ -1211,6 +1507,16 @@ public:
unsigned semicolon_token;
public:
DoStatementAST()
: do_token(0)
, statement(0)
, while_token(0)
, lparen_token(0)
, expression(0)
, rparen_token(0)
, semicolon_token(0)
{}
virtual DoStatementAST *asDoStatement() { return this; }
virtual unsigned firstToken() const;
......@@ -1229,6 +1535,10 @@ public:
NameAST *name;
public:
NamedTypeSpecifierAST()
: name(0)
{}
virtual NamedTypeSpecifierAST *asNamedTypeSpecifier() { return this; }
virtual unsigned firstToken() const;
......@@ -1248,6 +1558,11 @@ public:
NameAST *name;
public:
ElaboratedTypeSpecifierAST()
: classkey_token(0)
, name(0)
{}
virtual ElaboratedTypeSpecifierAST *asElaboratedTypeSpecifier() { return this; }