Esempio n. 1
0
 public function addElement(Twig_Node_Expression $value, Twig_Node_Expression $key = null)
 {
     if (null === $key) {
         $key = new Twig_Node_Expression_Constant(++$this->index, $value->getLine());
     }
     array_push($this->nodes, $key, $value);
 }