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