File tree Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -2186,25 +2186,9 @@ and parse_binary_expr ?(context = OrdinaryExpr) ?a p prec =
2186
2186
let b = parse_binary_expr ~context p token_prec in
2187
2187
let loc = mk_loc a.Parsetree. pexp_loc.loc_start b.pexp_loc.loc_end in
2188
2188
let expr =
2189
- match (token, b.pexp_desc) with
2190
- | ( BarGreater ,
2191
- Pexp_apply {funct = fun_expr; args; partial; transformed_jsx} ) ->
2192
- {
2193
- b with
2194
- pexp_desc =
2195
- Pexp_apply
2196
- {
2197
- funct = fun_expr;
2198
- args = args @ [(Nolabel , a)];
2199
- partial;
2200
- transformed_jsx;
2201
- };
2202
- }
2203
- | BarGreater , _ -> Ast_helper.Exp. apply ~loc b [(Nolabel , a)]
2204
- | _ ->
2205
- Ast_helper.Exp. apply ~loc
2206
- (make_infix_operator p token start_pos end_pos)
2207
- [(Nolabel , a); (Nolabel , b)]
2189
+ Ast_helper.Exp. apply ~loc
2190
+ (make_infix_operator p token start_pos end_pos)
2191
+ [(Nolabel , a); (Nolabel , b)]
2208
2192
in
2209
2193
Parser. eat_breadcrumb p;
2210
2194
loop expr)
Original file line number Diff line number Diff line change @@ -820,9 +820,6 @@ let rec scan scanner =
820
820
| '|' ->
821
821
next2 scanner;
822
822
Token. Lor
823
- | '>' ->
824
- next2 scanner;
825
- Token. BarGreater
826
823
| _ ->
827
824
next scanner;
828
825
Token. Bar )
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ type t =
94
94
| TemplateTail of string * Lexing .position
95
95
| TemplatePart of string * Lexing .position
96
96
| Backtick
97
- | BarGreater
98
97
| Try
99
98
| DocComment of Location .t * string
100
99
| ModuleComment of Location .t * string
@@ -109,7 +108,7 @@ let precedence = function
109
108
| Caret -> 4
110
109
| Band -> 5
111
110
| Equal | EqualEqual | EqualEqualEqual | LessThan | GreaterThan | BangEqual
112
- | BangEqualEqual | LessEqual | GreaterEqual | BarGreater ->
111
+ | BangEqualEqual | LessEqual | GreaterEqual ->
113
112
6
114
113
| LeftShift | RightShift | RightShiftUnsigned -> 7
115
114
| Plus | PlusDot | Minus | MinusDot | PlusPlus -> 8
@@ -213,7 +212,6 @@ let to_string = function
213
212
| TemplatePart (text , _ ) -> text ^ " ${"
214
213
| TemplateTail (text , _ ) -> " TemplateTail(" ^ text ^ " )"
215
214
| Backtick -> " `"
216
- | BarGreater -> " |>"
217
215
| Try -> " try"
218
216
| DocComment (_loc , s ) -> " DocComment " ^ s
219
217
| ModuleComment (_loc , s ) -> " ModuleComment " ^ s
You can’t perform that action at this time.
0 commit comments