@@ -131,11 +131,19 @@ class TokenParser {
131
131
}
132
132
case Token . TOK_MINUS : {
133
133
const child = this . expression ( bindingPower . Minus ) ;
134
- return { type : 'Unary' , operator : token . type , operand : child } as UnaryArithmeticNode ;
134
+ return {
135
+ type : 'Unary' ,
136
+ operator : token . type ,
137
+ operand : child ,
138
+ } as UnaryArithmeticNode ;
135
139
}
136
140
case Token . TOK_PLUS : {
137
141
const child = this . expression ( bindingPower . Plus ) ;
138
- return { type : 'Unary' , operator : token . type , operand : child } as UnaryArithmeticNode ;
142
+ return {
143
+ type : 'Unary' ,
144
+ operator : token . type ,
145
+ operand : child ,
146
+ } as UnaryArithmeticNode ;
139
147
}
140
148
case Token . TOK_STAR : {
141
149
const left : ExpressionNode = { type : 'Identity' } ;
@@ -148,7 +156,10 @@ class TokenParser {
148
156
case Token . TOK_LBRACE :
149
157
return this . parseMultiselectHash ( ) ;
150
158
case Token . TOK_FLATTEN : {
151
- const left : ExpressionNode = { type : 'Flatten' , child : { type : 'Identity' } } ;
159
+ const left : ExpressionNode = {
160
+ type : 'Flatten' ,
161
+ child : { type : 'Identity' } ,
162
+ } ;
152
163
const right : ExpressionNode = this . parseProjectionRHS ( bindingPower . Flatten ) ;
153
164
return { type : 'Projection' , left, right } ;
154
165
}
@@ -178,7 +189,6 @@ class TokenParser {
178
189
return { type : 'ExpressionReference' , child } ;
179
190
}
180
191
case Token . TOK_LPAREN : {
181
- console . log ( 'nud::TOK_LPAREN' ) ;
182
192
const args : ExpressionNode [ ] = [ ] ;
183
193
let expression = this . expression ( 0 ) ;
184
194
args . push ( expression ) ;
@@ -310,7 +320,11 @@ class TokenParser {
310
320
left : ExpressionNode ,
311
321
right : ExpressionNode ,
312
322
) : BinaryExpressionNode < 'Projection' | 'IndexExpression' > {
313
- const indexExpr : BinaryExpressionNode < 'IndexExpression' > = { type : 'IndexExpression' , left, right } ;
323
+ const indexExpr : BinaryExpressionNode < 'IndexExpression' > = {
324
+ type : 'IndexExpression' ,
325
+ left,
326
+ right,
327
+ } ;
314
328
if ( right . type === 'Slice' ) {
315
329
return {
316
330
left : indexExpr ,
0 commit comments