@param Node $node

@return void
506633
private function recordDefinitionOf(Node $node)
    {
        if (!isset($node->namespacedName)) {
            throw new \UnexpectedValueException(sprintf(
                'Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: '
                . 'did you pass it through a name resolver visitor?',
                get_class($node),
                $node->getLine()
            ));
        }

        $this->recordDefinitionOfStringSymbol((string)$node->namespacedName);
    }
538759
private function detach($node) {
        $node->getPrevious()->setNext($node->getNext());
        $node->getNext()->setPrevious($node->getPrevious());
    }
54472
public function append(Node $node) : bool
    {
        $node->parent = $this;

        return $this->childNodes->add($node);
    }
233286
public function visitNode(Node &$node)
    {
        $changed_at = $this->formatDate($this->versioning->getLastChange());
        $first_hit  = $this->formatDate($this->dynamic_analysis->getFirstHit());
        $last_hit   = $this->formatDate($this->dynamic_analysis->getLastHit());

        $json["leaf"]             = false !== strpos($node->getPath(), '::');
        $json["changed_at"]       = $changed_at;
        $json["function_count"]   = $this->dynamic_analysis->getFunctionCount();
        $json["hit_count"]        = $this->dynamic_analysis->getCount();
        $json["dead_count"]       = $this->dynamic_analysis->getDeadCount();
        $json["first_hit"]        = $first_hit;
        $json["last_hit"]         = $last_hit;
        $json["color"]            = $this->ratioToColor($this->dynamic_analysis->getRatioDead());
        $json["pct_dead"]         = $this->dynamic_analysis->getPctDead();
        $json["class"]            = $this->cssEncode($node->getPath());
        $json["name"]             = $node->getPath();
        $json["path"]             = $node->getFullPath();
        $this->json['children'][] = $json;
    }
1004170
private function deleteNode( $node ) {
		$this->deleteChildren( $node );
		$parent = $node->parentNode;
		$oldnode = $parent->removeChild( $node );
	}
19033
public function addChild(Node $child) {
        array_push($this->children, $child);
        $child->setParent( $this );
    }
1234562
public static function remove_node($node) {
		if (
			! \is_a($node, 'DOMElement') &&
			! \is_a($node, 'DOMNode')
		) {
			return false;
		}

		$node->parentNode->removeChild($node);

		return true;
	}
508976
public function enterNode(Node $node): void
    {
        $name = null;

        if ($node instanceof Name) {
            $name = $node->toString();
        }

        if ($name === null
            || (array_key_exists($name, $this->symbols)
                && $this->symbols[$name] === false
            )
        ) {
            return;
        }

        if (!$this->filter->__invoke($name)) {
            $this->symbols[$name] = false;
            return;
        }

        if (!array_key_exists($name, $this->symbols)) {
            $this->symbols[$name] = [];
        }

        $this->symbols[$name][] = $node;
    }
326734
protected function pushChildNode(Element $node)
    {
        $node->attributes->addAttributeClass('page-item');

        if ($node->childNodes->first() instanceof Link) {
            $node->childNodes->first()->attributes->addAttributeClass('page-link');
        }

        parent::pushChildNode($node);
    }
1214444
public function parseXml($node)
    {
        foreach ($node->childNodes as $item) {
            switch ($item->nodeName) {
                case "day_entry":
                    $this->_dayEntry = new DayEntry();
                    $this->_dayEntry->parseXml( $node );
                break;
                case "hours_for_previously_running_timer":
                    $this->_hoursForPrevious = $item->nodeValue;
                break;
                default:
                break;
            }
        }
    }
442742
public function leaveNode(Node $node)
    {
        if ($node instanceof Class_) {
            $node->stmts[] = new Property(
                $this->type,
                [new PropertyProperty(
                    $this->name,
                    $this->parseValue($this->value)
                )],
                [
                    'comments'  => [new Comment(sprintf(
                        '/**'."\n"
                            .'     * Property %s.'."\n"
                            . (empty($this->comment) ? '' : '    * '.$this->comment."\n")
                            .'     * Ayuco: addition %s'."\n"
                            .'     * @since fill'."\n"
                            .'     *'."\n"
                            .'     * @var '.$this->getValueType($this->value)."\n"
                            .'     */',
                        $this->name,
                        date('Y-m-d h:i a'))
                    )]
                ]
            );
        }
    }
616209
public function execute(NodeData $node)
    {
        $dimensions = [];
        foreach ($this->dimensionValues as $dimensionName => $dimensionConfiguration) {
            foreach ($dimensionConfiguration as $dimensionValues) {
                if (is_array($dimensionValues)) {
                    foreach ($dimensionValues as $dimensionValue) {
                        $dimensions[] = new NodeDimension($node, $dimensionName, $dimensionValue);
                    }
                } else {
                    $dimensions[] = new NodeDimension($node, $dimensionName, $dimensionValues);
                }
            }
        }

        if ($this->addDefaultDimensionValues === true) {
            $configuredDimensions = $this->contentDimensionRepository->findAll();
            foreach ($configuredDimensions as $configuredDimension) {
                if (!isset($this->dimensionValues[$configuredDimension->getIdentifier()])) {
                    $dimensions[] = new NodeDimension($node, $configuredDimension->getIdentifier(), $configuredDimension->getDefault());
                }
            }
        }

        $node->setDimensions($dimensions);
    }
851685
public function apply(AbstractNode $node)
    {
        $patterns = $this->collectPatterns($node);

        $this->applyPatterns($node, $patterns);

        /** @var \PHPMD\Node\AbstractTypeNode $node */
        foreach ($node->getMethods() as $method) {
            $this->applyPatterns(
                $method,
                $patterns
            );
        }
    }
641858
public function removeNode( $node )
	{
		foreach( $this->getNodes() as $_node )
			$this->removeEdge( $_node, $node );									//  remove all Edges of Node
		$this->nodeSet->removeNode( $node );									//  remove Node
	}
390949
public function attachLeft(BinaryNode $node) : void
    {
        $node->setParent($this);

        $this->left = $node;
    }
86081
final public function mutate(Node $node)
    {
        foreach ($this->getParameterIndexes($node) as $index) {
            yield $node->args[$index];
        }
    }
281990
public function execute(NodeData $node)
    {
        $node->setProperty($this->propertyName, strip_tags($node->getProperty($this->propertyName)));
    }