@@ -582,9 +582,9 @@ module ExtendFunctionTable = struct
582
582
Texp_apply {funct = {exp_desc = Texp_ident (path, {loc}, _)}; args};
583
583
}
584
584
when kindOpt <> None ->
585
- let checkArg ((argLabel : Asttypes.Noloc. arg_label ), _argOpt ) =
585
+ let checkArg ((argLabel : Asttypes.arg_label ), _argOpt ) =
586
586
match (argLabel, kindOpt) with
587
- | (Labelled l | Optional l ), Some kind ->
587
+ | (Labelled { txt = l } | Optional { txt = l } ), Some kind ->
588
588
kind |> List. for_all (fun {Kind. label} -> label <> l)
589
589
| _ -> true
590
590
in
@@ -624,9 +624,9 @@ module ExtendFunctionTable = struct
624
624
when callee |> FunctionTable. isInFunctionInTable ~function Table ->
625
625
let functionName = Path. name callee in
626
626
args
627
- |> List. iter (fun ((argLabel : Asttypes.Noloc. arg_label ), argOpt ) ->
627
+ |> List. iter (fun ((argLabel : Asttypes.arg_label ), argOpt ) ->
628
628
match (argLabel, argOpt |> extractLabelledArgument) with
629
- | Labelled label, Some (path, loc)
629
+ | Labelled {txt = label} , Some (path, loc)
630
630
when path |> FunctionTable. isInFunctionInTable ~function Table
631
631
->
632
632
functionTable
@@ -672,11 +672,11 @@ module CheckExpressionWellFormed = struct
672
672
->
673
673
let functionName = Path. name functionPath in
674
674
args
675
- |> List. iter (fun ((argLabel : Asttypes.Noloc. arg_label ), argOpt ) ->
675
+ |> List. iter (fun ((argLabel : Asttypes.arg_label ), argOpt ) ->
676
676
match argOpt |> ExtendFunctionTable. extractLabelledArgument with
677
677
| Some (path , loc ) -> (
678
678
match argLabel with
679
- | Labelled label -> (
679
+ | Labelled { txt = label } -> (
680
680
if
681
681
functionTable
682
682
|> FunctionTable. functionGetKindOfLabel ~function Name
@@ -761,7 +761,7 @@ module Compile = struct
761
761
let argsFromKind =
762
762
innerFunctionDefinition.kind
763
763
|> List. map (fun (entry : Kind.entry ) ->
764
- ( Asttypes.Noloc. Labelled entry.label,
764
+ ( Asttypes. Labelled {txt = entry.label; loc = Location. none} ,
765
765
Some
766
766
{
767
767
expr with
@@ -785,7 +785,7 @@ module Compile = struct
785
785
args
786
786
|> List. find_opt (fun arg ->
787
787
match arg with
788
- | Asttypes.Noloc. Labelled s , Some _ -> s = label
788
+ | Asttypes. Labelled { txt = s } , Some _ -> s = label
789
789
| _ -> false )
790
790
in
791
791
let argOpt =
0 commit comments