You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to get comment for argument from it's func declaration, but ast.Field.Comment and ast.Field.Doc have nil values. Also, I tried the same for struct fields and comments there are exist.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Hi,
I tried to get comment for argument from it's func declaration, but
ast.Field.Comment
andast.Field.Doc
have nil values. Also, I tried the same for struct fields and comments there are exist.Output
What did you expect to see?
ast.Field.Doc
for func argument should contain comment if it exists in source.What did you see instead?
Empty
ast.Field.Doc
andast.Field.Comment
for existed comments in source.The text was updated successfully, but these errors were encountered: