|
@@ 2238-2242 (lines=5) @@
|
| 2235 |
|
*/ |
| 2236 |
|
public function walkArithmeticTerm($term) |
| 2237 |
|
{ |
| 2238 |
|
if (is_string($term)) { |
| 2239 |
|
return (isset($this->queryComponents[$term])) |
| 2240 |
|
? $this->walkResultVariable($this->queryComponents[$term]['token']['value']) |
| 2241 |
|
: $term; |
| 2242 |
|
} |
| 2243 |
|
|
| 2244 |
|
// Phase 2 AST optimization: Skip processing of ArithmeticTerm |
| 2245 |
|
// if only one ArithmeticFactor is defined |
|
@@ 2258-2262 (lines=5) @@
|
| 2255 |
|
*/ |
| 2256 |
|
public function walkArithmeticFactor($factor) |
| 2257 |
|
{ |
| 2258 |
|
if (is_string($factor)) { |
| 2259 |
|
return (isset($this->queryComponents[$factor])) |
| 2260 |
|
? $this->walkResultVariable($this->queryComponents[$factor]['token']['value']) |
| 2261 |
|
: $factor; |
| 2262 |
|
} |
| 2263 |
|
|
| 2264 |
|
// Phase 2 AST optimization: Skip processing of ArithmeticFactor |
| 2265 |
|
// if only one ArithmeticPrimary is defined |