|
@@ 2191-2195 (lines=5) @@
|
| 2188 |
|
*/ |
| 2189 |
|
public function walkArithmeticTerm($term) |
| 2190 |
|
{ |
| 2191 |
|
if (is_string($term)) { |
| 2192 |
|
return (isset($this->queryComponents[$term])) |
| 2193 |
|
? $this->walkResultVariable($this->queryComponents[$term]['token']['value']) |
| 2194 |
|
: $term; |
| 2195 |
|
} |
| 2196 |
|
|
| 2197 |
|
// Phase 2 AST optimization: Skip processing of ArithmeticTerm |
| 2198 |
|
// if only one ArithmeticFactor is defined |
|
@@ 2211-2215 (lines=5) @@
|
| 2208 |
|
*/ |
| 2209 |
|
public function walkArithmeticFactor($factor) |
| 2210 |
|
{ |
| 2211 |
|
if (is_string($factor)) { |
| 2212 |
|
return (isset($this->queryComponents[$factor])) |
| 2213 |
|
? $this->walkResultVariable($this->queryComponents[$factor]['token']['value']) |
| 2214 |
|
: $factor; |
| 2215 |
|
} |
| 2216 |
|
|
| 2217 |
|
// Phase 2 AST optimization: Skip processing of ArithmeticFactor |
| 2218 |
|
// if only one ArithmeticPrimary is defined |