@@ -37,7 +37,7 @@ impl<'s, 'a> Symbol<'s, 'a> {
37
37
module_record : & ' s ModuleRecord ,
38
38
symbol_id : SymbolId ,
39
39
) -> Self {
40
- let flags = semantic. symbols ( ) . get_flags ( symbol_id) ;
40
+ let flags = semantic. symbols ( ) . symbol_flags ( symbol_id) ;
41
41
Self { semantic, module_record, id : symbol_id, flags, span : OnceCell :: new ( ) }
42
42
}
43
43
@@ -48,7 +48,7 @@ impl<'s, 'a> Symbol<'s, 'a> {
48
48
49
49
#[ inline]
50
50
pub fn name ( & self ) -> & str {
51
- self . symbols ( ) . get_name ( self . id )
51
+ self . symbols ( ) . symbol_name ( self . id )
52
52
}
53
53
54
54
#[ inline]
@@ -58,7 +58,7 @@ impl<'s, 'a> Symbol<'s, 'a> {
58
58
59
59
#[ inline]
60
60
pub fn scope_id ( & self ) -> ScopeId {
61
- self . symbols ( ) . get_scope_id ( self . id )
61
+ self . symbols ( ) . get_symbol_scope_id ( self . id )
62
62
}
63
63
64
64
#[ inline]
@@ -80,12 +80,12 @@ impl<'s, 'a> Symbol<'s, 'a> {
80
80
81
81
/// Is this [`Symbol`] declared in the root scope?
82
82
pub fn is_root ( & self ) -> bool {
83
- self . symbols ( ) . get_scope_id ( self . id ) == self . scopes ( ) . root_scope_id ( )
83
+ self . symbols ( ) . get_symbol_scope_id ( self . id ) == self . scopes ( ) . root_scope_id ( )
84
84
}
85
85
86
86
#[ inline]
87
87
fn declaration_id ( & self ) -> NodeId {
88
- self . symbols ( ) . get_declaration ( self . id )
88
+ self . symbols ( ) . get_symbol_declaration ( self . id )
89
89
}
90
90
91
91
#[ inline]
@@ -159,13 +159,13 @@ impl<'s, 'a> Symbol<'s, 'a> {
159
159
_ => break ,
160
160
}
161
161
}
162
- self . symbols ( ) . get_span ( self . id )
162
+ self . symbols ( ) . symbol_span ( self . id )
163
163
}
164
164
165
165
/// <https://github.com/oxc-project/oxc/issues/4739>
166
166
fn clean_binding_id ( & self , binding : & BindingPattern ) -> Span {
167
167
if binding. kind . is_destructuring_pattern ( ) {
168
- return self . symbols ( ) . get_span ( self . id ) ;
168
+ return self . symbols ( ) . symbol_span ( self . id ) ;
169
169
}
170
170
let own = binding. kind . span ( ) ;
171
171
binding. type_annotation . as_ref ( ) . map_or ( own, |ann| Span :: new ( own. start , ann. span . start ) )
@@ -185,7 +185,7 @@ impl<'a> Symbol<'_, 'a> {
185
185
186
186
#[ inline]
187
187
fn is_in_ts_namespace ( & self ) -> bool {
188
- self . scopes ( ) . get_flags ( self . scope_id ( ) ) . is_ts_module_block ( )
188
+ self . scopes ( ) . scope_flags ( self . scope_id ( ) ) . is_ts_module_block ( )
189
189
}
190
190
191
191
/// We need to do this due to limitations of [`Semantic`].
0 commit comments