PhpMigration\Changes\v5dot3\IncompByReference::populateDefine PHP Метод

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

protected populateDefine ( $node, $type )
    protected function populateDefine($node, $type)
    {
        $posbit = $this->positionWithRef($node);
        if (!$posbit) {
            return;
        }
        if ($type == 'func') {
            $fname = $node->name;
        } elseif ($node->isStatic()) {
            $fname = $this->visitor->getClassName() . '::' . $node->name;
        } else {
            $fname = $this->visitor->getClassName() . '->' . $node->name;
            $mname = '->' . $node->name;
            if ($this->methodTable->has($mname)) {
                $suspect = $this->methodTable->get($mname);
            } else {
                $suspect = [];
            }
            $suspect[$this->visitor->getClassName()] = $posbit;
            $this->methodTable->set($mname, $suspect);
        }
        $this->declareTable->set($fname, $posbit);
    }