(file_path: str, parent_path: str, keyword: str)
| 376 | return final_results |
| 377 | |
| 378 | def get_symbol_with_keyword(file_path: str, parent_path: str, keyword: str): |
| 379 | out_symbols = get_symbol_per_file(file_path, [SymbolKind.Class, SymbolKind.Method, SymbolKind.Function], parent_path, keyword) |
| 380 | for symbol in out_symbols: |
| 381 | if keyword == symbol["name"]: |
| 382 | return symbol["definition"] |
| 383 | return F"No symbol {keyword} found in this file." |
| 384 | |
| 385 | def get_symbol_per_file(file_path: str, primary_symbols, parent_path, keyword): |
| 386 | out_file_symbols = [] |
nothing calls this directly
no test coverage detected