File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
crates/swc_ecma_minifier/src Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
use indexmap:: IndexSet ;
2
2
use rustc_hash:: { FxBuildHasher , FxHashMap } ;
3
- use swc_atoms:: Atom ;
4
- use swc_allocator:: api:: arena;
5
- use swc_allocator:: api:: { arena, hashbrown:: hash_map:: Entry } ;
6
3
use swc_allocator:: {
7
4
allocators:: Arena ,
8
5
api:: { arena, hashbrown:: hash_map:: Entry } ,
9
6
} ;
10
- use swc_atoms:: JsWord ;
7
+ use swc_atoms:: Atom ;
11
8
use swc_common:: SyntaxContext ;
12
9
use swc_ecma_ast:: * ;
13
10
use swc_ecma_usage_analyzer:: {
@@ -129,7 +126,7 @@ pub(crate) struct VarUsageInfo {
129
126
/// PR. (because it's hard to review)
130
127
infects_to : Vec < Access > ,
131
128
/// Only **string** properties.
132
- pub ( crate ) accessed_props : Box < FxHashMap < JsWord , u32 > > ,
129
+ pub ( crate ) accessed_props : Box < FxHashMap < Atom , u32 > > ,
133
130
134
131
pub ( crate ) used_recursively : bool ,
135
132
}
@@ -573,7 +570,7 @@ impl<'alloc> VarDataLike<'alloc> for VarUsageInfo {
573
570
self . indexed_with_dynamic_key = true ;
574
571
}
575
572
576
- fn add_accessed_property ( & mut self , name : swc_atoms:: JsWord ) {
573
+ fn add_accessed_property ( & mut self , name : swc_atoms:: Atom ) {
577
574
* self . accessed_props . entry ( name) . or_default ( ) += 1 ;
578
575
}
579
576
You can’t perform that action at this time.
0 commit comments