commit | 02eab57fcf07c5dffe3a7f31258e1da0bddc02b5 | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Mon Sep 17 10:16:20 2018 -0400 |
committer | Alan Donovan <adonovan@google.com> | Mon Sep 17 22:04:51 2018 +0000 |
tree | f0d29d04f3dc7fedb6e8c79d977d9cbe0c4edc87 | |
parent | 677d2ff680c188ddb7dcd2bfa6bc7d3f2f2f75b2 [diff] |
go/types/typeutil: add StaticCallee helper function StaticCallee reports the destination of a CallExpr, if it is a static call to a Go function or method. StaticCallee is not a complicated function, but I wrote it four times during the course of prototyping the analysis API in go-review.googlesource.com/c/tools/+/134935. Change-Id: Icd26fc1e5f6ed9edebd4d0a00fdf18aa0acb074c Reviewed-on: https://go-review.googlesource.com/135676 Reviewed-by: Robert Griesemer <gri@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 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.