def check.act_shut
import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrapimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
354# right after the list's `)`, a `->`, or the `:` of a header with no return
355# type (a def that fills a law), or anything else
356def check.act_shut(
357 +kk: Lex.TokKind,
358 _tx: String,
359 _glued: Bool,
360 _paren: U32,
361 _angle: U32,
362 _brace: U32,
363 _bracket: U32
364) -> Act:
365 Bool.pick(Act, Bool.or(check.is_arrow(kk), check.is_colon(kk)), AArrow{}, AStray{})