def ends

bolt@1.27.0.0 · src/rules/style/transcong.bend:59

import bolt@1.27.0.0/src/rules/style/transcong.bend as Transcong
import 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{}

Uses (3)

Used by (1)