mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-13 08:47:17 +03:00
Introduce Token::Signature
This commit is contained in:
parent
46e9313e55
commit
25eac3c63b
@ -24,6 +24,7 @@ pub(super) const TYPE_TOKENS: &[Token] = &[
|
||||
Token::Field,
|
||||
Token::Group,
|
||||
Token::Scalar,
|
||||
Token::Signature,
|
||||
Token::String,
|
||||
Token::I8,
|
||||
Token::I16,
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user