]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typecheck: more selective OPAREN skipping
authorMatthew Dempsky <mdempsky@google.com>
Wed, 20 Mar 2024 18:14:47 +0000 (11:14 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 20 Mar 2024 19:08:34 +0000 (19:08 +0000)
commit6af27c49bc875eb0b39e4aea098da98856e31372
tree65f3c00b2be9e861473efb98692cd64ba21c3f7b
parent334835e6b3e115919068b662133b975c1de0eccb
cmd/compile/internal/typecheck: more selective OPAREN skipping

Move the OPAREN skipping logic from typecheck into typecheck1, so that
it only applies to ParenExprs with Typecheck()==0. This should allow
CL 567695 to be re-landed, which uses ParenExprs as placeholders in
the AST.

Fixes #66261.

Change-Id: I606b7bad0cf1c0447e60d6da68d1d66db00863f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/573095
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/typecheck/typecheck.go