File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ let rec stringifyDocItem ?(indentation = 0) ~originalEnv (item : docItem) =
154
154
stringifyObject ~start OnNewline:true ~indentation
155
155
[
156
156
(" id" , Some (wrapInQuotes m.id));
157
+ (" name" , Some (wrapInQuotes m.name));
157
158
(" kind" , Some (wrapInQuotes " module" ));
158
159
( " item" ,
159
160
Some
@@ -165,6 +166,7 @@ let rec stringifyDocItem ?(indentation = 0) ~originalEnv (item : docItem) =
165
166
[
166
167
(" id" , Some (wrapInQuotes m.id));
167
168
(" kind" , Some (wrapInQuotes " moduleAlias" ));
169
+ (" name" , Some (wrapInQuotes m.name));
168
170
(" docstrings" , Some (stringifyDocstrings m.docstring));
169
171
(" signature" , Some (m.signature |> Json. escape |> wrapInQuotes));
170
172
]
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ preferring found resi file for impl: src/DocExtraction2.resi
22
22
},
23
23
{
24
24
"id": "InnerModule.DocExtraction2",
25
+ "name": "InnerModule",
25
26
"kind": "module",
26
27
"item":
27
28
{
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ extracting docs for src/DocExtraction2.resi
21
21
},
22
22
{
23
23
"id": "InnerModule.DocExtraction2",
24
+ "name": "InnerModule",
24
25
"kind": "module",
25
26
"item":
26
27
{
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ extracting docs for src/DocExtractionRes.res
43
43
},
44
44
{
45
45
"id": "SomeInnerModule.DocExtractionRes",
46
+ "name": "SomeInnerModule",
46
47
"kind": "module",
47
48
"item":
48
49
{
@@ -94,6 +95,7 @@ extracting docs for src/DocExtractionRes.res
94
95
},
95
96
{
96
97
"id": "AnotherModule.DocExtractionRes",
98
+ "name": "AnotherModule",
97
99
"kind": "module",
98
100
"item":
99
101
{
@@ -103,6 +105,7 @@ extracting docs for src/DocExtractionRes.res
103
105
{
104
106
"id": "DocExtractionRes.AnotherModule.SomeInnerModule",
105
107
"kind": "moduleAlias",
108
+ "name": "LinkedModule",
106
109
"docstrings": ["This links another module. Neat."],
107
110
"signature": "module LinkedModule = SomeInnerModule"
108
111
},
@@ -148,6 +151,7 @@ extracting docs for src/DocExtractionRes.res
148
151
},
149
152
{
150
153
"id": "ModuleWithThingsThatShouldNotBeExported.DocExtractionRes",
154
+ "name": "ModuleWithThingsThatShouldNotBeExported",
151
155
"kind": "module",
152
156
"item":
153
157
{
You can’t perform that action at this time.
0 commit comments