]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile/internal/noder: refactor stmtAssign generation
authorMatthew Dempsky <mdempsky@google.com>
Tue, 21 Jun 2022 18:49:27 +0000 (11:49 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 23 Jun 2022 21:55:08 +0000 (21:55 +0000)
commit82a958a661660fed6f126e41884a8c75fb983902
tree68d9858a985e7ce776d2a0a1521b30238c3b5b8e
parent711dacd8cf52d0c06624c4af3563d3b728c50b57
[dev.unified] cmd/compile/internal/noder: refactor stmtAssign generation

Eliminate some code duplication between assignment statements and
variable declarations, so they're easier to extend with implicit
conversions.

Change-Id: I605cf7817e3cb230f2c4612b777d8023c926e8b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/413515
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/noder/writer.go