Skip to content

Commit

Permalink
Update compiler/parser/src/parser/file.rs
Browse files Browse the repository at this point in the history
Co-authored-by: d0cd <[email protected]>
Signed-off-by: evan-schott <[email protected]>
  • Loading branch information
evan-schott and d0cd authored Oct 3, 2023
1 parent 64649a3 commit dde39bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/parser/src/parser/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ impl ParserContext<'_> {
while self.has_next() {
match &self.token.token {
Token::Const => {
let definition = self.parse_const_declaration_statement()?;
consts.push((Symbol::intern(&definition.place.to_string()), definition));
let declaration = self.parse_const_declaration_statement()?;
consts.push((Symbol::intern(&declaration.place.to_string()), definition));

Check failure on line 150 in compiler/parser/src/parser/file.rs

View workflow job for this annotation

GitHub Actions / Code Coverage

cannot find value `definition` in this scope

Check failure on line 150 in compiler/parser/src/parser/file.rs

View workflow job for this annotation

GitHub Actions / Test Package ubuntu-latest

cannot find value `definition` in this scope
}
Token::Struct | Token::Record => {
let (id, struct_) = self.parse_struct()?;
Expand Down

0 comments on commit dde39bd

Please sign in to comment.