@@ 2229-2233 (lines=5) @@ | ||
2226 | */ |
|
2227 | public function walkArithmeticTerm($term) |
|
2228 | { |
|
2229 | if (is_string($term)) { |
|
2230 | return (isset($this->queryComponents[$term])) |
|
2231 | ? $this->walkResultVariable($this->queryComponents[$term]['token']['value']) |
|
2232 | : $term; |
|
2233 | } |
|
2234 | ||
2235 | // Phase 2 AST optimization: Skip processing of ArithmeticTerm |
|
2236 | // if only one ArithmeticFactor is defined |
|
@@ 2249-2253 (lines=5) @@ | ||
2246 | */ |
|
2247 | public function walkArithmeticFactor($factor) |
|
2248 | { |
|
2249 | if (is_string($factor)) { |
|
2250 | return (isset($this->queryComponents[$factor])) |
|
2251 | ? $this->walkResultVariable($this->queryComponents[$factor]['token']['value']) |
|
2252 | : $factor; |
|
2253 | } |
|
2254 | ||
2255 | // Phase 2 AST optimization: Skip processing of ArithmeticFactor |
|
2256 | // if only one ArithmeticPrimary is defined |