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

Function generate_lambda_from_string_or_array

compiler/lambda-utils.cpp:380–433  ·  view source on GitHub ↗

having 'strlen' or [$obj, 'method'] used as callable, generate a lambda think of it as: fn($s) => strlen($s) or function(...$args) use($obj) { return $obj->method(...$args); }

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 10

assume_class_of_exprFunction · 0.85
try_as_classMethod · 0.80
get_paramsMethod · 0.80
LocationClass · 0.70
get_instance_methodMethod · 0.45
as_human_readableMethod · 0.45
get_functionMethod · 0.45
cloneMethod · 0.45
varMethod · 0.45

Tested by

no test coverage detected