1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-04-05 05:32:07 +00:00
parent b2e2842a39
commit 8723964b8e

View file

@ -41,12 +41,12 @@ public class DefinitionFinderTest extends RefactoringTest {
IFile file = project.getFile(fileName);
ICElement element = CCorePlugin.getDefault().getCoreModel().create(file);
if (element instanceof ITranslationUnit) {
IASTTranslationUnit unit = astCache.getAST((ITranslationUnit) element, null);
for (IASTDeclaration declaration : unit.getDeclarations()) {
IASTTranslationUnit ast = astCache.getAST((ITranslationUnit) element, null);
for (IASTDeclaration declaration : ast.getDeclarations()) {
if (declaration instanceof IASTSimpleDeclaration) {
assertNotNull(DefinitionFinder2.getDefinition((IASTSimpleDeclaration) declaration, astCache));
}
}
}
}
}
}