Home
last modified time | relevance | path

Searched refs:compiler (Results 1 – 25 of 182) sorted by relevance

12345678

/template/twigstarter/vendor/twig/twig/src/Node/
H A DModuleNode.php114 $compiler
135 $compiler
144 $compiler
162 $compiler
176 $compiler
278 $compiler
302 $compiler
311 $compiler
340 $compiler
349 $compiler
[all …]
H A DSetNode.php46 $compiler->addDebugInfo($this);
49 $compiler->write('list(');
52 $compiler->raw(', ');
55 $compiler->subcompile($node);
57 $compiler->raw(')');
65 $compiler
78 $compiler->raw(' = ');
81 $compiler->write('[');
89 $compiler->raw(']');
92 $compiler
[all …]
H A DIncludeNode.php35 public function compile(Compiler $compiler) argument
37 $compiler->addDebugInfo($this);
42 $compiler
49 $this->addGetTemplate($compiler);
51 $compiler
64 $compiler
71 $compiler->raw('->display(');
73 $compiler->raw(");\n");
79 $compiler
95 $compiler
[all …]
H A DMacroNode.php37 public function compile(Compiler $compiler) argument
39 $compiler
47 $compiler
53 $compiler->raw(', ');
58 $compiler->raw(', ');
61 $compiler
72 $compiler
80 $compiler
86 $compiler
93 $compiler->write("ob_start();\n");
[all …]
H A DWithNode.php33 public function compile(Compiler $compiler) argument
35 $compiler->addDebugInfo($this);
39 $varsName = $compiler->getVarName();
40 $compiler
55 $compiler->write("\$context = ['_parent' => \$context];\n");
57 $compiler->write("\$context['_parent'] = \$context;\n");
60 …$compiler->write(sprintf("\$context = \$this->env->mergeGlobals(array_merge(\$context, \$%s));\n",…
62 $compiler->write("\$context['_parent'] = \$context;\n");
65 $compiler
H A DForNode.php44 public function compile(Compiler $compiler) argument
46 $compiler
55 $compiler->write("\$context['_iterated'] = false;\n");
59 $compiler
69 $compiler
87 $compiler
100 $compiler
109 $compiler->write("\$_parent = \$context['_parent'];\n");
112 …$compiler->write('unset($context[\'_seq\'], $context[\'_iterated\'], $context[\''.$this->getNode('…
115 $compiler->write("\$context = array_intersect_key(\$context, \$_parent) + \$_parent;\n");
H A DIfNode.php34 public function compile(Compiler $compiler) argument
36 $compiler->addDebugInfo($this);
39 $compiler
44 $compiler
49 $compiler
58 $compiler
66 $compiler
H A DSpacelessNode.php32 public function compile(Compiler $compiler) argument
34 $compiler
37 if ($compiler->getEnvironment()->isDebug()) {
38 $compiler->write("ob_start();\n");
40 $compiler->write("ob_start(function () { return ''; });\n");
42 $compiler
H A DDeprecatedNode.php30 public function compile(Compiler $compiler) argument
32 $compiler->addDebugInfo($this);
37 $compiler->write('@trigger_error(')
40 $varName = $compiler->getVarName();
41 $compiler->write(sprintf('$%s = ', $varName))
47 $compiler
H A DImportNode.php30 public function compile(Compiler $compiler) argument
32 $compiler
40 $compiler
48 $compiler->raw('$this');
50 $compiler
61 $compiler->raw(";\n");
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DBlockReferenceExpression.php35 public function compile(Compiler $compiler) argument
38 $this->compileTemplateCall($compiler, 'hasBlock');
41 $compiler->addDebugInfo($this);
44 ->compileTemplateCall($compiler, 'displayBlock')
55 $compiler->write('$this');
57 $compiler
68 $compiler->raw(sprintf('->%s', $method));
70 return $this->compileBlockArguments($compiler);
75 $compiler
81 $compiler->raw(', $blocks');
[all …]
H A DNameExpression.php30 public function compile(Compiler $compiler) argument
34 $compiler->addDebugInfo($this);
38 $compiler->repr(true);
40 $compiler
46 $compiler
55 $compiler->raw($this->specialVars[$name]);
57 $compiler
63 …if ($this->getAttribute('ignore_strict_check') || !$compiler->getEnvironment()->isStrictVariables(…
64 $compiler
70 $compiler
H A DCallExpression.php30 $compiler->raw($callable);
60 $compiler->raw(')');
66 $compiler->raw($isArray ? '[' : '(');
71 $compiler->raw('$this->env');
77 $compiler->raw(', ');
79 $compiler->raw('$context');
86 $compiler->raw(', ');
88 $compiler->string($argument);
95 $compiler->raw(', ');
106 $compiler->raw(', ');
[all …]
H A DGetAttrExpression.php31 public function compile(Compiler $compiler) argument
33 $env = $compiler->getEnvironment();
42 $var = '$'.$compiler->getVarName();
43 $compiler
60 $compiler->raw('twig_get_attribute($this->env, $this->source, ');
66 $compiler
73 $compiler->raw(', ')->subcompile($this->getNode('arguments'));
75 $compiler->raw(', []');
78 $compiler->raw(', ')
H A DArrowFunctionExpression.php29 public function compile(Compiler $compiler) argument
31 $compiler
37 $compiler->raw(', ');
40 $compiler
46 $compiler
50 $compiler
58 $compiler
H A DMethodCallExpression.php27 public function compile(Compiler $compiler) argument
30 $compiler
41 $compiler
51 $compiler->raw(', ');
55 $compiler->subcompile($pair['value']);
57 $compiler
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Binary/
H A DFloorDivBinary.php18 public function compile(Compiler $compiler) argument
20 $compiler->raw('(int) floor(');
21 parent::compile($compiler);
22 $compiler->raw(')');
25 public function operator(Compiler $compiler) argument
27 return $compiler->raw('/');
H A DStartsWithBinary.php18 public function compile(Compiler $compiler) argument
20 $left = $compiler->getVarName();
21 $right = $compiler->getVarName();
22 $compiler
31 public function operator(Compiler $compiler) argument
33 return $compiler->raw('');
H A DEndsWithBinary.php18 public function compile(Compiler $compiler) argument
20 $left = $compiler->getVarName();
21 $right = $compiler->getVarName();
22 $compiler
31 public function operator(Compiler $compiler) argument
33 return $compiler->raw('');
H A DAbstractBinary.php26 public function compile(Compiler $compiler) argument
28 $compiler
33 $this->operator($compiler);
34 $compiler
41 abstract public function operator(Compiler $compiler); argument
H A DNotInBinary.php18 public function compile(Compiler $compiler) argument
20 $compiler
29 public function operator(Compiler $compiler) argument
31 return $compiler->raw('not in');
H A DInBinary.php18 public function compile(Compiler $compiler) argument
20 $compiler
29 public function operator(Compiler $compiler) argument
31 return $compiler->raw('in');
H A DMatchesBinary.php18 public function compile(Compiler $compiler) argument
20 $compiler
29 public function operator(Compiler $compiler) argument
31 return $compiler->raw('');
H A DRangeBinary.php18 public function compile(Compiler $compiler) argument
20 $compiler
29 public function operator(Compiler $compiler) argument
31 return $compiler->raw('..');
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Unary/
H A DAbstractUnary.php26 public function compile(Compiler $compiler) argument
28 $compiler->raw(' ');
29 $this->operator($compiler);
30 $compiler->subcompile($this->getNode('node'));
33 abstract public function operator(Compiler $compiler); argument

12345678