diff options
Diffstat (limited to 'gopls/internal/lsp/testdata/folding/bad.go.in')
-rw-r--r-- | gopls/internal/lsp/testdata/folding/bad.go.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/folding/bad.go.in b/gopls/internal/lsp/testdata/folding/bad.go.in new file mode 100644 index 000000000..84fcb740f --- /dev/null +++ b/gopls/internal/lsp/testdata/folding/bad.go.in @@ -0,0 +1,18 @@ +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("true") + } else { + fmt.Println("false") } + return +} |