replace use of unnamed enum with BarLineType