x/tools/astutil: strange comment placement with AddNamedImport #30724
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
Using
00c44ba9c14f88ffdd4fb5bfae57fe8dd6d6afb1
Consider the following snippet:
This currently outputs:
Notice how the next comment group
X comment
is attached to the import block? It seems that this only occurs if an inline comment occurs on the package statement.I expect this to output:
The text was updated successfully, but these errors were encountered: