mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2025-01-22 13:21:12 +01:00
Use p() in pPrec() for easier extensibility
This commit is contained in:
parent
4e55897059
commit
d18ccfeec7
@ -247,11 +247,11 @@ abstract class PrettyPrinterAbstract
|
|||||||
if ($childPrecedence > $parentPrecedence
|
if ($childPrecedence > $parentPrecedence
|
||||||
|| ($parentPrecedence == $childPrecedence && $parentAssociativity != $childPosition)
|
|| ($parentPrecedence == $childPrecedence && $parentAssociativity != $childPosition)
|
||||||
) {
|
) {
|
||||||
return '(' . $this->{'p' . $type}($node) . ')';
|
return '(' . $this->p($node) . ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->{'p' . $type}($node);
|
return $this->p($node);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user