Beginnings of front-end support for classes
Added class support to the parser, prettyprinter, fold, and visit. (See Issue 1726.) This is WIP -- the test case is xfailed, and attempting to compile it will error out in resolve.
This commit is contained in:
parent
d65eabd5de
commit
f3343b3571
10 changed files with 294 additions and 10 deletions
|
@ -1421,6 +1421,9 @@ fn index_mod(md: ast::_mod) -> mod_index {
|
|||
variant_idx += 1u;
|
||||
}
|
||||
}
|
||||
ast::item_class(_, items, ctor_decl, _) {
|
||||
fail "resolve::index_mod: item_class";
|
||||
}
|
||||
}
|
||||
}
|
||||
ret index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue