def ctors

bolt@1.27.0.0 · src/rules/digest.bend:150

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

150# the names of the constructors the items open with: a type's, since the
151# outline lists them right after it
152def ctors(items: List<&2, Outline.Item>) -> List<&2, String>:
153  match items:
154    case Con{Outline.Item{Outline.ICtor{}, name, line, sig, doc, path}, rest}:
155      name <> ctors(rest)
156    case other:
157      Nil{}

Uses (4)

Used by (1)