Home
last modified time | relevance | path

Searched refs:evaluateDirectly (Results 1 – 3 of 3) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DConstExprEvaluatorTest.php14 $this->assertSame($expected, $evaluator->evaluateDirectly($expr));
81 $evaluator->evaluateDirectly(new Expr\Variable('a'));
95 $this->assertSame(50, $evaluator->evaluateDirectly($expr));
/PHP-Parser/doc/component/
H A DConstant_expression_evaluation.markdown34 The constant evaluator provides two methods, `evaluateDirectly()` and `evaluateSilently()`, which
35 differ in error behavior. `evaluateDirectly()` will evaluate the expression as PHP would, including
50 var_dump($evaluator->evaluateDirectly($expr)); // float(INF)
/PHP-Parser/lib/PhpParser/
H A DConstExprEvaluator.php101 public function evaluateDirectly(Expr $expr) { function in PhpParser\\ConstExprEvaluator

Completed in 5 milliseconds