Even should a referendum result in a decision to leave the EU, to do so would require an Act of Parliament.