public function Twig_Environment::parse

Parses a token stream.

Parameters

Twig_TokenStream $tokens A Twig_TokenStream instance:

Return value

Twig_Node_Module A Node tree

1 call to Twig_Environment::parse()
Twig_Environment::compileSource in drupal/core/vendor/twig/twig/lib/Twig/Environment.php
Compiles a template source code.

File

drupal/core/vendor/twig/twig/lib/Twig/Environment.php, line 484

Class

Twig_Environment
Stores the Twig configuration.

Code

public function parse(Twig_TokenStream $tokens) {
  return $this
    ->getParser()
    ->parse($tokens);
}