code_callers
code_callers returns every function in the graph that directly calls the given symbol. The inverse of code_callees.
code_callers(name="UserService.findById")Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
name | string | Symbol to look up |
compact | boolean | Return signatures only (fewer tokens) |
Output
Section titled “Output”UserService.findById ← 4 callers ProfileController.get (src/controllers/profile.ts:22) AuthMiddleware.validate (src/middleware/auth.ts:41) AdminPanel.userDetail (src/admin/users.ts:87) user.test.ts (tests/user.test.ts:14)Use before any change
Section titled “Use before any change”Always run code_callers before modifying a function. If it has unexpected callers — especially in auth or payment paths — consider running code_impact for a severity-scored view.