.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.1-0.20210319172145-bda8f5cee399 / internal / lsp / testdata / references / other / other.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/internal/lsp/testdata/references/other/other.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/internal/lsp/testdata/references/other/other.go
new file mode 100644 (file)
index 0000000..de35cc8
--- /dev/null
@@ -0,0 +1,19 @@
+package other
+
+import (
+       references "golang.org/x/tools/internal/lsp/references"
+)
+
+func GetXes() []references.X {
+       return []references.X{
+               {
+                       Y: 1, //@mark(GetXesY, "Y"),refs("Y", typeXY, GetXesY, anotherXY)
+               },
+       }
+}
+
+func _() {
+       references.Q = "hello" //@mark(assignExpQ, "Q")
+       bob := func(_ string) {}
+       bob(references.Q) //@mark(bobExpQ, "Q")
+}