Pinq\Parsing\PhpParser\Visitors\FunctionLocatorVisitor::foundFunctionNode PHP Method

foundFunctionNode() private method

private foundFunctionNode ( LocatedFunctionNode $locatedNode )
$locatedNode Pinq\Parsing\PhpParser\LocatedFunctionNode
    private function foundFunctionNode(LocatedFunctionNode $locatedNode)
    {
        $locationHash = $locatedNode->getLocation()->getHash();
        if (!isset($this->functionNodes[$locationHash])) {
            $this->functionNodes[$locationHash] = [];
        }
        $this->functionNodes[$locationHash][] = $locatedNode;
    }