mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Cosmetics.
This commit is contained in:
parent
1012380fa8
commit
60c479677f
2 changed files with 22 additions and 25 deletions
|
@ -21,9 +21,7 @@ import org.eclipse.cdt.core.dom.ast.IASTProblemTypeId;
|
|||
* @author jcamelon
|
||||
*/
|
||||
public class CPPASTProblemTypeId extends CPPASTTypeId implements IASTProblemTypeId {
|
||||
|
||||
private IASTProblem problem;
|
||||
|
||||
|
||||
public CPPASTProblemTypeId() {
|
||||
}
|
||||
|
@ -60,18 +58,18 @@ public class CPPASTProblemTypeId extends CPPASTTypeId implements IASTProblemType
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean accept( ASTVisitor action ){
|
||||
if( action.shouldVisitProblems ){
|
||||
switch( action.visit( getProblem() ) ){
|
||||
case ASTVisitor.PROCESS_ABORT : return false;
|
||||
case ASTVisitor.PROCESS_SKIP : return true;
|
||||
default : break;
|
||||
@Override
|
||||
public final boolean accept (ASTVisitor action) {
|
||||
if (action.shouldVisitProblems) {
|
||||
switch (action.visit(getProblem())) {
|
||||
case ASTVisitor.PROCESS_ABORT: return false;
|
||||
case ASTVisitor.PROCESS_SKIP: return true;
|
||||
default: break;
|
||||
}
|
||||
switch( action.leave( getProblem() ) ){
|
||||
case ASTVisitor.PROCESS_ABORT : return false;
|
||||
case ASTVisitor.PROCESS_SKIP : return true;
|
||||
default : break;
|
||||
switch (action.leave(getProblem())) {
|
||||
case ASTVisitor.PROCESS_ABORT: return false;
|
||||
case ASTVisitor.PROCESS_SKIP: return true;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor;
|
|||
|
||||
public class CPPASTSimpleTypeConstructorExpression extends ASTNode implements
|
||||
ICPPASTSimpleTypeConstructorExpression {
|
||||
|
||||
private ICPPASTDeclSpecifier fDeclSpec;
|
||||
private IASTInitializer fInitializer;
|
||||
private IType fType;
|
||||
|
@ -84,12 +83,12 @@ public class CPPASTSimpleTypeConstructorExpression extends ASTNode implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean accept( ASTVisitor action ){
|
||||
if( action.shouldVisitExpressions ){
|
||||
switch( action.visit( this ) ){
|
||||
case ASTVisitor.PROCESS_ABORT : return false;
|
||||
case ASTVisitor.PROCESS_SKIP : return true;
|
||||
default : break;
|
||||
public boolean accept(ASTVisitor action) {
|
||||
if (action.shouldVisitExpressions) {
|
||||
switch (action.visit(this)) {
|
||||
case ASTVisitor.PROCESS_ABORT: return false;
|
||||
case ASTVisitor.PROCESS_SKIP: return true;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,11 +98,11 @@ public class CPPASTSimpleTypeConstructorExpression extends ASTNode implements
|
|||
if (fInitializer != null && !fInitializer.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.shouldVisitExpressions) {
|
||||
switch (action.leave(this)) {
|
||||
case ASTVisitor.PROCESS_ABORT: return false;
|
||||
case ASTVisitor.PROCESS_SKIP: return true;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue