Remove resources
Also fixed shapes for classes with dtors, as well as handling offsets for classes with dtors correctly in take glue. Closes #2485
This commit is contained in:
parent
60a748a1d8
commit
487cbf8e90
49 changed files with 145 additions and 728 deletions
|
@ -83,11 +83,6 @@ fn moddoc_from_mod(
|
|||
enumdoc_from_enum(itemdoc, variants)
|
||||
))
|
||||
}
|
||||
ast::item_res(_, _, _, _, _, _) {
|
||||
some(doc::restag(
|
||||
resdoc_from_resource(itemdoc)
|
||||
))
|
||||
}
|
||||
ast::item_iface(_, _, methods) {
|
||||
some(doc::ifacetag(
|
||||
ifacedoc_from_iface(itemdoc, methods)
|
||||
|
@ -188,20 +183,6 @@ fn should_extract_enum_variants() {
|
|||
assert doc.cratemod().enums()[0].variants[0].name == "v";
|
||||
}
|
||||
|
||||
fn resdoc_from_resource(itemdoc: doc::itemdoc) -> doc::resdoc {
|
||||
{
|
||||
item: itemdoc,
|
||||
sig: none
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_extract_resources() {
|
||||
let doc = test::mk_doc("resource r(b: bool) { }");
|
||||
assert doc.cratemod().resources()[0].id() != 0;
|
||||
assert doc.cratemod().resources()[0].name() == "r";
|
||||
}
|
||||
|
||||
fn ifacedoc_from_iface(
|
||||
itemdoc: doc::itemdoc,
|
||||
methods: [ast::ty_method]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue