def has_head_comment
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
1639def has_head_comment(xs: List<&2, Tree>) -> Bool:
1640 match xs:
1641 case Con{x, rest}:
1642 is_comment(first(x))
1643 case Nil{}:
1644 False{}