()
| 31 | } |
| 32 | |
| 33 | function* WeekdaysParser() { |
| 34 | let repeats = false; |
| 35 | |
| 36 | const weekdays = new Set<Weekday>(); |
| 37 | |
| 38 | let result: { weekday: Weekday, repeats: boolean }; |
| 39 | result = yield WeekdayParser; |
| 40 | |
| 41 | weekdays.add(result.weekday); |
| 42 | repeats = repeats || result.repeats; |
| 43 | |
| 44 | while (result = yield optional(AnotherWeekdayParser)) { |
| 45 | weekdays.add(result.weekday); |
| 46 | repeats = repeats || result.repeats; |
| 47 | } |
| 48 | |
| 49 | return { weekdays, repeats }; |
| 50 | } |
| 51 | |
| 52 | function* MinutesSuffixParser() { |
| 53 | yield ':'; |
nothing calls this directly
no test coverage detected