Lines Matching refs:subNode
646 $subNode = $node->$subNodeName;
649 if ((!$subNode instanceof Node && $subNode !== null)
652 if ($subNode === $origSubNode) {
657 if (is_array($subNode) && is_array($origSubNode)) {
660 $subNode, $origSubNode, $pos, $indentAdjustment, $class, $subNodeName,
678 $result .= $this->$printFn($subNode);
690 if ($subNode === null) {
716 if (null === $subNode) {
735 if (null !== $subNode) {
745 && $subNode->getAttribute('origNode') !== $origSubNode
748 $res = $this->pFixup($fixup, $subNode, $class, $subStartPos, $subEndPos);
750 $res = $this->p($subNode, self::MAX_PRECEDENCE, self::MAX_PRECEDENCE, true);
1034 * @param Node $subNode Subnode to print
1041 …protected function pFixup(int $fixup, Node $subNode, ?string $parentClass, int $subStartPos, int $… argument
1047 return $this->p($subNode, $precedence, $precedence);
1053 return $this->p($subNode, $precedence, $precedence);
1059 return $this->p($subNode, $precedence, $precedence);
1063 if ($this->callLhsRequiresParens($subNode)
1066 return '(' . $this->p($subNode) . ')';
1070 if ($this->dereferenceLhsRequiresParens($subNode)
1073 return '(' . $this->p($subNode) . ')';
1077 if ($this->staticDereferenceLhsRequiresParens($subNode)
1080 return '(' . $this->p($subNode) . ')';
1084 if ($this->newOperandRequiresParens($subNode)
1086 return '(' . $this->p($subNode) . ')';
1091 if ($subNode instanceof Expr
1095 . '{' . $this->p($subNode) . '}';
1099 if (!$subNode instanceof Node\InterpolatedStringPart
1102 return '{' . $this->p($subNode) . '}';
1110 return $this->p($subNode);