diff options
Diffstat (limited to 'sloth/src/parser/mod.rs')
| -rw-r--r-- | sloth/src/parser/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sloth/src/parser/mod.rs b/sloth/src/parser/mod.rs index 6dd534a..a1f251e 100644 --- a/sloth/src/parser/mod.rs +++ b/sloth/src/parser/mod.rs @@ -126,20 +126,11 @@ impl<'a> AstParser<'a> { let name = self.consume_identifier()?; - let mut list_len = 0; if is_list { - if let Literal::Integer(i) = self.consume_literal()? { - list_len = i as u32; - } - self.consume(TokenType::ClosingBracket, "Expected ']'")?; } - Ok(TypeIdentifier { - name, - is_list, - list_len, - }) + Ok(TypeIdentifier { name, is_list }) } pub fn reserve_id(&mut self) -> i32 { |
