gograph_returnusage
Analyze how callers use a function's return values: discarded, assigned, partially ignored, returned, or passed. Helps you decide before changing a function's return signature.
Instructions
Show how each caller uses the return value(s) of a named function: discarded, assigned, partially ignored, returned upstream, or passed directly to another call. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: Before changing a function's return signature — see which callers ignore the error or only use some return values. NOT TO USE: For error propagation tracing (use gograph_errorflow); for finding all callers without usage detail (use gograph_callers). RETURNS: List of call sites with usage classification (discarded/assigned/partially_ignored/returned/passed); empty when the function has no callers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | The function name to analyse (e.g., 'ValidateToken') |