go/ast: optionally save comments #29821
Labels
FeatureRequest
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
go/ast doesn't save comments in the tree when a file is parsed, (they are kept in the field
*ast.File.Comments
). This causes problems for functions likeastutil.PathEnclosingInterval
and forces comments to be special cased in the LSP completions package (context: #29780).The text was updated successfully, but these errors were encountered: