Lines Matching refs:getLine

88                 $expr = new $class($expr, $expr1, $token->getLine());
111 return $this->parsePostfixExpression(new $class($expr, $token->getLine()));
131 … $expr3 = new ConstantExpression('', $this->parser->getCurrentToken()->getLine());
138 …pr = new ConditionalExpression($expr, $expr2, $expr3, $this->parser->getCurrentToken()->getLine());
163 $node = new ConstantExpression(true, $token->getLine());
168 $node = new ConstantExpression(false, $token->getLine());
175 $node = new ConstantExpression(null, $token->getLine());
180 $node = $this->getFunctionNode($token->getValue(), $token->getLine());
182 $node = new NameExpression($token->getValue(), $token->getLine());
189 $node = new ConstantExpression($token->getValue(), $token->getLine());
201 $node = new NameExpression($token->getValue(), $token->getLine());
213 …(sprintf('Unexpected unary operator "%s".', $token->getValue()), $token->getLine(), $this->parser-…
219 $node = new $class($expr, $token->getLine());
230 …parison? Use "is same as(value)" instead.', $token->getValue()), $token->getLine(), $this->parser-…
232 …', Token::typeToEnglish($token->getType()), $token->getValue()), $token->getLine(), $this->parser-…
248 $nodes[] = new ConstantExpression($token->getValue(), $token->getLine());
272 $node = new ArrayExpression([], $stream->getCurrent()->getLine());
297 $node = new ArrayExpression([], $stream->getCurrent()->getLine());
317 $key = new ConstantExpression($token->getValue(), $token->getLine());
323 …en::typeToEnglish($current->getType()), $current->getValue()), $current->getLine(), $stream->getSo…
408 $lineno = $token->getLine();
434 … not supported (called on "%s").', $node->getAttribute('name')), $token->getLine(), $stream->getSo…
440 …cannot be called as macro as it is a reserved keyword.', $name), $token->getLine(), $stream->getSo…
455 $arg = new ConstantExpression(0, $token->getLine());
466 $length = new ConstantExpression(null, $token->getLine());
471 $class = $this->getFilterNodeClass('slice', $token->getLine());
473 …ew $class($node, new ConstantExpression('slice', $token->getLine()), $arguments, $token->getLine()…
498 $name = new ConstantExpression($token->getValue(), $token->getLine());
505 $class = $this->getFilterNodeClass($name->getAttribute('value'), $token->getLine());
507 $node = new $class($node, $name, $arguments, $token->getLine(), $tag);
542 … $value = new NameExpression($token->getValue(), $this->parser->getCurrentToken()->getLine());
550 …ameter name must be a string, "%s" given.', \get_class($value)), $token->getLine(), $stream->getSo…
558 …t be a constant (a boolean, a string, a number, or an array).'), $token->getLine(), $stream->getSo…
568 … $value = new ConstantExpression(null, $this->parser->getCurrentToken()->getLine());
592 …ntaxError(sprintf('You cannot assign a value to "%s".', $value), $token->getLine(), $stream->getSo…
594 $targets[] = new AssignNameExpression($value, $token->getLine());
619 …eturn new NotUnary($this->parseTestExpression($node), $this->parser->getCurrentToken()->getLine());
633 return new $class($node, $name, $arguments, $this->parser->getCurrentToken()->getLine());
674 … line %d.', $src->getPath() ? $src->getPath() : $src->getName(), $stream->getCurrent()->getLine());