about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-17 14:33:38 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-17 16:00:39 -0800
commitd26fc348ef1f39583dfdf2ee5b2fc37fdc67eef5 (patch)
tree5d10681024d8ce9d475131493e2077d500867766 /src
parenta5ede9d34533be86bab0fd5a255d527b2fd3cdc6 (diff)
downloadrust-d26fc348ef1f39583dfdf2ee5b2fc37fdc67eef5.tar.gz
rust-d26fc348ef1f39583dfdf2ee5b2fc37fdc67eef5.zip
rustdoc: Add path field to all item docs
Diffstat (limited to 'src')
-rw-r--r--src/rustdoc/doc.rs7
-rw-r--r--src/rustdoc/extract.rs7
2 files changed, 14 insertions, 0 deletions
diff --git a/src/rustdoc/doc.rs b/src/rustdoc/doc.rs
index ed2aa2af1cc..70bd4d981bc 100644
--- a/src/rustdoc/doc.rs
+++ b/src/rustdoc/doc.rs
@@ -30,6 +30,7 @@ type moddoc = {
 type constdoc = {
     id: ast_id,
     name: str,
+    path: [str],
     brief: option<str>,
     desc: option<str>,
     ty: option<str>
@@ -38,6 +39,7 @@ type constdoc = {
 type fndoc = {
     id: ast_id,
     name: str,
+    path: [str],
     brief: option<str>,
     desc: option<str>,
     args: [argdoc],
@@ -60,6 +62,7 @@ type retdoc = {
 type enumdoc = {
     id: ast_id,
     name: str,
+    path: [str],
     brief: option<str>,
     desc: option<str>,
     variants: [variantdoc]
@@ -74,6 +77,7 @@ type variantdoc = {
 type resdoc = {
     id: ast_id,
     name: str,
+    path: [str],
     brief: option<str>,
     desc: option<str>,
     args: [argdoc],
@@ -83,6 +87,7 @@ type resdoc = {
 type ifacedoc = {
     id: ast_id,
     name: str,
+    path: [str],
     brief: option<str>,
     desc: option<str>,
     methods: [methoddoc]
@@ -101,6 +106,7 @@ type methoddoc = {
 type impldoc = {
     id: ast_id,
     name: str,
+    path: [str],
     brief: option<str>,
     desc: option<str>,
     iface_ty: option<str>,
@@ -111,6 +117,7 @@ type impldoc = {
 type tydoc = {
     id: ast_id,
     name: str,
+    path: [str],
     brief: option<str>,
     desc: option<str>,
     sig: option<str>
diff --git a/src/rustdoc/extract.rs b/src/rustdoc/extract.rs
index 8e337e3d236..7af1bed3ace 100644
--- a/src/rustdoc/extract.rs
+++ b/src/rustdoc/extract.rs
@@ -101,6 +101,7 @@ fn fndoc_from_fn(
     {
         id: id,
         name: name,
+        path: [],
         brief: none,
         desc: none,
         args: argdocs_from_args(decl.inputs),
@@ -142,6 +143,7 @@ fn constdoc_from_const(
     {
         id: id,
         name: name,
+        path: [],
         brief: none,
         desc: none,
         ty: none
@@ -163,6 +165,7 @@ fn enumdoc_from_enum(
     {
         id: id,
         name: name,
+        path: [],
         brief: none,
         desc: none,
         variants: variantdocs_from_variants(variants)
@@ -204,6 +207,7 @@ fn resdoc_from_resource(
     {
         id: id,
         name: name,
+        path: [],
         brief: none,
         desc: none,
         args: argdocs_from_args(decl.inputs),
@@ -232,6 +236,7 @@ fn ifacedoc_from_iface(
     {
         id: id,
         name: name,
+        path: [],
         brief: none,
         desc: none,
         methods: vec::map(methods) {|method|
@@ -277,6 +282,7 @@ fn impldoc_from_impl(
     {
         id: id,
         name: name,
+        path: [],
         brief: none,
         desc: none,
         iface_ty: none,
@@ -329,6 +335,7 @@ fn tydoc_from_ty(
     {
         id: id,
         name: name,
+        path: [],
         brief: none,
         desc: none,
         sig: none