1
0
mirror of https://github.com/golang/go synced 2024-11-08 14:56:31 -07:00
go/src/cmd/gofmt/testdata
Matthew Dempsky e410d2a81e cmd/gofmt: clear pattern match map at the correct time
We need to clear the pattern match map after the recursive rewrite
applications, otherwise there might be lingering entries that cause
match to fail.

Fixes #18987.

Change-Id: I7913951c455c98932bda790861db6a860ebad032
Reviewed-on: https://go-review.googlesource.com/36546
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-02-08 04:48:20 +00:00
..
comments.golden
comments.input
composites.golden
composites.input
crlf.golden
crlf.input
emptydecl.golden
emptydecl.input
import.golden
import.input
ranges.golden
ranges.input
rewrite1.golden
rewrite1.input
rewrite2.golden
rewrite2.input
rewrite3.golden
rewrite3.input
rewrite4.golden
rewrite4.input
rewrite5.golden
rewrite5.input
rewrite6.golden
rewrite6.input
rewrite7.golden
rewrite7.input
rewrite8.golden
rewrite8.input
rewrite9.golden
rewrite9.input
slices1.golden
slices1.input
stdin1.golden
stdin1.input
stdin2.golden
stdin2.input
stdin3.golden
stdin3.input
stdin4.golden
stdin4.input
stdin5.golden
stdin5.input
stdin6.golden
stdin6.input
stdin7.golden
stdin7.input
typealias.golden
typealias.input
typeswitch.golden
typeswitch.input