]> Cypherpunks repositories - gostls13.git/commit
go/types: split out function instantiation from index expr
authorRob Findley <rfindley@google.com>
Tue, 27 Apr 2021 20:54:58 +0000 (16:54 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 28 Apr 2021 17:11:15 +0000 (17:11 +0000)
commitf893f35d9f7acc3bad32efeac693a44849b5e895
tree8c1b402987af957765408578fe8f0dced6384031
parent5b328c4a2fbae10ec10d233d691435fe0295fc39
go/types: split out function instantiation from index expr

This is a port of CL 308371 to go/types. The only meaningful change from
that CL is to use explicit return values in Checker.indexExpr, which I
felt was more readable. I made the same change in types2 to keep them in
sync

Change-Id: I3380c03fe49d3bf4167cadad305abe942785af19
Reviewed-on: https://go-review.googlesource.com/c/go/+/314432
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/index.go
src/go/types/call.go
src/go/types/check.go
src/go/types/expr.go
src/go/types/index.go