@@ 835-846 (lines=12) @@ | ||
832 | * |
|
833 | * @return \Doctrine\ORM\Query\AST\SimpleSelectClause |
|
834 | */ |
|
835 | public function SimpleSelectClause() { |
|
836 | $isDistinct = false; |
|
837 | $this->match(Lexer::T_SELECT); |
|
838 | ||
839 | if ($this->lexer->isNextToken(Lexer::T_DISTINCT)) { |
|
840 | $this->match(Lexer::T_DISTINCT); |
|
841 | ||
842 | $isDistinct = true; |
|
843 | } |
|
844 | ||
845 | return new AST\SimpleSelectClause($this->SimpleSelectExpression(), $isDistinct); |
|
846 | } |
|
847 | ||
848 | /** |
|
849 | * FromClause ::= "FROM" IdentificationVariableDeclaration {"," IdentificationVariableDeclaration}* |
|
@@ 2063-2077 (lines=15) @@ | ||
2060 | * |
|
2061 | * @return \Doctrine\ORM\Query\AST\EmptyCollectionComparisonExpression |
|
2062 | */ |
|
2063 | public function EmptyCollectionComparisonExpression() { |
|
2064 | $emptyCollectionCompExpr = new AST\EmptyCollectionComparisonExpression( |
|
2065 | $this->CollectionValuedPathExpression() |
|
2066 | ); |
|
2067 | $this->match(Lexer::T_IS); |
|
2068 | ||
2069 | if ($this->lexer->isNextToken(Lexer::T_NOT)) { |
|
2070 | $this->match(Lexer::T_NOT); |
|
2071 | $emptyCollectionCompExpr->not = true; |
|
2072 | } |
|
2073 | ||
2074 | $this->match(Lexer::T_EMPTY); |
|
2075 | ||
2076 | return $emptyCollectionCompExpr; |
|
2077 | } |
|
2078 | ||
2079 | /** |
|
2080 | * CollectionMemberExpression ::= EntityExpression ["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression |