def cut.is_inline
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
2104# Whether the cut has a body after its colon that is not a comment.
2105def cut.is_inline(c: Cut) -> Bool:
2106 match c:
2107 case Cut{before, Con{x, xs}, True{}}:
2108 Bool.not(is_comment(first(x)))
2109 case _:
2110 False{}