Home
last modified time | relevance | path

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

12

/template/twigstarter/vendor/twig/twig/src/
DTemplate.php67 abstract public function getSourceContext(): Source; function in Twig\\Template
96 return $this->parents[$parent->getSourceContext()->getName()] = $parent;
303 if (!$e->getSourceContext()) {
304 $e->setSourceContext($this->getSourceContext());
413 if (!$e->getSourceContext()) {
414 $e->setSourceContext($this->getSourceContext());
425 …during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
458 if (!$e->getSourceContext()) {
459 $e->setSourceContext($template->getSourceContext());
470 …ng the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
[all …]
DParser.php116 if (!$e->getSourceContext()) {
117 $e->setSourceContext($this->stream->getSourceContext());
136 $stream->getSourceContext(),
196 …Error('A block must start with a tag name.', $token->getLine(), $this->stream->getSourceContext());
213 …('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this->stream->getSourceContext());
220 …tf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->stream->getSourceContext());
240 …in an unsupported state.', $this->getCurrentToken()->getLine(), $this->stream->getSourceContext());
293 …getTemplateLine()), $this->getCurrentToken()->getLine(), $this->blocks[$name]->getSourceContext());
430 …r('Multiple extends tags are forbidden.', $parent->getTemplateLine(), $parent->getSourceContext());
462 …w SyntaxError(\sprintf('Unknown "%s" function.', $name), $line, $this->stream->getSourceContext());
[all …]
DTemplateWrapper.php93 public function getSourceContext(): Source function in Twig\\TemplateWrapper
95 return $this->template->getSourceContext();
DExpressionParser.php252 …placed before argument unpacking.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
261 …me must be a string, "%s" given.', $value::class), $token->getLine(), $stream->getSourceContext());
269 …, a string, a number, a sequence, or a mapping).', $token->getLine(), $stream->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/Util/
DCallableArgumentsExtractor.php50 … $this->twigCallable->getName()), $this->node->getTemplateLine(), $this->node->getSourceContext());
62 … $this->twigCallable->getName()), $this->node->getTemplateLine(), $this->node->getSourceContext());
97 … $this->twigCallable->getName()), $this->node->getTemplateLine(), $this->node->getSourceContext());
104 ), $this->node->getTemplateLine(), $this->node->getSourceContext());
126 … $this->twigCallable->getName()), $this->node->getTemplateLine(), $this->node->getSourceContext());
138 … %d.', $originalKey, $this->toSnakeCase($originalKey), $this->node->getSourceContext()->getName(),…
168 … $unknownArgument ? $unknownArgument->getSourceContext() : $this->node->getSourceContext()
/template/twigstarter/vendor/twig/twig/src/Node/Expression/FunctionNode/
DEnumFunction.php41 …nt of the "enum" function must be a string.', $this->getTemplateLine(), $this->getSourceContext());
45 …e the name of an enum, "%s" given.', $value), $this->getTemplateLine(), $this->getSourceContext());
49 …t be a non-empty enum, "%s" given.', $value), $this->getTemplateLine(), $this->getSourceContext());
DEnumCasesFunction.php41 …the "enum_cases" function must be a string.', $this->getTemplateLine(), $this->getSourceContext());
45 …e the name of an enum, "%s" given.', $value), $this->getTemplateLine(), $this->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DExtendsTokenParser.php34 …new SyntaxError('Cannot use "extend" in a block.', $token->getLine(), $stream->getSourceContext());
36 …new SyntaxError('Cannot use "extend" in a macro.', $token->getLine(), $stream->getSourceContext());
DSandboxTokenParser.php37 …ntf('The "sandbox" tag is deprecated in "%s" at line %d.', $stream->getSourceContext()->getName(),…
53 …s are allowed within a "sandbox" section.', $node->getTemplateLine(), $stream->getSourceContext());
DSetTokenParser.php47 …ber of variables and assignments.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
53 …, you cannot have a multi-target.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
DMacroTokenParser.php51 …(but "%s" given).', $name, $value), $stream->getCurrent()->getLine(), $stream->getSourceContext());
97 …, a string, a number, a sequence, or a mapping).', $token->getLine(), $stream->getSourceContext());
DDeprecatedTokenParser.php52 …printf('Unknown "%s" option.', $k), $stream->getCurrent()->getLine(), $stream->getSourceContext());
DAutoEscapeTokenParser.php37 …rategy must be a string or false.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
DUseTokenParser.php43 …"use" statement must be a string.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
DIfTokenParser.php67 …ck started at line %d).', $lineno), $stream->getCurrent()->getLine(), $stream->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/Node/
DModuleNode.php195 ->write('/* '.str_replace('*/', '* /', $this->getSourceContext()->getName())." */\n")
196 …->write('class '.$compiler->getEnvironment()->getTemplateClass($this->getSourceContext()->getName(…
428 ->repr($this->getSourceContext()->getName())
511 … ->string($compiler->getEnvironment()->isDebug() ? $this->getSourceContext()->getCode() : '')
513 ->string($this->getSourceContext()->getName())
515 ->string($this->getSourceContext()->getPath())
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
DCallExpression.php158 …guments for %s "%s".', $callType, $callName), $this->getTemplateLine(), $this->getSourceContext());
199 … for %s "%s".', $name, $callType, $callName), $this->getTemplateLine(), $this->getSourceContext());
206 ), $this->getTemplateLine(), $this->getSourceContext());
227 … for %s "%s".', $name, $callType, $callName), $this->getTemplateLine(), $this->getSourceContext());
263 … $unknownParameter ? $unknownParameter->getSourceContext() : $this->getSourceContext()
DArrowFunctionExpression.php34 …a list of variables or a single variable.', $names->getTemplateLine(), $names->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/ExpressionParser/Prefix/
DGroupingExpressionParser.php59 …les must be followed by an arrow.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
68 …xError('A list must only contain variables.', $expr->getTemplateLine(), $expr->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/ExpressionParser/Infix/
DFunctionExpressionParser.php40 …ntaxError('Function name must be an identifier.', $line, $parser->getStream()->getSourceContext());
55 $fakeNode->setSourceContext($parser->getStream()->getSourceContext());
DArgumentsTrait.php58 …placed before argument unpacking.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
67 …me must be a string, "%s" given.', $value::class), $token->getLine(), $stream->getSourceContext());
DAssignmentExpressionParser.php43 …les can be assigned.', $left::class), $token->getLine(), $parser->getStream()->getSourceContext());
/template/twigstarter/vendor/twig/twig/src/Loader/
DChainLoader.php61 public function getSourceContext(string $name): Source function in Twig\\Loader\\ChainLoader
71 return $loader->getSourceContext($name);
DLoaderInterface.php29 public function getSourceContext(string $name): Source; function
DArrayLoader.php44 public function getSourceContext(string $name): Source function in Twig\\Loader\\ArrayLoader

12