Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls: include function literals as outgoing callhierarchy calls #43438

Open
leitzler opened this issue Dec 30, 2020 · 0 comments
Open

x/tools/gopls: include function literals as outgoing callhierarchy calls #43438

leitzler opened this issue Dec 30, 2020 · 0 comments

Comments

@leitzler
Copy link
Contributor

@leitzler leitzler commented Dec 30, 2020

What version of Go are you using (go version)?

$ go version
go version devel +6d2b3351f6 Thu Dec 10 18:34:40 2020 +0000 darwin/amd64
x/tools: 929a8494

What did you do?

Called callHierarchy/outgoingCalls from func fn():

package foo
func fn() { // Listing Outgoing calls at "fn" here returns none
	func() {
		fn2()
	}()
}
func fn2() {}

What did you expect to see?

I expected to get one result; the function literal at the line below.
The main reason is for consistency, since calling callHierarchy/incomingCalls from func fn2() will return the function literal.

What did you see instead?

No outgoing calls from fn().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.