Fix missing field.

This commit is contained in:
Stephen Chung 2022-07-25 13:53:28 +08:00
parent 5d799fd325
commit 148bbcb860

View File

@ -75,6 +75,8 @@ impl AST {
) -> Self { ) -> Self {
Self { Self {
source: Identifier::new_const(), source: Identifier::new_const(),
#[cfg(feature = "metadata")]
doc: Vec::new(),
body: StmtBlock::new(statements, Position::NONE, Position::NONE), body: StmtBlock::new(statements, Position::NONE, Position::NONE),
#[cfg(not(feature = "no_function"))] #[cfg(not(feature = "no_function"))]
lib: functions.into(), lib: functions.into(),