rustdoc: Add function signature field to the doc::fndoc

This commit is contained in:
Brian Anderson 2012-01-19 15:54:27 -08:00
parent c267821742
commit 052340980b
3 changed files with 6 additions and 3 deletions

View File

@ -134,7 +134,8 @@ fn fold_fn(
brief: attrs.brief,
desc: attrs.desc,
args: merge_arg_attrs(doc.args, attrs.args),
return: merge_ret_attrs(doc.return, attrs.return)
return: merge_ret_attrs(doc.return, attrs.return),
ty: none
};
}

View File

@ -22,7 +22,8 @@ type fndoc = ~{
brief: option<str>,
desc: option<str>,
args: [argdoc],
return: option<retdoc>
return: option<retdoc>,
ty: option<str>
};
type argdoc = ~{

View File

@ -80,7 +80,8 @@ fn fndoc_from_fn(
brief: none,
desc: none,
args: argdocs_from_args(decl.inputs),
return: none
return: none,
ty: none
}
}