Support parsing const enums.