File tree Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: b779277daecb81efc0d6b0d9920c35d283e10530
5
+ refs/heads/try: 61b5cc95d172acd69488c5df661e1fcf3b3cc190
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ type moddoc = ~{
14
14
desc : option < str > ,
15
15
mods : modlist ,
16
16
fns : fnlist ,
17
- consts : constlist
17
+ consts : constlist ,
18
+ enums : enumlist
18
19
} ;
19
20
20
21
type constdoc = ~{
@@ -47,7 +48,22 @@ type retdoc = {
47
48
ty: option < str >
48
49
} ;
49
50
51
+ type enumdoc = ~{
52
+ id : ast_id ,
53
+ name : str ,
54
+ brief : option < str > ,
55
+ desc : option < str > ,
56
+ variants : [ variantdoc ]
57
+ } ;
58
+
59
+ type variantdoc = ~{
60
+ name : str ,
61
+ desc : option < str > ,
62
+ sig : option < str >
63
+ } ;
64
+
50
65
// Just to break the structural recursive types
51
66
enum modlist = [ moddoc] ;
52
67
enum constlist = [ constdoc] ;
53
68
enum fnlist = [ fndoc] ;
69
+ enum enumlist = [ enumdoc] ;
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ fn moddoc_from_mod(
76
76
none
77
77
}
78
78
}
79
- } )
79
+ } ) ,
80
+ enums: doc:: enumlist ( [ ] )
80
81
}
81
82
}
82
83
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ fn test_run_passes() {
47
47
desc : none,
48
48
mods : doc:: modlist ( [ ] ) ,
49
49
fns : doc:: fnlist ( [ ] ) ,
50
- consts : doc:: constlist ( [ ] )
50
+ consts : doc:: constlist ( [ ] ) ,
51
+ enums : doc:: enumlist ( [ ] )
51
52
}
52
53
}
53
54
}
@@ -64,7 +65,8 @@ fn test_run_passes() {
64
65
desc : none,
65
66
mods : doc:: modlist ( [ ] ) ,
66
67
fns : doc:: fnlist ( [ ] ) ,
67
- consts : doc:: constlist ( [ ] )
68
+ consts : doc:: constlist ( [ ] ) ,
69
+ enums : doc:: enumlist ( [ ] )
68
70
}
69
71
}
70
72
}
You can’t perform that action at this time.
0 commit comments