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

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

protected parseStmt_Property ( Property $node )
$node PhpParser\Node\Stmt\Property
    protected function parseStmt_Property(Stmt\Property $node)
    {
        $visibility = $node->type & Node\Stmt\Class_::VISIBILITY_MODIFER_MASK;
        $static = $node->type & Node\Stmt\Class_::MODIFIER_STATIC;
        foreach ($node->props as $prop) {
            if ($prop->default) {
                $tmp = $this->block;
                $this->block = $defaultBlock = new Block();
                $defaultVar = $this->parseExprNode($prop->default);
                $this->block = $tmp;
            } else {
                $defaultVar = null;
                $defaultBlock = null;
            }
            $this->block->children[] = new Op\Stmt\Property($this->parseExprNode($prop->name), $visibility, $static, $defaultVar, $defaultBlock, $this->mapAttributes($node));
        }
    }
Parser