Get full source code of a symbol. Returns source string or dict.
(symbol: str, file: str)
| 426 | |
| 427 | |
| 428 | def impl_(symbol: str, file: str): |
| 429 | """Get full source code of a symbol. Returns source string or dict.""" |
| 430 | state = _load_state() |
| 431 | result = _safe_get(state, "/symbols/implementation", {"symbol": symbol, "file": file}) |
| 432 | print(json.dumps(result, indent=2) if isinstance(result, (dict, list)) else result) |
| 433 | return result |
| 434 | |
| 435 | |
| 436 | def callers(symbol: str, file: str, limit: int = 50): |
nothing calls this directly
no test coverage detected