blob: 109c6b5ea476366f157fcf6c05779d27498a0465 [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")
var s string
var _ = sStruct{} //@suggestedfix("}", "refactor.rewrite")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{} //@suggestedfix("}", "refactor.rewrite")
var node *ast.CompositeLit
var _ = assignStruct{} //@suggestedfix("}", "refactor.rewrite")
}
-- 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")
var s string
var _ = sStruct{
str: s,
} //@suggestedfix("}", "refactor.rewrite")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{} //@suggestedfix("}", "refactor.rewrite")
var node *ast.CompositeLit
var _ = assignStruct{} //@suggestedfix("}", "refactor.rewrite")
}
-- 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")
var s string
var _ = sStruct{} //@suggestedfix("}", "refactor.rewrite")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{
num: n,
strin: s,
arr: []int{},
} //@suggestedfix("}", "refactor.rewrite")
var node *ast.CompositeLit
var _ = assignStruct{} //@suggestedfix("}", "refactor.rewrite")
}
-- 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")
var s string
var _ = sStruct{} //@suggestedfix("}", "refactor.rewrite")
var n int
_ = []int{}
if true {
arr := []int{1, 2}
}
var _ = multiFill{} //@suggestedfix("}", "refactor.rewrite")
var node *ast.CompositeLit
var _ = assignStruct{
n: node,
} //@suggestedfix("}", "refactor.rewrite")
}