def has_head_comment

bend-lint-rules@0.2.0.0 · layout/format.bend:1639

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import 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{}

Uses (5)

Used by (1)