Phan\Analysis\PostOrderAnalysisVisitor::visitInstanceof PHP Method

visitInstanceof() public method

public visitInstanceof ( ast\Node $node ) : Context
$node ast\Node A node to parse
return Phan\Language\Context A new or an unchanged context resulting from parsing the node
    public function visitInstanceof(Node $node) : Context
    {
        try {
            $class_list = (new ContextNode($this->code_base, $this->context, $node->children['class']))->getClassList();
        } catch (CodeBaseException $exception) {
            $this->emitIssue(Issue::UndeclaredClassInstanceof, $node->lineno ?? 0, (string) $exception->getFQSEN());
        }
        return $this->context;
    }