Cleanup Postfix operators.

This commit is contained in:
Roberto Raggi
2009-11-10 14:24:32 +01:00
parent aff9a74366
commit a7219736b6
9 changed files with 24 additions and 25 deletions

View File

@@ -318,10 +318,11 @@ protected:
virtual bool visit(PostfixExpressionAST *ast)
{
accept(ast->base_expression);
for (PostfixAST *it = ast->postfix_expressions; it; it = it->next) {
if (it->asMemberAccess() != 0)
for (PostfixListAST *it = ast->postfix_expressions; it; it = it->next) {
PostfixAST *fx = it->value;
if (fx->asMemberAccess() != 0)
continue; // skip members
accept(it);
accept(fx);
}
return false;
}