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

     1  package nested_complit
     2  
     3  type ncFoo struct {} //@item(structNCFoo, "ncFoo", "struct{...}", "struct")
     4  
     5  type ncBar struct { //@item(structNCBar, "ncBar", "struct{...}", "struct")
     6  	baz []ncFoo
     7  }
     8  
     9  func _() {
    10  	[]ncFoo{} //@item(litNCFoo, "[]ncFoo{}", "", "var")
    11  	_ := ncBar{
    12  		baz: [] //@complete(" //", structNCFoo, structNCBar)
    13  	}
    14  }