Removed the ExpressionListAST node.

Done with Erik Verbruggen
This commit is contained in:
Roberto Raggi
2009-11-10 11:13:57 +01:00
parent 9e7ff0469b
commit 4089c906fa
11 changed files with 82 additions and 154 deletions

View File

@@ -380,15 +380,8 @@ bool CheckUndefinedSymbols::visit(BaseSpecifierAST *base)
resolvedBaseClassName = true;
}
if (! resolvedBaseClassName) {
const char *token = "after `:'";
if (base->comma_token)
token = "after `,'";
translationUnit()->warning(nameAST->firstToken(),
"expected class-name %s token", token);
}
if (! resolvedBaseClassName)
translationUnit()->warning(nameAST->firstToken(), "expected class-name");
}
return true;

View File

@@ -118,12 +118,6 @@ void ResolveExpression::addResult(const Result &r)
QList<Scope *> ResolveExpression::visibleScopes(const Result &result) const
{ return _context.visibleScopes(result); }
bool ResolveExpression::visit(ExpressionListAST *)
{
// nothing to do.
return false;
}
bool ResolveExpression::visit(BinaryExpressionAST *ast)
{
accept(ast->left_expression);

View File

@@ -72,7 +72,6 @@ protected:
using ASTVisitor::visit;
virtual bool visit(ExpressionListAST *ast);
virtual bool visit(BinaryExpressionAST *ast);
virtual bool visit(CastExpressionAST *ast);
virtual bool visit(ConditionAST *ast);