final IASTExpression expr = new ExpressionInfo(castExpression.getExpression(), typeDeclaration, compilationUnitInfo).getExpression();
return f.newCastExpression(operator, typeId, expr);
}
private IASTExpression convertSimleName(final SimpleName simpleName) {
final IBinding binding = simpleName.resolveBinding();
final ITypeBinding typeBinding = simpleName.resolveTypeBinding();
if (binding.getKind() == IBinding.VARIABLE) {
final IVariableBinding variableBinding = (IVariableBinding) binding;
if (variableBinding.isEnumConstant()) {
final ICPPASTQualifiedName qualifiedName = f.newQualifiedName();
qualifiedName.addName(f.newName(typeBinding.getName().toCharArray()));
qualifiedName.addName(new NameInfo(simpleName).getName());