Fix builds.

This commit is contained in:
Stephen Chung
2022-02-04 13:31:33 +08:00
parent 3be27746e0
commit f09abd7ab3
3 changed files with 4 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ impl AST {
) -> Self {
Self {
source: Identifier::new_const(),
body: StmtBlock::new(statements, Position::NONE),
body: StmtBlock::new(statements, Position::NONE, Position::NONE),
#[cfg(not(feature = "no_function"))]
lib: functions.into(),
#[cfg(not(feature = "no_module"))]