rustdoc: Add consts to the doc tree
This commit is contained in:
parent
a3c31a08e5
commit
6ee7ff50b2
src/rustdoc
@ -13,7 +13,14 @@ type moddoc = ~{
|
||||
brief: option<str>,
|
||||
desc: option<str>,
|
||||
mods: modlist,
|
||||
fns: fnlist
|
||||
fns: fnlist,
|
||||
consts: constlist
|
||||
};
|
||||
|
||||
type constdoc = ~{
|
||||
id: ast_id,
|
||||
name: str,
|
||||
ty: option<str>
|
||||
};
|
||||
|
||||
type fndoc = ~{
|
||||
@ -39,4 +46,5 @@ type retdoc = {
|
||||
|
||||
// Just to break the structural recursive types
|
||||
enum modlist = [moddoc];
|
||||
enum constlist = [constdoc];
|
||||
enum fnlist = [fndoc];
|
||||
|
@ -65,7 +65,8 @@ fn moddoc_from_mod(
|
||||
none
|
||||
}
|
||||
}
|
||||
})
|
||||
}),
|
||||
consts: doc::constlist([])
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,8 @@ fn test_run_passes() {
|
||||
brief: none,
|
||||
desc: none,
|
||||
mods: doc::modlist([]),
|
||||
fns: doc::fnlist([])
|
||||
fns: doc::fnlist([]),
|
||||
consts: doc::constlist([])
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -62,7 +63,8 @@ fn test_run_passes() {
|
||||
brief: none,
|
||||
desc: none,
|
||||
mods: doc::modlist([]),
|
||||
fns: doc::fnlist([])
|
||||
fns: doc::fnlist([]),
|
||||
consts: doc::constlist([])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user