Lines Matching refs:precedence
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);
431 The new `$precedence` and `$lhsPrecedence` arguments need to be passed down to the `pInfixOp()`, `p…