Lines Matching refs:evaluate
72 return $this->evaluate($expr);
102 return $this->evaluate($expr);
106 private function evaluate(Expr $expr) { function in PhpParser\\ConstExprEvaluator
120 return +$this->evaluate($expr->expr);
123 return -$this->evaluate($expr->expr);
126 return !$this->evaluate($expr->expr);
129 return ~$this->evaluate($expr->expr);
141 return $this->evaluate($expr->var)[$this->evaluate($expr->dim)];
155 $array[$this->evaluate($item->key)] = $this->evaluate($item->value);
157 $array = array_merge($array, $this->evaluate($item->value));
159 $array[] = $this->evaluate($item->value);
168 return $this->evaluate($expr->cond) ?: $this->evaluate($expr->else);
171 return $this->evaluate($expr->cond)
172 ? $this->evaluate($expr->if)
173 : $this->evaluate($expr->else);
182 return $this->evaluate($expr->left->var)[$this->evaluate($expr->left->dim)]
183 ?? $this->evaluate($expr->right);
191 case '&': return $this->evaluate($l) & $this->evaluate($r);
192 case '|': return $this->evaluate($l) | $this->evaluate($r);
193 case '^': return $this->evaluate($l) ^ $this->evaluate($r);
194 case '&&': return $this->evaluate($l) && $this->evaluate($r);
195 case '||': return $this->evaluate($l) || $this->evaluate($r);
196 case '??': return $this->evaluate($l) ?? $this->evaluate($r);
197 case '.': return $this->evaluate($l) . $this->evaluate($r);
198 case '/': return $this->evaluate($l) / $this->evaluate($r);
199 case '==': return $this->evaluate($l) == $this->evaluate($r);
200 case '>': return $this->evaluate($l) > $this->evaluate($r);
201 case '>=': return $this->evaluate($l) >= $this->evaluate($r);
202 case '===': return $this->evaluate($l) === $this->evaluate($r);
203 case 'and': return $this->evaluate($l) and $this->evaluate($r);
204 case 'or': return $this->evaluate($l) or $this->evaluate($r);
205 case 'xor': return $this->evaluate($l) xor $this->evaluate($r);
206 case '-': return $this->evaluate($l) - $this->evaluate($r);
207 case '%': return $this->evaluate($l) % $this->evaluate($r);
208 case '*': return $this->evaluate($l) * $this->evaluate($r);
209 case '!=': return $this->evaluate($l) != $this->evaluate($r);
210 case '!==': return $this->evaluate($l) !== $this->evaluate($r);
211 case '+': return $this->evaluate($l) + $this->evaluate($r);
212 case '**': return $this->evaluate($l) ** $this->evaluate($r);
213 case '<<': return $this->evaluate($l) << $this->evaluate($r);
214 case '>>': return $this->evaluate($l) >> $this->evaluate($r);
215 case '<': return $this->evaluate($l) < $this->evaluate($r);
216 case '<=': return $this->evaluate($l) <= $this->evaluate($r);
217 case '<=>': return $this->evaluate($l) <=> $this->evaluate($r);