Introduce Token::Signature

This commit is contained in:
Pranav Gaddamadugu 2023-08-02 19:52:19 -04:00
parent 46e9313e55
commit 25eac3c63b
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ pub(super) const TYPE_TOKENS: &[Token] = &[
Token::Field,
Token::Group,
Token::Scalar,
Token::Signature,
Token::String,
Token::I8,
Token::I16,

View File

@ -94,6 +94,7 @@ pub enum Token {
Field,
Group,
Scalar,
Signature,
String,
I8,
I16,
@ -234,6 +235,7 @@ impl Token {
Token::Record => sym::record,
Token::Return => sym::Return,
Token::Scalar => sym::scalar,
Token::Signature => sym::signature,
Token::SelfLower => sym::SelfLower,
Token::String => sym::string,
Token::Struct => sym::Struct,
@ -321,6 +323,7 @@ impl fmt::Display for Token {
Field => write!(f, "field"),
Group => write!(f, "group"),
Scalar => write!(f, "scalar"),
Signature => write!(f, "signature"),
String => write!(f, "string"),
I8 => write!(f, "i8"),
I16 => write!(f, "i16"),