7 abc []int //@item(stmtABC, "abc", "[]int", "var")
8 abcdef mySlice //@item(stmtABCDEF, "abcdef", "mySlice", "var")
11 /* abcdef = append(abcdef, ) */ //@item(stmtABCDEFAssignAppend, "abcdef = append(abcdef, )", "", "func")
13 // don't offer "abc = append(abc, )" because "abc" isn't necessarily
14 // better than "abcdef".
15 abc //@complete(" //", stmtABC, stmtABCDEF)
17 abcdef //@complete(" //", stmtABCDEF, stmtABCDEFAssignAppend)
19 /* append(abc, ) */ //@item(stmtABCAppend, "append(abc, )", "", "func")
21 abc = app //@snippet(" //", stmtABCAppend, "append(abc, ${1:})", "append(abc, ${1:})")
25 var s struct{ xyz []int }
27 /* xyz = append(s.xyz, ) */ //@item(stmtXYZAppend, "xyz = append(s.xyz, )", "", "func")
29 s.x //@snippet(" //", stmtXYZAppend, "xyz = append(s.xyz, ${1:})", "xyz = append(s.xyz, ${1:})")
31 /* s.xyz = append(s.xyz, ) */ //@item(stmtDeepXYZAppend, "s.xyz = append(s.xyz, )", "", "func")
33 sx //@snippet(" //", stmtDeepXYZAppend, "s.xyz = append(s.xyz, ${1:})", "s.xyz = append(s.xyz, ${1:})")
39 /* append(foo[0], ) */ //@item(stmtFooAppend, "append(foo[0], )", "", "func")
41 foo[0] = app //@complete(" //"),snippet(" //", stmtFooAppend, "append(foo[0], ${1:})", "append(foo[0], ${1:})")