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
| 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. |
| 292 | type 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. |
| 299 | func (rk *CallSiteRetAnnotationKey) Lookup(annMap Map) (Val, bool) { |
nothing calls this directly
no outgoing calls
no test coverage detected