File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,21 @@ type cratedoc = ~{
6
6
topmod : moddoc ,
7
7
} ;
8
8
9
+ enum itemtag {
10
+ modtag( moddoc ) ,
11
+ consttag( constdoc ) ,
12
+ fntag( fndoc ) ,
13
+ enumtag( enumdoc ) ,
14
+ restag( resdoc )
15
+ }
16
+
9
17
type moddoc = ~{
10
18
id : ast_id ,
11
19
name : str ,
12
20
path: [ str ] ,
13
21
brief : option < str > ,
14
22
desc : option < str > ,
23
+ items : [ itemtag ] ,
15
24
mods : modlist ,
16
25
fns : fnlist ,
17
26
consts : constlist ,
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ fn moddoc_from_mod(
43
43
path: [ ] ,
44
44
brief: none,
45
45
desc: none,
46
+ items: [ ] ,
46
47
mods: doc:: modlist (
47
48
vec:: filter_map ( module. items ) { |item|
48
49
alt item. node {
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ fn test_run_passes() {
49
49
path : [ ] ,
50
50
brief : none,
51
51
desc : none,
52
+ items : [ ] ,
52
53
mods : doc:: modlist ( [ ] ) ,
53
54
fns : doc:: fnlist ( [ ] ) ,
54
55
consts : doc:: constlist ( [ ] ) ,
@@ -68,6 +69,7 @@ fn test_run_passes() {
68
69
path : [ ] ,
69
70
brief : none,
70
71
desc : none,
72
+ items : [ ] ,
71
73
mods : doc:: modlist ( [ ] ) ,
72
74
fns : doc:: fnlist ( [ ] ) ,
73
75
consts : doc:: constlist ( [ ] ) ,
You can’t perform that action at this time.
0 commit comments