1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Restored the original statement ordering.

This commit is contained in:
Sergey Prigogin 2011-04-13 21:50:55 +00:00
parent 57d4081355
commit db23381d3e

View file

@ -391,10 +391,10 @@ public final class ASTProvider {
* <code>false</code> otherwise.
*/
private boolean prepareForUsingCache(ITranslationUnit tu, WAIT_FLAG waitFlag) {
final boolean isActive= fCache.isActiveElement(tu);
if (!tu.isOpen())
return false;
final boolean isActive= fCache.isActiveElement(tu);
if (waitFlag == WAIT_ACTIVE_ONLY && !isActive) {
return false;
}