@@ -582,9 +582,9 @@ module ExtendFunctionTable = struct
582582 Texp_apply {funct = {exp_desc = Texp_ident (path, {loc}, _)}; args};
583583 }
584584 when kindOpt <> None ->
585- let checkArg ((argLabel : Asttypes.Noloc. arg_label ), _argOpt ) =
585+ let checkArg ((argLabel : Asttypes.arg_label ), _argOpt ) =
586586 match (argLabel, kindOpt) with
587- | (Labelled l | Optional l ), Some kind ->
587+ | (Labelled { txt = l } | Optional { txt = l } ), Some kind ->
588588 kind |> List. for_all (fun {Kind. label} -> label <> l)
589589 | _ -> true
590590 in
@@ -624,9 +624,9 @@ module ExtendFunctionTable = struct
624624 when callee |> FunctionTable. isInFunctionInTable ~function Table ->
625625 let functionName = Path. name callee in
626626 args
627- |> List. iter (fun ((argLabel : Asttypes.Noloc. arg_label ), argOpt ) ->
627+ |> List. iter (fun ((argLabel : Asttypes.arg_label ), argOpt ) ->
628628 match (argLabel, argOpt |> extractLabelledArgument) with
629- | Labelled label, Some (path, loc)
629+ | Labelled {txt = label} , Some (path, loc)
630630 when path |> FunctionTable. isInFunctionInTable ~function Table
631631 ->
632632 functionTable
@@ -672,11 +672,11 @@ module CheckExpressionWellFormed = struct
672672 ->
673673 let functionName = Path. name functionPath in
674674 args
675- |> List. iter (fun ((argLabel : Asttypes.Noloc. arg_label ), argOpt ) ->
675+ |> List. iter (fun ((argLabel : Asttypes.arg_label ), argOpt ) ->
676676 match argOpt |> ExtendFunctionTable. extractLabelledArgument with
677677 | Some (path , loc ) -> (
678678 match argLabel with
679- | Labelled label -> (
679+ | Labelled { txt = label } -> (
680680 if
681681 functionTable
682682 |> FunctionTable. functionGetKindOfLabel ~function Name
@@ -761,7 +761,7 @@ module Compile = struct
761761 let argsFromKind =
762762 innerFunctionDefinition.kind
763763 |> List. map (fun (entry : Kind.entry ) ->
764- ( Asttypes.Noloc. Labelled entry.label,
764+ ( Asttypes. Labelled {txt = entry.label; loc = Location. none} ,
765765 Some
766766 {
767767 expr with
@@ -785,7 +785,7 @@ module Compile = struct
785785 args
786786 |> List. find_opt (fun arg ->
787787 match arg with
788- | Asttypes.Noloc. Labelled s , Some _ -> s = label
788+ | Asttypes. Labelled { txt = s } , Some _ -> s = label
789789 | _ -> false )
790790 in
791791 let argOpt =
0 commit comments