1
Fork 0

librustc: Make self and static into keywords

This commit is contained in:
Patrick Walton 2013-05-10 15:15:06 -07:00
parent 06ef889cdc
commit 5d3559e645
51 changed files with 700 additions and 610 deletions

View file

@ -518,6 +518,10 @@ pub fn mk_unreachable_arm(cx: @ext_ctxt, span: span) -> ast::arm {
mk_arm(cx, span, ~[mk_pat_wild(cx, span)], mk_unreachable(cx, span))
}
pub fn make_self(cx: @ext_ctxt, span: span) -> @ast::expr {
build::mk_expr(cx, span, ast::expr_self)
}
//
// Duplication functions
//