Make token trees parseable.

This commit is contained in:
Paul Stansifer
2012-05-21 10:45:56 -07:00
parent b6ed1de29e
commit 473b1ec0a0
8 changed files with 82 additions and 5 deletions

View File

@@ -119,6 +119,7 @@ fn fold_mac_(m: mac, fld: ast_fold) -> mac {
mac_invoc(fld.fold_path(pth),
option::map(arg, fld.fold_expr), body)
}
mac_invoc_tt(pth, tt) { m.node }
mac_embed_type(ty) { mac_embed_type(fld.fold_ty(ty)) }
mac_embed_block(blk) { mac_embed_block(fld.fold_block(blk)) }
mac_ellipsis { mac_ellipsis }