mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: rename Recv->Recvs and Recv0->Recv
Change-Id: Ice3aa807169f4fec85745a3991b1084a9f85c1b5 Reviewed-on: https://go-review.googlesource.com/20499 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
0cff505871
commit
f91b832ab5
15 changed files with 42 additions and 43 deletions
|
|
@ -661,7 +661,7 @@ func funcargs2(t *Type) {
|
|||
}
|
||||
|
||||
if t.Thistuple != 0 {
|
||||
for ft, it := IterFields(t.Recv()); ft != nil; ft = it.Next() {
|
||||
for ft, it := IterFields(t.Recvs()); ft != nil; ft = it.Next() {
|
||||
if ft.Nname == nil || ft.Nname.Sym == nil {
|
||||
continue
|
||||
}
|
||||
|
|
@ -1134,7 +1134,7 @@ func fakethis() *Node {
|
|||
// Those methods have an anonymous *struct{} as the receiver.
|
||||
// (See fakethis above.)
|
||||
func isifacemethod(f *Type) bool {
|
||||
rcvr := f.Recv0()
|
||||
rcvr := f.Recv()
|
||||
if rcvr.Sym != nil {
|
||||
return false
|
||||
}
|
||||
|
|
@ -1165,16 +1165,16 @@ func functype0(t *Type, this *Node, in, out []*Node) {
|
|||
if this != nil {
|
||||
rcvr = []*Node{this}
|
||||
}
|
||||
*t.RecvP() = tofunargs(rcvr)
|
||||
*t.RecvsP() = tofunargs(rcvr)
|
||||
*t.ResultsP() = tofunargs(out)
|
||||
*t.ParamsP() = tofunargs(in)
|
||||
|
||||
uniqgen++
|
||||
checkdupfields(t.Recv().Type, "argument")
|
||||
checkdupfields(t.Recvs().Type, "argument")
|
||||
checkdupfields(t.Results().Type, "argument")
|
||||
checkdupfields(t.Params().Type, "argument")
|
||||
|
||||
if t.Recv().Broke || t.Results().Broke || t.Params().Broke {
|
||||
if t.Recvs().Broke || t.Results().Broke || t.Params().Broke {
|
||||
t.Broke = true
|
||||
}
|
||||
|
||||
|
|
@ -1306,7 +1306,7 @@ func addmethod(sf *Sym, t *Type, local bool, nointerface bool) {
|
|||
}
|
||||
|
||||
// get parent type sym
|
||||
pa := t.Recv0() // ptr to this structure
|
||||
pa := t.Recv() // ptr to this structure
|
||||
if pa == nil {
|
||||
Yyerror("missing receiver")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue