MCPcopy
hub / github.com/uber-go/nilaway / CallSiteRetAnnotationKey

Struct CallSiteRetAnnotationKey

annotation/key.go:292–296  ·  view source on GitHub ↗

CallSiteRetAnnotationKey is similar to RetAnnotationKey, but it represents the site in the caller where the actual result is returned from the function. For the same return result of the same function, there is only one distinct RetAnnotationKey but there is a new CallSiteRetAnnotationKey for the re

Source from the content-addressed store, hash-verified

290// same function, there is only one distinct RetAnnotationKey but there is a new
291// CallSiteRetAnnotationKey for the return result for every call of the same function.
292type CallSiteRetAnnotationKey struct {
293 FuncDecl *types.Func
294 RetNum int // which result
295 Location token.Position
296}
297
298// Lookup looks this key up in the passed map, returning a Val.
299func (rk *CallSiteRetAnnotationKey) Lookup(annMap Map) (Val, bool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected