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:
Tim Chevalier 2012-01-31 19:30:40 -08:00
parent d65eabd5de
commit f3343b3571
10 changed files with 294 additions and 10 deletions

View file

@ -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;