aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/testdata/godef/a/random.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/testdata/godef/a/random.go')
-rw-r--r--internal/lsp/testdata/godef/a/random.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/internal/lsp/testdata/godef/a/random.go b/internal/lsp/testdata/godef/a/random.go
deleted file mode 100644
index 62055c1fc..000000000
--- a/internal/lsp/testdata/godef/a/random.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package a
-
-func Random() int { //@Random
- y := 6 + 7
- return y
-}
-
-func Random2(y int) int { //@Random2,mark(RandomParamY, "y")
- return y //@godef("y", RandomParamY)
-}
-
-type Pos struct {
- x, y int //@mark(PosX, "x"),mark(PosY, "y")
-}
-
-// Typ has a comment. Its fields do not.
-type Typ struct{ field string } //@mark(TypField, "field")
-
-func _() {
- x := &Typ{}
- x.field //@godef("field", TypField)
-}
-
-func (p *Pos) Sum() int { //@mark(PosSum, "Sum")
- return p.x + p.y //@godef("x", PosX)
-}
-
-func _() {
- var p Pos
- _ = p.Sum() //@godef("()", PosSum)
-}