x/tools/godoc: does not print comments accompanying variable literals #29775
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Take the following example code:
…and render it using godoc:
You’ll see:
I.e., the comments are not printed.
I’m guessing this is a consequence of
go/ast
’s comment handling being tricky. I tried taking a stab at it, but couldn’t get very far, so I figured I’d file a bug and see if someone more familiar with the code can advise what needs to be done here.The text was updated successfully, but these errors were encountered: