From a531400a1a67b3539c66066863014d46a0234bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=8D=9A=E6=96=87?= Date: Sun, 7 Jan 2024 01:05:19 +0800 Subject: [PATCH] fix: build failed --- lib/src/test/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/test/mod.rs b/lib/src/test/mod.rs index 813ff2c..f51dc39 100644 --- a/lib/src/test/mod.rs +++ b/lib/src/test/mod.rs @@ -47,12 +47,12 @@ fn test_scope_lookup() { let app_ctx = mgr.write().get_context(app_id).unwrap(); let global = StLexerBuilder::new().build_str("VAR_GLOBAL END_VAR VAR_GLOBAL g1: REAL; END_VAR"); let global = StDeclarationParser::new().parse(global).unwrap(); - let _global_id = app_ctx.write().add_declaration(global); + let _global_id = app_ctx.write().add_declaration(global, Uuid::nil()); let test_func = StLexerBuilder::new().build_str("program prg: int VAR g1: BYTE; END_VAR end_program"); let test_fun_decl = StDeclarationParser::new().parse(test_func).unwrap(); - let test_fun_decl_id = app_ctx.write().add_declaration(test_fun_decl); + let test_fun_decl_id = app_ctx.write().add_declaration(test_fun_decl, Uuid::nil()); let scope = Scope::new(Some(mgr.clone()), Some(app_id), Some(test_fun_decl_id)); let variable = scope.find_variable(&StString::new("g1"));