blob: b1e376f05f17915611fa469e0e17fbeda564f225 [file] [log] [blame]
-- suggestedfix_a4_25_18 --
package fillstruct
import "go/ast"
type iStruct struct {
X int
}
type sStruct struct {
str string
}
type multiFill struct {
num int
strin string
arr []int
}
type assignStruct struct {
n ast.Node
}
func fill() {
var x int
var _ = iStruct{
X: x,
} //@suggestedfix("}", "refactor.rewrite", "Fill")
var s string
var _ = sStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var node *ast.CompositeLit
var _ = assignStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
}
-- suggestedfix_a4_28_18 --
package fillstruct
import "go/ast"
type iStruct struct {
X int
}
type sStruct struct {
str string
}
type multiFill struct {
num int
strin string
arr []int
}
type assignStruct struct {
n ast.Node
}
func fill() {
var x int
var _ = iStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var s string
var _ = sStruct{
str: s,
} //@suggestedfix("}", "refactor.rewrite", "Fill")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var node *ast.CompositeLit
var _ = assignStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
}
-- suggestedfix_a4_35_20 --
package fillstruct
import "go/ast"
type iStruct struct {
X int
}
type sStruct struct {
str string
}
type multiFill struct {
num int
strin string
arr []int
}
type assignStruct struct {
n ast.Node
}
func fill() {
var x int
var _ = iStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var s string
var _ = sStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{
num: n,
strin: s,
arr: []int{},
} //@suggestedfix("}", "refactor.rewrite", "Fill")
var node *ast.CompositeLit
var _ = assignStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
}
-- suggestedfix_a4_38_23 --
package fillstruct
import "go/ast"
type iStruct struct {
X int
}
type sStruct struct {
str string
}
type multiFill struct {
num int
strin string
arr []int
}
type assignStruct struct {
n ast.Node
}
func fill() {
var x int
var _ = iStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var s string
var _ = sStruct{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{} //@suggestedfix("}", "refactor.rewrite", "Fill")
var node *ast.CompositeLit
var _ = assignStruct{
n: node,
} //@suggestedfix("}", "refactor.rewrite", "Fill")
}