Phan\Tests\AnalyzerTest::contextForCode PHP Метод

contextForCode() приватный Метод

Get a Context after parsing the given bit of code.
private contextForCode ( string $code_stub ) : Context
$code_stub string
Результат Phan\Language\Context
    private function contextForCode(string $code_stub) : Context
    {
        return Analysis::parseNodeInContext($this->code_base, new Context(), \ast\parse_code('<?php ' . $code_stub, Config::get()->ast_version));
    }