private function adjustSelfTokens(StreamMetaData $metadata, array $replacedNodes): void
    {
        foreach ($replacedNodes as $replacedNode)
        {
            $position = $replacedNode->getAttribute('startTokenPos');
            $metadata->tokenStream[$position][1] = $replacedNode->toString();
        }
    }
private function adjustSelfTokens(StreamMetaData $metadata, array $replacedNodes): void
    {
        foreach ($replacedNodes as $replacedNode)
        {
            $position = $replacedNode->getAttribute('startTokenPos');
            $metadata->tokenStream[$position][1] = $replacedNode->toString();
        }
    }
private function adjustSelfTokens ( StreamMetaData $ metadata , array $ replacedNodes ) : void { foreach ( $ replacedNodes as $ replacedNode ) { $ position = $ replacedNode -> getAttribute ( 'startTokenPos' ) ; $ metadata -> tokenStream [ $ position ] [ 1 ] = $ replacedNode -> toString ( ) ; } }
Adjusts tokens in the source code

@param FullyQualified[] $replacedNodes Replaced nodes in the source code
Adjusts tokens in the source code