Skip to content

Commit 3d3aa8e

Browse files
aspeddrozth
authored andcommitted
[DocGen]: Rename key item -> items (#821)
* rename to items * update tests
1 parent 9aa8e0f commit 3d3aa8e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

analysis/src/DocExtraction.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ let rec stringifyDocItem ?(indentation = 0) ~originalEnv (item : docItem) =
156156
("id", Some (wrapInQuotes m.id));
157157
("name", Some (wrapInQuotes m.name));
158158
("kind", Some (wrapInQuotes "module"));
159-
( "item",
159+
( "items",
160160
Some
161161
(stringifyDocsForModule ~originalEnv ~indentation:(indentation + 1)
162162
m) );

analysis/tests/src/expected/DocExtraction2.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ preferring found resi file for impl: src/DocExtraction2.resi
2424
"id": "InnerModule.DocExtraction2",
2525
"name": "InnerModule",
2626
"kind": "module",
27-
"item":
27+
"items":
2828
{
2929
"name": "InnerModule",
3030
"docstrings": [],

analysis/tests/src/expected/DocExtraction2.resi.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extracting docs for src/DocExtraction2.resi
2323
"id": "InnerModule.DocExtraction2",
2424
"name": "InnerModule",
2525
"kind": "module",
26-
"item":
26+
"items":
2727
{
2828
"name": "InnerModule",
2929
"docstrings": [],

analysis/tests/src/expected/DocExtractionRes.res.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extracting docs for src/DocExtractionRes.res
4545
"id": "SomeInnerModule.DocExtractionRes",
4646
"name": "SomeInnerModule",
4747
"kind": "module",
48-
"item":
48+
"items":
4949
{
5050
"name": "SomeInnerModule",
5151
"docstrings": ["Another module level docstring here."],
@@ -97,7 +97,7 @@ extracting docs for src/DocExtractionRes.res
9797
"id": "AnotherModule.DocExtractionRes",
9898
"name": "AnotherModule",
9999
"kind": "module",
100-
"item":
100+
"items":
101101
{
102102
"name": "AnotherModule",
103103
"docstrings": ["Mighty fine module here too!"],
@@ -153,7 +153,7 @@ extracting docs for src/DocExtractionRes.res
153153
"id": "ModuleWithThingsThatShouldNotBeExported.DocExtractionRes",
154154
"name": "ModuleWithThingsThatShouldNotBeExported",
155155
"kind": "module",
156-
"item":
156+
"items":
157157
{
158158
"name": "ModuleWithThingsThatShouldNotBeExported",
159159
"docstrings": [],

0 commit comments

Comments
 (0)