Lex.refine_name: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/syntax/lex.bend as Lex Lines 258-263 of bolt@1.27.0.0/src/syntax/lex.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&start_line=258&end_line=263 import Base # a whole name's kind def refine_name(+tt: String) -> TokKind: Bool.pick(TokKind, is_keyword(tt), TKey{}, Bool.pick(TokKind, String.contains(tt, "."), TDotted{}, Bool.pick(TokKind, String.eq(tt, "_"), TWild{}, Bool.pick(TokKind, upper_first(String.to_list(tt)), TUpper{}, TName{})))) Uses (8): 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.contains https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_list https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=TokKind https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=is_keyword https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=upper_first