Allow for macros to occur in statement position.

This commit is contained in:
Paul Stansifer
2012-11-12 23:06:55 -05:00
committed by Graydon Hoare
parent fca52554e7
commit ee076f63f9
13 changed files with 33 additions and 17 deletions

View File

@@ -39,7 +39,8 @@ pure fn stmt_id(s: stmt) -> node_id {
match s.node {
stmt_decl(_, id) => id,
stmt_expr(_, id) => id,
stmt_semi(_, id) => id
stmt_semi(_, id) => id,
stmt_mac(_) => fail ~"attempted to analyze unexpanded stmt",
}
}