From 148bbcb860c0a59f3fe60a0889ccaa4784ebd19c Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 25 Jul 2022 13:53:28 +0800 Subject: [PATCH] Fix missing field. --- src/ast/ast.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ast/ast.rs b/src/ast/ast.rs index 2adaa205..a0c462ac 100644 --- a/src/ast/ast.rs +++ b/src/ast/ast.rs @@ -75,6 +75,8 @@ impl AST { ) -> Self { Self { source: Identifier::new_const(), + #[cfg(feature = "metadata")] + doc: Vec::new(), body: StmtBlock::new(statements, Position::NONE, Position::NONE), #[cfg(not(feature = "no_function"))] lib: functions.into(),