From 7912189ec304b28c4df0030b5282cf3d21074154 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 23:38:19 +0300 Subject: reorganize --- src/parser/token_set.rs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/parser/token_set.rs (limited to 'src/parser/token_set.rs') diff --git a/src/parser/token_set.rs b/src/parser/token_set.rs deleted file mode 100644 index a800f200d..000000000 --- a/src/parser/token_set.rs +++ /dev/null @@ -1,24 +0,0 @@ -use SyntaxKind; - -pub(crate) struct TokenSet { - pub tokens: &'static [SyntaxKind], -} - -impl TokenSet { - pub fn contains(&self, kind: SyntaxKind) -> bool { - self.tokens.contains(&kind) - } -} - -#[macro_export] -macro_rules! token_set { - ($($t:ident),*) => { - TokenSet { - tokens: &[$($t),*], - } - }; - - ($($t:ident),* ,) => { - token_set!($($t),*) - }; -} -- cgit v1.2.3