src/Luminous/Core/Scanners/StatefulScanner.php
public function record($str, $dummy1 = null, $dummy2 = null)
    {
        if ($dummy1 !== null || $dummy2 !== null) {
            throw new Exception(
                'Luminous\\Core\\Scanners\\StatefulScanner::record does not currently observe its second and third '
                . 'parameters'
            );
        }
        // NOTE to self: if ever this needs to change, don't call count on $c.
        // Dereference it first: http://bugs.php.net/bug.php?id=34540
        $c = &$this->tokenTreeStack[count($this->tokenTreeStack) - 1]['children'];
        $c[] = $str;
    }
public function record($str, $dummy1 = null, $dummy2 = null)
    {
        if ($dummy1 !== null || $dummy2 !== null) {
            throw new Exception(
                'Luminous\\Core\\Scanners\\StatefulScanner::record does not currently observe its second and third '
                . 'parameters'
            );
        }
        // NOTE to self: if ever this needs to change, don't call count on $c.
        // Dereference it first: http://bugs.php.net/bug.php?id=34540
        $c = &$this->tokenTreeStack[count($this->tokenTreeStack) - 1]['children'];
        $c[] = $str;
    }
public function record ( $ str , $ dummy1 = null , $ dummy2 = null ) { if ( $ dummy1 !== null || $ dummy2 !== null ) { throw new Exception ( 'Luminous\\Core\\Scanners\\StatefulScanner::record does not currently observe its second and third ' . 'parameters' ) ; } // NOTE to self: if ever this needs to change, don't call count on $c. // Dereference it first: http://bugs.php.net/bug.php?id=34540 $ c = & $ this -> tokenTreeStack [ count ( $ this -> tokenTreeStack ) - 1 ] [ 'children' ] ; $ c [ ] = $ str ; }
Records a string as a child of the currently active token
@warning the second and third parameters are not applicable to this
method, they are only present to suppress PHP warnings. If you set them,
an exception is thrown.
Records a string as a child of the currently active token