Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 55... Línea 55...
55
    ];
55
    ];
Línea 56... Línea 56...
56
 
56
 
57
    /**
57
    /**
58
     * @param Lexer|null $lexer Lexer used to tokenize expressions
58
     * @param Lexer|null $lexer Lexer used to tokenize expressions
59
     */
59
     */
60
    public function __construct(Lexer $lexer = null)
60
    public function __construct(?Lexer $lexer = null)
61
    {
61
    {
62
        $this->lexer = $lexer ?: new Lexer();
62
        $this->lexer = $lexer ?: new Lexer();
Línea 63... Línea 63...
63
    }
63
    }
Línea 364... Línea 364...
364
            'value'    => $key,
364
            'value'    => $key,
365
            'children' => [$this->expr()]
365
            'children' => [$this->expr()]
366
        ];
366
        ];
367
    }
367
    }
Línea 368... Línea 368...
368
 
368
 
369
    private function parseWildcardObject(array $left = null)
369
    private function parseWildcardObject(?array $left = null)
370
    {
370
    {
Línea 371... Línea 371...
371
        $this->next();
371
        $this->next();
372
 
372
 
Línea 378... Línea 378...
378
                $this->parseProjection(self::$bp[T::T_STAR])
378
                $this->parseProjection(self::$bp[T::T_STAR])
379
            ]
379
            ]
380
        ];
380
        ];
381
    }
381
    }
Línea 382... Línea 382...
382
 
382
 
383
    private function parseWildcardArray(array $left = null)
383
    private function parseWildcardArray(?array $left = null)
384
    {
384
    {
385
        static $getRbracket = [T::T_RBRACKET => true];
385
        static $getRbracket = [T::T_RBRACKET => true];
386
        $this->next($getRbracket);
386
        $this->next($getRbracket);
Línea 471... Línea 471...
471
        return (!isset($this->tokens[$this->tpos + 1]))
471
        return (!isset($this->tokens[$this->tpos + 1]))
472
            ? T::T_EOF
472
            ? T::T_EOF
473
            : $this->tokens[$this->tpos + 1]['type'];
473
            : $this->tokens[$this->tpos + 1]['type'];
474
    }
474
    }
Línea 475... Línea 475...
475
 
475
 
476
    private function next(array $match = null)
476
    private function next(?array $match = null)
477
    {
477
    {
478
        if (!isset($this->tokens[$this->tpos + 1])) {
478
        if (!isset($this->tokens[$this->tpos + 1])) {
479
            $this->token = self::$nullToken;
479
            $this->token = self::$nullToken;
480
        } else {
480
        } else {