Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
neri committed Dec 6, 2024
1 parent 11fcd27 commit cf6e3c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/wa_asm/src/ast/data.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//! Data section
use super::{keyword::Keyword, ModuleName};
use super::{ModuleName, keyword::Keyword};
use crate::*;
use ast::*;
use identifier::Identifier;
use literal::RawBytesLiteral;
use memory::MemUse;
use wasm::expr::ConstExpr;
Expand All @@ -18,6 +19,8 @@ impl ModuleName for Data {
const IDENTIFIER: Keyword = Keyword::Data;

fn from_tokens(tokens: &mut TokenStream<Keyword>) -> Result<Self, AssembleError> {
let _id = Identifier::try_expect(tokens)?;

let mem_use = try_expect_module::<MemUse>(tokens)?;

let offset = Offset::expect(tokens)?;
Expand Down

0 comments on commit cf6e3c8

Please sign in to comment.