Add test for withCommentsVisitor to test which comments are included and verify they are in source order.
Fix comment visitor to visit in source order.
Update documentation for withCommentsVisitor and withSimpleCommentsVisitor to note that they do not visit doc comments for functions, types, and type aliases.
Very nice improvements! I'll be touching it a tiny bit (and solving the docs.json conflict). I'll close the PR because it's a bit hard to push changes to the branch myself, but your commits will make it in :)
withCommentsVisitor
to test which comments are included and verify they are in source order.withCommentsVisitor
andwithSimpleCommentsVisitor
to note that they do not visit doc comments for functions, types, and type aliases.