Lines Matching refs:type
85 protected function escapePrintNode(PrintNode $node, Environment $env, $type) argument
87 if (false === $type) {
93 if ($this->isSafeFor($type, $expression, $env)) {
100 $this->getEscaperFilter($type, $expression),
109 $type = $env->getFilter($name)->getPreEscape();
110 if (null === $type) {
115 if ($this->isSafeFor($type, $node, $env)) {
119 $filter->setNode('node', $this->getEscaperFilter($type, $node));
124 protected function isSafeFor($type, \Twig_NodeInterface $expression, $env) argument
139 return \in_array($type, $safe) || \in_array('all', $safe);
151 protected function getEscaperFilter($type, \Twig_NodeInterface $node) argument
155 …$args = new Node([new ConstantExpression((string) $type, $line), new ConstantExpression(null, $lin…