rustdoc: Add consts to the doc tree

This commit is contained in:
Brian Anderson 2012-01-23 23:09:18 -08:00
parent a3c31a08e5
commit 6ee7ff50b2
3 changed files with 15 additions and 4 deletions

View File

@ -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];

View File

@ -65,7 +65,8 @@ fn moddoc_from_mod(
none
}
}
})
}),
consts: doc::constlist([])
}
}

View File

@ -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([])
}
}
}