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

     1  package anon
     2  
     3  func _() {
     4  	for _, _ := range []struct {
     5  		i, j int //@item(anonI, "i", "int", "field"),item(anonJ, "j", "int", "field")
     6  	}{
     7  		{
     8  			i: 1,
     9  			//@complete("", anonJ)
    10  		},
    11  		{
    12  			//@complete("", anonI, anonJ)
    13  		},
    14  	} {
    15  		continue
    16  	}
    17  
    18  	s := struct{ f int }{  } //@item(anonF, "f", "int", "field"),item(structS, "s", "struct{...}", "var"),complete("  }", anonF)
    19  
    20  	_ = map[struct{ x int }]int{ //@item(anonX, "x", "int", "field")
    21  		struct{ x int }{  }: 1, //@complete("  }", anonX, structS)
    22  	}
    23  }