mirror of
https://github.com/golang/go
synced 2024-11-18 19:54:44 -07:00
afe7f8212f
FoldingRanges may be nested. Test nested folding ranges by separating out the folding ranges by nested level and checking each level. Change-Id: I12c72daa3e6c6b9d4959209b3a41b27e2b59866f Reviewed-on: https://go-review.googlesource.com/c/tools/+/192398 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
29 lines
332 B
Go
29 lines
332 B
Go
package folding //@fold("package")
|
|
|
|
import (
|
|
"fmt"
|
|
_ "log"
|
|
)
|
|
|
|
import _ "os"
|
|
|
|
// bar is a function.
|
|
// With a multiline doc comment.
|
|
func bar() string {
|
|
switch {
|
|
case true:
|
|
if true {
|
|
fmt.Println("true")
|
|
}
|
|
case false:
|
|
fmt.Println("false")
|
|
default:
|
|
fmt.Println("default")
|
|
}
|
|
|
|
return `
|
|
this string
|
|
is not indented`
|
|
|
|
}
|