@@ -187,6 +187,10 @@ discard block |
||
187 | 187 | return $this->{'p' . $node->getType()}($node); |
188 | 188 | } |
189 | 189 | |
190 | + /** |
|
191 | + * @param string $type |
|
192 | + * @param string $operatorString |
|
193 | + */ |
|
190 | 194 | protected function pInfixOp($type, Node $leftNode, $operatorString, Node $rightNode) { |
191 | 195 | list($precedence, $associativity) = $this->precedenceMap[$type]; |
192 | 196 | |
@@ -195,11 +199,19 @@ discard block |
||
195 | 199 | . $this->pPrec($rightNode, $precedence, $associativity, 1); |
196 | 200 | } |
197 | 201 | |
202 | + /** |
|
203 | + * @param string $type |
|
204 | + * @param string $operatorString |
|
205 | + */ |
|
198 | 206 | protected function pPrefixOp($type, $operatorString, Node $node) { |
199 | 207 | list($precedence, $associativity) = $this->precedenceMap[$type]; |
200 | 208 | return $operatorString . $this->pPrec($node, $precedence, $associativity, 1); |
201 | 209 | } |
202 | 210 | |
211 | + /** |
|
212 | + * @param string $type |
|
213 | + * @param string $operatorString |
|
214 | + */ |
|
203 | 215 | protected function pPostfixOp($type, Node $node, $operatorString) { |
204 | 216 | list($precedence, $associativity) = $this->precedenceMap[$type]; |
205 | 217 | return $this->pPrec($node, $precedence, $associativity, -1) . $operatorString; |