forked from qt-creator/qt-creator
Introduced IdExpressionAST.
This commit is contained in:
@@ -136,6 +136,12 @@ void ResolveExpression::addResult(const FullySpecifiedType &ty, Scope *scope)
|
||||
_results.append(item);
|
||||
}
|
||||
|
||||
bool ResolveExpression::visit(IdExpressionAST *ast)
|
||||
{
|
||||
accept(ast->name);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ResolveExpression::visit(BinaryExpressionAST *ast)
|
||||
{
|
||||
if (tokenKind(ast->binary_op_token) == T_COMMA && ast->right_expression && ast->right_expression->asQtMethod() != 0) {
|
||||
|
||||
@@ -71,6 +71,7 @@ protected:
|
||||
|
||||
using ASTVisitor::visit;
|
||||
|
||||
virtual bool visit(IdExpressionAST *ast);
|
||||
virtual bool visit(BinaryExpressionAST *ast);
|
||||
virtual bool visit(CastExpressionAST *ast);
|
||||
virtual bool visit(ConditionAST *ast);
|
||||
|
||||
Reference in New Issue
Block a user