Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / internal / lsp / testdata / fillstruct / fill_struct.go.golden
1 -- suggestedfix_fill_struct_20_15 --
2 package fillstruct
3
4 type StructA struct {
5         unexportedIntField int
6         ExportedIntField   int
7         MapA               map[int]string
8         Array              []int
9         StructB
10 }
11
12 type StructA2 struct {
13         B *StructB
14 }
15
16 type StructA3 struct {
17         B StructB
18 }
19
20 func fill() {
21         a := StructA{
22                 unexportedIntField: 0,
23                 ExportedIntField:   0,
24                 MapA:               map[int]string{},
25                 Array:              []int{},
26                 StructB:            StructB{},
27         }  //@suggestedfix("}", "refactor.rewrite")
28         b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
29         c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
30         if true {
31                 _ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
32         }
33 }
34
35 -- suggestedfix_fill_struct_21_16 --
36 package fillstruct
37
38 type StructA struct {
39         unexportedIntField int
40         ExportedIntField   int
41         MapA               map[int]string
42         Array              []int
43         StructB
44 }
45
46 type StructA2 struct {
47         B *StructB
48 }
49
50 type StructA3 struct {
51         B StructB
52 }
53
54 func fill() {
55         a := StructA{}  //@suggestedfix("}", "refactor.rewrite")
56         b := StructA2{
57                 B: &StructB{},
58         } //@suggestedfix("}", "refactor.rewrite")
59         c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
60         if true {
61                 _ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
62         }
63 }
64
65 -- suggestedfix_fill_struct_22_16 --
66 package fillstruct
67
68 type StructA struct {
69         unexportedIntField int
70         ExportedIntField   int
71         MapA               map[int]string
72         Array              []int
73         StructB
74 }
75
76 type StructA2 struct {
77         B *StructB
78 }
79
80 type StructA3 struct {
81         B StructB
82 }
83
84 func fill() {
85         a := StructA{}  //@suggestedfix("}", "refactor.rewrite")
86         b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
87         c := StructA3{
88                 B: StructB{},
89         } //@suggestedfix("}", "refactor.rewrite")
90         if true {
91                 _ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
92         }
93 }
94
95 -- suggestedfix_fill_struct_24_16 --
96 package fillstruct
97
98 type StructA struct {
99         unexportedIntField int
100         ExportedIntField   int
101         MapA               map[int]string
102         Array              []int
103         StructB
104 }
105
106 type StructA2 struct {
107         B *StructB
108 }
109
110 type StructA3 struct {
111         B StructB
112 }
113
114 func fill() {
115         a := StructA{}  //@suggestedfix("}", "refactor.rewrite")
116         b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
117         c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
118         if true {
119                 _ = StructA3{
120                         B: StructB{},
121                 } //@suggestedfix("}", "refactor.rewrite")
122         }
123 }
124