mirror of https://github.com/golang/go.git
This change replaces various uses of FileSet with either nothing (when the parameter wasn't really needed) or token.File. Notably, astutil.Imports was being used to extract the imports of a file (available at ast.File.Imports), forcing a number of wrappers to have a FileSet parameter. Also, simplify various expressions file.Position().Line to file.Line(). Change-Id: I19fe86a18aba50352275f77ed737513744d3930c Reviewed-on: https://go-review.googlesource.com/c/tools/+/410366 Run-TryBot: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> |
||
|---|---|---|
| .. | ||
| analysis.go | ||