2019-08-30 12:11:42 -06:00
|
|
|
-- 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
|
|
|
|
}
|
|
|
|
|
2019-11-10 07:43:06 -07:00
|
|
|
-- foldingRange-cmd --
|
|
|
|
3:9-5:0
|
|
|
|
7:9-8:8
|
|
|
|
11:13-11:12
|
|
|
|
11:23-18:0
|
|
|
|
12:8-15:1
|
|
|
|
14:15-14:20
|
|
|
|
15:10-16:23
|
|
|
|
16:15-16:21
|
|
|
|
|
2019-08-30 12:11:42 -06:00
|
|
|
-- 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
|
|
|
|
}
|
|
|
|
|