2019-08-29 13:28:51 -06:00
|
|
|
-- foldingRange-0 --
|
2019-08-28 19:48:29 -06:00
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (<>)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.<>
|
|
|
|
func bar(<>) string {<>}
|
|
|
|
|
2019-08-29 13:28:51 -06:00
|
|
|
-- foldingRange-1 --
|
2019-08-28 19:48:29 -06:00
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
2019-08-29 13:28:51 -06:00
|
|
|
"fmt"
|
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
|
|
|
switch {<>}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment<>
|
2019-08-29 13:28:51 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
|
|
|
-- foldingRange-2 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
|
|
|
switch {
|
|
|
|
case true:<>
|
|
|
|
case false:<>
|
|
|
|
default:<>
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-29 13:28:51 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
|
|
|
-- foldingRange-3 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
|
|
|
switch {
|
|
|
|
case true:
|
2019-08-30 12:11:42 -06:00
|
|
|
if true {<>} else {<>}
|
2019-08-29 13:28:51 -06:00
|
|
|
case false:
|
|
|
|
fmt.Println(<>)
|
|
|
|
default:
|
|
|
|
fmt.Println(<>)
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-29 13:28:51 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
|
|
|
-- foldingRange-4 --
|
|
|
|
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(<>)
|
2019-08-30 12:11:42 -06:00
|
|
|
} else {
|
|
|
|
fmt.Println(<>)
|
2019-08-29 13:28:51 -06:00
|
|
|
}
|
|
|
|
case false:
|
|
|
|
fmt.Println("false")
|
|
|
|
default:
|
|
|
|
fmt.Println("default")
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-29 13:28:51 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
2019-11-10 07:43:06 -07:00
|
|
|
-- foldingRange-cmd --
|
|
|
|
3:9-6:0
|
|
|
|
10:22-11:32
|
|
|
|
12:10-12:9
|
|
|
|
12:20-30:0
|
|
|
|
13:10-24:1
|
|
|
|
14:12-19:3
|
|
|
|
15:12-17:2
|
|
|
|
16:16-16:21
|
|
|
|
17:11-19:2
|
|
|
|
18:16-18:22
|
|
|
|
20:13-21:22
|
|
|
|
21:15-21:21
|
|
|
|
22:10-23:24
|
|
|
|
23:15-23:23
|
|
|
|
25:32-26:30
|
|
|
|
|
2019-08-29 13:28:51 -06:00
|
|
|
-- foldingRange-comment-0 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2019-08-28 19:48:29 -06:00
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.<>
|
|
|
|
func bar() string {
|
2019-08-29 13:28:51 -06:00
|
|
|
switch {
|
|
|
|
case true:
|
|
|
|
if true {
|
|
|
|
fmt.Println("true")
|
2019-08-30 12:11:42 -06:00
|
|
|
} else {
|
|
|
|
fmt.Println("false")
|
2019-08-29 13:28:51 -06:00
|
|
|
}
|
|
|
|
case false:
|
|
|
|
fmt.Println("false")
|
|
|
|
default:
|
|
|
|
fmt.Println("default")
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment<>
|
2019-08-28 19:48:29 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
2019-08-29 13:28:51 -06:00
|
|
|
-- foldingRange-imports-0 --
|
2019-08-28 19:48:29 -06:00
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (<>)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
2019-08-29 13:28:51 -06:00
|
|
|
switch {
|
|
|
|
case true:
|
|
|
|
if true {
|
|
|
|
fmt.Println("true")
|
2019-08-30 12:11:42 -06:00
|
|
|
} else {
|
|
|
|
fmt.Println("false")
|
2019-08-29 13:28:51 -06:00
|
|
|
}
|
|
|
|
case false:
|
|
|
|
fmt.Println("false")
|
|
|
|
default:
|
|
|
|
fmt.Println("default")
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-28 19:48:29 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
2019-08-29 17:03:23 -06:00
|
|
|
-- foldingRange-lineFolding-0 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
2019-08-30 12:11:42 -06:00
|
|
|
import (<>
|
|
|
|
)
|
2019-08-29 17:03:23 -06:00
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.<>
|
2019-08-30 12:11:42 -06:00
|
|
|
func bar() string {<>
|
|
|
|
}
|
2019-08-29 17:03:23 -06:00
|
|
|
|
|
|
|
-- foldingRange-lineFolding-1 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
2019-08-30 12:11:42 -06:00
|
|
|
switch {<>
|
|
|
|
}
|
|
|
|
// This is a multiline comment<>
|
2019-08-29 17:03:23 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
|
|
|
-- foldingRange-lineFolding-2 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
|
|
|
switch {
|
|
|
|
case true:<>
|
|
|
|
case false:<>
|
|
|
|
default:<>
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-29 17:03:23 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
|
|
|
-- foldingRange-lineFolding-3 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
|
|
|
switch {
|
|
|
|
case true:
|
2019-08-30 12:11:42 -06:00
|
|
|
if true {<>
|
|
|
|
} else {<>
|
|
|
|
}
|
2019-08-29 17:03:23 -06:00
|
|
|
case false:
|
|
|
|
fmt.Println("false")
|
|
|
|
default:
|
|
|
|
fmt.Println("default")
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-29 17:03:23 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
|
|
|
-- foldingRange-lineFolding-comment-0 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.<>
|
|
|
|
func bar() string {
|
|
|
|
switch {
|
|
|
|
case true:
|
|
|
|
if true {
|
|
|
|
fmt.Println("true")
|
2019-08-30 12:11:42 -06:00
|
|
|
} else {
|
|
|
|
fmt.Println("false")
|
2019-08-29 17:03:23 -06:00
|
|
|
}
|
|
|
|
case false:
|
|
|
|
fmt.Println("false")
|
|
|
|
default:
|
|
|
|
fmt.Println("default")
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment<>
|
2019-08-29 17:03:23 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|
|
|
|
-- foldingRange-lineFolding-imports-0 --
|
|
|
|
package folding //@fold("package")
|
|
|
|
|
2019-08-30 12:11:42 -06:00
|
|
|
import (<>
|
|
|
|
)
|
2019-08-29 17:03:23 -06:00
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
|
|
|
switch {
|
|
|
|
case true:
|
|
|
|
if true {
|
|
|
|
fmt.Println("true")
|
2019-08-30 12:11:42 -06:00
|
|
|
} else {
|
|
|
|
fmt.Println("false")
|
2019-08-29 17:03:23 -06:00
|
|
|
}
|
|
|
|
case false:
|
|
|
|
fmt.Println("false")
|
|
|
|
default:
|
|
|
|
fmt.Println("default")
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-29 17:03:23 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|
|
|
|
|