def cut.is_inline

bend-lint-rules@0.2.0.0 · layout/format.bend:2104

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import 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{}

Uses (6)

Used by (1)