mirror of
https://github.com/golang/go.git
synced 2025-11-07 20:21:01 +00:00
cmd/compile: update documentation for ONAME node with nil Func
After CL 436435 chain, the only case left where we create an ONAME node with nil Func is interface method from imported package. Change-Id: I9d9144916d01712283f2b116973f88965715fea3 Reviewed-on: https://go-review.googlesource.com/c/go/+/468816 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
parent
454198ab94
commit
ab86d29bb5
3 changed files with 5 additions and 7 deletions
|
|
@ -563,8 +563,7 @@ func (n *SelectorExpr) FuncName() *Name {
|
|||
if n.Selection.Nname != nil {
|
||||
// TODO(austin): Nname is nil for interface method
|
||||
// expressions (I.M), so we can't attach a Func to
|
||||
// those here. reflectdata.methodWrapper generates the
|
||||
// Func.
|
||||
// those here.
|
||||
fn.Func = n.Selection.Nname.(*Name).Func
|
||||
}
|
||||
return fn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue