Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / internal / lsp / testdata / extract / extract_function / extract_return_func_lit.go.golden
1 -- functionextraction_extract_return_func_lit_7_3 --
2 package extract
3
4 import "go/ast"
5
6 func _() {
7         ast.Inspect(ast.NewIdent("a"), func(n ast.Node) bool {
8                 cond0, ret0 := fn0(n)
9                 if cond0 {
10                         return ret0
11                 } //@mark(exEn4, "}")
12                 return false
13         })
14         //@extractfunc(exSt4, exEn4)
15 }
16
17 func fn0(n ast.Node) (bool, bool) {
18         if n == nil {
19                 return true, true
20         }
21         return false, false
22 }
23