rustdoc: Add path field to all item docs
This commit is contained in:
parent
a5ede9d345
commit
d26fc348ef
2 changed files with 14 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue