Qt Creator 日本語化プロジェクトのgitリポジトリです。git://labs.trolltech.com/creator をcloneしてひとまず1.0.0-jpブランチを作成して作業していきます。
修订版 | 083ea37eb0f44c31f2ecc1011a3a0c99f0c94971 (tree) |
---|---|
时间 | 2009-10-13 21:49:12 |
作者 | Roberto Raggi <roberto.raggi@noki...> |
Commiter | con |
Rename the given enumerator.
(cherry picked from commit c33a8e94981f6b1acf2b11aaf04c3e86f6ceea12)
@@ -168,10 +168,10 @@ protected: | ||
168 | 168 | |
169 | 169 | bool isDeclSymbol(Symbol *symbol) const |
170 | 170 | { |
171 | - if (! symbol) | |
171 | + if (! symbol) { | |
172 | 172 | return false; |
173 | 173 | |
174 | - else if (symbol == _declSymbol) { | |
174 | + } else if (symbol == _declSymbol) { | |
175 | 175 | return true; |
176 | 176 | |
177 | 177 | } else if (symbol->line() == _declSymbol->line() && symbol->column() == _declSymbol->column()) { |
@@ -349,6 +349,20 @@ protected: | ||
349 | 349 | return false; |
350 | 350 | } |
351 | 351 | |
352 | + virtual bool visit(EnumeratorAST *ast) | |
353 | + { | |
354 | + Identifier *id = identifier(ast->identifier_token); | |
355 | + if (id == _id) { | |
356 | + LookupContext context = currentContext(ast); | |
357 | + const QList<Symbol *> candidates = context.resolve(control()->nameId(id)); | |
358 | + reportResult(ast->identifier_token, candidates); | |
359 | + } | |
360 | + | |
361 | + accept(ast->expression); | |
362 | + | |
363 | + return false; | |
364 | + } | |
365 | + | |
352 | 366 | virtual bool visit(SimpleNameAST *ast) |
353 | 367 | { |
354 | 368 | Identifier *id = identifier(ast->identifier_token); |