Searched refs:Ternary (Results 1 – 9 of 9) sorted by relevance
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | Ternary.php | 7 class Ternary extends Expr { class
|
/PHP-Parser/lib/PhpParser/ |
H A D | ConstExprEvaluator.php | 136 if ($expr instanceof Expr\Ternary) { 166 private function evaluateTernary(Expr\Ternary $expr) {
|
H A D | PrettyPrinterAbstract.php | 80 Expr\Ternary::class => [150, 150, 150], 1327 Expr\Ternary::class => [
|
/PHP-Parser/test/code/parser/expr/ |
H A D | ternaryAndCoalesce.test | 1 Ternary operator
|
/PHP-Parser/grammar/ |
H A D | php.y | 1061 | expr '?' expr ':' expr { $$ = Expr\Ternary[$1, $3, $5]; } 1062 | expr '?' ':' expr { $$ = Expr\Ternary[$1, null, $4]; }
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 714 …protected function pExpr_Ternary(Expr\Ternary $node, int $precedence, int $lhsPrecedence): string { 717 return $this->pInfixOp(Expr\Ternary::class,
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 2336 …$self->semValue = new Expr\Ternary($self->semStack[$stackPos-(5-1)], $self->semStack[$stackPos-(5-… 2339 …$self->semValue = new Expr\Ternary($self->semStack[$stackPos-(4-1)], null, $self->semStack[$stackP…
|
H A D | Php8.php | 2338 …$self->semValue = new Expr\Ternary($self->semStack[$stackPos-(5-1)], $self->semStack[$stackPos-(5-… 2341 …$self->semValue = new Expr\Ternary($self->semStack[$stackPos-(4-1)], null, $self->semStack[$stackP…
|
/PHP-Parser/ |
H A D | CHANGELOG.md | 401 * Ternary expressions are now treated as non-associative in the pretty printer, in order to
|
Completed in 37 milliseconds