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

Function _cpp_qualified_name

graphify/extractors/engine.py:5255–5266  ·  view source on GitHub ↗

Literal enclosing namespace/type identity; anonymous scopes are unknown.

(node, name: str, source: bytes)

Source from the content-addressed store, hash-verified

5253
5254
5255def _cpp_qualified_name(node, name: str, source: bytes) -> str:
5256 """Literal enclosing namespace/type identity; anonymous scopes are unknown."""
5257 parents = []
5258 parent = node.parent
5259 while parent is not None:
5260 if parent.type in {"namespace_definition", "class_specifier", "struct_specifier"}:
5261 part = parent.child_by_field_name("name")
5262 if part is None:
5263 return ""
5264 parents.append(_read_text(part, source))
5265 parent = parent.parent
5266 return "::".join([*reversed(parents), name])
5267
5268
5269def _cpp_member_record(node, declarator, name: str, source: bytes) -> dict:

Callers 3

_cpp_member_recordFunction · 0.85
walkFunction · 0.85

Calls 2

_read_textFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected