turn unnamed enum into enum class Bar

but why doesn't it directly use BarLineType instead?