rustdoc: Add path field to doc::moddoc
This commit is contained in:
@@ -9,6 +9,7 @@ type cratedoc = ~{
|
|||||||
type moddoc = ~{
|
type moddoc = ~{
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
mods: modlist,
|
mods: modlist,
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ fn moddoc_from_mod(
|
|||||||
~{
|
~{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
mods: doc::modlist(
|
mods: doc::modlist(
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ fn test_run_passes() {
|
|||||||
topmod: ~{
|
topmod: ~{
|
||||||
id: 0,
|
id: 0,
|
||||||
name: doc.topmod.name + "two",
|
name: doc.topmod.name + "two",
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
mods: doc::modlist([]),
|
mods: doc::modlist([]),
|
||||||
@@ -57,6 +58,7 @@ fn test_run_passes() {
|
|||||||
topmod: ~{
|
topmod: ~{
|
||||||
id: 0,
|
id: 0,
|
||||||
name: doc.topmod.name + "three",
|
name: doc.topmod.name + "three",
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
mods: doc::modlist([]),
|
mods: doc::modlist([]),
|
||||||
|
|||||||
Reference in New Issue
Block a user