Lines Matching refs:compiler
23 protected function compileCallable(Compiler $compiler) argument
30 $compiler->raw($callable);
35 $compiler->raw(sprintf('%s::%s', $callable[0], $callable[1]));
37 … $compiler->raw(sprintf('$this->env->getRuntime(\'%s\')->%s', $callable[0], $callable[1]));
42 if (!$compiler->getEnvironment()->hasExtension($class)) {
44 $compiler->raw(sprintf('$this->env->getExtension(\'%s\')', $class));
46 $compiler->raw(sprintf('$this->extensions[\'%s\']', ltrim($class, '\\')));
49 $compiler->raw(sprintf('->%s', $callable[1]));
53 …$compiler->raw(sprintf('call_user_func_array($this->env->get%s(\'%s\')->getCallable(), ', ucfirst(…
57 $this->compileArguments($compiler, $isArray);
60 $compiler->raw(')');
64 protected function compileArguments(Compiler $compiler, $isArray = false) argument
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(', ');
97 $compiler->subcompile($this->getNode('node'));
106 $compiler->raw(', ');
108 $compiler->subcompile($node);
113 $compiler->raw($isArray ? ']' : ')');