Open xiyuzhai opened 1 month ago
crates/hir/husky-hir-eager-expr/src/stmt.rs
SemCondition::Be { expr, src, contract, be_regional_token_idx: _, target, } => HirEagerCondition::Be { opd: src.to_hir_eager(builder), contract: HirContract::from_contract(contract), pattern: target.to_hir_eager(builder), },
crates/hir/husky-hir-lazy-expr/src/stmt.rs
match *self { SemCondition::Be { expr, src, contract, be_regional_token_idx: _, target, } => HirLazyCondition::Be { src: src.to_hir_lazy(builder), pattern: target.to_hir_lazy(builder), },
This solves the caching problem of condition
crates/hir/husky-hir-eager-expr/src/stmt.rs
crates/hir/husky-hir-lazy-expr/src/stmt.rs