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

Function create_from_phpdoc_kphp_generic_new_syntax

compiler/data/generics-mixins.cpp:117–173  ·  view source on GitHub ↗

a new syntax is `@kphp-generic T1, T2` every T may have extends_hint: "T: callable" / "T: BaseClass" every T may have def_hint: "T = mixed", "T = \VK\Err" (if both, it looks like "T: Err = Err") (@param tags depending on T's are parsed afterward, like regular @param: T will be interpreted as TypeHintGenericT)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 7

phpdoc_to_tokensFunction · 0.85
add_itemTMethod · 0.80
cbeginMethod · 0.45
typeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected