Phan\Tests\Language\UnionTypeTest::typeStringFromCode PHP 메소드

typeStringFromCode() 개인적인 메소드

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();
    }