src/language-js/comments.js/hasLeadingComment
function hasLeadingComment(node, fn = () => true) {
  if (node.leadingComments) {
    return node.leadingComments.some(fn);
  }
  return hasComment(node, CommentCheckFlags.Leading, fn);
}