mirror of
https://github.com/golang/go
synced 2024-11-18 20:14:43 -07:00
5a103c92be
ApplyFixes is only used by gopls, which cares a lot about files with syntax errors, and not at all about files that aren't structurally valid. Use the standard ParseFile function instead of goimports' weird one. Adding a test is impractical because it seems to break type checking of whatever package it's in. Fixes golang/go#35915. Change-Id: Iaf0e331978415428a422d942a1e0c5f6e66dc8a1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/209579 Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
testdata/mod | ||
fix_test.go | ||
fix.go | ||
imports_test.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
mod_112_test.go | ||
mod_114_test.go | ||
mod_cache_test.go | ||
mod_cache.go | ||
mod_pre114_test.go | ||
mod_test.go | ||
mod.go | ||
proxy_112_test.go | ||
proxy_113_test.go | ||
sortimports.go | ||
zstdlib.go |