mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Bug 370637: Visiting while statements.
This commit is contained in:
parent
6d107cd42e
commit
105de6f15d
1 changed files with 9 additions and 10 deletions
|
@ -118,17 +118,16 @@ public class CPPASTWhileStatement extends ASTNode
|
|||
default: break;
|
||||
}
|
||||
}
|
||||
if (condition != null && !condition.accept(action)) return false;
|
||||
if (condition2 != null && !condition2.accept(action)) return false;
|
||||
if (body != null && !body.accept(action)) return false;
|
||||
if (condition != null && !condition.accept(action))
|
||||
return false;
|
||||
if (condition2 != null && !condition2.accept(action))
|
||||
return false;
|
||||
if (body != null && !body.accept(action))
|
||||
return false;
|
||||
|
||||
if (action.shouldVisitExpressions) {
|
||||
switch (action.leave(this)) {
|
||||
case ASTVisitor.PROCESS_ABORT: return false;
|
||||
case ASTVisitor.PROCESS_SKIP: return true;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
if (action.shouldVisitStatements && action.leave(this) == ASTVisitor.PROCESS_ABORT)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue