| /template/twigstarter/vendor/twig/twig/src/Node/Expression/ |
| D | GetAttrExpression.php | 64 ->raw('(('.$var.' = ') 66 ->raw(') && is_array(') 67 ->raw($var); 71 ->raw(') || ') 72 ->raw($var) 73 ->raw(' instanceof ArrayAccess ? (') 74 ->raw($var) 75 ->raw('[') 78 $compiler->raw('] ?? null) : null)'); 86 ->raw(') || ') [all …]
|
| D | NameExpression.php | 49 ->raw('array_key_exists(') 51 ->raw(', $context)') 55 ->raw('(isset($context[') 57 ->raw(']) || array_key_exists(') 59 ->raw(', $context))') 63 $compiler->raw($this->specialVars[$name]); 66 ->raw('$context[') 68 ->raw(']') 73 ->raw('($context[') 75 ->raw('] ?? null)') [all …]
|
| D | MacroReferenceExpression.php | 55 ->raw('->hasMacro(') 57 ->raw(', $context') 58 ->raw(')') 66 ->raw('->getTemplateForMacro(') 68 ->raw(', $context, ') 70 ->raw(', $this->getSourceContext())') 71 ->raw(\sprintf('->%s', $this->getAttribute('name'))) 72 ->raw('(...') 74 ->raw(')')
|
| D | ArrowFunctionExpression.php | 44 ->raw('function (') 46 ->raw(') use ($context, $macros) { ') 50 ->raw('$context["') 51 ->raw($name->getAttribute('name')) 52 ->raw('"] = $__') 53 ->raw($name->getAttribute('name')) 54 ->raw('__; ') 58 ->raw('return ') 60 ->raw('; }')
|
| D | MethodCallExpression.php | 37 ->raw('method_exists($macros[') 39 ->raw('], ') 41 ->raw(')') 48 ->raw('CoreExtension::callMacro($macros[') 50 ->raw('], ') 52 ->raw(', ') 54 ->raw(', ') 56 ->raw(', $context, $this->getSourceContext())');
|
| D | ConditionalExpression.php | 32 ->raw('((') 34 ->raw(') ?: (') 36 ->raw('))'); 39 ->raw('((') 41 ->raw(') ? (') 43 ->raw(') : (') 45 ->raw('))');
|
| D | BlockReferenceExpression.php | 57 ->raw(";\n"); 78 ->raw(', ') 80 ->raw(')') 84 $compiler->raw(\sprintf('->unwrap()->%s', $method)); 92 ->raw('(') 94 ->raw(', $context'); 97 $compiler->raw(', $blocks'); 100 return $compiler->raw(')');
|
| D | CallExpression.php | 38 $compiler->raw($callable); 45 $compiler->raw($callable); 48 $compiler->raw(\sprintf('%s::%s', $callable[0], $callable[1])); 50 … $compiler->raw(\sprintf('$this->env->getRuntime(\'%s\')->%s', $callable[0], $callable[1])); 56 $compiler->raw(\sprintf('$this->env->getExtension(\'%s\')', $class)); 58 $compiler->raw(\sprintf('$this->extensions[\'%s\']', ltrim($class, '\\'))); 61 $compiler->raw(\sprintf('->%s', $callable[1])); 63 …$compiler->raw(\sprintf('$this->env->get%s(\'%s\')->getCallable()', ucfirst($this->getAttribute('t… 76 $compiler->raw($isArray ? '[' : '('); 83 $compiler->raw('$this->env->getCharset()'); [all …]
|
| D | ListExpression.php | 31 $compiler->raw(', '); 35 ->raw('$__') 36 ->raw($name->getAttribute('name')) 37 ->raw('__')
|
| /template/twigstarter/vendor/twig/twig/src/Node/Expression/Binary/ |
| D | ObjectDestructuringSetBinary.php | 56 $compiler->raw('['); 59 $compiler->raw(', '); 61 $compiler->raw('$context[')->repr($mapping['variable'])->raw(']'); 63 $compiler->raw('] = ['); 66 $compiler->raw(', '); 68 …raw('CoreExtension::getAttribute($this->env, $this->source, ')->subcompile($this->getNode('right')… 70 $compiler->raw(']'); 75 return $compiler->raw('=');
|
| D | SequenceDestructuringSetBinary.php | 51 $compiler->raw('['); 54 $compiler->raw(', '); 57 $compiler->raw('$context[')->repr($name)->raw(']'); 60 …$compiler->raw('] = array_pad(')->subcompile($this->getNode('right'))->raw(', ')->repr(\count($thi… 65 return $compiler->raw('=');
|
| D | ElvisBinary.php | 36 ->raw('((') 38 ->raw(') ? (') 40 ->raw(') : (') 42 ->raw('))') 48 return $compiler->raw('?:');
|
| D | HasEveryBinary.php | 22 ->raw('CoreExtension::arrayEvery($this->env, ') 24 ->raw(', ') 26 …->raw(', $this->env->hasExtension(\Twig\Extension\SandboxExtension::class) && $this->env->getExten… 32 return $compiler->raw('');
|
| D | HasSomeBinary.php | 22 ->raw('CoreExtension::arraySome($this->env, ') 24 ->raw(', ') 26 …->raw(', $this->env->hasExtension(\Twig\Extension\SandboxExtension::class) && $this->env->getExten… 32 return $compiler->raw('');
|
| /template/twigstarter/vendor/twig/twig/src/Node/ |
| D | IncludeNode.php | 53 ->raw(";\n") 69 ->raw(");\n") 76 $compiler->raw('->unwrap()->yield('); 78 $compiler->raw(");\n"); 88 ->raw('$this->load(') 90 ->raw(', ') 92 ->raw(')') 102 $compiler->raw(false === $this->getAttribute('only') ? '$context' : '[]'); 105 ->raw('CoreExtension::merge($context, ') 107 ->raw(')') [all …]
|
| D | SetNode.php | 62 $compiler->raw(', '); 67 $compiler->raw(']'); 71 $compiler->raw(' = '); 80 $compiler->raw(', '); 85 $compiler->raw(']'); 90 $compiler->raw('""'); 93 ->raw('new Markup(') 95 ->raw(', $this->env->getCharset())') 100 ->raw("('' === \$tmp = ") 102 ->raw(") ? '' : new Markup(\$tmp, \$this->env->getCharset())") [all …]
|
| D | ModuleNode.php | 152 ->raw('$this->load(') 154 ->raw(', ') 156 ->raw(')') 161 ->raw(";\n") 197 ->raw(" extends Template\n") 236 ->raw(', ') 238 ->raw(");\n") 243 ->raw(".'\" cannot be used as a trait.', ") 245 ->raw(", \$this->source);\n") 255 ->raw("])) {\n") [all …]
|
| D | CaptureNode.php | 35 $compiler->raw("('' === \$tmp = "); 38 …->raw($useYield ? "implode('', iterator_to_array(" : '\\Twig\\Extension\\CoreExtension::captureOut… 39 ->raw("(function () use (&\$context, \$macros, \$blocks) {\n") 47 $compiler->raw(', false))'); 49 $compiler->raw(')'); 52 $compiler->raw(") ? '' : new Markup(\$tmp, \$this->env->getCharset());"); 54 $compiler->raw(';');
|
| D | DeprecatedNode.php | 43 ->raw(";\n") 51 $compiler->raw("''"); 53 $compiler->raw(', '); 57 $compiler->raw("''"); 59 $compiler->raw(', '); 68 ->raw('.') 70 ->raw(");\n")
|
| D | MacroNode.php | 73 ->raw(' = ') 75 ->raw(', ') 80 ->raw('...$varargs') 81 ->raw("): string|Markup\n") 98 ->raw(' => ') 100 ->raw(",\n") 109 ->raw(' => ') 110 ->raw("\$varargs,\n") 116 ->raw("\n")
|
| D | EmbedNode.php | 39 ->raw('$this->load(') 41 ->raw(', ') 43 ->raw(', ') 45 ->raw(')') 49 ->raw(";\n")
|
| D | CheckSecurityNode.php | 59 ->write('static $tags = ')->repr(array_filter($this->usedTags))->raw(";\n") 60 ->write('static $filters = ')->repr(array_filter($this->usedFilters))->raw(";\n") 61 ->write('static $functions = ')->repr(array_filter($this->usedFunctions))->raw(";\n\n") 66 ->write('')->repr(array_keys($this->usedTags))->raw(",\n") 67 ->write('')->repr(array_keys($this->usedFilters))->raw(",\n") 68 ->write('')->repr(array_keys($this->usedFunctions))->raw(",\n")
|
| D | ImportNode.php | 48 $compiler->raw('$this'); 51 ->raw('$this->load(') 53 ->raw(', ') 55 ->raw(')->unwrap()') 59 $compiler->raw(";\n");
|
| /template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/ |
| D | ConstantTest.php | 31 ->raw('(') 33 ->raw(' === constant(') 38 ->raw('get_class(') 40 ->raw(')."::".') 46 ->raw('))')
|
| /template/twigstarter/vendor/twig/twig/src/ |
| D | Compiler.php | 89 public function subcompile(Node $node, bool $raw = true) argument 91 if (!$raw) { 116 public function raw(string $string) function in Twig\\Compiler 169 $this->raw(var_export($value, true)); 175 $this->raw('null'); 177 $this->raw($value ? 'true' : 'false'); 179 $this->raw('['); 183 $this->raw(', '); 187 $this->raw(' => '); 190 $this->raw(']');
|