x/tools/go/analysis/passes/buildssa: SrcFuncs omits package-scope function literals #61699
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/buildssa#SSA says "SSA provides SSA-form intermediate representation for all the non-blank source functions in the current package."
This is a bit ambiguous to me, because I wasn't sure if it includes function literals, or only declared functions. But experimentally, it includes function literals within declared functions, but not function literals at package scope.
I would suggest:
Happy to send a CL if these suggestions are agreeable.
/cc @findleyr @alandonovan
The text was updated successfully, but these errors were encountered: