commit | fe5037164af22f8d3c9056e8c3b86acc1973dccf | [log] [tgz] |
---|---|---|
author | Shoshin Nikita <shoshin_nikita@fastmail.com> | Fri Apr 16 12:50:41 2021 +0000 |
committer | Rebecca Stambler <rstambler@golang.org> | Fri Apr 16 18:23:08 2021 +0000 |
tree | 8ef0f5ab7764a84f80078c837eddf25af87db0e5 | |
parent | cb5dc85ca1a7e5a7f2ece11dfedb3577274cbdf1 [diff] |
internal/lsp/source: fix Deref function for cyclic types The previous fix (d1362d7) is not sufficient for all cyclic types. This change updates Deref function to support more complex cases. We use a map with underlying types to detect cycles. Fixes golang/go#45510 Change-Id: I28f655a9c1d4f363cb7ae3f47db3e8567fe6e80a GitHub-Last-Rev: 4c898741c0cf07cb765b759b1edf15e004fc1a0e GitHub-Pull-Request: golang/tools#305 Reviewed-on: https://go-review.googlesource.com/c/tools/+/310311 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Rebecca Stambler <rstambler@golang.org> Trust: Robert Findley <rfindley@google.com> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.