[PATCH v2 3/6] widl: Move diagnostic and location functions to parser.l.