MCPcopy Create free account
hub / github.com/VKCOM/kphp / resolve_class_of_arrow_access

Function resolve_class_of_arrow_access

compiler/name-gen.cpp:99–204  ·  view source on GitHub ↗

* For every lhs before the arrow ('$a->...', '(new A())->...', 'get()->nestedArr[0]->...'), * we expect some class instance on the left side. * Deduce that class and throw a meaningful error if something went wrong. * For example, the code '$a = 42; $a->...' will result in '$a is not an instance' error. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

on_func_callMethod · 0.85
on_instance_propMethod · 0.85

Calls 13

assume_class_of_exprFunction · 0.85
_err_instance_accessFunction · 0.85
_safe_strFunction · 0.85
try_as_classMethod · 0.80
get_subkey_by_indexMethod · 0.80
valueMethod · 0.80
typeMethod · 0.45
find_param_by_nameMethod · 0.45
get_stringMethod · 0.45
as_human_readableMethod · 0.45
instanceMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected