|
4 | 4 | "fmt" //@mark(fmtImp, "\"fmt\""),highlight(fmtImp, fmtImp, fmt1, fmt2, fmt3, fmt4)
|
5 | 5 | h2 "net/http" //@mark(hImp, "h2"),highlight(hImp, hImp, hUse)
|
6 | 6 | "sort"
|
7 |
| - |
8 |
| - "golang.org/x/tools/internal/lsp/protocol" |
9 | 7 | )
|
10 | 8 |
|
11 | 9 | type F struct{ bar int } //@mark(barDeclaration, "bar"),highlight(barDeclaration, barDeclaration, bar1, bar2, bar3)
|
@@ -35,12 +33,10 @@ func testFunctions() {
|
35 | 33 | Print() //@mark(printTest, "Print"),highlight(printTest, printFunc, printTest)
|
36 | 34 | }
|
37 | 35 |
|
38 |
| -func toProtocolHighlight(rngs []protocol.Range) []protocol.DocumentHighlight { //@mark(doc1, "DocumentHighlight"),mark(docRet1, "[]protocol.DocumentHighlight"),highlight(doc1, docRet1, doc1, doc2, doc3, result) |
39 |
| - result := make([]protocol.DocumentHighlight, 0, len(rngs)) //@mark(doc2, "DocumentHighlight"),highlight(doc2, doc1, doc2, doc3) |
40 |
| - kind := protocol.Text |
| 36 | +func toProtocolHighlight(rngs []int) []DocumentHighlight { //@mark(doc1, "DocumentHighlight"),mark(docRet1, "[]DocumentHighlight"),highlight(doc1, docRet1, doc1, doc2, doc3, result) |
| 37 | + result := make([]DocumentHighlight, 0, len(rngs)) //@mark(doc2, "DocumentHighlight"),highlight(doc2, doc1, doc2, doc3) |
41 | 38 | for _, rng := range rngs {
|
42 |
| - result = append(result, protocol.DocumentHighlight{ //@mark(doc3, "DocumentHighlight"),highlight(doc3, doc1, doc2, doc3) |
43 |
| - Kind: kind, |
| 39 | + result = append(result, DocumentHighlight{ //@mark(doc3, "DocumentHighlight"),highlight(doc3, doc1, doc2, doc3) |
44 | 40 | Range: rng,
|
45 | 41 | })
|
46 | 42 | }
|
|
0 commit comments