x/tools/astutil: use goimports import path to import name heuristic in UsesImport #30331
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
goimports has a sophisticated heuristic to guess a package import name from its import path. We might even eventually enshrine that heuristic in the language (#29036).
astutil.UsesImport uses a much less sophisticated heuristic. We should move the goimports heuristic to somewhere exported (maybe in astutil?) and use it in astutil.UsesImport.
(astutil.UsesImport could also use some expanded docs, but that is another matter.)
cc @heschik
The text was updated successfully, but these errors were encountered: