mirror of
https://github.com/golang/go
synced 2024-11-18 12:54:44 -07:00
2ad651e9e2
The importPrefix logic is complicated by Windows line endings, since go/ast isn't aware of different line endings in comment text. I made a few changes to the way that import prefixes are computed to handle this. Specifically, for comments, we try to make sure the range ends on a full line as much as possible, because that addresses the line ending issue. Fixes golang/go#40355 Change-Id: I84c1cfa0d0bae532e52ed181e8a5383157feef24 Reviewed-on: https://go-review.googlesource.com/c/tools/+/244897 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
analysisinternal | ||
apidiff | ||
event | ||
fakenet | ||
fastwalk | ||
gocommand | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
packagesinternal | ||
proxydir | ||
span | ||
stack | ||
testenv | ||
tool | ||
typesinternal | ||
xcontext |