MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / get_symbol_with_keyword

Function get_symbol_with_keyword

src/hyperagent/utils.py:378–383  ·  view source on GitHub ↗
(file_path: str, parent_path: str, keyword: str)

Source from the content-addressed store, hash-verified

376 return final_results
377
378def 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
385def get_symbol_per_file(file_path: str, primary_symbols, parent_path, keyword):
386 out_file_symbols = []

Callers

nothing calls this directly

Calls 1

get_symbol_per_fileFunction · 0.85

Tested by

no test coverage detected