Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/ast/astutil: fix panic in DeleteNamedImport from line directive
DeleteNamedImport used FileSet.Position() where it should have used FileSet.PositionFor(, false) to ignore line directives. There are likely many more of these panics lurking in x/tools. Change-Id: I11fc0ea5301fe873cb679a82e231b1720dbdaef6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/398596 Run-TryBot: Peter Weinberger <pjw@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Trust: Peter Weinberger <pjw@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com>
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters