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

Method get_importance_of_reason

compiler/inferring/restriction-stacktrace-finder.cpp:62–88  ·  view source on GitHub ↗

returns, how important the 'to' node is if all types are equal, sorting will be done by this importance for example, when we are searching for why $a is float, and we have { $a = 4.5; $a = $v; } and $v is float, then $v is a more important reason than 4.5, as we want to see, why $v also occurred float, not just stop at 4.5 so, a variable is more important than a constant, a func call is more impor

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

get_exprMethod · 0.80
typeMethod · 0.45
get_stringMethod · 0.45

Tested by

no test coverage detected