aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/baz/baz.go.in
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/baz/baz.go.in')
-rw-r--r--gopls/internal/lsp/testdata/baz/baz.go.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/baz/baz.go.in b/gopls/internal/lsp/testdata/baz/baz.go.in
new file mode 100644
index 000000000..94952e126
--- /dev/null
+++ b/gopls/internal/lsp/testdata/baz/baz.go.in
@@ -0,0 +1,33 @@
+// +build go1.11
+
+package baz
+
+import (
+ "golang.org/lsptests/bar"
+
+ f "golang.org/lsptests/foo"
+)
+
+var FooStruct f.StructFoo
+
+func Baz() {
+ defer bar.Bar() //@complete("B", Bar)
+ // TODO(rstambler): Test completion here.
+ defer bar.B
+ var x f.IntFoo //@complete("n", IntFoo),typdef("x", IntFoo)
+ bar.Bar() //@complete("B", Bar)
+}
+
+func _() {
+ bob := f.StructFoo{Value: 5}
+ if x := bob. //@complete(" //", Value)
+ switch true == false {
+ case true:
+ if x := bob. //@complete(" //", Value)
+ case false:
+ }
+ if x := bob.Va //@complete("a", Value)
+ switch true == true {
+ default:
+ }
+}