File tree 3 files changed +46
-0
lines changed
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 12
12
13
13
## master
14
14
15
+ ### :bug : Bug Fix
16
+
17
+ - Print module structure with signature to module path. https://github.com/rescript-lang/rescript-vscode/pull/1018
18
+
15
19
## 0.6.3
16
20
17
21
#### :bug : Bug Fix
Original file line number Diff line number Diff line change @@ -469,6 +469,12 @@ let extractDocs ~entryPointFile ~debug =
469
469
(extractDocsForModule
470
470
~module Path:(interface.name :: modulePath)
471
471
interface))
472
+ | Module {type_ = Constraint (Structure m , Ident _ )} ->
473
+ (* module M: T = { }. Print M *)
474
+ Some
475
+ (Module
476
+ (extractDocsForModule
477
+ ~module Path:(m.name :: modulePath) m))
472
478
| _ -> None );
473
479
}
474
480
in
Original file line number Diff line number Diff line change 306
306
"col" : 3
307
307
}
308
308
}]
309
+ },
310
+ {
311
+ "id" : " DocExtractionRes.M" ,
312
+ "name" : " M" ,
313
+ "kind" : " module" ,
314
+ "docstrings" : [" implementation of Example module type" ],
315
+ "source" : {
316
+ "filepath" : " src/DocExtractionRes.res" ,
317
+ "line" : 1 ,
318
+ "col" : 1
319
+ },
320
+ "items" : [
321
+ {
322
+ "id" : " DocExtractionRes.M.t" ,
323
+ "kind" : " type" ,
324
+ "name" : " t" ,
325
+ "signature" : " type t = int" ,
326
+ "docstrings" : [" main type" ],
327
+ "source" : {
328
+ "filepath" : " src/DocExtractionRes.res" ,
329
+ "line" : 123 ,
330
+ "col" : 3
331
+ }
332
+ },
333
+ {
334
+ "id" : " DocExtractionRes.M.f" ,
335
+ "kind" : " value" ,
336
+ "name" : " f" ,
337
+ "signature" : " let f: int => int" ,
338
+ "docstrings" : [" identity function" ],
339
+ "source" : {
340
+ "filepath" : " src/DocExtractionRes.res" ,
341
+ "line" : 128 ,
342
+ "col" : 7
343
+ }
344
+ }]
309
345
}]
310
346
}
You can’t perform that action at this time.
0 commit comments