Semantic.of_kind: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/semantic.bend as Semantic Lines 42-63 of bolt@1.27.0.0/src/lsp/semantic.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/semantic.bend&start_line=42&end_line=63 import Base import bolt@1.27.0.0/src/syntax/bind.bend as Bind # the legend's type for a binder of this kind (an item is a type when # capitalized, else a function) def of_kind(kk: Bind.BindKind, +name: String) -> U32: match kk: case Bind.KItem{}: Bool.pick(U32, upper_first(String.to_list(name)), 2, 1) case Bind.KCtor{}: 3 case Bind.KParam{}: 4 case Bind.KLocal{}: 5 case Bind.KPat{}: 5 case Bind.KFor{}: 5 case Bind.KField{}: 6 case Bind.KTypeParam{}: 10 case Bind.KTypeVar{}: 10 Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_list https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/semantic.bend&name=upper_first https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&name=BindKind