mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fix for 163330 by Emanuel Graf, visiting ICPPASTVisibilityLabel.
This commit is contained in:
parent
4b8aaf5b23
commit
997f1ba70e
1 changed files with 21 additions and 0 deletions
|
@ -36,6 +36,27 @@ public class CPPASTVisibilityLabel extends CPPASTNode implements
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean accept( ASTVisitor action ){
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue