aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-05-15 22:32:36 +0200
committerTeddy Wing2023-05-15 22:32:36 +0200
commit7308a5c8da0a11fb74b138ebcd5f980135f88eb5 (patch)
treecce79b18bf2ee1f9c6994a5907bdafe676189fc3
parent25249a93b1937f4b9748420dbaea03161e4c6f04 (diff)
downloadgocapturedrefrace-7308a5c8da0a11fb74b138ebcd5f980135f88eb5.tar.bz2
`(*AssignStmt).Tok` always appears to be token.DEFINE
-rw-r--r--gocapturedrefrace.go2
1 files changed, 2 insertions, 0 deletions
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)