]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: consistently use "cause" instead of "reason" for error details...
authorRobert Griesemer <gri@golang.org>
Wed, 28 Sep 2022 21:59:16 +0000 (14:59 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 28 Sep 2022 23:46:58 +0000 (23:46 +0000)
commitffdfa9ff41a83fe1265c48b93381a8fa302cf480
tree4ff7e292e40106a465d31f7f21cfd8fd8a9b3242
parent5612215d32643f2a5b729730c3bfdefda78e75d1
go/types, types2: consistently use "cause" instead of "reason" for error details (cleanup)

There were many more uses of the variable name "cause" than "reason"
to hold error message details. Consistently use "cause" throughout.

Accordingly, s/MissingMethodReason/MissingMethodCause/.

Change-Id: I171d784faabc66a4c58ba8944784204687595203
Reviewed-on: https://go-review.googlesource.com/c/go/+/435418
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/expr.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/lookup.go
src/cmd/compile/internal/types2/operand.go
src/cmd/compile/internal/types2/typexpr.go
src/go/types/expr.go
src/go/types/instantiate.go
src/go/types/lookup.go
src/go/types/operand.go
src/go/types/typexpr.go