Commit 083ea37eb0f44c31f2ecc1011a3a0c99f0c94971
| |   |
| 168 | 168 | |
| 169 | 169 | bool isDeclSymbol(Symbol *symbol) const |
| 170 | 170 | { |
| if (! symbol) |
| if (! symbol) { |
| 172 | 172 | return false; |
| 173 | 173 | |
| else if (symbol == _declSymbol) { |
| } else if (symbol == _declSymbol) { |
| 175 | 175 | return true; |
| 176 | 176 | |
| 177 | 177 | } else if (symbol->line() == _declSymbol->line() && symbol->column() == _declSymbol->column()) { |
| … | … | |
| 345 | 345 | if (identifier_token && identifier(identifier_token) == _id) |
| 346 | 346 | checkExpression(ast->firstToken(), identifier_token); |
| 347 | 347 | } |
|
| return false; |
| } |
|
| virtual bool visit(EnumeratorAST *ast) |
| { |
| Identifier *id = identifier(ast->identifier_token); |
| if (id == _id) { |
| LookupContext context = currentContext(ast); |
| const QList<Symbol *> candidates = context.resolve(control()->nameId(id)); |
| reportResult(ast->identifier_token, candidates); |
| } |
|
| accept(ast->expression); |
| 348 | 362 | |
| 349 | 363 | return false; |
| 350 | 364 | } |