mirror of
https://github.com/golang/go
synced 2024-11-19 08:44:39 -07:00
cmd/internal/gc: clean up switch code
This CL makes the switch walking and typechecking code more idiomatic and adds documentation. It also removes all but one global variable. No functional changes. Confirmed with toolstash -cmp on the stdlib. Change-Id: Ic3f38acc66e906edd722498839aeb557863639cf Reviewed-on: https://go-review.googlesource.com/6268 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
59cc5a197f
commit
85c6f71b08