mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
ead2883d1c
commit
3cf16d06a7
1 changed files with 3 additions and 5 deletions
|
@ -23,17 +23,15 @@ import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
|
|||
import org.eclipse.cdt.internal.core.dom.parser.IASTAmbiguityParent;
|
||||
|
||||
/**
|
||||
* If statement in c++
|
||||
* If statement in C++
|
||||
*/
|
||||
public class CPPASTIfStatement extends ASTNode implements ICPPASTIfStatement, IASTAmbiguityParent {
|
||||
|
||||
private IASTExpression condition;
|
||||
private IASTStatement thenClause;
|
||||
private IASTStatement elseClause;
|
||||
private IASTDeclaration condDecl;
|
||||
private IScope scope;
|
||||
|
||||
|
||||
public CPPASTIfStatement() {
|
||||
}
|
||||
|
||||
|
@ -119,10 +117,10 @@ public class CPPASTIfStatement extends ASTNode implements ICPPASTIfStatement, IA
|
|||
public boolean accept(ASTVisitor action) {
|
||||
N stack= null;
|
||||
ICPPASTIfStatement stmt= this;
|
||||
loop: for(;;) {
|
||||
loop: for (;;) {
|
||||
if (action.shouldVisitStatements) {
|
||||
switch (action.visit(stmt)) {
|
||||
case ASTVisitor.PROCESS_ABORT: return false;
|
||||
case ASTVisitor.PROCESS_ABORT: return false;
|
||||
case ASTVisitor.PROCESS_SKIP:
|
||||
stmt= null;
|
||||
break loop;
|
||||
|
|
Loading…
Add table
Reference in a new issue