Home
last modified time | relevance | path

Searched refs:getSourceContext (Results 1 – 25 of 28) sorted by relevance

12

/template/twigstarter/vendor/twig/twig/src/
DTemplate.php77 public function getSourceContext() function in Twig\\Template
104 return $this->parents[$parent->getSourceContext()->getName()] = $parent;
147 …late has no parent and no traits defining the "%s" block.', $name), -1, $this->getSourceContext());
184 if (!$e->getSourceContext()) {
185 $e->setSourceContext($template->getSourceContext());
196 …ng the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
204 …name][0]->getTemplateName(), $this->getTemplateName()), -1, $blocks[$name][0]->getSourceContext());
206 …ot exist.', $name, $this->getTemplateName()), -1, ($templateContext ?? $this)->getSourceContext());
335 if (!$e->getSourceContext()) {
336 … $e->setSourceContext($templateName ? new Source('', $templateName) : $this->getSourceContext());
[all …]
DParser.php103 if (!$e->getSourceContext()) {
104 $e->setSourceContext($this->stream->getSourceContext());
114 …de($this->macros), new Node($this->traits), $this->embeddedTemplates, $stream->getSourceContext());
151 …Error('A block must start with a tag name.', $token->getLine(), $this->stream->getSourceContext());
168 …('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this->stream->getSourceContext());
174 …tf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->stream->getSourceContext());
191 …up in unsupported state.', $this->getCurrentToken()->getLine(), $this->stream->getSourceContext());
351 …e content inside a {% block %} tag?', $node->getTemplateLine(), $this->stream->getSourceContext());
362 … Twig 2.5.0 and will become a syntax error in 3.0.', $this->stream->getSourceContext()->getName(),…
370 … Twig 2.5.0 and will become a syntax error in 3.0.', $this->stream->getSourceContext()->getName(),…
DExpressionParser.php266 …or "%s".', $token->getValue()), $token->getLine(), $this->parser->getStream()->getSourceContext());
283 …instead.', $token->getValue()), $token->getLine(), $this->parser->getStream()->getSourceContext());
285 …etType()), $token->getValue()), $token->getLine(), $this->parser->getStream()->getSourceContext());
385 …ish($current->getType()), $current->getValue()), $current->getLine(), $stream->getSourceContext());
424 …ng "parent" outside a block is forbidden.', $line, $this->parser->getStream()->getSourceContext());
428 … nor "use" another template is forbidden.', $line, $this->parser->getStream()->getSourceContext());
435 …tion takes one argument (the block name).', $line, $this->parser->getStream()->getSourceContext());
442 …uments (the variable and the attributes).', $line, $this->parser->getStream()->getSourceContext());
491 …token->getValue(), Token::typeToEnglish($token->getType())), $lineno, $stream->getSourceContext());
496 … (called on "%s").', $node->getAttribute('name')), $token->getLine(), $stream->getSourceContext());
[all …]
DTemplateWrapper.php124 public function getSourceContext(): Source function in Twig\\TemplateWrapper
126 return $this->template->getSourceContext();
DTokenStream.php128 public function getSourceContext(): Source function in Twig\\TokenStream
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DExtendsTokenParser.php31 …new SyntaxError('Cannot use "extend" in a block.', $token->getLine(), $stream->getSourceContext());
33 …new SyntaxError('Cannot use "extend" in a macro.', $token->getLine(), $stream->getSourceContext());
37 …yntaxError('Multiple extends tags are forbidden.', $token->getLine(), $stream->getSourceContext());
DSetTokenParser.php43 …ber of variables and assignments.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
49 …, you cannot have a multi-target.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
DForTokenParser.php46 …ondition depends on a variable updated inside the loop).', $stream->getSourceContext()->getName(),…
94 …le cannot be used in a looping condition.', $node->getTemplateLine(), $stream->getSourceContext());
113 …tion.', $attribute->getAttribute('value')), $node->getTemplateLine(), $stream->getSourceContext());
DBlockTokenParser.php38 …etBlock($name)->getTemplateLine()), $stream->getCurrent()->getLine(), $stream->getSourceContext());
50 …(but "%s" given).', $name, $value), $stream->getCurrent()->getLine(), $stream->getSourceContext());
DSpacelessTokenParser.php36 …use the "spaceless" filter with the "apply" tag instead.', $stream->getSourceContext()->getName(),…
DSandboxTokenParser.php46 …s are allowed within a "sandbox" section.', $node->getTemplateLine(), $stream->getSourceContext());
DAutoEscapeTokenParser.php34 …rategy must be a string or false.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
DUseTokenParser.php39 …"use" statement must be a string.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
DFilterTokenParser.php36 … deprecated since Twig 2.9, use the "apply" tag instead.', $stream->getSourceContext()->getName(),…
DMacroTokenParser.php44 …(but "%s" given).', $name, $value), $stream->getCurrent()->getLine(), $stream->getSourceContext());
DIfTokenParser.php64 …ck started at line %d).', $lineno), $stream->getCurrent()->getLine(), $stream->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/Node/
DModuleNode.php128 ->repr($this->getSourceContext()->getName())
164 ->write('/* '.str_replace('*/', '* /', $this->getSourceContext()->getName())." */\n")
165 …->write('class '.$compiler->getEnvironment()->getTemplateClass($this->getSourceContext()->getName(…
328 ->repr($this->getSourceContext()->getName())
367 ->repr($this->getSourceContext()->getName())
443 … ->string($compiler->getEnvironment()->isDebug() ? $this->getSourceContext()->getCode() : '')
445 ->string($this->getSourceContext()->getName())
447 ->string($this->getSourceContext()->getPath())
DMacroNode.php30 …RGS_NAME, $name, self::VARARGS_NAME), $argument->getTemplateLine(), $argument->getSourceContext());
DNode.php210 public function getSourceContext() function in Twig\\Node\\Node
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
DCallExpression.php128 …guments for %s "%s".', $callType, $callName), $this->getTemplateLine(), $this->getSourceContext());
169 … for %s "%s".', $name, $callType, $callName), $this->getTemplateLine(), $this->getSourceContext());
176 ), $this->getTemplateLine(), $this->getSourceContext());
198 … for %s "%s".', $name, $callType, $callName), $this->getTemplateLine(), $this->getSourceContext());
234 … $unknownParameter ? $unknownParameter->getSourceContext() : $this->getSourceContext()
/template/twigstarter/vendor/twig/twig/src/Loader/
DChainLoader.php50 public function getSourceContext($name) function in Twig\\Loader\\ChainLoader
59 return $loader->getSourceContext($name);
DLoaderInterface.php33 public function getSourceContext($name); function
DArrayLoader.php52 public function getSourceContext($name) function in Twig\\Loader\\ArrayLoader
/template/twigstarter/vendor/twig/twig/src/Error/
DError.php116 public function getSourceContext() function in Twig\\Error\\Error
218 $src = $template->getSourceContext();
/template/twigstarter/vendor/twig/twig/src/Test/
DIntegrationTestCase.php248 … echo $twig->compile($twig->parse($twig->tokenize($twig->getLoader()->getSourceContext($name))));

12