File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,7 @@ class TokenParser {
147
147
}
148
148
case Token . TOK_STAR : {
149
149
const left : ExpressionNode = { type : 'Identity' } ;
150
- const right : ExpressionNode =
151
- this . lookahead ( 0 ) === Token . TOK_RBRACKET ? left : this . parseProjectionRHS ( bindingPower . Star ) ;
152
- return { type : 'ValueProjection' , left, right } ;
150
+ return { type : 'ValueProjection' , left, right : this . parseProjectionRHS ( bindingPower . Star ) } ;
153
151
}
154
152
case Token . TOK_FILTER :
155
153
return this . led ( token . type , { type : 'Identity' } ) ;
@@ -189,11 +187,9 @@ class TokenParser {
189
187
return { type : 'ExpressionReference' , child } ;
190
188
}
191
189
case Token . TOK_LPAREN : {
192
- const args : ExpressionNode [ ] = [ ] ;
193
190
const expression = this . expression ( 0 ) ;
194
- args . push ( expression ) ;
195
191
this . match ( Token . TOK_RPAREN ) ;
196
- return args [ 0 ] ;
192
+ return expression ;
197
193
}
198
194
default :
199
195
this . errorToken ( token ) ;
You can’t perform that action at this time.
0 commit comments