def check.place_loose

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

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

837# the return type off the `)` line, as a finding
838def check.place_loose(
839  mm: Maybe<&2, Span>,
840  +base: U32,
841  +path: String,
842  +more: List<&2, F.Finding>
843) -> List<&2, F.Finding>:
844  match mm:
845    case None{}:
846      more
847    case Some{Span{+line, _end, +col}}:
848      F.Finding{path, (base + line : U32), col, 0, "wrap",
849        "The return type is not on the `)` line; write `) -> T` on one line."}
850        <> more

Uses (7)

Used by (1)