about summary refs log tree commit diff
path: root/src/rustdoc/doc.rs
blob: b1324713e119efe118b51822bddec58c38d644e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
type ast_id = int;

type cratedoc = ~{
    topmod: moddoc,
};

type moddoc = ~{
    name: str,
    mods: modlist,
    fns: fnlist
};

type fndoc = ~{
    id: ast_id,
    name: str,
    brief: str,
    desc: option::t<str>,
    return: option::t<str>,
    args: map::hashmap<str, str>
};

// Just to break the structural recursive types
tag modlist = [moddoc];
tag fnlist = [fndoc];