Lines Matching refs:getValue

75 …while ($this->isBinary($token) && $this->binaryOperators[$token->getValue()]['precedence'] >= $pre…
76 $op = $this->binaryOperators[$token->getValue()];
79 if ('is not' === $token->getValue()) {
81 } elseif ('is' === $token->getValue()) {
106 $operator = $this->unaryOperators[$token->getValue()];
146 … return $token->test(Token::OPERATOR_TYPE) && isset($this->unaryOperators[$token->getValue()]);
151 … return $token->test(Token::OPERATOR_TYPE) && isset($this->binaryOperators[$token->getValue()]);
160 switch ($token->getValue()) {
179 if ('(' === $this->parser->getCurrentToken()->getValue()) {
180 $node = $this->getFunctionNode($token->getValue(), $token->getLine());
182 $node = new NameExpression($token->getValue(), $token->getLine());
189 $node = new ConstantExpression($token->getValue(), $token->getLine());
198 …if (preg_match(Lexer::REGEX_NAME, $token->getValue(), $matches) && $matches[0] == $token->getValue
201 $node = new NameExpression($token->getValue(), $token->getLine());
203 } elseif (isset($this->unaryOperators[$token->getValue()])) {
204 $class = $this->unaryOperators[$token->getValue()]['class'];
213 …hrow new SyntaxError(sprintf('Unexpected unary operator "%s".', $token->getValue()), $token->getLi…
229 …=== $this->parser->getStream()->look(-1)->getValue() || '!=' === $this->parser->getStream()->look(…
230 …"!==" for strict comparison? Use "is same as(value)" instead.', $token->getValue()), $token->getLi…
232 … "%s" of value "%s".', Token::typeToEnglish($token->getType()), $token->getValue()), $token->getLi…
248 $nodes[] = new ConstantExpression($token->getValue(), $token->getLine());
317 $key = new ConstantExpression($token->getValue(), $token->getLine());
323 …" of value "%s".', Token::typeToEnglish($current->getType()), $current->getValue()), $current->get…
341 if ('.' == $token->getValue() || '[' == $token->getValue()) {
343 } elseif ('|' == $token->getValue()) {
411 if ('.' == $token->getValue()) {
418 … (Token::OPERATOR_TYPE == $token->getType() && preg_match(Lexer::REGEX_NAME, $token->getValue()))
420 $arg = new ConstantExpression($token->getValue(), $lineno);
498 $name = new ConstantExpression($token->getValue(), $token->getLine());
542 … $value = new NameExpression($token->getValue(), $this->parser->getCurrentToken()->getLine());
590 $value = $token->getValue();
639 $name = $stream->expect(Token::NAME_TYPE)->getValue();
647 $name = $name.' '.$this->parser->getCurrentToken()->getValue();