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

Fixed Bug 84092 - 2 problems with enum, getReferences and null node

This commit is contained in:
John Camelon 2005-02-01 04:20:11 +00:00
parent e4e8d7c6d4
commit 88562cda49

View file

@ -1489,7 +1489,8 @@ public class CVisitor {
} else if( statement instanceof IASTLabelStatement ){
if( !visitName( ((IASTLabelStatement)statement).getName(), action ) ) return false;
} else if( statement instanceof IASTReturnStatement ){
if( !visitExpression( ((IASTReturnStatement) statement ).getReturnValue(), action ) ) return false;
if( ((IASTReturnStatement) statement ).getReturnValue() != null )
if( !visitExpression( ((IASTReturnStatement) statement ).getReturnValue(), action ) ) return false;
} else if( statement instanceof IASTSwitchStatement ){
if( !visitExpression( ((IASTSwitchStatement) statement ).getController(), action ) ) return false;
if( !visitStatement( ((IASTSwitchStatement) statement ).getBody(), action ) ) return false;