def note_for
import bolt@1.27.0.0/src/syntax/bind.bend as Bindimport Base
832# a declaration carries its own note; anything else shows the line that
833# bound it, which `text` gives only when it is asked for
834def note_for(kind: BindKind, +note: String, text: Unit -> String) -> String:
835 match kind:
836 case KParam{}:
837 note
838 case KField{}:
839 note
840 case KTypeParam{}:
841 note
842 case other:
843 text(Unit{})