go/ast, go/parser: parse doc/comment for stmt
#62646
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
background
I'd like to analysis the go source code by go parse and get important info represented by File.
But I find that the info of doc/comment will not assign to Stmt.
proposal
I propose change
Stmt
fromto
demo
Code like below:
will parse and get

FuncDecl
like thatThe text was updated successfully, but these errors were encountered: