From 7308a5c8da0a11fb74b138ebcd5f980135f88eb5 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 15 May 2023 22:32:36 +0200 Subject: `(*AssignStmt).Tok` always appears to be token.DEFINE --- gocapturedrefrace.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go index 8c09278..0ca4af7 100644 --- a/gocapturedrefrace.go +++ b/gocapturedrefrace.go @@ -156,6 +156,8 @@ func assignmentsInFunc( fmt.Printf("assignment: %v is DEFINE\n", ident.Name) } else if assignment.Tok == token.ASSIGN { fmt.Printf("assignment: %v is ASSIGN\n", ident.Name) + } else { + fmt.Printf("assignment: %v\n", assignment.Tok) } assignments = append(assignments, ident.Name) -- cgit v1.2.3