Home
last modified time | relevance | path

Searched refs:Ternary (Results 1 – 9 of 9) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Expr/
H A DTernary.php7 class Ternary extends Expr { class
/PHP-Parser/lib/PhpParser/
H A DConstExprEvaluator.php136 if ($expr instanceof Expr\Ternary) {
166 private function evaluateTernary(Expr\Ternary $expr) {
H A DPrettyPrinterAbstract.php80 Expr\Ternary::class => [150, 150, 150],
1327 Expr\Ternary::class => [
/PHP-Parser/test/code/parser/expr/
H A DternaryAndCoalesce.test1 Ternary operator
/PHP-Parser/grammar/
H A Dphp.y1061 | expr '?' expr ':' expr { $$ = Expr\Ternary[$1, $3, $5]; }
1062 | expr '?' ':' expr { $$ = Expr\Ternary[$1, null, $4]; }
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php714 …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 DPhp7.php2336 …$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 DPhp8.php2338 …$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 DCHANGELOG.md401 * Ternary expressions are now treated as non-associative in the pretty printer, in order to

Completed in 52 milliseconds