]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: in struct processing, set name position in types2
authorRobert Griesemer <gri@golang.org>
Wed, 24 Jan 2024 21:09:55 +0000 (13:09 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 25 Jan 2024 23:27:39 +0000 (23:27 +0000)
commitbdb0a1abfcf30bf05ef6e981179826b02e4539e5
tree7de0225597501dc2d1093a540974c76219d34751
parent5c7c24ce827b10982245951f6c2b1bbf0abc5aae
go/types, types2: in struct processing, set name position in types2

As a consequence, the positions needed by the Checker.structType
internal helper functions add and addInvalid are always the positions
of the provided identifiers, and we can leave away the extra position
arguments.

Change-Id: Iddc275c83d3781261476b8e1903050e0a049957c
Reviewed-on: https://go-review.googlesource.com/c/go/+/558316
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/struct.go
src/go/types/struct.go