Returns the newly computed type.

This commit is contained in:
Roberto Raggi
2010-08-13 10:08:34 +02:00
parent 62d6a977f7
commit 6b5b9be79c

View File

@@ -209,7 +209,6 @@ FullySpecifiedType Bind::declarator(DeclaratorAST *ast, const FullySpecifiedType
if (! ast)
return type;
std::swap(_declaratorId, declaratorId);
for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) {
type = this->specifier(it->value, type);
@@ -227,7 +226,7 @@ FullySpecifiedType Bind::declarator(DeclaratorAST *ast, const FullySpecifiedType
// unsigned equals_token = ast->equals_token;
ExpressionTy initializer = this->expression(ast->initializer);
std::swap(_declaratorId, declaratorId);
return init;
return type;
}
bool Bind::visit(QtPropertyDeclarationItemAST *ast)