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 = {
|
type constdoc = {
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
ty: option<str>
|
ty: option<str>
|
||||||
|
@ -38,6 +39,7 @@ type constdoc = {
|
||||||
type fndoc = {
|
type fndoc = {
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
args: [argdoc],
|
args: [argdoc],
|
||||||
|
@ -60,6 +62,7 @@ type retdoc = {
|
||||||
type enumdoc = {
|
type enumdoc = {
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
variants: [variantdoc]
|
variants: [variantdoc]
|
||||||
|
@ -74,6 +77,7 @@ type variantdoc = {
|
||||||
type resdoc = {
|
type resdoc = {
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
args: [argdoc],
|
args: [argdoc],
|
||||||
|
@ -83,6 +87,7 @@ type resdoc = {
|
||||||
type ifacedoc = {
|
type ifacedoc = {
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
methods: [methoddoc]
|
methods: [methoddoc]
|
||||||
|
@ -101,6 +106,7 @@ type methoddoc = {
|
||||||
type impldoc = {
|
type impldoc = {
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
iface_ty: option<str>,
|
iface_ty: option<str>,
|
||||||
|
@ -111,6 +117,7 @@ type impldoc = {
|
||||||
type tydoc = {
|
type tydoc = {
|
||||||
id: ast_id,
|
id: ast_id,
|
||||||
name: str,
|
name: str,
|
||||||
|
path: [str],
|
||||||
brief: option<str>,
|
brief: option<str>,
|
||||||
desc: option<str>,
|
desc: option<str>,
|
||||||
sig: option<str>
|
sig: option<str>
|
||||||
|
|
|
@ -101,6 +101,7 @@ fn fndoc_from_fn(
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
args: argdocs_from_args(decl.inputs),
|
args: argdocs_from_args(decl.inputs),
|
||||||
|
@ -142,6 +143,7 @@ fn constdoc_from_const(
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
ty: none
|
ty: none
|
||||||
|
@ -163,6 +165,7 @@ fn enumdoc_from_enum(
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
variants: variantdocs_from_variants(variants)
|
variants: variantdocs_from_variants(variants)
|
||||||
|
@ -204,6 +207,7 @@ fn resdoc_from_resource(
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
args: argdocs_from_args(decl.inputs),
|
args: argdocs_from_args(decl.inputs),
|
||||||
|
@ -232,6 +236,7 @@ fn ifacedoc_from_iface(
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
methods: vec::map(methods) {|method|
|
methods: vec::map(methods) {|method|
|
||||||
|
@ -277,6 +282,7 @@ fn impldoc_from_impl(
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
iface_ty: none,
|
iface_ty: none,
|
||||||
|
@ -329,6 +335,7 @@ fn tydoc_from_ty(
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
path: [],
|
||||||
brief: none,
|
brief: none,
|
||||||
desc: none,
|
desc: none,
|
||||||
sig: none
|
sig: none
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue