Searched refs:precedence (Results 1 – 9 of 9) sorted by relevance
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 258 … protected function pExpr_Assign(Expr\Assign $node, int $precedence, int $lhsPrecedence): string { argument 432 $precedence, $lhsPrecedence); 450 … return $this->pPrefixOp(Expr\UnaryPlus::class, '+', $node->expr, $precedence, $lhsPrecedence); 477 protected function pExpr_Print(Expr\Print_ $node, int $precedence, int $lhsPrecedence): string { argument 483 … protected function pExpr_Cast_Int(Cast\Int_ $node, int $precedence, int $lhsPrecedence): string { argument 694 $node->expr, $precedence, $lhsPrecedence); 710 protected function pExpr_Clone(Expr\Clone_ $node, int $precedence, int $lhsPrecedence): string { argument 719 $precedence, $lhsPrecedence 729 protected function pExpr_Throw(Expr\Throw_ $node, int $precedence, int $lhsPrecedence): string { argument 733 protected function pExpr_Yield(Expr\Yield_ $node, int $precedence, int $lhsPrecedence): string { argument [all …]
|
/PHP-Parser/lib/PhpParser/ |
H A D | PrettyPrinterAbstract.php | 380 * @param int $precedence Precedence of parent operator 387 int $precedence, int $lhsPrecedence argument 392 if ($opPrecedence >= $precedence) { 407 * @param int $precedence Precedence of parent operator 437 * @param int $precedence Precedence of parent operator 446 if ($opPrecedence >= $precedence) { 594 * @param int $precedence Precedence of parent operator 612 return $this->pFallback($node, $precedence, $lhsPrecedence); 1047 return $this->p($subNode, $precedence, $precedence); 1053 return $this->p($subNode, $precedence, $precedence); [all …]
|
/PHP-Parser/test/code/parser/expr/ |
H A D | ternaryAndCoalesce.test | 9 // precedence 68 0: // precedence
|
H A D | logic.test | 16 // precedence 116 0: // precedence
|
H A D | math.test | 28 // precedence 232 0: // precedence
|
/PHP-Parser/ |
H A D | UPGRADE-5.0.md | 400 ### Changes to precedence handling in the pretty printer 402 The pretty printer now more accurately models operator precedence. Especially for unary operators, … 404 To support these changes, precedence is now handled differently in the pretty printer. The internal… 407 Node $node, int $precedence = self::MAX_PRECEDENCE, int $lhsPrecedence = self::MAX_PRECEDENCE, 412 The `$precedence` is the precedence of the direct parent operator (if any), while `$lhsPrecedence` … 414 …ers. However, pretty-printer methods for operators that participate in precedence resolution need … 418 BinaryOp\Plus $node, int $precedence, int $lhsPrecedence 421 BinaryOp\Plus::class, $node->left, ' + ', $node->right, $precedence, $lhsPrecedence); 425 Expr\UnaryPlus $node, int $precedence, int $lhsPrecedence 427 return $this->pPrefixOp(Expr\UnaryPlus::class, '+', $node->expr, $precedence, $lhsPrecedence); [all …]
|
H A D | CHANGELOG.md | 212 * The pretty printer now uses a more accurate treatment of unary operator precedence, and will only 213 wrap them in parentheses if required. This allowed fixing a number of other precedence related 215 * The pretty printer now respects the precedence of `clone`, `throw` and arrow functions. 253 * Added PHP 8 parser though it only differs from the PHP 7 parser in concatenation precedence. 385 * Fixed precedence of arrow functions.
|
/PHP-Parser/test/code/parser/stmt/generator/ |
H A D | yieldPrecedence.test | 1 Yield operator precedence
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | fixup.test | 1 Fixup for precedence and some special syntax
|
Completed in 20 milliseconds