def kind_name

bolt@1.27.0.0 · src/lsp/proto.bend:127

import bolt@1.27.0.0/src/lsp/proto.bend as Proto
import Base
import bolt@1.27.0.0/src/syntax/bind.bend as Bind

127# what a binder is, in words
128def kind_name(kk: Bind.BindKind) -> String:
129  match kk:
130    case Bind.KItem{}:
131      "item"
132    case Bind.KCtor{}:
133      "constructor"
134    case Bind.KParam{}:
135      "parameter"
136    case Bind.KTypeParam{}:
137      "type parameter"
138    case Bind.KField{}:
139      "field"
140    case Bind.KLocal{}:
141      "local"
142    case Bind.KPat{}:
143      "local"
144    case Bind.KFor{}:
145      "local"
146    case Bind.KTypeVar{}:
147      "type variable"

Uses (2)

Used by (2)