Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2007-01-22 14:44:45 +0000
committerMarkus Schorn2007-01-22 14:44:45 +0000
commit63d92fc55833963a675632ca4e656931a09f08ee (patch)
tree2328ebf557596586def3c9f52932829b2148e786 /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
parentd66c6bfc643e9dce5676a76d0b62af22c33c67c5 (diff)
downloadorg.eclipse.cdt-63d92fc55833963a675632ca4e656931a09f08ee.tar.gz
org.eclipse.cdt-63d92fc55833963a675632ca4e656931a09f08ee.tar.xz
org.eclipse.cdt-63d92fc55833963a675632ca4e656931a09f08ee.zip
Fix for 152846 by Betty Tibbitts, calling ASTVisitor.leave() for cpp
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
index a591ec527b7..d1035a37b3d 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCastExpression.java
@@ -48,6 +48,14 @@ public class CPPASTCastExpression extends CPPASTUnaryExpression implements
if( typeId != null ) if( !typeId.accept( action ) ) return false;
IASTExpression op = getOperand();
if( op != null ) if( !op.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;
+ }
+ }
return true;
}
}

Back to the top