pkg/proc: do not check decl line for FunctionArguments (#3254)

Fixes a bug where we cannot get locals (including arguments and return
values) from a given scope because the line number state machine ends up
in an invalid state because of this parameter being set to false.
This commit is contained in:
Derek Parker
2023-01-24 06:56:05 -08:00
committed by GitHub
parent 2be9cf1fab
commit a01fe73845
3 changed files with 39 additions and 1 deletions

13
_fixtures/traceprog.go Normal file
View File

@ -0,0 +1,13 @@
package main
import "fmt"
func callme(i int) int {
return i * i
}
func main() {
j := 0
j += callme(2)
fmt.Println(j)
}