Skip to content

Commit 47c4f79

Browse files
committed
Update expected files
1 parent 3adb001 commit 47c4f79

File tree

7 files changed

+114
-3
lines changed

7 files changed

+114
-3
lines changed

tools/src/printer_sandbox.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#use "prettier_printer.ml";;
21
(*
2+
#use "prettier_printer.ml";;
3+
34
Interpret using ocaml ./tools/src/printer_sandbox.ml
4-
*)
5+
56
67
open DSL
78
@@ -37,3 +38,4 @@ let oak =
3738
let _ =
3839
CodePrinter.genOak oak {CodePrinter.emptyContext with max_line_length = 20}
3940
|> CodePrinter.dump |> Format.printf "%s\n"
41+
*)

tools/src/tools.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ let isFunction = function
360360
| _ -> false
361361

362362
let valueDetail (typ : Types.type_expr) =
363-
Printf.printf "%s\n" (Print_tast.print_type_expr typ);
364363
let rec collectSignatureTypes (typ_desc : Types.type_desc) =
365364
match typ_desc with
366365
| Tlink t -> collectSignatureTypes t.desc

tools/tests/src/expected/DocExtraction2.res.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
"filepath": "src/DocExtraction2.resi",
3131
"line": 7,
3232
"col": 1
33+
},
34+
"detail": {
35+
"parameters": [{
36+
"path": "unit"
37+
}],
38+
"returnType": {
39+
"path": "t"
40+
}
3341
}
3442
},
3543
{
@@ -65,6 +73,14 @@
6573
"filepath": "src/DocExtraction2.resi",
6674
"line": 15,
6775
"col": 3
76+
},
77+
"detail": {
78+
"parameters": [{
79+
"path": "unit"
80+
}],
81+
"returnType": {
82+
"path": "t"
83+
}
6884
}
6985
}]
7086
}]

tools/tests/src/expected/DocExtraction2.resi.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
"filepath": "src/DocExtraction2.resi",
3131
"line": 7,
3232
"col": 1
33+
},
34+
"detail": {
35+
"parameters": [{
36+
"path": "unit"
37+
}],
38+
"returnType": {
39+
"path": "t"
40+
}
3341
}
3442
},
3543
{
@@ -65,6 +73,14 @@
6573
"filepath": "src/DocExtraction2.resi",
6674
"line": 15,
6775
"col": 3
76+
},
77+
"detail": {
78+
"parameters": [{
79+
"path": "unit"
80+
}],
81+
"returnType": {
82+
"path": "t"
83+
}
6884
}
6985
}]
7086
}]

tools/tests/src/expected/DocExtractionRes.res.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@
4545
"filepath": "src/DocExtractionRes.res",
4646
"line": 17,
4747
"col": 5
48+
},
49+
"detail": {
50+
"parameters": [{
51+
"path": "string"
52+
}],
53+
"returnType": {
54+
"path": "t"
55+
}
4856
}
4957
},
5058
{
@@ -57,6 +65,14 @@
5765
"filepath": "src/DocExtractionRes.res",
5866
"line": 23,
5967
"col": 5
68+
},
69+
"detail": {
70+
"parameters": [{
71+
"path": "t"
72+
}],
73+
"returnType": {
74+
"path": "t"
75+
}
6076
}
6177
},
6278
{
@@ -69,6 +85,11 @@
6985
"filepath": "src/DocExtractionRes.res",
7086
"line": 26,
7187
"col": 5
88+
},
89+
"detail": {
90+
"returnType": {
91+
"path": "int"
92+
}
7293
}
7394
},
7495
{
@@ -184,6 +205,14 @@
184205
"filepath": "src/DocExtractionRes.res",
185206
"line": 49,
186207
"col": 7
208+
},
209+
"detail": {
210+
"parameters": [{
211+
"path": "SomeInnerModule.status"
212+
}],
213+
"returnType": {
214+
"path": "bool"
215+
}
187216
}
188217
},
189218
{
@@ -268,6 +297,14 @@
268297
"filepath": "src/DocExtractionRes.res",
269298
"line": 71,
270299
"col": 3
300+
},
301+
"detail": {
302+
"parameters": [{
303+
"path": "unit"
304+
}],
305+
"returnType": {
306+
"path": "t"
307+
}
271308
}
272309
}]
273310
},
@@ -304,6 +341,14 @@
304341
"filepath": "src/DocExtractionRes.res",
305342
"line": 109,
306343
"col": 3
344+
},
345+
"detail": {
346+
"parameters": [{
347+
"path": "t"
348+
}],
349+
"returnType": {
350+
"path": "t"
351+
}
307352
}
308353
}]
309354
},
@@ -341,6 +386,14 @@
341386
"filepath": "src/DocExtractionRes.res",
342387
"line": 128,
343388
"col": 7
389+
},
390+
"detail": {
391+
"parameters": [{
392+
"path": "int"
393+
}],
394+
"returnType": {
395+
"path": "int"
396+
}
344397
}
345398
}]
346399
},
@@ -365,6 +418,11 @@
365418
"filepath": "src/DocExtractionRes.res",
366419
"line": 132,
367420
"col": 3
421+
},
422+
"detail": {
423+
"returnType": {
424+
"path": "int"
425+
}
368426
}
369427
}]
370428
},
@@ -390,6 +448,11 @@
390448
"filepath": "src/DocExtractionRes.res",
391449
"line": 136,
392450
"col": 7
451+
},
452+
"detail": {
453+
"returnType": {
454+
"path": "int"
455+
}
393456
}
394457
}]
395458
},
@@ -426,6 +489,11 @@
426489
"filepath": "src/DocExtractionRes.res",
427490
"line": 141,
428491
"col": 9
492+
},
493+
"detail": {
494+
"returnType": {
495+
"path": "int"
496+
}
429497
}
430498
}]
431499
}]

tools/tests/src/expected/ModC.res.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
"filepath": "src/ModC.resi",
3030
"line": 5,
3131
"col": 3
32+
},
33+
"detail": {
34+
"returnType": {
35+
"path": "string"
36+
}
3237
}
3338
}]
3439
}]

tools/tests/src/expected/ModC.resi.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
"filepath": "src/ModC.resi",
3030
"line": 5,
3131
"col": 3
32+
},
33+
"detail": {
34+
"returnType": {
35+
"path": "string"
36+
}
3237
}
3338
}]
3439
}]

0 commit comments

Comments
 (0)