blob: 6db6982eb4ca22119f39c09e54ccc1865611a627 [file] [log] [blame]
-- 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-cmd --
3:9-5:1
7:9-8:9
11:13-11:13
11:23-18:1
12:8-15:2
14:15-14:21
15:10-16:24
16:15-16:22
-- 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
}