PHPCfg\Parser::parseStmt_Goto PHP Метод

parseStmt_Goto() защищенный Метод

protected parseStmt_Goto ( PhpParser\Node\Stmt\Goto_ $node )
$node PhpParser\Node\Stmt\Goto_
    protected function parseStmt_Goto(Stmt\Goto_ $node)
    {
        $attributes = $this->mapAttributes($node);
        if (isset($this->ctx->labels[$node->name])) {
            $labelBlock = $this->ctx->labels[$node->name];
            $this->block->children[] = new Jump($labelBlock, $attributes);
            $labelBlock->addParent($this->block);
        } else {
            $this->ctx->unresolvedGotos[$node->name][] = [$this->block, $attributes];
        }
        $this->block = new Block();
        $this->block->dead = true;
    }
Parser