diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-23 23:09:18 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-24 00:38:35 -0800 |
| commit | 6ee7ff50b29fba0a4bbd76dd769431e9afe66f6d (patch) | |
| tree | a35d1de1093b8477d14033b1eca1a85a123e9bea /src/rustdoc/doc.rs | |
| parent | a3c31a08e53f49f62ce9bafbd0552229869e2d67 (diff) | |
rustdoc: Add consts to the doc tree
Diffstat (limited to 'src/rustdoc/doc.rs')
| -rw-r--r-- | src/rustdoc/doc.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rustdoc/doc.rs b/src/rustdoc/doc.rs index 7ccd50b9649..2ca1c7612f7 100644 --- a/src/rustdoc/doc.rs +++ b/src/rustdoc/doc.rs @@ -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]; |
