summaryrefslogtreecommitdiff
path: root/src/go/types/call.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2022-02-24 13:10:34 -0800
committerRobert Griesemer <gri@golang.org>2022-03-21 19:10:30 +0000
commitf2cdc6d1672fb335ac56f9c7b824071f1e5ba545 (patch)
tree40ecfd1a41c01dc763d37bd0744120d2de4867f7 /src/go/types/call.go
parent7751883379621d8ecbf7e4920af0a81c31f2c078 (diff)
downloadgo-git-f2cdc6d1672fb335ac56f9c7b824071f1e5ba545.tar.gz
go/types, types2: improved tracing output throughout (debugging support)
This change fine-tunes tracing output and adds additional descriptions for delayed actions that were missing tracing. Change-Id: Ib5e70e8f40ef564194cdb0e8d12c38e15388b987 Reviewed-on: https://go-review.googlesource.com/c/go/+/387919 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/go/types/call.go')
-rw-r--r--src/go/types/call.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/types/call.go b/src/go/types/call.go
index 5d1f60d432..51603170a6 100644
--- a/src/go/types/call.go
+++ b/src/go/types/call.go
@@ -65,7 +65,7 @@ func (check *Checker) instantiateSignature(pos token.Pos, typ *Signature, targs
assert(len(targs) == typ.TypeParams().Len())
if trace {
- check.trace(pos, "-- instantiating %s with %s", typ, targs)
+ check.trace(pos, "-- instantiating signature %s with %s", typ, targs)
check.indent++
defer func() {
check.indent--
@@ -89,7 +89,7 @@ func (check *Checker) instantiateSignature(pos token.Pos, typ *Signature, targs
} else {
check.mono.recordInstance(check.pkg, pos, tparams, targs, xlist)
}
- })
+ }).describef(atPos(pos), "verify instantiation")
return inst
}