def colon

bolt@1.27.0.0 · src/rules/suspicious/unused.bend:35

import bolt@1.27.0.0/src/rules/suspicious/unused.bend as Unused
import 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{}

Uses (4)

Used by (1)