Skip to content

Commit a3affc8

Browse files
aspeddrozth
authored andcommitted
update tests
1 parent 8d59cd0 commit a3affc8

File tree

3 files changed

+136
-0
lines changed

3 files changed

+136
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,32 @@ preferring found resi file for impl: src/DocExtraction2.resi
44

55
{
66
"name": "DocExtraction2",
7+
"deprecated": false,
78
"docstrings": ["Module level doc here."],
89
"items": [
910
{
1011
"id": "DocExtraction2.t",
1112
"kind": "type",
1213
"name": "t",
14+
"deprecated": false,
15+
"location": {
16+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
17+
"line": 4,
18+
"col": 1
19+
},
1320
"signature": "type t",
1421
"docstrings": ["Type t is pretty cool."]
1522
},
1623
{
1724
"id": "DocExtraction2.make",
1825
"kind": "value",
1926
"name": "make",
27+
"deprecated": false,
28+
"location": {
29+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
30+
"line": 7,
31+
"col": 5
32+
},
2033
"signature": "let make: unit => t",
2134
"docstrings": ["Makerz of stuffz."]
2235
},
@@ -26,19 +39,32 @@ preferring found resi file for impl: src/DocExtraction2.resi
2639
"item":
2740
{
2841
"name": "InnerModule",
42+
"deprecated": false,
2943
"docstrings": [],
3044
"items": [
3145
{
3246
"id": "DocExtraction2.InnerModule.t",
3347
"kind": "type",
3448
"name": "t",
49+
"deprecated": false,
50+
"location": {
51+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
52+
"line": 13,
53+
"col": 3
54+
},
3555
"signature": "type t",
3656
"docstrings": ["This type is also t."]
3757
},
3858
{
3959
"id": "DocExtraction2.InnerModule.make",
4060
"kind": "value",
4161
"name": "make",
62+
"deprecated": false,
63+
"location": {
64+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
65+
"line": 15,
66+
"col": 3
67+
},
4268
"signature": "let make: unit => t",
4369
"docstrings": ["Maker of tea."]
4470
}]

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,32 @@ extracting docs for src/DocExtraction2.resi
33

44
{
55
"name": "DocExtraction2",
6+
"deprecated": false,
67
"docstrings": ["Module level doc here."],
78
"items": [
89
{
910
"id": "DocExtraction2.t",
1011
"kind": "type",
1112
"name": "t",
13+
"deprecated": false,
14+
"location": {
15+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
16+
"line": 4,
17+
"col": 1
18+
},
1219
"signature": "type t",
1320
"docstrings": ["Type t is pretty cool."]
1421
},
1522
{
1623
"id": "DocExtraction2.make",
1724
"kind": "value",
1825
"name": "make",
26+
"deprecated": false,
27+
"location": {
28+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
29+
"line": 7,
30+
"col": 5
31+
},
1932
"signature": "let make: unit => t",
2033
"docstrings": ["Makerz of stuffz."]
2134
},
@@ -25,19 +38,32 @@ extracting docs for src/DocExtraction2.resi
2538
"item":
2639
{
2740
"name": "InnerModule",
41+
"deprecated": false,
2842
"docstrings": [],
2943
"items": [
3044
{
3145
"id": "DocExtraction2.InnerModule.t",
3246
"kind": "type",
3347
"name": "t",
48+
"deprecated": false,
49+
"location": {
50+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
51+
"line": 13,
52+
"col": 3
53+
},
3454
"signature": "type t",
3555
"docstrings": ["This type is also t."]
3656
},
3757
{
3858
"id": "DocExtraction2.InnerModule.make",
3959
"kind": "value",
4060
"name": "make",
61+
"deprecated": false,
62+
"location": {
63+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtraction2.resi",
64+
"line": 15,
65+
"col": 3
66+
},
4167
"signature": "let make: unit => t",
4268
"docstrings": ["Maker of tea."]
4369
}]

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

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,34 @@ extracting docs for src/DocExtractionRes.res
33

44
{
55
"name": "DocExtractionRes",
6+
"deprecated": false,
67
"docstrings": ["Module level documentation goes here."],
78
"items": [
89
{
910
"id": "DocExtractionRes.t",
1011
"kind": "type",
1112
"name": "t",
13+
"deprecated": false,
14+
"location": {
15+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
16+
"line": 4,
17+
"col": 1
18+
},
1219
"signature": "type t = {name: string, online: bool}",
1320
"docstrings": ["This type represents stuff."],
1421
"detail":
1522
{
1623
"kind": "record",
1724
"fieldDocs": [{
1825
"fieldName": "name",
26+
"deprecated": false,
27+
"optional": false,
1928
"docstrings": ["The name of the stuff."],
2029
"signature": "string"
2130
}, {
2231
"fieldName": "online",
32+
"deprecated": false,
33+
"optional": false,
2334
"docstrings": ["Whether stuff is online."],
2435
"signature": "bool"
2536
}]
@@ -29,13 +40,25 @@ extracting docs for src/DocExtractionRes.res
2940
"id": "DocExtractionRes.make",
3041
"kind": "value",
3142
"name": "make",
43+
"deprecated": false,
44+
"location": {
45+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
46+
"line": 17,
47+
"col": 5
48+
},
3249
"signature": "let make: string => t",
3350
"docstrings": ["Create stuff.\n\n```rescript example\nlet stuff = make(\"My name\")\n```"]
3451
},
3552
{
3653
"id": "DocExtractionRes.asOffline",
3754
"kind": "value",
3855
"name": "asOffline",
56+
"deprecated": false,
57+
"location": {
58+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
59+
"line": 23,
60+
"col": 5
61+
},
3962
"signature": "let asOffline: t => t",
4063
"docstrings": ["Stuff goes offline."]
4164
},
@@ -45,12 +68,19 @@ extracting docs for src/DocExtractionRes.res
4568
"item":
4669
{
4770
"name": "SomeInnerModule",
71+
"deprecated": false,
4872
"docstrings": ["Another module level docstring here."],
4973
"items": [
5074
{
5175
"id": "DocExtractionRes.SomeInnerModule.status",
5276
"kind": "type",
5377
"name": "status",
78+
"deprecated": false,
79+
"location": {
80+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
81+
"line": 27,
82+
"col": 3
83+
},
5484
"signature": "type status = Started(t) | Stopped | Idle",
5585
"docstrings": [],
5686
"detail":
@@ -59,16 +89,19 @@ extracting docs for src/DocExtractionRes.res
5989
"constructorDocs": [
6090
{
6191
"constructorName": "Started",
92+
"deprecated": false,
6293
"docstrings": ["If this is started or not"],
6394
"signature": "Started(t)"
6495
},
6596
{
6697
"constructorName": "Stopped",
98+
"deprecated": false,
6799
"docstrings": ["Stopped?"],
68100
"signature": "Stopped"
69101
},
70102
{
71103
"constructorName": "Idle",
104+
"deprecated": false,
72105
"docstrings": ["Now idle."],
73106
"signature": "Idle"
74107
}]
@@ -78,13 +111,25 @@ extracting docs for src/DocExtractionRes.res
78111
"id": "DocExtractionRes.SomeInnerModule.validInputs",
79112
"kind": "type",
80113
"name": "validInputs",
114+
"deprecated": false,
115+
"location": {
116+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
117+
"line": 31,
118+
"col": 3
119+
},
81120
"signature": "type validInputs = [\\n | #\\\"needs-escaping\\\"\\n | #something\\n | #status(status)\\n | #withPayload(int)\\n]",
82121
"docstrings": ["These are all the valid inputs."]
83122
},
84123
{
85124
"id": "DocExtractionRes.SomeInnerModule.callback",
86125
"kind": "type",
87126
"name": "callback",
127+
"deprecated": false,
128+
"location": {
129+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
130+
"line": 33,
131+
"col": 3
132+
},
88133
"signature": "type callback = (t, ~status: status) => unit",
89134
"docstrings": []
90135
}]
@@ -96,6 +141,7 @@ extracting docs for src/DocExtractionRes.res
96141
"item":
97142
{
98143
"name": "AnotherModule",
144+
"deprecated": false,
99145
"docstrings": ["Mighty fine module here too!"],
100146
"items": [
101147
{
@@ -108,20 +154,38 @@ extracting docs for src/DocExtractionRes.res
108154
"id": "DocExtractionRes.AnotherModule.callback",
109155
"kind": "type",
110156
"name": "callback",
157+
"deprecated": false,
158+
"location": {
159+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
160+
"line": 44,
161+
"col": 3
162+
},
111163
"signature": "type callback = SomeInnerModule.status => unit",
112164
"docstrings": ["Testing what this looks like."]
113165
},
114166
{
115167
"id": "DocExtractionRes.AnotherModule.isGoodStatus",
116168
"kind": "value",
117169
"name": "isGoodStatus",
170+
"deprecated": false,
171+
"location": {
172+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
173+
"line": 46,
174+
"col": 7
175+
},
118176
"signature": "let isGoodStatus: SomeInnerModule.status => bool",
119177
"docstrings": []
120178
},
121179
{
122180
"id": "DocExtractionRes.AnotherModule.someVariantWithInlineRecords",
123181
"kind": "type",
124182
"name": "someVariantWithInlineRecords",
183+
"deprecated": false,
184+
"location": {
185+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
186+
"line": 49,
187+
"col": 3
188+
},
125189
"signature": "type someVariantWithInlineRecords = SomeStuff({offline: bool})",
126190
"docstrings": ["Trying how it looks with an inline record in a variant."],
127191
"detail":
@@ -130,6 +194,7 @@ extracting docs for src/DocExtractionRes.res
130194
"constructorDocs": [
131195
{
132196
"constructorName": "SomeStuff",
197+
"deprecated": false,
133198
"docstrings": ["This has inline records..."],
134199
"signature": "SomeStuff"
135200
}]
@@ -139,6 +204,12 @@ extracting docs for src/DocExtractionRes.res
139204
"id": "DocExtractionRes.AnotherModule.domRoot",
140205
"kind": "type",
141206
"name": "domRoot",
207+
"deprecated": false,
208+
"location": {
209+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
210+
"line": 54,
211+
"col": 3
212+
},
142213
"signature": "type domRoot = unit => ReactDOM.Client.Root.t",
143214
"docstrings": ["Callback to get the DOM root..."]
144215
}]
@@ -150,19 +221,32 @@ extracting docs for src/DocExtractionRes.res
150221
"item":
151222
{
152223
"name": "ModuleWithThingsThatShouldNotBeExported",
224+
"deprecated": false,
153225
"docstrings": [],
154226
"items": [
155227
{
156228
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.t",
157229
"kind": "type",
158230
"name": "t",
231+
"deprecated": false,
232+
"location": {
233+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
234+
"line": 61,
235+
"col": 3
236+
},
159237
"signature": "type t",
160238
"docstrings": ["The type t is stuff."]
161239
},
162240
{
163241
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.make",
164242
"kind": "value",
165243
"name": "make",
244+
"deprecated": false,
245+
"location": {
246+
"path": "/home/pedro/Desktop/projects/rescript-vscode/analysis/tests/src/DocExtractionRes.res",
247+
"line": 63,
248+
"col": 3
249+
},
166250
"signature": "let make: unit => t",
167251
"docstrings": ["The maker of stuff!"]
168252
}]

0 commit comments

Comments
 (0)