Phan\Analysis\PreOrderAnalysisVisitor::visitCall PHP Метод

visitCall() публичный Метод

public visitCall ( ast\Node $node ) : Context
$node ast\Node A node to parse
Результат Phan\Language\Context A new or an unchanged context resulting from parsing the node
    public function visitCall(Node $node) : Context
    {
        // Look only at nodes of the form `assert(expr, ...)`.
        if (!isset($node->children['expr']) || !isset($node->children['expr']->children['name']) || $node->children['expr']->children['name'] !== 'assert' || !isset($node->children['args']) || !isset($node->children['args']->children[0]) || !$node->children['args']->children[0] instanceof Node) {
            return $this->context;
        }
        // Look to see if the asserted expression says anything about
        // the types of any variables.
        return (new ConditionVisitor($this->code_base, $this->context))($node->children['args']->children[0]);
    }