示例#1
0
 /**
  * Creates an unary operator.
  *
  * @param ezcTemplateOperatorTstNode $type
  * @param ezcTemplateOperatorAstNode $astNode
  * @param bool $addParenthesis
  */
 private function createUnaryOperatorAstNode($type, ezcTemplateOperatorAstNode $astNode, $addParenthesis = true)
 {
     $astNode->appendParameter($type->parameters[0]->accept($this));
     return $addParenthesis ? new ezcTemplateParenthesisAstNode($astNode) : $astNode;
 }