src/ViKon/Parser/TokenList.php
public function merge(TokenList $tokenList) {
        $tokenList->closeOpenTokens();
        $lastTokenPosition = $this->last() === null ? 0 : $this->last()
            ->getPosition();
        foreach ($tokenList->getTokens() as $token) {
            $token->setPosition($token->getPosition() + $lastTokenPosition);
            $this->tokens[] = $token;
        }
    }
public function merge(TokenList $tokenList) {
        $tokenList->closeOpenTokens();
        $lastTokenPosition = $this->last() === null ? 0 : $this->last()
            ->getPosition();
        foreach ($tokenList->getTokens() as $token) {
            $token->setPosition($token->getPosition() + $lastTokenPosition);
            $this->tokens[] = $token;
        }
    }
public function merge ( TokenList $ tokenList ) { $ tokenList -> closeOpenTokens ( ) ; $ lastTokenPosition = $ this -> last ( ) === null ? 0 : $ this -> last ( ) -> getPosition ( ) ; foreach ( $ tokenList -> getTokens ( ) as $ token ) { $ token -> setPosition ( $ token -> getPosition ( ) + $ lastTokenPosition ) ; $ this -> tokens [ ] = $ token ; } }
Merge two token list

@param TokenList $tokenList
Merge two token list