Move alt label analysis to Grammar
Update ListenerFile and VisitorFile to support the baseContext rule option