[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch




/vendor/twig/twig/src/ -> TokenStream.php (summary)

Represents a token stream.

Author: Fabien Potencier <fabien@symfony.com>
File Size: 134 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions


Functions that are not part of a class:

__construct(array $tokens, Source $source = null)   X-Ref
No description

__toString()   X-Ref
No description

injectTokens(array $tokens)   X-Ref
No description

next()   X-Ref
Sets the pointer to the next token and returns the old one.

nextIf($primary, $secondary = null)   X-Ref
Tests a token, sets the pointer to the next one and returns it or throws a syntax error.

return: Token|null The next token if the condition is true, null otherwise

expect($type, $value = null, string $message = null)   X-Ref
Tests a token and returns it or throws a syntax error.

look(int $number = 1)   X-Ref
Looks at the next token.

test($primary, $secondary = null)   X-Ref
Tests the current token.

isEOF()   X-Ref
Checks if end of stream was reached.

getCurrent()   X-Ref
No description

getSourceContext()   X-Ref
Gets the source associated with this stream.

Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1