1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 23:35:48 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-04-04 04:39:11 +00:00
parent 1012380fa8
commit 60c479677f
2 changed files with 22 additions and 25 deletions

View file

@ -21,9 +21,7 @@ import org.eclipse.cdt.core.dom.ast.IASTProblemTypeId;
* @author jcamelon * @author jcamelon
*/ */
public class CPPASTProblemTypeId extends CPPASTTypeId implements IASTProblemTypeId { public class CPPASTProblemTypeId extends CPPASTTypeId implements IASTProblemTypeId {
private IASTProblem problem; private IASTProblem problem;
public CPPASTProblemTypeId() { public CPPASTProblemTypeId() {
} }
@ -60,18 +58,18 @@ public class CPPASTProblemTypeId extends CPPASTTypeId implements IASTProblemType
} }
} }
@Override @Override
public final boolean accept( ASTVisitor action ){ public final boolean accept (ASTVisitor action) {
if( action.shouldVisitProblems ){ if (action.shouldVisitProblems) {
switch( action.visit( getProblem() ) ){ switch (action.visit(getProblem())) {
case ASTVisitor.PROCESS_ABORT : return false; case ASTVisitor.PROCESS_ABORT: return false;
case ASTVisitor.PROCESS_SKIP : return true; case ASTVisitor.PROCESS_SKIP: return true;
default : break; default: break;
} }
switch( action.leave( getProblem() ) ){ switch (action.leave(getProblem())) {
case ASTVisitor.PROCESS_ABORT : return false; case ASTVisitor.PROCESS_ABORT: return false;
case ASTVisitor.PROCESS_SKIP : return true; case ASTVisitor.PROCESS_SKIP: return true;
default : break; default: break;
} }
} }
return true; return true;

View file

@ -25,7 +25,6 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor;
public class CPPASTSimpleTypeConstructorExpression extends ASTNode implements public class CPPASTSimpleTypeConstructorExpression extends ASTNode implements
ICPPASTSimpleTypeConstructorExpression { ICPPASTSimpleTypeConstructorExpression {
private ICPPASTDeclSpecifier fDeclSpec; private ICPPASTDeclSpecifier fDeclSpec;
private IASTInitializer fInitializer; private IASTInitializer fInitializer;
private IType fType; private IType fType;
@ -84,12 +83,12 @@ public class CPPASTSimpleTypeConstructorExpression extends ASTNode implements
} }
@Override @Override
public boolean accept( ASTVisitor action ){ public boolean accept(ASTVisitor action) {
if( action.shouldVisitExpressions ){ if (action.shouldVisitExpressions) {
switch( action.visit( this ) ){ switch (action.visit(this)) {
case ASTVisitor.PROCESS_ABORT : return false; case ASTVisitor.PROCESS_ABORT: return false;
case ASTVisitor.PROCESS_SKIP : return true; case ASTVisitor.PROCESS_SKIP: return true;
default : break; default: break;
} }
} }
@ -99,11 +98,11 @@ public class CPPASTSimpleTypeConstructorExpression extends ASTNode implements
if (fInitializer != null && !fInitializer.accept(action)) if (fInitializer != null && !fInitializer.accept(action))
return false; return false;
if( action.shouldVisitExpressions ){ if (action.shouldVisitExpressions) {
switch( action.leave( this ) ){ switch (action.leave(this)) {
case ASTVisitor.PROCESS_ABORT : return false; case ASTVisitor.PROCESS_ABORT: return false;
case ASTVisitor.PROCESS_SKIP : return true; case ASTVisitor.PROCESS_SKIP: return true;
default : break; default: break;
} }
} }
return true; return true;