summaryrefslogtreecommitdiff
path: root/src/encoding/json/encode_test.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2016-04-22 12:27:29 -0700
committerMatthew Dempsky <mdempsky@google.com>2016-04-22 21:34:25 +0000
commit97360096e5e9fdea06be8c97f32bd83741f68adb (patch)
tree79051165f4530f7e048e9c17ef31e4c8ff2ada7f /src/encoding/json/encode_test.go
parent2d342fba78d9cbddb4c8c71bfc0d1044b2e5c58a (diff)
downloadgo-git-97360096e5e9fdea06be8c97f32bd83741f68adb.tar.gz
cmd/compile: replace Ctype switches with type switches
Instead of switching on Ctype (which internally uses a type switch) and then scattering lots of type assertions throughout the CTFOO case clauses, just use type switches directly on the underlying constant value. Passes toolstash/buildall. Change-Id: I9bc172cc67e5f391cddc15539907883b4010689e Reviewed-on: https://go-review.googlesource.com/22384 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/json/encode_test.go')
0 files changed, 0 insertions, 0 deletions