File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 199199 Child ('ArrowToken' , kind = 'ArrowToken' ),
200200 ]),
201201
202+ # An infix binary expression like x + y.
203+ # NOTE: This won't come directly out of the parser. Rather, it is the
204+ # result of "folding" a SequenceExpr based on knowing the precedence
205+ # relationships amongst the different infix operators.
206+ Node ('InfixOperatorExpr' , kind = 'Expr' ,
207+ children = [
208+ Child ('LeftOperand' , kind = 'Expr' ),
209+ Child ('OperatorOperand' , kind = 'Expr' ),
210+ Child ('RightOperand' , kind = 'Expr' ),
211+ ]),
212+
202213 # A floating-point literal
203214 # 4.0
204215 # -3.9
Original file line number Diff line number Diff line change 269269 'MissingPattern' : 265 ,
270270 'GarbageNodes' : 266 ,
271271 'LabeledStmt' : 267 ,
272+ 'InfixOperatorExpr' : 268 ,
272273}
273274
274275
You can’t perform that action at this time.
0 commit comments