blob: 8d997031516b7efa08204c4f47b1485615c63b06 [file] [log] [blame]
-- suggestedfix_fill_struct_20_15 --
package fillstruct
type StructA struct {
unexportedIntField int
ExportedIntField int
MapA map[int]string
Array []int
StructB
}
type StructA2 struct {
B *StructB
}
type StructA3 struct {
B StructB
}
func fill() {
a := StructA{
unexportedIntField: 0,
ExportedIntField: 0,
MapA: map[int]string{},
Array: []int{},
StructB: StructB{},
} //@suggestedfix("}", "refactor.rewrite")
b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
if true {
_ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
}
}
-- suggestedfix_fill_struct_21_16 --
package fillstruct
type StructA struct {
unexportedIntField int
ExportedIntField int
MapA map[int]string
Array []int
StructB
}
type StructA2 struct {
B *StructB
}
type StructA3 struct {
B StructB
}
func fill() {
a := StructA{} //@suggestedfix("}", "refactor.rewrite")
b := StructA2{
B: &StructB{},
} //@suggestedfix("}", "refactor.rewrite")
c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
if true {
_ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
}
}
-- suggestedfix_fill_struct_22_16 --
package fillstruct
type StructA struct {
unexportedIntField int
ExportedIntField int
MapA map[int]string
Array []int
StructB
}
type StructA2 struct {
B *StructB
}
type StructA3 struct {
B StructB
}
func fill() {
a := StructA{} //@suggestedfix("}", "refactor.rewrite")
b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
c := StructA3{
B: StructB{},
} //@suggestedfix("}", "refactor.rewrite")
if true {
_ = StructA3{} //@suggestedfix("}", "refactor.rewrite")
}
}
-- suggestedfix_fill_struct_24_16 --
package fillstruct
type StructA struct {
unexportedIntField int
ExportedIntField int
MapA map[int]string
Array []int
StructB
}
type StructA2 struct {
B *StructB
}
type StructA3 struct {
B StructB
}
func fill() {
a := StructA{} //@suggestedfix("}", "refactor.rewrite")
b := StructA2{} //@suggestedfix("}", "refactor.rewrite")
c := StructA3{} //@suggestedfix("}", "refactor.rewrite")
if true {
_ = StructA3{
B: StructB{},
} //@suggestedfix("}", "refactor.rewrite")
}
}