From 74b8b0628c480a327a8df1e8c6cf47935801652b Mon Sep 17 00:00:00 2001 From: He1pa <18012015693@163.com> Date: Thu, 2 Nov 2023 11:50:19 +0800 Subject: [PATCH] chorm: use TypeRef to replace Arc Signed-off-by: He1pa <18012015693@163.com> --- kclvm/sema/src/advanced_resolver/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kclvm/sema/src/advanced_resolver/mod.rs b/kclvm/sema/src/advanced_resolver/mod.rs index 6c3feb6b9..63e5e0046 100644 --- a/kclvm/sema/src/advanced_resolver/mod.rs +++ b/kclvm/sema/src/advanced_resolver/mod.rs @@ -34,8 +34,6 @@ └─────────────────────┘ */ -use std::sync::Arc; - use indexmap::IndexMap; use kclvm_error::Position; @@ -46,7 +44,7 @@ use crate::{ scope::{LocalSymbolScope, RootSymbolScope, ScopeKind, ScopeRef}, symbol::SymbolRef, }, - ty::{Type, TypeRef}, + ty::TypeRef, }; use kclvm_ast::ast; use kclvm_ast::ast::AstIndex; @@ -67,7 +65,7 @@ pub struct AdvancedResolver<'ctx> { pub struct Context<'ctx> { pub program: &'ctx Program, - node_ty_map: IndexMap>, + node_ty_map: IndexMap, scopes: Vec, current_pkgpath: Option, current_filename: Option,