aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2023-08-24 03:04:01 -0700
committerGopher Robot <gobot@golang.org>2023-08-24 23:19:42 +0000
commit88cb17e1069bef854ead49c703262abdf93c9458 (patch)
tree521b48c02ad60fecddeca0dce59b547c3065c4e2 /src/encoding/json/encode.go
parentcf6838467453be54d1c6b45f431db35cf95b1eee (diff)
downloadgo-88cb17e1069bef854ead49c703262abdf93c9458.tar.xz
cmd/compile: create "init" function during noding
This CL arranges for package-scope initialization statements to be constructed directly into their eventual "init" function, so we can eliminate the roundabout solution of using InitTodoFunc. While here, somewhat simplify and generalize the logic for outlining map initialization statements. Change-Id: I8aff042e6b266f7024de436424ec6711b8b69129 Reviewed-on: https://go-review.googlesource.com/c/go/+/522318 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions