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

Function generate_invoke_method_for_lambda_class

compiler/lambda-utils.cpp:202–240  ·  view source on GitHub ↗

this function creates the __invoke() method in a lambda class, that calls a lambda function function($x) use ($a) was turned into lambda$xxx($a, $x) the __invoke() method of a lambda class will look like __invoke($x) { return lambda$xxx($this->a, $x); }

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 5

get_paramsMethod · 0.80
add_instance_methodMethod · 0.80
LocationClass · 0.70
varMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected