Phan\Parse\ParseVisitor::visitStaticCall PHP Метод

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

Visit a node with kind \ast\AST_STATIC_CALL
public visitStaticCall ( 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 visitStaticCall(Node $node) : Context
    {
        $call = $node->children['class'];
        if ($call->kind == \ast\AST_NAME) {
            $func_name = strtolower($call->children['name']);
            if ($func_name == 'parent') {
                // Make sure it is not a crazy dynamic parent method call
                if (!$node->children['method'] instanceof Node) {
                    $meth = strtolower($node->children['method']);
                    if ($meth == '__construct') {
                        $class = $this->getContextClass();
                        $class->setIsParentConstructorCalled(true);
                    }
                }
            }
        }
        return $this->context;
    }