go/gopls/internal/lsp/testdata/semantic
pjw de675d5479 tools/gopls: argument in function bodies marked as parameter by semantic tokens
In func f(x int) int {return x;} the second x used to be marked as a
variable, but now is marked as a parameter, visually tying it to its
definition.

Fixes golang/go#56257

Change-Id: I8aa506b1ddff5ed9a3d2716d48c64521bdea0fd5
Reviewed-on: https://go-review.googlesource.com/c/tools/+/445095
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-10-26 15:27:38 +00:00
..
README.md
a.go
a.go.golden tools/gopls: argument in function bodies marked as parameter by semantic tokens 2022-10-26 15:27:38 +00:00
b.go
b.go.golden
semantic_test.go

README.md

The golden files are the output of gopls semtok <src-file>, with -- semantic -- inserted as the first line (the spaces are mandatory) and an extra newline at the end.