mirror of
https://github.com/golang/go
synced 2024-11-19 10:04:56 -07:00
92496828d1
Suggested fixes was totally broken (invalid command) and many others were not in correct sorted order. There were lots of golden entries that were no longer used. The regeneration script itself was broken The definition tests are skipped, so the entries were not regenerated. Files must have been hand edited, we probably need to document how to generate them somewhere. Change-Id: I1c021aeadd81f08f4572c2124f0c61912a3cd89e Reviewed-on: https://go-review.googlesource.com/c/tools/+/196987 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
82 lines
1.1 KiB
Plaintext
82 lines
1.1 KiB
Plaintext
-- foldingRange-0 --
|
|
package folding //@fold("package")
|
|
|
|
import (<>)
|
|
|
|
import (<>)
|
|
|
|
// badBar is a function.
|
|
func badBar(<>) string {<>}
|
|
|
|
-- foldingRange-1 --
|
|
package folding //@fold("package")
|
|
|
|
import ( "fmt"
|
|
_ "log"
|
|
)
|
|
|
|
import (
|
|
_ "os" )
|
|
|
|
// badBar is a function.
|
|
func badBar() string { x := true
|
|
if x {<>} else {<>}
|
|
return
|
|
}
|
|
|
|
-- foldingRange-2 --
|
|
package folding //@fold("package")
|
|
|
|
import ( "fmt"
|
|
_ "log"
|
|
)
|
|
|
|
import (
|
|
_ "os" )
|
|
|
|
// badBar is a function.
|
|
func badBar() string { x := true
|
|
if x {
|
|
// This is the only foldable thing in this file when lineFoldingOnly
|
|
fmt.Println(<>)
|
|
} else {
|
|
fmt.Println(<>) }
|
|
return
|
|
}
|
|
|
|
-- foldingRange-imports-0 --
|
|
package folding //@fold("package")
|
|
|
|
import (<>)
|
|
|
|
import (<>)
|
|
|
|
// badBar is a function.
|
|
func badBar() string { x := true
|
|
if x {
|
|
// This is the only foldable thing in this file when lineFoldingOnly
|
|
fmt.Println("true")
|
|
} else {
|
|
fmt.Println("false") }
|
|
return
|
|
}
|
|
|
|
-- foldingRange-lineFolding-0 --
|
|
package folding //@fold("package")
|
|
|
|
import ( "fmt"
|
|
_ "log"
|
|
)
|
|
|
|
import (
|
|
_ "os" )
|
|
|
|
// badBar is a function.
|
|
func badBar() string { x := true
|
|
if x {<>
|
|
} else {
|
|
fmt.Println("false") }
|
|
return
|
|
}
|
|
|