diff --git a/src/ast/ast.rs b/src/ast/ast.rs index aa18b3ac..9c186e67 100644 --- a/src/ast/ast.rs +++ b/src/ast/ast.rs @@ -77,7 +77,7 @@ impl AST { #[cfg(not(feature = "no_function"))] functions: impl Into>, ) -> Self { Self { - source: Identifier::new_const(), + source: None, #[cfg(feature = "metadata")] doc: crate::SmartString::new_const(), body: StmtBlock::new(statements, Position::NONE, Position::NONE), @@ -114,7 +114,7 @@ impl AST { pub(crate) fn new_with_source( statements: impl IntoIterator, #[cfg(not(feature = "no_function"))] functions: impl Into>, - source: impl Into, + source: impl Into, ) -> Self { let mut ast = Self::new( statements,