PHPCfg\Parser::parseStmt_Const PHP Method

parseStmt_Const() protected method

protected parseStmt_Const ( PhpParser\Node\Stmt\Const_ $node )
$node PhpParser\Node\Stmt\Const_
    protected function parseStmt_Const(Stmt\Const_ $node)
    {
        foreach ($node->consts as $const) {
            $tmp = $this->block;
            $this->block = $valueBlock = new Block();
            $value = $this->parseExprNode($const->value);
            $this->block = $tmp;
            $this->block->children[] = new Op\Terminal\Const_($this->parseExprNode($const->namespacedName), $value, $valueBlock, $this->mapAttributes($node));
        }
    }
Parser