mirror of
https://github.com/golang/go
synced 2024-11-18 21:05:02 -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> |
||
---|---|---|
.. | ||
apidiff | ||
fastwalk | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
module | ||
semver | ||
span | ||
telemetry | ||
testenv | ||
tool | ||
xcontext |