MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _text

Function _text

src/codegraphcontext/tools/languages/maven.py:20–24  ·  view source on GitHub ↗
(element: Any, tag: str, default: str = "")

Source from the content-addressed store, hash-verified

18
19
20def _text(element: Any, tag: str, default: str = "") -> str:
21 child = element.find(_ns(tag))
22 if child is None:
23 child = element.find(tag) # also try without namespace
24 return (child.text or "").strip() if child is not None else default
25
26
27class MavenParser:

Callers 1

parseMethod · 0.85

Calls 1

_nsFunction · 0.85

Tested by

no test coverage detected