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;
|
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 {
|
public class CPPASTIfStatement extends ASTNode implements ICPPASTIfStatement, IASTAmbiguityParent {
|
||||||
|
|
||||||
private IASTExpression condition;
|
private IASTExpression condition;
|
||||||
private IASTStatement thenClause;
|
private IASTStatement thenClause;
|
||||||
private IASTStatement elseClause;
|
private IASTStatement elseClause;
|
||||||
private IASTDeclaration condDecl;
|
private IASTDeclaration condDecl;
|
||||||
private IScope scope;
|
private IScope scope;
|
||||||
|
|
||||||
|
|
||||||
public CPPASTIfStatement() {
|
public CPPASTIfStatement() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +117,7 @@ public class CPPASTIfStatement extends ASTNode implements ICPPASTIfStatement, IA
|
||||||
public boolean accept(ASTVisitor action) {
|
public boolean accept(ASTVisitor action) {
|
||||||
N stack= null;
|
N stack= null;
|
||||||
ICPPASTIfStatement stmt= this;
|
ICPPASTIfStatement stmt= this;
|
||||||
loop: for(;;) {
|
loop: for (;;) {
|
||||||
if (action.shouldVisitStatements) {
|
if (action.shouldVisitStatements) {
|
||||||
switch (action.visit(stmt)) {
|
switch (action.visit(stmt)) {
|
||||||
case ASTVisitor.PROCESS_ABORT: return false;
|
case ASTVisitor.PROCESS_ABORT: return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue