mirror of
https://github.com/golang/go
synced 2024-11-19 06:04:39 -07:00
ef6787d357
When packages.Load'ing cgo packages, the authored files show up in GoFiles, and the generated files show up in CompiledGoFiles. We need the AST and type information for the latter, since they're the only thing we can type check. But we also need the contents (and column mapper) for the authored file so that we can navigate into it. Store GoFiles in package metadata and checked Packages. Parse the extra files, just for their mappers. Refactor the View functions a little bit, since there's only one place that actually needs to find the mapper for a file. Updates golang/go#35720. Change-Id: I9f96872a9a592bf0e11da27ebd8976c6db8752c9 Reviewed-on: https://go-review.googlesource.com/c/tools/+/208502 Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Ian Cottrell <iancottrell@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
analysis.go | ||
builtin.go | ||
cache.go | ||
check.go | ||
error_test.go | ||
errors.go | ||
external.go | ||
file.go | ||
load.go | ||
parse.go | ||
pkg.go | ||
session.go | ||
snapshot.go | ||
view.go | ||
watcher.go |