go/types: what is the new method (*Checker).LookupFieldOrMethod? #36916
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
On tip, there is a new exported method in go/types:
(*Checker).LookupFieldOrMethod
. That method was not in 1.13. The doc comment for this method is (https://tip.golang.org/pkg/go/types/#Checker.LookupFieldOrMethod)I'm not sure what this means. What is "the external version?" I don't think it's the function
LookupFieldOrMethod
, as that just calls this method on anil
*Checker
, so they do the same thing.I checked to see if the method could be renamed to
lookupFieldOrMethod
, butChecker
already has a method with that name.I think this new exported method needs better documentation, and it needs to be mentioned in the release notes. Or, it needs to be unexported.
The method was added for #6977.
The text was updated successfully, but these errors were encountered: