How would they know who someone was voting for?
Voting location is same for Dems and Pubs.
For a Primary, each party has a separate ballot.
For a General, one ballot for all.