def ends
import bolt@1.27.0.0/src/rules/style/transcong.bend as Transcongimport Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
59# does the chain end here, or go on with a comma?
60def ends(nn: Tree.Node) -> Bool:
61 match nn:
62 case Tree.NCons{h, _t}:
63 comma(h)
64 case _other:
65 True{}