2 year old is not eating anything

The past few days, my son has been giving me a fit over eating. He started out refusing a few things, and still eating some of his favorites like mac and cheese and oranges. Well today at lunch time, he only had a few bites of an orange, and started freaking out and not wanting more. He tried a few bites of mac and cheese afterwards then started throwing a fit over that too. After that I have not been able to get him to eat anything at all. Like I said, it has been happening over a few days, but today is the first time he won't even try anything at all after the mac and cheese incident. It's now midnight and I haven't been able to get him to eat since around 2pm and I'm worried. I'm at a loss and don't know what to do or what may be wrong. He is autistic and nonverbal as well. Can someone please help?