def what

bolt@1.27.0.0 · src/rules/style/doc.bend:35

import bolt@1.27.0.0/src/rules/style/doc.bend as Doc
import Base
import bolt@1.27.0.0/src/syntax/outline.bend as Outline

35# an item's kind, for the message
36def what(kk: Outline.ItemKind) -> String:
37  match kk:
38    case Outline.IType{}:
39      "Type"
40    case Outline.ILaw{}:
41      "Law"
42    case other:
43      "Def"

Uses (2)

Used by (1)