if (selector.getLocationInParent() == SwitchCase.EXPRESSION_PROPERTY) { ITypeBinding binding= ((SwitchStatement) selector.getParent().getParent()).getExpression().resolveTypeBinding(); if (binding != null && binding.isEnum()) { return getEnumContants(binding); } }
	public IBinding[] getDeclarationsInScope(SimpleName selector, int flags) {		try {			ITypeBinding parentTypeBinding= Bindings.getBindingOfParentType(selector);						ITypeBinding binding= getQualifier(selector);			if (binding == null) {				addLocalDeclarations(selector, flags);				addTypeDeclarations(parentTypeBinding, flags);			} else {				addInherited(binding, flags);			}						if (hasFlag(CHECK_VISIBILITY, flags)) {				filterNonVisible(parentTypeBinding);			}			return (IBinding[]) fRequestor.toArray(new IBinding[fRequestor.size()]);		} finally {			clearLists();					}	}		