[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch




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

(no description)

File Size: 201 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TokenStream:: (13 methods):

Class: TokenStream  - X-Ref

Represents a token stream.

__construct(array $tokens, $name = null, $source = null)   X-Ref

param: array       $tokens An array of tokens
param: string|null $name   The name of the template which tokens are associated with
param: string|null $source The source code associated with the tokens

__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.

return: Token

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, $message = null)   X-Ref
Tests a token and returns it or throws a syntax error.

return: Token

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

param: int $number
return: Token

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

return: bool

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

return: bool

getCurrent()   X-Ref

return: Token

getFilename()   X-Ref
Gets the name associated with this stream (null if not defined).

return: string|null

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

return: string

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

return: Source

Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1