diff options
author | Robert Griesemer <gri@golang.org> | 2020-01-30 20:13:02 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-01-31 14:46:05 +0000 |
commit | 6e592c2b6d3d32f0eb1211a3795e852627c7a086 (patch) | |
tree | 2c2b17e9bec1f2e87f9738af1e23035485c8ad08 /api | |
parent | b7689f5aa38b41c8fbd75d64aa463b898c81fca5 (diff) | |
download | go-6e592c2b6d3d32f0eb1211a3795e852627c7a086.tar.gz go-6e592c2b6d3d32f0eb1211a3795e852627c7a086.zip |
go/types: unexport Checker.LookupFieldOrMethod
Implementation changes in go/types for #6977 required that internal
LookupFieldOrMethod calls had access to the current *Checker. In
order to make quick progress, I added a *Checker receiver to the
function LookupFieldOrMethod (thus making it a method), and added
a new function LookupFieldOrMethod. The plan was always to rename
that function (Checker.LookupFieldOrMethod) such that it wouldn't
be exported; with the obvious name being Checker.lookupFieldOrMethod.
But that name was already in use which is why I postponed the rename.
Eventually I forgot to clean it up. This CL fixes that with the
following renames:
Checker.lookupFieldOrMethod => Checker.rawLookupFieldOrMethod
Checker.LookupFieldOrMethod => Checker.lookupFieldOrMethod
Updates #6977.
Fixes #36916.
Change-Id: Icfafd0de9a19841ba5bd87142730fe7323204491
Reviewed-on: https://go-review.googlesource.com/c/go/+/217134
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'api')
-rw-r--r-- | api/go1.14.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/api/go1.14.txt b/api/go1.14.txt index af962ec0ab..3af0fee3b4 100644 --- a/api/go1.14.txt +++ b/api/go1.14.txt @@ -150,7 +150,6 @@ pkg go/doc, type Example struct, Suffix string pkg go/doc, type Func struct, Examples []*Example pkg go/doc, type Package struct, Examples []*Example pkg go/doc, type Type struct, Examples []*Example -pkg go/types, method (*Checker) LookupFieldOrMethod(Type, bool, *Package, string) (Object, []int, bool) pkg hash/maphash, func MakeSeed() Seed pkg hash/maphash, method (*Hash) BlockSize() int pkg hash/maphash, method (*Hash) Reset() |