Phan\Tests\Language\UnionTypeTest::typeStringFromCode PHP Method

typeStringFromCode() private method

private typeStringFromCode ( string $code ) : string
$code string
return 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();
    }