|
@@ 1750-1760 (lines=11) @@
|
| 1747 |
|
|
| 1748 |
|
$aliasResultVariable = null; |
| 1749 |
|
|
| 1750 |
|
if ($this->lexer->isNextToken(Lexer::T_IDENTIFIER)) { |
| 1751 |
|
$token = $this->lexer->lookahead; |
| 1752 |
|
$aliasResultVariable = $this->AliasResultVariable(); |
| 1753 |
|
|
| 1754 |
|
// Include AliasResultVariable in query components. |
| 1755 |
|
$this->queryComponents[$aliasResultVariable] = array( |
| 1756 |
|
'resultVariable' => $expression, |
| 1757 |
|
'nestingLevel' => $this->nestingLevel, |
| 1758 |
|
'token' => $token, |
| 1759 |
|
); |
| 1760 |
|
} |
| 1761 |
|
|
| 1762 |
|
// AST |
| 1763 |
|
|
|
@@ 1842-1853 (lines=12) @@
|
| 1839 |
|
$this->match(Lexer::T_AS); |
| 1840 |
|
} |
| 1841 |
|
|
| 1842 |
|
if ($this->lexer->isNextToken(Lexer::T_IDENTIFIER)) { |
| 1843 |
|
$token = $this->lexer->lookahead; |
| 1844 |
|
$resultVariable = $this->AliasResultVariable(); |
| 1845 |
|
$expr->fieldIdentificationVariable = $resultVariable; |
| 1846 |
|
|
| 1847 |
|
// Include AliasResultVariable in query components. |
| 1848 |
|
$this->queryComponents[$resultVariable] = array( |
| 1849 |
|
'resultvariable' => $expr, |
| 1850 |
|
'nestingLevel' => $this->nestingLevel, |
| 1851 |
|
'token' => $token, |
| 1852 |
|
); |
| 1853 |
|
} |
| 1854 |
|
|
| 1855 |
|
return $expr; |
| 1856 |
|
} |