@@ -578,7 +578,7 @@ and read_object env fi nm =
578
578
let read_value_description env parent id vd =
579
579
let open Signature in
580
580
let id = Env. find_value_identifier env id in
581
- let locs = None in
581
+ let source_loc = None in
582
582
let container =
583
583
(parent : Identifier.Signature.t :> Identifier.LabelParent.t )
584
584
in
@@ -597,7 +597,7 @@ let read_value_description env parent id vd =
597
597
External primitives
598
598
| _ -> assert false
599
599
in
600
- Value { Value. id; locs ; doc; type_; value }
600
+ Value { Value. id; source_loc ; doc; type_; value }
601
601
602
602
let read_label_declaration env parent ld =
603
603
let open TypeDecl.Field in
@@ -704,7 +704,7 @@ let read_class_constraints env params =
704
704
let read_type_declaration env parent id decl =
705
705
let open TypeDecl in
706
706
let id = Env. find_type_identifier env id in
707
- let locs = None in
707
+ let source_loc = None in
708
708
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t ) in
709
709
let doc, canonical =
710
710
Doc_attr. attached Odoc_model.Semantics. Expect_canonical container decl.type_attributes
@@ -735,20 +735,20 @@ let read_type_declaration env parent id decl =
735
735
in
736
736
let private_ = (decl.type_private = Private ) in
737
737
let equation = Equation. {params; manifest; constraints; private_} in
738
- {id; locs ; doc; canonical; equation; representation}
738
+ {id; source_loc ; doc; canonical; equation; representation}
739
739
740
740
let read_extension_constructor env parent id ext =
741
741
let open Extension.Constructor in
742
742
let id = Env. find_extension_identifier env id in
743
- let locs = None in
743
+ let source_loc = None in
744
744
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t ) in
745
745
let doc = Doc_attr. attached_no_tag container ext.ext_attributes in
746
746
let args =
747
747
read_constructor_declaration_arguments env
748
748
(parent : Identifier.Signature.t :> Identifier.FieldParent.t ) ext.ext_args
749
749
in
750
750
let res = opt_map (read_type_expr env) ext.ext_ret_type in
751
- {id; locs ; doc; args; res}
751
+ {id; source_loc ; doc; args; res}
752
752
753
753
let read_type_extension env parent id ext rest =
754
754
let open Extension in
@@ -773,7 +773,7 @@ let read_type_extension env parent id ext rest =
773
773
let read_exception env parent id ext =
774
774
let open Exception in
775
775
let id = Env. find_exception_identifier env id in
776
- let locs = None in
776
+ let source_loc = None in
777
777
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t ) in
778
778
let doc = Doc_attr. attached_no_tag container ext.ext_attributes in
779
779
mark_exception ext;
@@ -782,7 +782,7 @@ let read_exception env parent id ext =
782
782
(parent : Identifier.Signature.t :> Identifier.FieldParent.t ) ext.ext_args
783
783
in
784
784
let res = opt_map (read_type_expr env) ext.ext_ret_type in
785
- {id; locs ; doc; args; res}
785
+ {id; source_loc ; doc; args; res}
786
786
787
787
let read_method env parent concrete (name , kind , typ ) =
788
788
let open Method in
@@ -867,7 +867,7 @@ let rec read_virtual = function
867
867
let read_class_type_declaration env parent id cltd =
868
868
let open ClassType in
869
869
let id = Env. find_class_type_identifier env id in
870
- let locs = None in
870
+ let source_loc = None in
871
871
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t ) in
872
872
let doc = Doc_attr. attached_no_tag container cltd.clty_attributes in
873
873
mark_class_type_declaration cltd;
@@ -880,7 +880,7 @@ let read_class_type_declaration env parent id cltd =
880
880
read_class_signature env (id :> Identifier.ClassSignature.t ) cltd.clty_params cltd.clty_type
881
881
in
882
882
let virtual_ = read_virtual cltd.clty_type in
883
- { id; locs ; doc; virtual_; params; expr; expansion = None }
883
+ { id; source_loc ; doc; virtual_; params; expr; expansion = None }
884
884
885
885
let rec read_class_type env parent params =
886
886
let open Class in function
@@ -903,7 +903,7 @@ let rec read_class_type env parent params =
903
903
let read_class_declaration env parent id cld =
904
904
let open Class in
905
905
let id = Env. find_class_identifier env id in
906
- let locs = None in
906
+ let source_loc = None in
907
907
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t ) in
908
908
let doc = Doc_attr. attached_no_tag container cld.cty_attributes in
909
909
mark_class_declaration cld;
@@ -916,7 +916,7 @@ let read_class_declaration env parent id cld =
916
916
read_class_type env (id :> Identifier.ClassSignature.t ) cld.cty_params cld.cty_type
917
917
in
918
918
let virtual_ = cld.cty_new = None in
919
- { id; locs ; doc; virtual_; params; type_; expansion = None }
919
+ { id; source_loc ; doc; virtual_; params; type_; expansion = None }
920
920
921
921
let rec read_module_type env parent (mty : Odoc_model.Compat.module_type ) =
922
922
let open ModuleType in
@@ -945,17 +945,17 @@ let rec read_module_type env parent (mty : Odoc_model.Compat.module_type) =
945
945
and read_module_type_declaration env parent id (mtd : Odoc_model.Compat.modtype_declaration ) =
946
946
let open ModuleType in
947
947
let id = Env. find_module_type env id in
948
- let locs = None in
948
+ let source_loc = None in
949
949
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t ) in
950
950
let doc, canonical = Doc_attr. attached Odoc_model.Semantics. Expect_canonical container mtd.mtd_attributes in
951
951
let canonical = (canonical :> Path.ModuleType.t option ) in
952
952
let expr = opt_map (read_module_type env (id :> Identifier.Signature.t )) mtd.mtd_type in
953
- {id; locs ; doc; canonical; expr }
953
+ {id; source_loc ; doc; canonical; expr }
954
954
955
955
and read_module_declaration env parent ident (md : Odoc_model.Compat.module_declaration ) =
956
956
let open Module in
957
957
let id = (Env. find_module_identifier env ident :> Identifier.Module.t ) in
958
- let locs = None in
958
+ let source_loc = None in
959
959
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t ) in
960
960
let doc, canonical = Doc_attr. attached Odoc_model.Semantics. Expect_canonical container md.md_attributes in
961
961
let canonical = (canonical :> Path.Module.t option ) in
@@ -969,7 +969,7 @@ and read_module_declaration env parent ident (md : Odoc_model.Compat.module_decl
969
969
| Some _ -> false
970
970
| None -> Odoc_model.Names. contains_double_underscore (Ident. name ident)
971
971
in
972
- {id; locs ; doc; type_; canonical; hidden }
972
+ {id; source_loc ; doc; type_; canonical; hidden }
973
973
974
974
and read_type_rec_status rec_status =
975
975
let open Signature in
0 commit comments