1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Fix for 163330 by Emanuel Graf, visiting ICPPASTVisibilityLabel.

This commit is contained in:
Markus Schorn 2007-05-09 15:05:00 +00:00
parent 4b8aaf5b23
commit 997f1ba70e

View file

@ -36,6 +36,27 @@ public class CPPASTVisibilityLabel extends CPPASTNode implements
}
public boolean accept( ASTVisitor action ){
if (action.shouldVisitDeclarations) {
switch (action.visit(this)) {
case ASTVisitor.PROCESS_ABORT:
return false;
case ASTVisitor.PROCESS_SKIP:
return true;
default:
break;
}
}
if (action.shouldVisitDeclarations) {
switch (action.leave(this)) {
case ASTVisitor.PROCESS_ABORT:
return false;
case ASTVisitor.PROCESS_SKIP:
return true;
default:
break;
}
}
return true;
}
}