File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,9 @@ module E = struct
343343        |>  skip_last_two_elements
344344        |>  List. filter_map (fun  (lbl , e ) ->
345345               match  (lbl, e) with 
346+                |  Asttypes.Noloc. Labelled  "_spreadProps" , expr  ->
347+                  Some 
348+                    (Parsetree. JSXPropSpreading  (Location. none, sub.expr sub expr))
346349               |  ( Asttypes.Noloc. Labelled  name,
347350                   {
348351                     pexp_desc =  Pexp_ident  {txt =  Longident. Lident  v};
Original file line number Diff line number Diff line change @@ -471,7 +471,8 @@ module E = struct
471471                 else  Asttypes.Noloc. Labelled  name.txt
472472               in 
473473               (label, sub.expr sub value)
474-              |  _  -> failwith " todo" 
474+              |  JSXPropSpreading  (_ , value ) ->
475+                (Asttypes.Noloc. Labelled  " _spreadProps" 
475476      in 
476477      let  children_expr = 
477478        let  loc = 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments