x/tools/gopls/internal/analysis/modernize: mapsloop loses commentary #72958
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
BugReport
Issues describing a possible bug in the Go implementation.
gopls/imports
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Refactoring
Issues related to refactoring tools
Milestone
The mapsloop transformation discards comments:
Until recently,
minmax
used to do the same (#72727). We should apply a similar fix, here and anywhere else that discards a block.The text was updated successfully, but these errors were encountered: