private typeStringFromCode ( string $code ) : string | ||
$code | string | |
리턴 | string | A string representation of the union type begotten from the first statement in the statement list in the given code. |
private function typeStringFromCode(string $code) : string
{
return UnionType::fromNode($this->context, $this->code_base, \ast\parse_code($code, Config::get()->ast_version)->children[0])->asExpandedTypes($this->code_base)->__toString();
}