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

Function generate_constructor_for_lambda_class

compiler/lambda-utils.cpp:246–266  ·  view source on GitHub ↗

this function creates the __construct() method in a lambda class function($x) use ($a) implicitly created a class Lambda$xxx { public $a; }, and here we generate __construct($a) { $this->a = $a; }

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 3

create_constructorMethod · 0.80
set_locationMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected