aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/extract/extract_function/extract_scope.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/extract/extract_function/extract_scope.go')
-rw-r--r--gopls/internal/lsp/testdata/extract/extract_function/extract_scope.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/extract/extract_function/extract_scope.go b/gopls/internal/lsp/testdata/extract/extract_function/extract_scope.go
new file mode 100644
index 000000000..6cc141fd1
--- /dev/null
+++ b/gopls/internal/lsp/testdata/extract/extract_function/extract_scope.go
@@ -0,0 +1,10 @@
+package extract
+
+func _() {
+ newFunction := 1
+ a := newFunction //@extractfunc("a", "newFunction")
+}
+
+func newFunction1() int {
+ return 1
+}