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

Method try_convert_expr_to_call_to_string_method

compiler/pipes/optimization.cpp:314–335  ·  view source on GitHub ↗

The function will try to convert the expression to a call to the __toString method if the expression has a class type and the class has such a method. If the conversion fails, an empty VertexPtr will be returned.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

get_typeFunction · 0.85
class_typeMethod · 0.80
set_stringMethod · 0.80
get_instance_methodMethod · 0.45
as_human_readableMethod · 0.45
local_nameMethod · 0.45

Tested by

no test coverage detected