]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typecheck: simplify NewMethodExpr
authorMatthew Dempsky <mdempsky@google.com>
Sat, 19 Aug 2023 01:13:58 +0000 (18:13 -0700)
committerGopher Robot <gobot@golang.org>
Sun, 20 Aug 2023 05:57:15 +0000 (05:57 +0000)
commit3761e3fbfd1a1e40074cc123e1912007abfd0e92
tree4315cb7be56dfd7c55e79e95827bacbdd35d76ef
parenta2ec545e0a811bb67a48bcbb017b6da4f537781d
cmd/compile/internal/typecheck: simplify NewMethodExpr

This CL changes NewMethodExpr to directly construct the OMETHEXPR
node, instead of running through the generic OXDOT typechecking
machinery.

Change-Id: Ic2af0bab6ff1aef45e8463bccb1f69c50db68f65
Reviewed-on: https://go-review.googlesource.com/c/go/+/520919
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/typecheck/expr.go
src/cmd/compile/internal/typecheck/typecheck.go