private function parseViaPragmas(array $tokenStruct, Pragma\PragmaCollection $pragmas, array $scopedPragmas)
    {
        $token = $tokenStruct[0];
        foreach ($this->filterPragmasByToken($token, $pragmas, $scopedPragmas) as $pragma) {
            $data        = $tokenStruct[1];
            $tokenStruct = $pragma->parse($tokenStruct);
            $this->assertTokenStruct($tokenStruct);
        }

        return $tokenStruct;
    }
private function parseViaPragmas(array $tokenStruct, Pragma\PragmaCollection $pragmas, array $scopedPragmas)
    {
        $token = $tokenStruct[0];
        foreach ($this->filterPragmasByToken($token, $pragmas, $scopedPragmas) as $pragma) {
            $data        = $tokenStruct[1];
            $tokenStruct = $pragma->parse($tokenStruct);
            $this->assertTokenStruct($tokenStruct);
        }

        return $tokenStruct;
    }
private function parseViaPragmas ( array $ tokenStruct , Pragma \ PragmaCollection $ pragmas , array $ scopedPragmas ) { $ token = $ tokenStruct [ 0 ] ; foreach ( $ this -> filterPragmasByToken ( $ token , $ pragmas , $ scopedPragmas ) as $ pragma ) { $ data = $ tokenStruct [ 1 ] ; $ tokenStruct = $ pragma -> parse ( $ tokenStruct ) ; $ this -> assertTokenStruct ( $ tokenStruct ) ; } return $ tokenStruct ; }
Parse a token via a pragma.

Passes the token and data to each pragma capable of handling the given token;
pragmas are expected to return a valid token struct (array with token and data).

Each pragma is passed the token data as returned by the previous pragma, which
means that the order in which pragmas are registered can matter.
Parse a token via a pragma .