MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _get_parser

Function _get_parser

graphify/extractors/engine.py:9215–9225  ·  view source on GitHub ↗
(ts_module: str, ts_language_fn: str)

Source from the content-addressed store, hash-verified

9213
9214
9215def _get_parser(ts_module: str, ts_language_fn: str):
9216 cache = getattr(_parser_tls, "parsers", None)
9217 if cache is None:
9218 cache = {}
9219 _parser_tls.parsers = cache
9220 key = (ts_module, ts_language_fn)
9221 entry = cache.get(key)
9222 if entry is None:
9223 entry = _build_parser(ts_module, ts_language_fn)
9224 cache[key] = entry
9225 return entry
9226
9227
9228def _build_parser(ts_module: str, ts_language_fn: str):

Callers 3

python_parserFunction · 0.90
_extract_genericFunction · 0.85

Calls 2

_build_parserFunction · 0.85
getMethod · 0.45

Tested by 1

python_parserFunction · 0.72