def check.tight

bolt@1.27.0.0 · src/rules/style/wrap.bend:784

import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrap
import Base

784# the last parameter (the head: spans are reversed) runs onto the `)` line
785def check.tight(spans: List<&2, Span>, +close: U32) -> Bool:
786  match spans:
787    case Nil{}:
788      False{}
789    case Con{Span{_line, +end, _col}, _rest}:
790      Bool.not(U32.is_lt(end, close))

Uses (6)

Used by (1)