Skip to content

Commit

Permalink
chorm: use TypeRef to replace Arc<Type>
Browse files Browse the repository at this point in the history
Signed-off-by: He1pa <[email protected]>
  • Loading branch information
He1pa committed Nov 2, 2023
1 parent fb08f99 commit 74b8b06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kclvm/sema/src/advanced_resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
└─────────────────────┘
*/

use std::sync::Arc;

use indexmap::IndexMap;
use kclvm_error::Position;

Expand All @@ -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;
Expand All @@ -67,7 +65,7 @@ pub struct AdvancedResolver<'ctx> {

pub struct Context<'ctx> {
pub program: &'ctx Program,
node_ty_map: IndexMap<AstIndex, Arc<Type>>,
node_ty_map: IndexMap<AstIndex, TypeRef>,
scopes: Vec<ScopeRef>,
current_pkgpath: Option<String>,
current_filename: Option<String>,
Expand Down

0 comments on commit 74b8b06

Please sign in to comment.