Add AST node for pattern macros

This commit is contained in:
Keegan McAllister
2014-05-19 13:29:41 -07:00
parent 28a4ee5eeb
commit 5fdd0e4b05
12 changed files with 36 additions and 2 deletions

View File

@@ -353,7 +353,8 @@ pub enum Pat_ {
PatRange(@Expr, @Expr),
// [a, b, ..i, y, z] is represented as
// PatVec(~[a, b], Some(i), ~[y, z])
PatVec(Vec<@Pat> , Option<@Pat>, Vec<@Pat> )
PatVec(Vec<@Pat> , Option<@Pat>, Vec<@Pat> ),
PatMac(Mac),
}
#[deriving(Clone, Eq, TotalEq, Encodable, Decodable, Hash, Show)]