def check.end_or
import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrapimport Base
288# `)` at the top of the list ends it; a nested one is just a paren
289def check.end_or(flat: Bool, rest: Act) -> Act:
290 match flat:
291 case True{}:
292 AEnd{}
293 case False{}:
294 rest