def colon
import bolt@1.27.0.0/src/rules/suspicious/unused.bend as Unusedimport Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
35# is the node a `:` leaf?
36def colon(nn: Tree.Node) -> Bool:
37 match nn:
38 case Tree.Leaf{Lex.Tok{k, _t, _l, _c}}:
39 colon.kind(k)
40 case other:
41 False{}