public function Twig_Environment::parse in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Environment.php \Twig_Environment::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 call to Twig_Environment::parse()
- Twig_Environment::compileSource in vendor/
Twig/ Environment.php - Compiles a template source code.
File
- vendor/
Twig/ Environment.php, line 505
Class
- Twig_Environment
- Stores the Twig configuration.
Code
public function parse(Twig_TokenStream $stream) {
return $this
->getParser()
->parse($stream);
}