}
@Override
protected void visit(final Return node, Object data)
{
HaxeType type = node.getHaxeType();
Function function = node.getFunction();
HaxeType funType = function == null
? TypeUtils.getVoid() : function.getHaxeType();
if (!TypeUtils.isAvailableAssignement(funType, type))
{
ErrorPublisher.commitCastError(node, funType);
}