File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ type moddoc = ~{
13
13
brief : option < str > ,
14
14
desc : option < str > ,
15
15
mods : modlist ,
16
- fns : fnlist
16
+ fns : fnlist ,
17
+ consts : constlist
18
+ } ;
19
+
20
+ type constdoc = ~{
21
+ id : ast_id ,
22
+ name : str ,
23
+ ty: option < str >
17
24
} ;
18
25
19
26
type fndoc = ~{
@@ -39,4 +46,5 @@ type retdoc = {
39
46
40
47
// Just to break the structural recursive types
41
48
enum modlist = [ moddoc] ;
49
+ enum constlist = [ constdoc] ;
42
50
enum fnlist = [ fndoc] ;
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ fn moddoc_from_mod(
65
65
none
66
66
}
67
67
}
68
- } )
68
+ } ) ,
69
+ consts: doc:: constlist ( [ ] )
69
70
}
70
71
}
71
72
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ fn test_run_passes() {
46
46
brief : none,
47
47
desc : none,
48
48
mods : doc:: modlist ( [ ] ) ,
49
- fns : doc:: fnlist ( [ ] )
49
+ fns : doc:: fnlist ( [ ] ) ,
50
+ consts : doc:: constlist ( [ ] )
50
51
}
51
52
}
52
53
}
@@ -62,7 +63,8 @@ fn test_run_passes() {
62
63
brief : none,
63
64
desc : none,
64
65
mods : doc:: modlist ( [ ] ) ,
65
- fns : doc:: fnlist ( [ ] )
66
+ fns : doc:: fnlist ( [ ] ) ,
67
+ consts : doc:: constlist ( [ ] )
66
68
}
67
69
}
68
70
}
You can’t perform that action at this time.
0 commit comments