Add support for terminal states (issue #2862)

This commit is contained in:
Eric Holk
2012-07-16 14:44:27 -07:00
parent c46bf6e716
commit d39f6fc676
4 changed files with 112 additions and 46 deletions

View File

@@ -160,6 +160,12 @@ impl ast_builder for ext_ctxt {
span: empty_span()}
}
fn ty_nil() -> @ast::ty {
@{id: self.next_id(),
node: ast::ty_nil,
span: empty_span()}
}
fn item_ty_poly(name: ident,
ty: @ast::ty,
+params: ~[ast::ty_param]) -> @ast::item {