Skip to content

Commit 52815f2

Browse files
committed
Promote mdx files
1 parent fec561c commit 52815f2

File tree

3 files changed

+44
-44
lines changed

3 files changed

+44
-44
lines changed

src/xref2/test.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ now we can ask for the signature of this module:
739739
# let sg = get_ok @@ Tools.signature_of_module env (Component.Delayed.get m);;
740740
val sg : Component.Signature.t =
741741
{Odoc_xref2.Component.Signature.items =
742-
[Odoc_xref2.Component.Signature.Module (`LModule (M, 45),
742+
[Odoc_xref2.Component.Signature.Module (`LModule (M, 72),
743743
Odoc_model.Lang.Signature.Ordinary,
744744
{Odoc_xref2.Component.Delayed.v =
745745
Some
@@ -751,7 +751,7 @@ val sg : Component.Signature.t =
751751
None);
752752
canonical = None; hidden = false};
753753
get = None});
754-
Odoc_xref2.Component.Signature.Module (`LModule (N, 46),
754+
Odoc_xref2.Component.Signature.Module (`LModule (N, 73),
755755
Odoc_model.Lang.Signature.Ordinary,
756756
{Odoc_xref2.Component.Delayed.v =
757757
Some
@@ -760,7 +760,7 @@ val sg : Component.Signature.t =
760760
Odoc_xref2.Component.Module.ModuleType
761761
(Odoc_xref2.Component.ModuleType.Path
762762
{Odoc_xref2.Component.ModuleType.p_expansion = None;
763-
p_path = `Dot (`Local (`LModule (M, 45), false), "S")});
763+
p_path = `Dot (`Local (`LModule (M, 72), false), "S")});
764764
canonical = None; hidden = false};
765765
get = None})];
766766
compiled = false; removed = []; doc = []}
@@ -793,7 +793,7 @@ val m : Component.Module.t Component.Delayed.t =
793793
# get_ok @@ Tools.signature_of_module env (Component.Delayed.get m);;
794794
- : Component.Signature.t =
795795
{Odoc_xref2.Component.Signature.items =
796-
[Odoc_xref2.Component.Signature.Type (`LType (t, 53),
796+
[Odoc_xref2.Component.Signature.Type (`LType (t, 80),
797797
Odoc_model.Lang.Signature.Ordinary,
798798
{Odoc_xref2.Component.Delayed.v =
799799
Some
@@ -1055,7 +1055,7 @@ let test_path =
10551055
`Resolved
10561056
(`Identifier
10571057
(Common.root_module "FooBarInt")));;
1058-
let cp = Component.Of_Lang.(module_path empty test_path);;
1058+
let cp = Component.Of_Lang.(module_path (empty ()) test_path);;
10591059
```
10601060

10611061
Now let's lookup that module:

test/xref2/strengthen/test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
let simple_strengthening input =
33
let p = Common.root_identifier in
44
let _, sg, _ = Common.model_of_string input in
5-
let c = Component.Of_Lang.(signature empty sg) in
6-
let cp = Component.Of_Lang.(resolved_module_path empty p) in
5+
let c = Component.Of_Lang.(signature (empty ()) sg) in
6+
let cp = Component.Of_Lang.(resolved_module_path (empty ()) p) in
77
let c' = Strengthen.signature (`Resolved cp) c in
88
let open Format in
99
fprintf std_formatter "BEFORE\n======\n%!";

test/xref2/subst/test.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let resolve_module_name sg name =
1212
let module_substitution ~idents ~targets m test_data =
1313
let _, sg, _ = Common.model_of_string test_data in
1414
15-
let c = Component.Of_Lang.(signature empty sg) in
15+
let c = Component.Of_Lang.(signature (empty ()) sg) in
1616
1717
let subst_idents_mod = resolve_module_name c idents in
1818
let subst_targets_mod = resolve_module_name c targets in
@@ -95,7 +95,7 @@ let compile mli =
9595
let id, sg, _ = Common.model_of_string mli in
9696
let env = Env.env_for_testing ~linking:false in
9797
Odoc_xref2.Compile.signature env (id :> Odoc_model.Paths.Identifier.Signature.t) sg
98-
|> Of_Lang.signature Of_Lang.empty
98+
|> Of_Lang.(signature (empty ()))
9999
```
100100

101101
```ocaml
@@ -128,28 +128,28 @@ let compile mli =
128128
end
129129
|} ;;
130130
- : Component.Signature.t =
131-
module type Monad/33 = sig
132-
type t/34
133-
val map/35 : ([a] r(t/34)) -> ((a) -> b) -> [b] r(t/34)
134-
val join/36 : ([[a] r(t/34)] r(t/34)) -> [a] r(t/34)
131+
module type Monad/68 = sig
132+
type t/69
133+
val map/70 : ([a] r(t/69)) -> ((a) -> b) -> [b] r(t/69)
134+
val join/71 : ([[a] r(t/69)] r(t/69)) -> [a] r(t/69)
135135
(removed=[])end
136-
module SomeMonad/32 : sig
137-
type t/37
138-
include : r(Monad/33) with [r(root(Monad/33).t) = [a] r(t/37)] (sig =
139-
val map/38 : ([a] r(t/37)) -> ((a) -> b) -> [b] r(t/37)
140-
val join/39 : ([[a] r(t/37)] r(t/37)) -> [a] r(t/37)
136+
module SomeMonad/67 : sig
137+
type t/72
138+
include : r(Monad/68) with [r(root(Monad/68).t) = [a] r(t/72)] (sig =
139+
val map/73 : ([a] r(t/72)) -> ((a) -> b) -> [b] r(t/72)
140+
val join/74 : ([[a] r(t/72)] r(t/72)) -> [a] r(t/72)
141141
(removed=[]))
142142
(removed=[])end
143-
module ComplexTypeExpr/30 : sig
144-
type t/40
145-
include : r(Monad/33) with [r(root(Monad/33).t) = ([r(int) * a] r(t/40) * [a * r(int)] r(t/40))] (sig =
146-
val map/41 : (([r(int) * a] r(t/40) * [a * r(int)] r(t/40))) -> ((a) -> b) -> ([r(int) * b] r(t/40) * [b * r(int)] r(t/40))
147-
val join/42 : (([r(int) * ([r(int) * a] r(t/40) * [a * r(int)] r(t/40))] r(t/40) * [([r(int) * a] r(t/40) * [a * r(int)] r(t/40)) * r(int)] r(t/40))) -> ([r(int) * a] r(t/40) * [a * r(int)] r(t/40))
143+
module ComplexTypeExpr/65 : sig
144+
type t/75
145+
include : r(Monad/68) with [r(root(Monad/68).t) = ([r(int) * a] r(t/75) * [a * r(int)] r(t/75))] (sig =
146+
val map/76 : (([r(int) * a] r(t/75) * [a * r(int)] r(t/75))) -> ((a) -> b) -> ([r(int) * b] r(t/75) * [b * r(int)] r(t/75))
147+
val join/77 : (([r(int) * ([r(int) * a] r(t/75) * [a * r(int)] r(t/75))] r(t/75) * [([r(int) * a] r(t/75) * [a * r(int)] r(t/75)) * r(int)] r(t/75))) -> ([r(int) * a] r(t/75) * [a * r(int)] r(t/75))
148148
(removed=[]))
149149
(removed=[])end
150-
module Erase/31 : sig
151-
include : r(Monad/33) with [r(root(Monad/33).t) = a] (sig = val map/43 : (a) -> ((a) -> b) -> b
152-
val join/44 : (a) -> a
150+
module Erase/66 : sig
151+
include : r(Monad/68) with [r(root(Monad/68).t) = a] (sig = val map/78 : (a) -> ((a) -> b) -> b
152+
val join/79 : (a) -> a
153153
(removed=[]))
154154
(removed=[])end
155155
(removed=[])
@@ -172,18 +172,18 @@ More tests with two type variables:
172172
end
173173
|} ;;
174174
- : Component.Signature.t =
175-
module type Monad_2/61 = sig
176-
type t/62
177-
val map/63 : ([a * err] r(t/62)) -> f:((a) -> b) -> [b * err] r(t/62)
178-
val join/64 : ([[a * e] r(t/62) * e] r(t/62)) -> [a * e] r(t/62)
179-
val both/65 : ([a * e] r(t/62)) -> ([b * e] r(t/62)) -> [(a * b) * e] r(t/62)
175+
module type Monad_2/121 = sig
176+
type t/122
177+
val map/123 : ([a * err] r(t/122)) -> f:((a) -> b) -> [b * err] r(t/122)
178+
val join/124 : ([[a * e] r(t/122) * e] r(t/122)) -> [a * e] r(t/122)
179+
val both/125 : ([a * e] r(t/122)) -> ([b * e] r(t/122)) -> [(a * b) * e] r(t/122)
180180
(removed=[])end
181-
module SwappedVars/60 : sig
182-
type t/66
183-
include : r(Monad_2/61) with [r(root(Monad_2/61).t) = [b * a] r(t/66)] (sig =
184-
val map/67 : ([err * a] r(t/66)) -> f:((a) -> b) -> [err * b] r(t/66)
185-
val join/68 : ([e * [e * a] r(t/66)] r(t/66)) -> [e * a] r(t/66)
186-
val both/69 : ([e * a] r(t/66)) -> ([e * b] r(t/66)) -> [e * (a * b)] r(t/66)
181+
module SwappedVars/120 : sig
182+
type t/126
183+
include : r(Monad_2/121) with [r(root(Monad_2/121).t) = [b * a] r(t/126)] (sig =
184+
val map/127 : ([err * a] r(t/126)) -> f:((a) -> b) -> [err * b] r(t/126)
185+
val join/128 : ([e * [e * a] r(t/126)] r(t/126)) -> [e * a] r(t/126)
186+
val both/129 : ([e * a] r(t/126)) -> ([e * b] r(t/126)) -> [e * (a * b)] r(t/126)
187187
(removed=[]))
188188
(removed=[])end
189189
(removed=[])
@@ -204,14 +204,14 @@ Edge cases:
204204
end
205205
|} ;;
206206
- : Component.Signature.t =
207-
module type S/78 = sig
208-
type t/79
209-
val map/80 : ([a] r(t/79)) -> ((a) -> b) -> [b] r(t/79)
207+
module type S/151 = sig
208+
type t/152
209+
val map/153 : ([a] r(t/152)) -> ((a) -> b) -> [b] r(t/152)
210210
(removed=[])end
211-
module M/77 : sig
212-
type t/81
213-
include : r(S/78) with [r(root(S/78).t) = [(alias (poly_var [ `A of (a * b) ]) b)] r(t/81)] (sig =
214-
val map/82 : ([(alias (poly_var [ `A of (a * b) ]) b)] r(t/81)) -> ((a) -> b) -> [(alias (poly_var [ `A of (b * b) ]) b)] r(t/81)
211+
module M/150 : sig
212+
type t/154
213+
include : r(S/151) with [r(root(S/151).t) = [(alias (poly_var [ `A of (a * b) ]) b)] r(t/154)] (sig =
214+
val map/155 : ([(alias (poly_var [ `A of (a * b) ]) b)] r(t/154)) -> ((a) -> b) -> [(alias (poly_var [ `A of (b * b) ]) b)] r(t/154)
215215
(removed=[]))
216216
(removed=[])end
217217
(removed=[])

0 commit comments

Comments
 (0)