Lines Matching refs:getLine

85                 $expr = new $class($expr, $expr1, $token->getLine());
107 $line = $stream->getCurrent()->getLine();
109 $names = [new AssignNameExpression($token->getValue(), $token->getLine())];
139 $line = $token->getLine();
144 $names[] = new AssignNameExpression($token->getValue(), $token->getLine());
166 return $this->parsePostfixExpression(new $class($expr, $token->getLine()));
186 … $expr3 = new ConstantExpression('', $this->parser->getCurrentToken()->getLine());
193 …pr = new ConditionalExpression($expr, $expr2, $expr3, $this->parser->getCurrentToken()->getLine());
218 $node = new ConstantExpression(true, $token->getLine());
223 $node = new ConstantExpression(false, $token->getLine());
230 $node = new ConstantExpression(null, $token->getLine());
235 $node = $this->getFunctionNode($token->getValue(), $token->getLine());
237 $node = new NameExpression($token->getValue(), $token->getLine());
244 $node = new ConstantExpression($token->getValue(), $token->getLine());
256 $node = new NameExpression($token->getValue(), $token->getLine());
266 …(sprintf('Unexpected unary operator "%s".', $token->getValue()), $token->getLine(), $this->parser-…
272 $node = new $class($expr, $token->getLine());
283 …parison? Use "is same as(value)" instead.', $token->getValue()), $token->getLine(), $this->parser-…
285 …', Token::typeToEnglish($token->getType()), $token->getValue()), $token->getLine(), $this->parser-…
301 $nodes[] = new ConstantExpression($token->getValue(), $token->getLine());
325 $node = new ArrayExpression([], $stream->getCurrent()->getLine());
350 $node = new ArrayExpression([], $stream->getCurrent()->getLine());
370 $key = new ConstantExpression($token->getValue(), $token->getLine());
379 $key = new ConstantExpression($token->getValue(), $token->getLine());
385 …en::typeToEnglish($current->getType()), $current->getValue()), $current->getLine(), $stream->getSo…
470 $lineno = $token->getLine();
496 … not supported (called on "%s").', $node->getAttribute('name')), $token->getLine(), $stream->getSo…
513 $arg = new ConstantExpression(0, $token->getLine());
524 $length = new ConstantExpression(null, $token->getLine());
529 $class = $this->getFilterNodeClass('slice', $token->getLine());
531 …ew $class($node, new ConstantExpression('slice', $token->getLine()), $arguments, $token->getLine()…
556 $name = new ConstantExpression($token->getValue(), $token->getLine());
563 $class = $this->getFilterNodeClass($name->getAttribute('value'), $token->getLine());
565 $node = new $class($node, $name, $arguments, $token->getLine(), $tag);
605 … $value = new NameExpression($token->getValue(), $this->parser->getCurrentToken()->getLine());
613 …ameter name must be a string, "%s" given.', \get_class($value)), $token->getLine(), $stream->getSo…
621 …st be a constant (a boolean, a string, a number, or an array).', $token->getLine(), $stream->getSo…
631 … $value = new ConstantExpression(null, $this->parser->getCurrentToken()->getLine());
661 …ntaxError(sprintf('You cannot assign a value to "%s".', $value), $token->getLine(), $stream->getSo…
663 $targets[] = new AssignNameExpression($value, $token->getLine());
688 …eturn new NotUnary($this->parseTestExpression($node), $this->parser->getCurrentToken()->getLine());
709 return new $class($node, $name, $arguments, $this->parser->getCurrentToken()->getLine());
751 …printf(' in %s at line %d.', $src->getPath() ?: $src->getName(), $stream->getCurrent()->getLine());