Add is_* methods to Tok

This commit is contained in:
Jeong YunWon 2023-05-16 15:44:34 +09:00
parent 735c06d5f4
commit cdfd5e0e02
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ rustpython-ast = { workspace = true }
rustpython-parser-core = { workspace = true }
itertools = { workspace = true }
is-macro = { workspace = true }
log = { workspace = true }
num-bigint = { workspace = true }
num-traits = { workspace = true }

View file

@ -9,7 +9,7 @@ use num_bigint::BigInt;
use std::fmt;
/// The set of tokens the Python source code can be tokenized in.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq, is_macro::Is)]
pub enum Tok {
/// Token value for a name, commonly known as an identifier.
Name {