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

Struct RetAnnotationKey

annotation/key.go:344–347  ·  view source on GitHub ↗

RetAnnotationKey allows the Lookup of a function's return Annotation in the Annotation Map

Source from the content-addressed store, hash-verified

342
343// RetAnnotationKey allows the Lookup of a function's return Annotation in the Annotation Map
344type RetAnnotationKey struct {
345 FuncDecl *types.Func
346 RetNum int // which result
347}
348
349// Lookup looks this key up in the passed map, returning a Val
350func (rk *RetAnnotationKey) Lookup(annMap Map) (Val, bool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected