public function Twig_ParserInterface::parse in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/ParserInterface.php \Twig_ParserInterface::parse()
Converts a token stream to a node tree.
Parameters
Twig_TokenStream $stream A token stream instance:
Return value
Twig_Node_Module A node tree
Throws
Twig_Error_Syntax When the token stream is syntactically or semantically wrong
1 method overrides Twig_ParserInterface::parse()
- Twig_Parser::parse in vendor/
Twig/ Parser.php - Converts a token stream to a node tree.
File
- vendor/
Twig/ ParserInterface.php, line 30
Class
- Twig_ParserInterface
- Interface implemented by parser classes.
Code
public function parse(Twig_TokenStream $stream);