def pattern
import bolt@1.27.0.0/src/rules/tokens.bend as Tokensimport Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
97# a case statement's pattern (its tokens after `case`, the colon and an
98# inline body included)
99def pattern(kids: Tree.Node) -> Tree.Node:
100 match kids:
101 case Tree.NCons{h, rest}:
102 rest
103 case other:
104 other