github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/fillstruct/fill_struct_partial.go (about)

     1  package fillstruct
     2  
     3  type StructPartialA struct {
     4  	PrefilledInt int
     5  	UnfilledInt  int
     6  	StructPartialB
     7  }
     8  
     9  type StructPartialB struct {
    10  	PrefilledInt int
    11  	UnfilledInt  int
    12  }
    13  
    14  func fill() {
    15  	a := StructPartialA{
    16  		PrefilledInt: 5,
    17  	} //@suggestedfix("}", "refactor.rewrite")
    18  	b := StructPartialB{
    19  		/* this comment should disappear */
    20  		PrefilledInt: 7, // This comment should be blown away.
    21  		/* As should
    22  		this one */
    23  	} //@suggestedfix("}", "refactor.rewrite")
    24  }