def pend_more.closed

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

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

331# a def continuation that does or does not end in `:`
332def pend_more.closed(
333  colon: Bool,
334  nm: String,
335  ll: U32,
336  dd: String,
337  sig: List<&2, String>,
338  text: String,
339  nn: U32,
340  out: List<&2, Item>
341) -> St:
342  match colon:
343    case True{}:
344      St{Top{}, (nn + 1 : U32), [], Item{IDef{}, nm, ll, sig_text(text <> sig), dd, ""} <> out}
345    case False{}:
346      St{Pending{IDef{}, nm, ll, dd, text <> sig}, (nn + 1 : U32), [], out}

Uses (10)

Used by (1)