|
@@ 2209-2213 (lines=5) @@
|
| 2206 |
|
*/ |
| 2207 |
|
public function walkArithmeticTerm($term) |
| 2208 |
|
{ |
| 2209 |
|
if (is_string($term)) { |
| 2210 |
|
return (isset($this->queryComponents[$term])) |
| 2211 |
|
? $this->walkResultVariable($this->queryComponents[$term]['token']['value']) |
| 2212 |
|
: $term; |
| 2213 |
|
} |
| 2214 |
|
|
| 2215 |
|
// Phase 2 AST optimization: Skip processing of ArithmeticTerm |
| 2216 |
|
// if only one ArithmeticFactor is defined |
|
@@ 2229-2233 (lines=5) @@
|
| 2226 |
|
*/ |
| 2227 |
|
public function walkArithmeticFactor($factor) |
| 2228 |
|
{ |
| 2229 |
|
if (is_string($factor)) { |
| 2230 |
|
return (isset($this->queryComponents[$factor])) |
| 2231 |
|
? $this->walkResultVariable($this->queryComponents[$factor]['token']['value']) |
| 2232 |
|
: $factor; |
| 2233 |
|
} |
| 2234 |
|
|
| 2235 |
|
// Phase 2 AST optimization: Skip processing of ArithmeticFactor |
| 2236 |
|
// if only one ArithmeticPrimary is defined |