Subject: bug#77727: tsx-ts-mode: fill-paragraph doesn't work for doc-comments

From: Konstantin Kharlamov <[email-masked]>
Date: Fri, 11 Apr 2025 11:34:38 +0300

CC: Yuan Fu as the author of the code in question.

What happens in the code makes sense: since the comment resides at top-
level, the parent of any top-level statement (returned by (treesit-
node-parent node)) is, well, beginning of a buffer.

So the question is, why the check works that way.