Home
last modified time | relevance | path

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

12

/template/twigstarter/vendor/twig/twig/src/
H A 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());
206 …ot exist.', $name, $this->getTemplateName()), -1, ($templateContext ?? $this)->getSourceContext());
335 if (!$e->getSourceContext()) {
336 … $e->setSourceContext($templateName ? new Source('', $templateName) : $this->getSourceContext());
407 if (!$e->getSourceContext()) {
408 $e->setSourceContext($this->getSourceContext());
[all …]
H A DParser.php59 …return sprintf('__internal_%s', hash('sha256', __METHOD__.$this->stream->getSourceContext()->getCo…
104 if (!$e->getSourceContext()) {
105 $e->setSourceContext($this->stream->getSourceContext());
115 …de($this->macros), new Node($this->traits), $this->embeddedTemplates, $stream->getSourceContext());
152 …Error('A block must start with a tag name.', $token->getLine(), $this->stream->getSourceContext());
169 …('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this->stream->getSourceContext());
175 …tf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->stream->getSourceContext());
192 …up in unsupported state.', $this->getCurrentToken()->getLine(), $this->stream->getSourceContext());
352 …e content inside a {% block %} tag?', $node->getTemplateLine(), $this->stream->getSourceContext());
363 … Twig 2.5.0 and will become a syntax error in 3.0.', $this->stream->getSourceContext()->getName(),…
[all …]
H A DExpressionParser.php424 …ng "parent" outside a block is forbidden.', $line, $this->parser->getStream()->getSourceContext());
435 …tion takes one argument (the block name).', $line, $this->parser->getStream()->getSourceContext());
491 … throw new SyntaxError('Expected name or number.', $lineno, $stream->getSourceContext());
613 …st be a string, "%s" given.', \get_class($value)), $token->getLine(), $stream->getSourceContext());
661 …ntf('You cannot assign a value to "%s".', $value), $token->getLine(), $stream->getSourceContext());
732 … $e = new SyntaxError(sprintf('Unknown "%s" test.', $name), $line, $stream->getSourceContext());
750 $src = $stream->getSourceContext();
762 …r(sprintf('Unknown "%s" function.', $name), $line, $this->parser->getStream()->getSourceContext());
776 $src = $this->parser->getStream()->getSourceContext();
788 …ror(sprintf('Unknown "%s" filter.', $name), $line, $this->parser->getStream()->getSourceContext());
[all …]
H A DTemplateWrapper.php124 public function getSourceContext(): Source function in Twig\\TemplateWrapper
126 return $this->template->getSourceContext();
H A DTokenStream.php128 public function getSourceContext(): Source function in Twig\\TokenStream
/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A 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());
H A 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());
H A DSetTokenParser.php43 …ber of variables and assignments.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
49 …, you cannot have a multi-target.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
H A DBlockTokenParser.php38 …etBlock($name)->getTemplateLine()), $stream->getCurrent()->getLine(), $stream->getSourceContext());
50 …(but "%s" given).', $name, $value), $stream->getCurrent()->getLine(), $stream->getSourceContext());
H A DSpacelessTokenParser.php36 …use the "spaceless" filter with the "apply" tag instead.', $stream->getSourceContext()->getName(),…
H A DSandboxTokenParser.php46 …s are allowed within a "sandbox" section.', $node->getTemplateLine(), $stream->getSourceContext());
H A DUseTokenParser.php39 …"use" statement must be a string.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
H A DAutoEscapeTokenParser.php34 …rategy must be a string or false.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
H A DMacroTokenParser.php44 …(but "%s" given).', $name, $value), $stream->getCurrent()->getLine(), $stream->getSourceContext());
H A DFilterTokenParser.php36 … deprecated since Twig 2.9, use the "apply" tag instead.', $stream->getSourceContext()->getName(),…
H A DIfTokenParser.php64 …ck started at line %d).', $lineno), $stream->getCurrent()->getLine(), $stream->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/Node/
H A 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())
H A DMacroNode.php30 …RGS_NAME, $name, self::VARARGS_NAME), $argument->getTemplateLine(), $argument->getSourceContext());
H A DNode.php208 public function getSourceContext() function in Twig\\Node\\Node
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A 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/
H A DChainLoader.php50 public function getSourceContext($name) function in Twig\\Loader\\ChainLoader
59 return $loader->getSourceContext($name);
H A DLoaderInterface.php33 public function getSourceContext($name); function
H A DArrayLoader.php52 public function getSourceContext($name) function in Twig\\Loader\\ArrayLoader
/template/twigstarter/vendor/twig/twig/src/Error/
H A DError.php116 public function getSourceContext() function in Twig\\Error\\Error
218 $src = $template->getSourceContext();
/template/twigstarter/vendor/twig/twig/src/Test/
H A DIntegrationTestCase.php248 … echo $twig->compile($twig->parse($twig->tokenize($twig->getLoader()->getSourceContext($name))));

12