src/language-js/comments.js/hasLeadingComment
function hasLeadingComment(node, fn = () => true) {
  if (node.leadingComments) {
    return node.leadingComments.some(fn);
  }
  if (node.comments) {
    return node.comments.some((comment) => comment.leading && fn(comment));
  }
  return false;
}