def pend_more

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

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

360# one more line of a pending header; a def's ends at the line that ends in `:`
361def pend_more(
362  kk: ItemKind,
363  nm: String,
364  ll: U32,
365  dd: String,
366  sig: List<&2, String>,
367  text: String,
368  nn: U32,
369  out: List<&2, Item>
370) -> St:
371  match kk:
372    case IDef{}:
373      pend_more.def(nm, ll, dd, sig, text, nn, out)
374    case other:
375      St{Pending{kk, nm, ll, dd, text <> sig}, (nn + 1 : U32), [], out}

Uses (9)

Used by (2)