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

Function _php_class_const_scope

graphify/extract.py:5041–5050  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

5039 return _read_text(content, source), name_node
5040
5041 def _php_class_const_scope(n) -> str | None:
5042 scope = n.child_by_field_name("scope")
5043 if scope is None:
5044 for c in n.children:
5045 if c.is_named and c.type in ("name", "qualified_name", "identifier"):
5046 scope = c
5047 break
5048 if scope is None:
5049 return None
5050 return _read_text(scope, source)
5051
5052 _tracked_body_ids: set[int] = set()
5053 _JS_CLOSURE_TYPES = ("arrow_function", "function_expression")

Callers 1

walk_callsFunction · 0.85

Calls 1

_read_textFunction · 0.90

Tested by

no test coverage detected