def stray

bolt@1.27.0.0 · src/syntax/outline.bend:388

import bolt@1.27.0.0/src/syntax/outline.bend as Outline
import Base

388# a column-0 line that starts nothing: `) -> T:` closing a def's header that
389# broke across lines; anywhere else it is junk, and ends what was pending
390def stray(+mode: Mode, text: String, +nn: U32, +out: List<&2, Item>) -> St:
391  match mode:
392    case Pending{IDef{}, nm, l, d, sig}:
393      pend_more(IDef{}, nm, l, d, sig, text, nn, out)
394    case m:
395      St{Top{}, (nn + 1 : U32), [], flush(m, out)}

Uses (10)

Used by (1)