Parse and reserve typeof keyword. #3228
This commit is contained in:
@@ -437,6 +437,11 @@ pub fn print_type(s: @ps, ty: &ast::Ty) {
|
||||
print_expr(s, v);
|
||||
word(s.s, "]");
|
||||
}
|
||||
ast::ty_typeof(e) => {
|
||||
word(s.s, "typeof(");
|
||||
print_expr(s, e);
|
||||
word(s.s, ")");
|
||||
}
|
||||
ast::ty_mac(_) => {
|
||||
fail!("print_type doesn't know how to print a ty_mac");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user