def needs

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

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

19# does an item of this kind need a comment?
20def needs(kk: Outline.ItemKind) -> Bool:
21  match kk:
22    case Outline.IDef{}:
23      True{}
24    case Outline.IType{}:
25      True{}
26    case Outline.ILaw{}:
27      True{}
28    case other:
29      False{}

Uses (2)

Used by (1)