commit | dc16b66866f162ba54d3dddf5358df8e86d25dca | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Thu Dec 19 17:29:35 2019 -0800 |
committer | Alan Donovan <adonovan@google.com> | Wed Jan 22 04:22:41 2020 +0000 |
tree | 56d152f032162c499f0f6f6eedf79482f3ffbd4d | |
parent | f88bd70502673c183446a9f155e6ad648ccf528f [diff] |
go/ast/inspector: fix misnomer in callback signature Invert callback return value name from "prune" to "proceed". As documented, returning true from the callback causes Nodes and WithStack to continue searching children, not to prune. Change-Id: I4c10b0edfec507dcf947d47076e537ffa7f1a3f5 Reviewed-on: https://go-review.googlesource.com/c/tools/+/212222 Run-TryBot: Muir Manders <muir@mnd.rs> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
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 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.