github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/fillstruct/a3.go (about) 1 package fillstruct 2 3 import ( 4 "go/ast" 5 "go/token" 6 ) 7 8 type Foo struct { 9 A int 10 } 11 12 type Bar struct { 13 X *Foo 14 Y *Foo 15 } 16 17 var _ = Bar{} //@suggestedfix("}", "refactor.rewrite") 18 19 type importedStruct struct { 20 m map[*ast.CompositeLit]ast.Field 21 s []ast.BadExpr 22 a [3]token.Token 23 c chan ast.EmptyStmt 24 fn func(ast_decl ast.DeclStmt) ast.Ellipsis 25 st ast.CompositeLit 26 } 27 28 var _ = importedStruct{} //@suggestedfix("}", "refactor.rewrite") 29 30 type pointerBuiltinStruct struct { 31 b *bool 32 s *string 33 i *int 34 } 35 36 var _ = pointerBuiltinStruct{} //@suggestedfix("}", "refactor.rewrite") 37 38 var _ = []ast.BasicLit{ 39 {}, //@suggestedfix("}", "refactor.rewrite") 40 } 41 42 var _ = []ast.BasicLit{{}} //@suggestedfix("}", "refactor.rewrite")